/* Arcade field kit: illustrations and chrome are local, code-native game assets. */
:root {
  --display: "Arial Black", "Avenir Next", "Segoe UI", sans-serif;
  --arcade-ink: #112b33;
  --arcade-mint: #55e6ba;
  --arcade-yellow: #ffe279;
  --arcade-coral: #ff7a73;
}
h1,
h2,
h3 {
  font-weight: 850;
}
#hub {
  background: #102930;
  color: #fff6db;
}
.app-lobby {
  background:
    radial-gradient(ellipse at 100% 0%, #24596466, transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, #79dbcf06 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #79dbcf06 39px 40px), #102930;
}
.lobby-header {
  height: calc(88px + env(safe-area-inset-top));
}
.wordmark {
  font: 900 24px/1 var(--display);
  letter-spacing: -1px;
}
.wordmark b {
  font-weight: 950;
  color: var(--arcade-yellow);
}
.wordmark .icon-box {
  color: var(--arcade-coral);
  filter: drop-shadow(2px 2px #0007);
}
.lobby-profile {
  padding: 0 12px;
  border: 1px solid #73b3b94d;
  border-radius: 8px;
  color: #c9e0dd;
  background: #ffffff06;
}
.lobby-profile .icon-box {
  color: var(--arcade-mint);
}
.title-scene {
  min-height: 530px;
  border: 2px solid #74c3bd59;
  border-radius: 18px;
  background: #124837;
  box-shadow:
    0 10px 0 #071b22,
    0 22px 60px #0003;
}
.title-scene::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #fff7cf22;
  border-radius: 10px;
  pointer-events: none;
}
.title-landscape canvas {
  filter: saturate(1.4) contrast(1.08);
  object-position: 80% 50%;
}
.title-shade {
  background:
    linear-gradient(90deg, #0d2b36f5, #11383ac4 40%, #12333220 85%),
    linear-gradient(0deg, #092936a6, transparent 65%);
}
.title-copy {
  padding: 44px 48px 82px;
  max-width: 730px;
}
.hero-status {
  color: #9ae8ca;
  font: 800 10px/1.3 var(--body);
  letter-spacing: 1.7px;
}
.hero-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--arcade-mint);
  border-radius: 50%;
  box-shadow: 0 0 12px #55e6baaa;
  margin-right: 6px;
}
.title-copy h1 {
  font: 950 clamp(68px, 7.7vw, 110px)/0.9 var(--display);
  letter-spacing: -5px;
  color: #fff8da;
  margin: 26px 0 23px;
  text-shadow:
    3px 4px 0 #123745,
    5px 7px 0 #061d27;
}
.title-copy h1 span {
  display: block;
  color: var(--arcade-yellow);
}
.title-copy > p {
  color: #ecf5db;
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.title-copy > p strong {
  color: var(--arcade-mint);
  font-weight: 750;
}
.lobby-primary {
  background: var(--arcade-yellow);
  border: 2px solid #142b32;
  color: #142b32;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  box-shadow:
    0 5px 0 #b5943e,
    0 7px 0 #0a2229;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.lobby-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #b5943e;
}
.lobby-text-button {
  color: #b6ddd1;
}
.title-caption {
  color: #c2e3d2;
  font-size: 10px;
  margin-top: 22px;
}
.title-companions {
  right: 12px;
  bottom: 48px;
  width: 49%;
  height: 315px;
  z-index: 1;
  filter: drop-shadow(0 12px 0 #0a263850) drop-shadow(0 0 25px #72f9bb35);
}
.title-companions::before {
  content: "";
  position: absolute;
  width: 85%;
  height: 48%;
  bottom: 0;
  border: 2px solid #7af5ce66;
  border-radius: 50%;
  transform: rotate(-12deg);
  background: repeating-radial-gradient(ellipse, #55e6ba0a 0 14px, #55e6ba22 15px 16px);
  z-index: -1;
}
.title-companions img {
  height: 68%;
  width: 37%;
}
.title-companions img:nth-child(2) {
  height: 100%;
  width: 47%;
  margin-inline: -10%;
}
.title-companions img:nth-child(3) {
  height: 74%;
}
.hero-emblem {
  position: absolute;
  right: 8%;
  top: 46px;
  z-index: 1;
  width: 125px;
  height: 125px;
  border: 2px solid #ffde72bb;
  border-radius: 50%;
  transform: rotate(12deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #112f3ac4;
  box-shadow:
    inset 0 0 0 5px #123542,
    inset 0 0 0 6px #ffe2795c;
}
.hero-emblem span {
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 800;
}
.hero-emblem b {
  font: 950 25px var(--display);
  color: var(--arcade-yellow);
}
.hero-emblem i {
  font-style: normal;
  font-size: 11px;
  color: var(--arcade-coral);
  letter-spacing: 4px;
}
.scene-label {
  left: 28px;
  right: 28px;
  bottom: 19px;
  color: #d2eddd;
  letter-spacing: 2px;
  font-size: 8px;
}
.lobby-eyebrow {
  color: #80d9c4;
  font-weight: 750;
}
.section-heading h2 {
  font: 900 30px/1.2 var(--display);
  letter-spacing: -1px;
  margin-top: 6px;
}
.lobby-mode-grid,
.lobby-mode-grid:not(.mode-picker) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.lobby-mode-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 0;
  border: 2px solid #0a222b;
  border-radius: 12px;
  background: #183c43;
  overflow: hidden;
  box-shadow: 0 5px 0 #061e27;
  transition:
    transform 0.18s,
    border-color 0.18s;
  text-align: left;
}
.lobby-mode-card:hover {
  transform: translateY(-4px);
  border-color: #8cd9bd;
}
.mode-card-copy {
  padding: 19px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mode-card-copy > small {
  color: var(--mode-color);
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  min-height: 25px;
}
.mode-card-copy .mode-glyph {
  display: none;
}
.lobby-mode-card h2 {
  font: 900 26px/1.05 var(--display);
  letter-spacing: -1px;
  color: #fff8e6;
  margin: 7px 0 12px;
}
.lobby-mode-card p {
  color: #c5d9d5;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.mode-detail {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #9bc2bd30;
  color: var(--mode-color);
  font-size: 9px;
  line-height: 1.5;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.mode-detail .icon-box {
  width: 28px;
  height: 28px;
  border: 1px solid #ffffff35;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.mode-detail svg {
  width: 14px;
}
.mode-art {
  height: 180px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 2px solid #112b33;
  background: radial-gradient(at 65% 45%, #7ac56f, #296352 72%);
}
.mode-art-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, #ffffff30 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 22px, #ffffff30 23px 24px);
  transform: rotate(-14deg) scale(1.3);
  z-index: -1;
}
.art-gem {
  background: radial-gradient(at 70% 40%, #b4a7f1, #4e4a91 75%);
}
.art-poker {
  background: radial-gradient(at 65% 40%, #ecb088, #a45058 90%);
}
.art-daily {
  background: radial-gradient(at 60% 30%, #ead27e, #a37f32 90%);
}
.mode-mascot {
  position: absolute;
  width: 46%;
  height: 75%;
  right: 2%;
  bottom: 6%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 7px 0 #14303a33);
}
.mode-art-code {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  color: #fffce6;
  background: #112b33c9;
  padding: 3px 6px;
  font-size: 7px;
  letter-spacing: 1.6px;
  font-weight: 900;
  border: 1px solid #ffffff45;
  border-radius: 3px;
}
.element-orbit {
  position: absolute;
  width: 120px;
  height: 120px;
  left: 14px;
  top: 16px;
  border: 1px dashed #edffc1b3;
  border-radius: 50%;
  transform: rotate(-12deg);
}
.orbit-core {
  position: absolute;
  inset: 36px;
  display: grid;
  place-items: center;
  color: #feffde;
  border: 2px solid #f5ffcd;
  border-radius: 12px;
  background: #0c323a75;
  font-size: 32px;
  font-weight: 700;
  transform: rotate(12deg);
  box-shadow: 0 0 20px #d3ffa560;
}
.orbit-node {
  position: absolute;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  width: 30px;
  height: 30px;
  border: 2px solid #13333d;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #14313b;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  transform: rotate(calc(var(--i) * 60deg)) translateY(-57px) rotate(calc(var(--i) * -60deg));
  box-shadow: 0 3px #112b3350;
}
.orbit-node.fire {
  background: #ff9a70;
}
.orbit-node.water {
  background: #8addf0;
}
.orbit-node.grass {
  background: #b4e375;
}
.orbit-node.electric {
  background: #ffe98a;
}
.orbit-node.rock {
  background: #e6c69b;
}
.orbit-node.ghost {
  background: #c2b1fa;
}
.gem-cluster {
  position: absolute;
  left: 12%;
  top: 13%;
  width: 125px;
  height: 110px;
}
.facet {
  --jewel: #b5f6ee;
  position: absolute;
  width: 53px;
  height: 65px;
  background: var(--jewel);
  clip-path: polygon(20% 0, 80% 0, 100% 33%, 50% 100%, 0 33%);
  transform: rotate(calc(var(--i) * 17deg - 30deg));
  filter: drop-shadow(0 4px 0 #192e4b70);
}
.facet::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(60deg, transparent 49%, #fff8 50% 51%, transparent 52%),
    linear-gradient(-60deg, transparent 49%, #1c2a5444 50%);
}
.facet b {
  position: absolute;
  left: 0;
  right: 0;
  top: 33%;
  border-top: 1px solid #ffffffa8;
}
.facet.mint {
  --jewel: #79eed5;
  left: 37px;
  top: 40px;
  transform: scale(1.25) rotate(7deg);
  z-index: 2;
}
.facet.violet {
  --jewel: #aeb1ff;
  left: 0;
  top: 10px;
}
.facet.pink {
  --jewel: #fda4d0;
  left: 70px;
  top: 0;
}
.facet.gold {
  --jewel: #ffe283;
  left: -16px;
  top: 64px;
  transform: scale(0.7) rotate(-25deg);
}
.facet.blue {
  --jewel: #8dd8ff;
  left: 85px;
  top: 70px;
  transform: scale(0.75) rotate(20deg);
}
.poker-fan {
  position: absolute;
  width: 120px;
  height: 120px;
  left: 16px;
  top: 12px;
}
.poker-fan > i {
  position: absolute;
  left: calc(12px + var(--i) * 21px);
  top: 15px;
  width: 68px;
  height: 96px;
  background: #fff8e1;
  color: #17313b;
  border: 2px solid #15313a;
  border-radius: 7px;
  transform-origin: 50% 110%;
  transform: rotate(calc(var(--i) * 18deg - 26deg));
  box-shadow: 0 4px 0 #112b334d;
  font-style: normal;
}
.poker-fan .red-card {
  color: #d25c63;
}
.poker-fan b {
  display: block;
  padding: 3px 6px;
  font:
    900 22px Georgia,
    serif;
}
.poker-fan span {
  display: block;
  text-align: center;
  font-size: 34px;
  line-height: 1;
}
.lobby-nav {
  border: 2px solid #497d7d;
  background: #12313bef;
  border-radius: 13px;
  box-shadow:
    0 6px 0 #071d24,
    0 15px 30px #071d2455;
  backdrop-filter: blur(14px);
}
.lobby-nav button {
  color: #a1c5c5;
  border-radius: 7px;
  font-weight: 800;
}
.lobby-nav button[aria-current] {
  color: #102d35;
  background: var(--arcade-mint);
  box-shadow: inset 0 -3px #29a98e;
}
.lobby-nav svg {
  width: 21px;
  height: 21px;
}
.home-continue {
  background: #255752;
  border: 2px solid #3d8c78;
  border-radius: 10px;
  box-shadow: 0 4px 0 #09272c;
}
.home-continue strong {
  font-family: var(--display);
  font-weight: 850;
}
.home-continue .continue-icon {
  background: var(--arcade-yellow);
  color: #153039;
  border-radius: 8px;
}
.lobby-page-heading h1 {
  font: 900 clamp(30px, 4.8vw, 56px)/1.05 var(--display);
  letter-spacing: -1.5px;
}
.lobby-page-heading > p {
  color: #c1dbd1;
}
.reserve-option {
  border: 2px solid #5d9b8c;
  border-radius: 13px;
  box-shadow: 0 5px 0 #071f29;
}
.reserve-option-copy h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -1px;
}
.reserve-number {
  background: #ffe279;
  color: #19363c;
  border: 2px solid #132d35;
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 900;
}
.reserve-preview canvas {
  filter: saturate(1.25);
}
.expedition-seed input {
  background: #0a202a;
  border: 1px solid #4b817c;
  border-radius: 7px;
}
/* The command kit floats over the world; it never becomes an external frame. */
.game {
  --game-accent: #75ebbc;
}
.game[data-mode="gem"] {
  --game-accent: #c9b1ff;
}
.game[data-mode="poker"] {
  --game-accent: #ffb594;
}
#terrain {
  filter: saturate(1.18) contrast(1.04);
}
.hud-button,
.speed,
.auto-wave {
  color: #fff8de;
  background: linear-gradient(160deg, #28505aef, #102b35f2);
  border: 2px solid #193640;
  border-top-color: #85c5bc;
  border-radius: 9px;
  box-shadow:
    0 3px 0 #09232c,
    inset 0 0 0 1px #78aeab33;
}
.hud-button svg,
.build-toggle svg {
  color: var(--game-accent);
}
.reserve-title h1 {
  font: 900 20px/1.2 var(--display);
  letter-spacing: -0.7px;
  text-shadow:
    1px 2px 0 #17333b,
    0 0 8px #0c2529;
}
.reserve-title span {
  color: #fff4b8;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 2px;
}
.resources {
  border: 1px solid #76b3a7;
  border-radius: 7px;
  background: #12313dec;
  box-shadow: 0 3px 0 #09232c;
  color: #fff7d1;
  padding: 5px 7px;
}
.resource {
  font-size: 13px;
}
.resource b {
  font-weight: 900;
}
.resource.gold {
  color: #ffe279;
}
.resource.hp {
  color: #ffb8aa;
}
.research-toggle b {
  border-color: #18343d;
  background: #ffe279;
  font-weight: 950;
}
.build-toggle {
  border-radius: 11px;
  border-color: #17333d;
  border-top-color: #a3ebd3;
}
.build-toggle span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 900;
}
#start-wave {
  background: #ffe279;
  color: #163239;
  border: 2px solid #163239;
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 4px 0 #9c813e;
}
#start-wave.paused {
  background: #ffb594;
}
.battle-actions {
  gap: 6px;
}
.wave-preview {
  background: #12333beb;
  padding: 5px 9px 5px 4px;
  border: 1px solid #7cbcb18c;
  border-radius: 7px;
  text-shadow: none;
  box-shadow: 0 2px 0 #122e34;
}
.wave-preview p {
  color: #fff3ca;
  font-size: 11px;
  font-weight: 850;
}
.wave-meter {
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: #102a3d99;
  overflow: hidden;
}
.wave-meter > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--game-accent);
  transition: width 0.2s;
}
.placement-prompt {
  background: #14343fee;
  border: 1px solid var(--game-accent);
  border-radius: 8px;
  color: #e6fbe0;
  box-shadow: 0 3px 0 #102932;
}
.clearing {
  border-color: #c3f6cd80;
  background: #183a3c50;
  box-shadow: inset 0 0 0 2px #d7ffcf15;
  color: #fff6c2;
}
.clearing:hover,
.clearing:focus-visible {
  background: #1b574acf;
  border-color: #e1ff8f;
  box-shadow: 0 0 20px #a2f7bd44;
}
.tower-art {
  filter: drop-shadow(0 4px 1px #142e2f55);
}
.quick-companion {
  background: #f8f3de;
  border: 2px solid #1b3a41;
  border-radius: 12px;
  box-shadow:
    0 5px 0 #112c35,
    0 14px 35px #0c242955;
}
.quick-companion h3 {
  font-family: var(--display);
  font-weight: 900;
}
.quick-companion .primary {
  background: #183c45;
}
dialog {
  background: #f8f4e4;
  border: 2px solid #18353f;
  border-radius: 14px;
  box-shadow:
    0 6px 0 #102832,
    0 20px 70px #08243280;
}
dialog::backdrop {
  background: #082b38a6;
  backdrop-filter: blur(5px);
}
dialog h2,
.panel-title strong {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.6px;
}
.icon-button {
  background: #e8eddc;
  border: 1px solid #b6c7b8;
  border-radius: 8px;
}
.eyebrow {
  color: #4c756e;
  font-weight: 850;
  letter-spacing: 1.8px;
}
.pokemon-card {
  background: #fffbe9;
  border: 2px solid #c8d5b7;
  border-radius: 10px;
  box-shadow: 0 3px 0 #b5c59f;
}
.pokemon-card:hover {
  border-color: #467d6d;
  background: #e1f3c2;
}
.pokemon-card strong {
  font-weight: 900;
}
.gem-prospect {
  background: linear-gradient(145deg, #fcffed, #dce5fa);
  border-color: #a2accc;
  box-shadow: 0 3px #8494b4;
}
.playing-card {
  background: #fffdf2;
  border: 2px solid #aebeb3;
  border-radius: 7px;
  color: #163742;
  box-shadow: 0 4px 0 #8eaa9e;
}
.playing-card.is-held {
  background: #d4f3c5;
  border-color: #448879;
  box-shadow:
    0 4px 0 #25574f,
    0 0 0 2px #83cfac55;
  transform: translateY(-5px);
}
.playing-card.is-held small {
  color: #173d34;
  font-weight: 900;
}
.playing-card.suit-red {
  color: #d85665;
}
.hand-result {
  font-family: var(--display);
  font-weight: 950;
  color: #23473e;
  letter-spacing: -1px;
}
.hand-result small {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0;
}
.poker-reward {
  border: 2px solid #b8ccab;
  border-radius: 10px;
  background: #e5efcf;
  box-shadow: 0 3px #b2c59f;
}
.poker-reward:hover {
  border-color: #50957c;
  background: #d7f3c6;
}
.poker-bank {
  border: 1px dashed #7f9c8c;
  background: #fdfae9;
}
.balance-lab .lab-form,
.lab-results {
  border: 2px solid #102a33;
  border-radius: 12px;
  box-shadow: 0 5px 0 #081e28;
}
.lab-results h2,
.lab-results h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.8px;
}
@media (max-width: 1050px) {
  .lobby-mode-grid,
  .lobby-mode-grid:not(.mode-picker) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mode-art {
    height: 190px;
  }
  .title-copy {
    padding: 40px 34px 78px;
    max-width: 65%;
  }
  .title-copy h1 {
    font-size: 83px;
  }
  .hero-emblem {
    right: 5%;
    width: 105px;
    height: 105px;
  }
  .hero-emblem b {
    font-size: 22px;
  }
}
@media (max-width: 700px) {
  .lobby-header {
    height: calc(72px + env(safe-area-inset-top));
    padding-inline: 18px;
  }
  .wordmark {
    font-size: 21px;
  }
  .lobby-profile {
    padding-inline: 9px;
  }
  .lobby-main {
    padding-inline: 14px;
  }
  .title-scene {
    min-height: 605px;
    border-radius: 14px;
  }
  .title-copy {
    max-width: none;
    padding: 26px 24px 226px;
  }
  .title-copy h1 {
    font-size: clamp(61px, 19vw, 92px);
    letter-spacing: -4px;
    margin: 24px 0 20px;
  }
  .title-copy > p {
    font-size: 17px;
    margin-bottom: 20px;
  }
  .title-copy .lobby-eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .title-copy .lobby-primary {
    min-height: 50px;
    font-size: 13px;
  }
  .title-companions {
    width: 78%;
    height: 215px;
    bottom: 34px;
    right: 6px;
  }
  .hero-emblem {
    right: 18px;
    top: auto;
    bottom: 115px;
    width: 80px;
    height: 80px;
    z-index: 0;
  }
  .hero-emblem span {
    font-size: 5px;
    letter-spacing: 1px;
  }
  .hero-emblem b {
    font-size: 17px;
  }
  .hero-emblem i {
    font-size: 7px;
  }
  .title-caption {
    font-size: 9px;
    margin-top: 16px;
  }
  .title-shade {
    background: linear-gradient(180deg, #102f39ec, #123a3ace 55%, #0e32383a 83%);
  }
  .scene-label {
    left: 17px;
    right: 17px;
    bottom: 14px;
    font-size: 6px;
    letter-spacing: 1px;
  }
  .lobby-section {
    margin-top: 32px;
  }
  .section-heading {
    gap: 12px;
    align-items: flex-end;
  }
  .section-heading h2 {
    font-size: 23px;
    max-width: 200px;
  }
  .section-heading .lobby-text-button {
    font-size: 10px;
  }
  .lobby-mode-grid,
  .lobby-mode-grid:not(.mode-picker) {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mode-picker .lobby-mode-card,
  .lobby-mode-card {
    min-height: 0;
    padding: 0;
    border-radius: 10px;
  }
  .mode-art {
    height: 139px;
  }
  .mode-card-copy {
    padding: 13px 12px;
  }
  .mode-card-copy > small {
    font-size: 7px;
    letter-spacing: 0.7px;
    min-height: 25px;
  }
  .lobby-mode-card h2 {
    font-size: 22px;
    margin: 7px 0 10px;
    letter-spacing: -0.7px;
  }
  .lobby-mode-card p {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 13px;
  }
  .mode-detail {
    font-size: 8px;
    gap: 4px;
  }
  .element-orbit {
    transform: scale(0.7) rotate(-12deg);
    transform-origin: top left;
    left: 13px;
    top: 15px;
  }
  .gem-cluster {
    transform: scale(0.75);
    transform-origin: top left;
    left: 13px;
  }
  .poker-fan {
    transform: scale(0.75);
    transform-origin: top left;
    left: 6px;
  }
  .mode-mascot {
    height: 64%;
    width: 55%;
    right: -3%;
  }
  .mode-art-code {
    left: 7px;
    bottom: 7px;
    font-size: 5.5px;
    letter-spacing: 0.9px;
    padding: 3px 4px;
  }
  .lobby-page-heading h1 {
    font-size: 35px;
  }
  .lobby-profile span {
    font-size: 9px;
  }
}
@media (max-height: 500px) and (min-width: 600px) {
  .title-scene {
    min-height: 380px;
  }
  .title-copy {
    padding-top: 28px;
    max-width: 65%;
  }
  .title-copy h1 {
    font-size: 72px;
    margin: 17px 0;
  }
  .title-companions {
    height: 250px;
    width: 40%;
  }
  .hero-emblem {
    top: 25px;
    right: 5%;
    width: 85px;
    height: 85px;
  }
  .game-hud {
    top: max(8px, env(safe-area-inset-top));
  }
  .reserve-title h1 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lobby-mode-card,
  .lobby-primary,
  .wave-meter > i {
    transition: none;
  }
  .title-companions img {
    animation: none;
  }
}
/* Mode workbenches feel like different pieces of the same field kit. */
.poker-dialog {
  background: radial-gradient(ellipse at 50% 35%, #275d57, #143642 80%);
  color: #f9f4db;
  border: 2px solid #80b8a5;
  box-shadow:
    0 6px 0 #092a35,
    0 18px 70px #09232a99,
    inset 0 0 0 5px #10313d;
}
.poker-dialog .eyebrow {
  color: #93d6b7;
}
.poker-dialog .icon-button {
  background: #28515a;
  color: #e9f1d3;
  border-color: #64948b;
}
.poker-dialog .playing-hand {
  padding: 13px 7px 11px;
  border: 1px dashed #86bc9d75;
  border-radius: 10px;
  background: #092d343b;
}
.poker-dialog .playing-card {
  min-width: 0;
}
.poker-dialog .hand-result {
  color: #ffe279;
  text-shadow: 0 2px #102c32;
}
.poker-dialog .hand-result small {
  color: #bedccc;
  text-shadow: none;
}
.poker-dialog .poker-body > p,
.poker-dialog .poker-hint {
  color: #cee4d3;
}
.poker-dialog .poker-reward {
  color: #183d3e;
  background: #d9efc3;
  border-color: #98bf99;
  box-shadow: 0 4px #82aa89;
}
.poker-dialog .poker-reward:nth-child(2) {
  background: #cfebef;
  border-color: #88b7c2;
  box-shadow: 0 4px #60939e;
}
.poker-dialog .poker-reward:hover {
  background: #fff6c8;
}
.poker-dialog .poker-bank {
  color: #f2e9c4;
  background: #143a44;
  border-color: #8db2a4;
}
.poker-dialog .poker-guide {
  border-color: #6f9d8c60;
}
.poker-dialog .poker-guide summary,
.poker-dialog .poker-guide p {
  color: #d0e4d2;
}
.poker-dialog .poker-guide caption,
.poker-dialog .poker-guide th,
.poker-dialog .poker-guide td {
  color: #e6efdb;
  border-color: #6f9d8c60;
}
.poker-dialog .poker-buttons .secondary {
  color: #d8e9d0;
  border-color: #8aa69c;
}
.gem-dialog {
  background: radial-gradient(ellipse at 50% 25%, #4d4977, #242b4a);
  border: 2px solid #c0b2e6;
  color: #f6f1e1;
}
.gem-dialog .eyebrow {
  color: #c8c2f2;
}
.gem-dialog .icon-button {
  background: #4d4b70;
  color: #eee9ff;
  border-color: #9c96c3;
}
.gem-dialog .gem-prospect {
  color: #233a4b;
  background: linear-gradient(145deg, #fffced, #d5e0f4);
}
.gem-dialog .gem-salvage {
  color: #e9e1fd;
  border-color: #aaa0d1;
  background: #3c3d62;
}
.gem-dialog .recruit-note {
  color: #d0cce3;
}
/* Recruitment and field journal share the game's compact, tactile surfaces. */
.recruit-search {
  display: block;
  padding: 0 14px 12px;
  font-size: 11px;
  font-weight: 700;
}
.recruit-search input {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  border: 2px solid #bac9a9;
  border-radius: 10px;
  background: #fffbe8;
  color: #163c35;
  font: inherit;
  font-size: 14px;
}
.recruit-dialog {
  max-height: min(720px, calc(100dvh - 24px));
  overflow-y: auto;
}
.tactics-toggle {
  align-self: center;
  pointer-events: auto;
  background: #153c38e8;
  color: #f4e6ac;
  border: 1px solid #779e8a;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  max-width: 90%;
}
.tactic-card {
  border: 2px solid #c2cdb7;
  background: #f0f0d8;
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
}
.tactic-card.is-active {
  border-color: #467d5b;
  background: #d9e8b8;
}
.tactic-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
}
.tactic-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.match-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 12px 0;
  padding: 16px;
  background: #f5edcd;
  border: 2px solid #bac9a9;
  border-radius: 14px;
  color: #183e36;
}
.match-hand {
  border: 1px solid #c7ceb9;
  border-radius: 14px;
  margin: 12px 0;
  padding: 14px;
  background: #fff8df;
}
.match-hand header,
.review-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.match-hand small {
  color: #526f62;
  font-size: 10px;
}
.review-cards {
  font-size: 22px;
  letter-spacing: 2px;
  font-weight: 800;
  margin: 6px 0 12px;
  color: #173c34;
}
.poker-progression {
  background: #e1e9b7;
  border: 1px solid #a2b886;
  border-radius: 12px;
  padding: 10px;
}
.poker-rewards {
  grid-template-columns: 1fr;
}
.tactics-toggle {
  grid-column: 1 / -1;
  justify-self: center;
  width: max-content;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (orientation: landscape) and (max-height: 500px) {
  .tactics-toggle {
    padding: 4px 10px;
    font-size: 9px;
  }
}
.poker-dialog .recruit-heading {
  background: #193f3d;
  color: #fff4b8;
}
.poker-dialog .recruit-heading h2 {
  color: #fff4b8;
}
.poker-dialog .recruit-heading .eyebrow {
  color: #b7d2bf;
}
.poker-dialog .poker-body > .poker-progression {
  color: #183f35;
}
.poker-dialog .poker-rewards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.poker-dialog .poker-reward {
  min-width: 0;
  min-height: 118px;
  padding: 9px 4px;
}
.poker-dialog .poker-reward img {
  width: 48px;
  height: 48px;
}
.poker-dialog .poker-reward strong {
  font-size: 12px;
}
.poker-dialog .poker-reward small {
  font-size: 9px;
  line-height: 1.3;
}
