@charset "UTF-8";
:root {
  --panel: #162834f0;
  --accent: #ffbd48;
  --muted: #b6c9cc;
  color: #f4efdf;
}
button {
  background: #263c49;
  border-color: #607784;
  box-shadow: 0 3px #10202b;
  border-radius: 2px;
}
.primary {
  background: #ffbf48;
  color: #222f3a;
  border-color: #ffda83;
  box-shadow: 0 4px #a56a29;
}
.secondary {
  background: #263f50;
  border-color: #5f7c8a;
}
#mast {
  padding: 18px 28px;
  background: linear-gradient(#111f2cce, transparent);
  height: 80px;
  z-index: 6;
}
.brand {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  gap: 9px;
  align-items: center;
  text-align: left;
  min-height: 40px;
  pointer-events: auto;
}
.brand-mark {
  font-size: 32px;
  color: #ffbd48;
  text-shadow: 2px 3px #0d2532;
}
.brand strong {
  display: block;
  font-size: 17px;
  color: #f6f1d9;
  letter-spacing: -0.5px;
}
.brand small {
  display: block;
  margin-top: 3px;
}
.utilities {
  gap: 10px;
}
.utilities button {
  background: #192d3cd9;
  color: #ccdadd;
  border-color: #637b81;
  box-shadow: none;
  font-size: 10px;
  min-height: 30px;
  padding: 5px 9px;
}
#wallet {
  display: block !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffcf69;
  border-left: 1px solid #7f8e8a;
  padding-left: 15px;
  margin-left: 3px;
}
.screen {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.screen button,
.screen input,
.screen select,
.screen nav {
  pointer-events: auto;
}
.screen button {
  touch-action: manipulation;
}
@media (max-width: 600px) {
  body:has(.screen:not([hidden])) #mast {
    background: #132b3bf5;
    border-bottom: 1px solid #55706a;
  }
}
/* Home: character stage, three navigation controls, one dominant deployment. */
.home-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #102337bd, transparent 58%),
    linear-gradient(0deg, #0e2135d9, transparent 34%);
}
.home-copy {
  position: absolute;
  left: 5vw;
  top: 15vh;
  width: 400px;
  max-width: 42vw;
}
.home-copy h1 {
  font-size: clamp(50px, 5.2vw, 82px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -4px;
  margin: 0;
  color: #fff5d9;
  -webkit-text-stroke: 1px #fff5d9;
  text-shadow:
    0 3px #243243,
    0 6px #071623,
    4px 8px #071623;
}
.home-copy h1 span {
  font-size: 0.65em;
  color: #ffc653;
  -webkit-text-stroke: 0;
  letter-spacing: 2px;
}
.home-copy h1 em {
  font-style: normal;
  color: #ffc653;
  -webkit-text-stroke: 0;
}
.main-menu {
  position: absolute;
  left: 5vw;
  bottom: 8vh;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.menu-command {
  height: 78px;
  min-height: 78px;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #0d1f30;
  box-shadow:
    0 5px #071420,
    0 7px 12px #07142066;
  overflow: visible;
  text-align: left;
  isolation: isolate;
}
.menu-command .button-face {
  position: absolute;
  inset: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 19px 0 8px;
  background: linear-gradient(#426279, #29465b);
  border: 2px solid #7f9ca6;
  border-bottom-color: #304b61;
  border-radius: 7px;
  box-shadow: inset 0 2px #a6b9bc77;
  transition: transform 80ms ease;
}
.menu-command img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 4px 2px #091c3077);
  pointer-events: none;
}
.menu-command .button-face > span:not(.play-glyph) {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff4db;
  text-shadow: 0 2px #18364c;
  white-space: nowrap;
}
.menu-command:hover .button-face {
  background: linear-gradient(#547b91, #35576d);
  border-color: #a8cad1;
}
.menu-command:active .button-face {
  transform: translateY(4px);
  box-shadow: inset 0 2px #263d50;
}
.menu-command:focus-visible {
  outline: 3px solid #f8dc90;
  outline-offset: 5px;
}
.menu-command:after {
  display: none;
}
.deploy-command {
  position: fixed;
  right: 5vw;
  bottom: 8vh;
  width: 290px;
  height: 88px;
  left: auto;
  background: #825121;
  box-shadow:
    0 5px #503920,
    0 8px 20px #07142077;
}
.deploy-command .button-face {
  inset: 0 0 6px;
  border: 2px solid #ffe5a1;
  border-bottom-color: #b3762a;
  background: linear-gradient(#ffd66e, #eda73d);
  box-shadow: inset 0 3px #fff0b7;
  justify-content: center;
  padding: 0 26px;
  gap: 20px;
}
.deploy-command .button-face > span:not(.play-glyph) {
  font-size: 30px;
  color: #28333a;
  text-shadow: 0 1px #ffeab2;
}
.deploy-command .play-glyph {
  font-size: 28px;
  color: #344553;
  line-height: 1;
}
.deploy-command:hover .button-face {
  background: linear-gradient(#ffe18b, #ffbd52);
  border-color: #fff2c3;
}
.deploy-command:active .button-face {
  transform: translateY(5px);
  box-shadow: inset 0 2px #cd8e2f;
}
.featured {
  position: absolute;
  right: 5vw;
  bottom: calc(8vh + 115px);
  width: 300px;
  text-align: right;
  color: #f7eedc;
  text-shadow: 0 2px #123047;
}
.featured h2 {
  font-size: 30px;
  margin: 0 0 10px;
  letter-spacing: -1px;
}
.trait-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  background: #29495eda;
  border: 1px solid #6f8f9b;
  color: #dcebed;
  text-shadow: none;
}
#home-traits {
  display: flex;
  justify-content: end;
  gap: 6px;
}
#home-weapons {
  margin-top: 10px;
  color: #c0d7dc;
  font-size: 11px;
}
.screen-heading {
  position: absolute;
  top: 100px;
  left: 4vw;
  right: 4vw;
  display: flex;
  align-items: center;
  gap: 20px;
}
.screen-heading .back {
  font-size: 11px;
  min-height: 34px;
  padding: 6px 10px;
  box-shadow: none;
  background: #18313ddd;
}
.screen-heading .eyebrow {
  margin: 0;
  font-size: 10px;
  color: #f4c568;
}
.screen-heading h1 {
  font-size: 30px;
  margin: 0;
  letter-spacing: -1.5px;
  text-shadow: 0 2px #223b48;
}
.screen-heading .preview-inspect {
  margin-left: auto;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 11px;
  background: #18313ddd;
  border: 1px solid #718a92;
  box-shadow: none;
  pointer-events: auto;
}
.screen-heading .preview-inspect[aria-pressed="true"] {
  color: #ffe1a2;
  border-color: #ffbf48;
}
.selection-screen:before,
.equipment-screen:before,
.shop-screen:before,
.deploy-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #132b3de8, transparent 70%),
    linear-gradient(0deg, #132b3dcc, transparent 60%);
}
.selection-screen .dino-list {
  position: absolute;
  left: 4vw;
  top: 175px;
  width: 440px;
  max-width: 40vw;
  bottom: 65px;
  overflow: auto;
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 9px;
  scrollbar-width: thin;
}
.selection-screen .dino-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 134px;
  padding: 13px 9px;
  background: #243d4bd9;
  border: 1px solid #78909a;
  box-shadow: 0 4px #102534;
  text-align: left;
  overflow: hidden;
}
.dino-card:before {
  content: "▦";
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 64px;
  line-height: 1;
  color: var(--dino-color, #87c9a8);
  opacity: 0.8;
  transform: rotate(-8deg);
  text-shadow: 5px 6px #0e253866;
}
.dino-card.selected {
  background: #dcdfcc;
  color: #193749;
  border-color: #ffcc62;
  box-shadow:
    inset 0 -4px #ffbd48,
    0 4px #102534;
}
.dino-card.selected:before {
  opacity: 0.4;
}
.dino-card strong {
  font-size: 11px;
  position: relative;
}
.dino-card small {
  font-size: 8px;
  position: relative;
  line-height: 1.7;
  white-space: normal;
}
.dino-card .lock {
  position: absolute;
  top: 9px;
  left: 9px;
  right: auto;
  color: #f5d28c;
  background: #102b3cd9;
  padding: 3px 5px;
  font: 9px system-ui;
}
.dino-detail {
  position: absolute;
  bottom: 65px;
  right: 4vw;
  width: 320px;
  max-width: 38vw;
  background: #152e3ee8;
  border-top: 3px solid #ffbf48;
  padding: 20px;
  pointer-events: auto;
}
.dino-detail h2 {
  font-size: 28px;
  margin: 10px 0;
  line-height: 1.2;
  min-height: 2.4em;
}
.dino-detail .skill-info {
  line-height: 1.5;
  min-height: 3em;
}
.dino-detail .primary {
  margin-top: 18px;
}
.dino-detail .stat strong {
  font-size: 18px;
}
.traits {
  color: #c0d5d9;
}
.skill-info {
  color: #ccdad9;
}
.equipment-panel {
  position: absolute;
  left: 4vw;
  top: 175px;
  width: 340px;
  max-height: calc(100dvh - 210px);
  overflow: auto;
  padding: 24px;
  background: #183342f0;
  border: 1px solid #718a92;
  border-top: 3px solid #ffbd48;
  pointer-events: auto;
}
.equipment-panel h2 {
  font-size: 22px;
}
.slot select {
  background: #102b3b;
  border-color: #64858c;
  color: #f6f0d9;
}
.slot small {
  color: #c1d5d3;
  line-height: 1.5;
}
.slot .weapon-mastery {
  font-size: 11px;
  color: #f1d58b;
  font-variant-numeric: tabular-nums;
}
.equipment-panel .slot {
  margin: 18px 0;
}
.text-action {
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 12px;
  color: #c1d7d8;
  text-align: center;
  display: block;
  width: 100%;
  margin-top: 12px;
}
.equipped-label {
  position: absolute;
  right: 5vw;
  bottom: 65px;
  text-align: right;
  color: #193e4c;
}
.equipped-label span {
  display: block;
  font: 10px monospace;
  letter-spacing: 3px;
}
.equipped-label strong {
  font-size: 34px;
  display: block;
  margin-top: 9px;
}
.shop-items {
  position: absolute;
  left: 4vw;
  top: 175px;
  width: 510px;
  max-width: 46vw;
  bottom: 50px;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 12px;
  pointer-events: auto;
}
.shop-item {
  padding: 17px;
  text-align: left;
  min-height: 140px;
  box-shadow: 0 4px #102534;
  border-color: #698994;
  background: #203b4be6;
  position: relative;
}
.shop-item.selected {
  border-color: #ffcb65;
  background: #304854;
}
.shop-item .weapon-symbol {
  display: block;
  font-size: 32px;
  color: var(--weapon-color, #f8c66d);
  height: 44px;
  line-height: 1;
  letter-spacing: 4px;
}
.shop-item strong {
  font-size: 15px;
  display: block;
  margin-bottom: 8px;
}
.shop-item small {
  font-size: 10px;
  color: #b9d0d4;
  display: block;
}
.shop-item .price {
  position: absolute;
  top: 15px;
  right: 12px;
  color: #ffcb66;
  font-size: 12px;
}
.shop-detail {
  position: absolute;
  right: 5vw;
  bottom: 55px;
  width: 310px;
  max-width: 35vw;
  background: #193443e8;
  border-top: 3px solid #ffbf48;
  padding: 22px;
  pointer-events: auto;
}
.shop-detail h2 {
  font-size: 26px;
  margin-top: 12px;
}
.shop-detail p {
  font-size: 11px;
  line-height: 1.8;
  color: #c1d5d5;
}
.shop-detail .primary {
  margin-top: 15px;
}
#shop-stats {
  font-size: 12px;
  line-height: 1.9;
  color: #e9e9d6;
}
.mode-list {
  position: absolute;
  left: 8vw;
  right: 8vw;
  top: 24vh;
  bottom: 10vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
  pointer-events: auto;
}
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 30px;
  background: linear-gradient(130deg, #ca8641eb, #78513dee);
  border: 1px solid #e6bc7a;
  box-shadow: 0 6px #173044;
  overflow: auto;
  min-height: 320px;
}
.mode-card.pvp-card {
  background: linear-gradient(130deg, #326b88ed, #223d5dee);
  border-color: #78b7ce;
}
.mode-index {
  font: 11px monospace;
  letter-spacing: 3px;
  color: #ffe1ac;
}
.mode-card strong {
  font-size: 40px;
  letter-spacing: -2px;
  display: block;
  margin-top: 10px;
}
.mode-art {
  font-size: 75px;
  letter-spacing: 7px;
  line-height: 1.2;
  color: #f8d799;
  text-shadow: 5px 7px #5d3c32;
  align-self: center;
  margin: auto 0;
}
.pvp-card .mode-art {
  color: #8bd2e2;
  text-shadow: 5px 7px #17304c;
}
.mode-art i {
  font: 900 20px system-ui;
  color: #f7c86a;
  vertical-align: middle;
}
.mode-bottom {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  gap: 15px;
  flex-wrap: wrap;
}
.mode-bottom b {
  font-size: 17px;
}
.mode-card #join-form {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #a4c4cd55;
}
.mode-card #join-form label {
  color: #d9e9ec;
}
.mode-card .join-row input {
  background: #17364e;
  border-color: #78a4b5;
}
.panel {
  background: #172f3fed;
  border-color: #718f98;
  border-top-color: #ffbd48;
}
.lobby,
.result {
  box-shadow: 12px 12px #10273688;
  border-radius: 0;
}
.room-player {
  border-color: #527888;
}
.room-code {
  color: #ffca65;
}
.result h2 {
  color: #ffca65;
}
.result p {
  color: #cfdee0;
}
.result .eyebrow {
  color: #ffca65;
}
.playing .brand strong {
  font-size: 14px;
}
.playing #mast {
  height: 60px;
  padding-top: 10px;
}
.playing #mast .brand {
  min-height: 30px;
}
.playing #mast .utilities button {
  font-size: 9px;
  min-height: 26px;
}
.playing .brand small {
  font-size: 8px;
}
#notice {
  background: #132f42f5;
  border: 1px solid #bd9958;
  bottom: 18px;
}
.status {
  background: #143342df;
  border-color: #f1c46b;
}
.status span {
  color: #d2dce0;
}
.target {
  background: #54363ade;
}
@media (min-width: 1400px) {
  .home-copy {
    top: 18vh;
  }
  .main-menu {
    width: 410px;
  }
  .menu-command {
    min-height: 90px;
  }
  .home-copy h1 {
    font-size: 100px;
  }
}
@media (max-width: 1000px) {
  .home-copy {
    left: 5vw;
    max-width: 43vw;
  }
  .home-copy h1 {
    font-size: 68px;
  }
  .main-menu {
    gap: 8px;
  }
  .menu-command {
    padding: 10px;
    min-height: 69px;
  }
  .menu-command > span:not(.menu-number) {
    font-size: 15px;
  }
  .featured {
    right: 4vw;
    max-width: 35vw;
  }
  .featured h2 {
    font-size: 28px;
  }
  .screen-heading {
    top: 92px;
  }
  .selection-screen .dino-list {
    width: 360px;
    max-width: 43vw;
    top: 155px;
  }
  .selection-screen .dino-card {
    min-height: 114px;
    padding: 10px 7px;
  }
  .dino-detail {
    width: 280px;
    max-width: 38vw;
    bottom: 35px;
    padding: 17px;
  }
  .shop-items {
    top: 155px;
    gap: 8px;
  }
  .shop-item {
    padding: 14px 10px;
    min-height: 125px;
  }
  .shop-item strong {
    font-size: 13px;
  }
  .shop-detail {
    bottom: 35px;
  }
  .equipment-panel {
    top: 155px;
  }
  .mode-list {
    gap: 18px;
  }
  .mode-card {
    padding: 20px;
  }
  .mode-card strong {
    font-size: 32px;
  }
  .mode-art {
    font-size: 56px;
  }
}
@media (max-width: 600px) {
  #mast {
    padding: 12px;
    height: 66px;
  }
  .brand strong {
    font-size: 13px;
  }
  .brand-mark {
    font-size: 25px;
  }
  .utilities {
    gap: 4px;
  }
  .utilities button {
    font-size: 8px;
    padding: 4px 5px;
    min-height: 28px;
  }
  #wallet {
    font-size: 11px;
    padding-left: 8px;
    margin: 0;
  }
  .home-copy {
    left: 22px;
    top: 13vh;
    max-width: 90vw;
    width: calc(100% - 44px);
  }
  .edition {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .edition span {
    font-size: 7px;
  }
  .home-copy h1 {
    font-size: 54px;
    letter-spacing: -3px;
    margin: 13px 0;
    line-height: 1;
  }
  .home-copy h1 span {
    font-size: 0.65em;
  }
  .home-copy h1 i {
    font-size: 22px;
    right: 15px;
  }
  .title-rule {
    display: none;
  }
  .main-menu {
    position: fixed;
    bottom: max(48px, env(safe-area-inset-bottom));
    left: 18px;
    right: 18px;
    width: auto;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .menu-command {
    min-height: 66px;
    padding: 10px 12px;
  }
  .menu-command > span:not(.menu-number) {
    font-size: 16px;
  }
  .menu-command small {
    font-size: 8px;
  }
  .menu-number {
    font-size: 8px;
  }
  .featured {
    right: 20px;
    bottom: 210px;
    width: auto;
    max-width: 75vw;
  }
  .featured-code {
    font-size: 8px;
    padding: 4px;
    letter-spacing: 2px;
  }
  .featured h2 {
    font-size: 23px;
    margin: 6px 0;
  }
  .trait-chip {
    font-size: 8px;
    padding: 3px 6px;
  }
  #home-weapons {
    font-size: 9px;
    margin-top: 6px;
  }
  .home-footer {
    bottom: 16px;
    left: 20px;
    right: 20px;
    padding-top: 8px;
    font-size: 7px;
    gap: 15px;
  }
  .home-footer span:last-child {
    display: none;
  }
  .home-screen:before {
    background: linear-gradient(
      180deg,
      #142b3cdb,
      transparent 48%,
      #142b3cdb 90%
    );
  }
  .screen-heading {
    top: 77px;
    left: 16px;
    right: 16px;
    gap: 12px;
  }
  .screen-heading .eyebrow {
    display: none;
  }
  .screen-heading h1 {
    font-size: 24px;
  }
  .screen-heading .back {
    font-size: 10px;
  }
  .selection-screen {
    overflow: auto;
    pointer-events: auto;
  }
  .selection-screen .dino-list {
    left: 14px;
    right: 14px;
    top: 130px;
    max-width: none;
    width: auto;
    bottom: auto;
    overflow: visible;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .selection-screen .dino-card {
    min-height: 89px;
    padding: 8px;
  }
  .dino-card:before {
    font-size: 49px;
    right: 5px;
  }
  .dino-card strong {
    font-size: 10px;
  }
  .dino-card small {
    font-size: 7px;
  }
  .dino-card .lock {
    font-size: 7px;
    padding: 2px 4px;
    top: 5px;
    left: 5px;
  }
  .dino-detail {
    position: relative;
    right: auto;
    left: 14px;
    width: calc(100% - 28px);
    max-width: none;
    bottom: auto;
    margin-top: 660px;
    margin-bottom: 25px;
    padding: 17px;
  }
  .dino-detail h2 {
    font-size: 24px;
  }
  .dino-detail .eyebrow {
    font-size: 9px;
  }
  .equipment-screen {
    overflow: auto;
    pointer-events: auto;
  }
  .equipment-panel {
    position: relative;
    left: 14px;
    top: auto;
    margin-top: 420px;
    margin-bottom: 20px;
    max-height: none;
    width: calc(100% - 28px);
    padding: 18px;
  }
  .equipped-label {
    top: 140px;
    bottom: auto;
    right: 20px;
  }
  .equipped-label span {
    font-size: 8px;
  }
  .equipped-label strong {
    font-size: 23px;
  }
  .shop-screen {
    overflow: auto;
    pointer-events: auto;
  }
  .shop-items {
    left: 14px;
    right: 14px;
    top: 130px;
    width: auto;
    max-width: none;
    bottom: auto;
    overflow: visible;
    gap: 8px;
  }
  .shop-item {
    min-height: 112px;
    padding: 12px;
  }
  .shop-item .weapon-symbol {
    font-size: 25px;
    height: 37px;
  }
  .shop-item strong {
    font-size: 12px;
  }
  .shop-item .price {
    font-size: 10px;
    right: 10px;
    top: 12px;
  }
  .shop-item small {
    font-size: 8px;
  }
  .shop-detail {
    position: relative;
    bottom: auto;
    right: auto;
    left: 14px;
    max-width: none;
    width: calc(100% - 28px);
    margin-top: 720px;
    margin-bottom: 20px;
    padding: 18px;
  }
  .deploy-screen {
    overflow: auto;
    pointer-events: auto;
  }
  .mode-list {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 130px 14px 25px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mode-card {
    min-height: 220px;
    padding: 20px;
    overflow: visible;
  }
  .mode-card strong {
    font-size: 32px;
  }
  .mode-art {
    font-size: 52px;
    margin: 12px 0;
  }
  .mode-bottom {
    font-size: 11px;
    margin-top: 8px;
  }
  .mode-card .primary {
    min-height: 40px;
    font-size: 12px;
  }
  .mode-card #join-form {
    margin-top: 12px;
  }
  .playing #mast {
    padding: 8px 10px;
  }
  .playing .brand strong {
    font-size: 11px;
  }
  .playing .brand-mark {
    display: none;
  }
  .playing #wallet {
    font-size: 9px;
  }
  .playing .utilities button {
    font-size: 7px;
    padding: 3px;
  }
  .playing .brand small {
    font-size: 7px;
  }
}
@media (max-height: 620px) and (min-width: 601px) {
  #mast {
    height: 58px;
    padding: 10px 20px;
  }
  .home-copy {
    top: 17vh;
  }
  .home-copy h1 {
    font-size: 54px;
    margin: 12px 0;
  }
  .title-rule {
    margin: 15px 0;
  }
  .menu-command {
    min-height: 58px;
    padding: 9px;
  }
  .menu-command > span:not(.menu-number) {
    font-size: 14px;
  }
  .menu-command small {
    font-size: 7px;
  }
  .home-footer {
    bottom: 12px;
    font-size: 7px;
    padding-top: 9px;
  }
  .featured {
    bottom: 65px;
  }
  .featured h2 {
    font-size: 26px;
  }
  .screen-heading {
    top: 65px;
  }
  .screen-heading h1 {
    font-size: 23px;
  }
  .selection-screen .dino-list {
    top: 115px;
    bottom: 20px;
    gap: 6px;
  }
  .selection-screen .dino-card {
    min-height: 98px;
  }
  .dino-detail {
    bottom: 20px;
    padding: 13px;
  }
  .dino-detail h2 {
    font-size: 23px;
  }
  .dino-detail .primary {
    margin-top: 10px;
  }
  .equipment-panel {
    top: 115px;
    max-height: calc(100dvh - 135px);
    padding: 15px;
  }
  .shop-items {
    top: 115px;
    bottom: 20px;
  }
  .shop-item {
    min-height: 106px;
    padding: 10px;
  }
  .shop-item .weapon-symbol {
    font-size: 24px;
    height: 32px;
  }
  .shop-detail {
    bottom: 20px;
    padding: 15px;
  }
  .mode-list {
    top: 115px;
    bottom: 20px;
  }
  .mode-card {
    min-height: 0;
    padding: 16px;
  }
  .mode-card strong {
    font-size: 28px;
  }
  .mode-art {
    font-size: 42px;
  }
  .mode-index {
    font-size: 9px;
  }
  .mode-card #join-form {
    margin-top: 9px;
    padding-top: 8px;
  }
}

/* Native artwork replaces all placeholder glyphs in choices and shop. */
.dino-card:before {
  display: none;
}
.dino-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 95px;
  object-fit: contain;
  pointer-events: none;
}
.dino-card > span:not(.lock) {
  position: relative;
  z-index: 1;
}
.selection-screen .dino-card {
  min-height: 150px;
  justify-content: end;
  background: linear-gradient(#244559ee, #172f42f5);
  border-color: #688796;
}
.selection-screen .dino-card.selected {
  background: linear-gradient(#5c7e88, #d6ddce);
  color: #173b4b;
  border-color: #ffd276;
}
.dino-card .lock {
  z-index: 2;
}
.shop-item img {
  display: block;
  width: 100%;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 5px 3px #061b2b99);
  pointer-events: none;
}
.shop-item {
  min-height: 175px;
}
.shop-item .price {
  z-index: 2;
  background: #142b3ce0;
  padding: 3px 6px;
  border-radius: 3px;
}
.shop-item strong {
  font-size: 15px;
}
.shop-item small {
  font-size: 10px;
}
body[data-screen="home"] .brand strong {
  display: none;
}
body[data-screen="home"] .brand small {
  font-size: 12px;
}
body[data-screen="home"] .brand-mark {
  font-size: 35px;
}
#world {
  cursor: grab;
}
body.playing #world {
  cursor: crosshair;
}
#world:active {
  cursor: grabbing;
}
@media (min-width: 1400px) {
  .home-copy {
    top: 16vh;
  }
  .home-copy h1 {
    font-size: 86px;
  }
  .main-menu {
    width: 280px;
  }
  .menu-command {
    height: 82px;
  }
  .deploy-command {
    width: 320px;
    height: 92px;
  }
}
@media (max-width: 1000px) and (min-width: 601px) {
  .home-copy {
    top: 16vh;
    left: 4vw;
  }
  .home-copy h1 {
    font-size: 56px;
  }
  .main-menu {
    left: 4vw;
    width: 210px;
    gap: 11px;
    bottom: 7vh;
  }
  .menu-command {
    height: 68px;
    min-height: 68px;
  }
  .menu-command img {
    width: 61px;
    height: 61px;
  }
  .menu-command .button-face {
    padding-right: 10px;
    gap: 7px;
  }
  .menu-command .button-face > span:not(.play-glyph) {
    font-size: 20px;
  }
  .deploy-command {
    width: 250px;
    height: 80px;
    bottom: 7vh;
    right: 4vw;
  }
  .deploy-command .button-face > span:not(.play-glyph) {
    font-size: 26px;
  }
  .featured {
    right: 4vw;
    bottom: calc(7vh + 100px);
  }
}
@media (max-width: 600px) {
  .home-copy {
    left: 20px;
    top: 95px;
    max-width: 80vw;
    width: auto;
  }
  .home-copy h1 {
    font-size: 45px;
    letter-spacing: -2px;
    margin: 0;
  }
  .home-copy h1 span {
    font-size: 0.62em;
  }
  .main-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 108px;
    width: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .menu-command {
    height: 86px;
    min-height: 86px;
  }
  .menu-command .button-face {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 3px;
    border-radius: 6px;
  }
  .menu-command img {
    height: 48px;
    width: 65px;
  }
  .menu-command .button-face > span:not(.play-glyph) {
    font-size: 15px;
    letter-spacing: -0.5px;
  }
  .deploy-command {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(24px, env(safe-area-inset-bottom));
    width: auto;
    height: 70px;
    min-height: 70px;
  }
  .deploy-command .button-face {
    flex-direction: row;
    gap: 18px;
    justify-content: center;
  }
  .deploy-command .button-face > span:not(.play-glyph) {
    font-size: 25px;
  }
  .deploy-command .play-glyph {
    font-size: 24px;
  }
  .featured {
    right: 20px;
    bottom: 220px;
    max-width: 80vw;
    width: auto;
  }
  .featured h2 {
    font-size: 23px;
    margin-bottom: 7px;
  }
  .trait-chip {
    font-size: 9px;
  }
  .home-screen:before {
    background: linear-gradient(
      180deg,
      #102337a8,
      transparent 45%,
      #102337b8 80%
    );
  }
  .selection-screen .dino-card {
    min-height: 106px;
    padding: 7px;
  }
  .dino-card img {
    height: 70px;
  }
  .dino-card strong {
    font-size: 10px;
  }
  .dino-card small {
    font-size: 7px;
  }
  .dino-detail {
    margin-top: 720px;
  }
  .shop-item {
    min-height: 148px;
  }
  .shop-item img {
    height: 81px;
  }
  .shop-item strong {
    font-size: 13px;
  }
  .shop-detail {
    margin-top: 840px;
  }
  .selection-screen,
  .equipment-screen,
  .shop-screen {
    pointer-events: none;
  }
  .selection-screen .dino-list,
  .dino-detail,
  .equipment-panel,
  .shop-items,
  .shop-detail {
    pointer-events: auto;
  }
}
@media (max-height: 620px) and (min-width: 601px) {
  .home-copy {
    top: 16vh;
  }
  .home-copy h1 {
    font-size: 46px;
  }
  .main-menu {
    bottom: 7vh;
    gap: 8px;
    width: 220px;
  }
  .menu-command {
    height: 58px;
    min-height: 58px;
  }
  .menu-command img {
    width: 55px;
    height: 55px;
  }
  .menu-command .button-face > span:not(.play-glyph) {
    font-size: 19px;
  }
  .deploy-command {
    height: 72px;
    min-height: 72px;
    width: 240px;
    bottom: 7vh;
  }
  .deploy-command .button-face > span:not(.play-glyph) {
    font-size: 24px;
  }
  .featured {
    bottom: calc(7vh + 95px);
  }
  .featured h2 {
    font-size: 25px;
  }
  .selection-screen .dino-card {
    min-height: 124px;
  }
  .dino-card img {
    height: 85px;
  }
  .shop-item {
    min-height: 140px;
  }
  .shop-item img {
    height: 75px;
  }
}

/* The selected character stays unobstructed; details occupy a lower dock. */
@media (min-width: 1001px) {
  .dino-detail {
    width: calc(96vw - 510px);
    max-width: none;
    bottom: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 7px 20px;
    padding: 16px 20px;
  }
  .dino-detail .eyebrow {
    display: none;
  }
  .dino-detail h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 25px;
    margin: 0;
  }
  .dino-detail .traits {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 11px;
  }
  .dino-detail .skill-info {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    font-size: 10px;
    align-self: center;
  }
  .dino-detail .stats {
    grid-column: 2;
    grid-row: 1/3;
  }
  .dino-detail .primary {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    min-height: 42px;
  }
}
.screen-heading > .eyebrow,
.shop-detail > .eyebrow {
  display: none;
}
.mode-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 110px;
}
.mode-art img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 7px 3px #09203488);
}
.mode-art i {
  font-size: 17px;
}
.mode-card .mode-art {
  letter-spacing: 0;
  text-shadow: none;
}
.pvp-card .mode-art img {
  width: 110px;
  height: 130px;
}
@media (max-width: 600px) {
  .mode-art img {
    width: 140px;
    height: 120px;
  }
  .pvp-card .mode-art img {
    height: 105px;
  }
  .mode-art {
    min-height: 100px;
  }
}
@media (max-height: 620px) and (min-width: 601px) {
  .mode-art {
    min-height: 65px;
  }
  .mode-art img {
    height: 80px;
    width: 110px;
  }
  .pvp-card .mode-art img {
    height: 70px;
    width: 80px;
  }
}

button {
  touch-action: manipulation;
}
#actions button,
#stick,
#world {
  touch-action: none;
}
.preview-space {
  display: none;
}
@media (max-width: 600px) {
  .preview-space {
    display: block;
    position: relative;
    pointer-events: none;
    height: 340px;
  }
  #dinos-preview-space {
    margin-top: 470px;
  }
  .dino-detail {
    margin-top: 12px;
  }
  #garage-preview-space {
    margin-top: 130px;
    height: 300px;
  }
  .equipment-panel {
    margin-top: 12px;
  }
  #shop-preview-space {
    margin-top: 610px;
    height: 300px;
  }
  .shop-detail {
    margin-top: 12px;
  }
}

/* Field RPG controls and readable crafting progression. */
.field-card select,
.mode-bottom select {
  font: inherit;
  color: #f5efdb;
  background: #193443;
  padding: 12px;
  border: 1px solid #719499;
  width: 100%;
}
.field-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field-card #pve {
  position: relative;
  min-height: 180px;
  font-size: 24px;
}
.field-card .mode-art {
  opacity: 0.6;
}
.shop-detail {
  max-height: 66vh;
  overflow-y: auto;
  pointer-events: auto;
}
.trait-row,
.quest-row {
  padding: 12px 0;
  border-top: 1px solid #577180;
}
.trait-row p,
.quest-row p {
  font-size: 13px;
  line-height: 1.5;
}
.trait-row button,
.quest-row button,
#team-controls button {
  padding: 10px;
  background: #294b60;
  color: #fff1c8;
  border: 1px solid #8b9b99;
  margin: 3px;
}
#project {
  padding: 12px;
  margin: 10px 0;
}
.mana {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.mana progress {
  accent-color: #70adff;
}
#field-progress {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}
#field-map {
  position: absolute;
  right: 24px;
  bottom: 130px;
  width: 150px;
  height: 150px;
  background: #0c252be8;
  border: 2px solid #8aada0;
  pointer-events: none;
}
#field-map i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #eab26e;
  transform: translate(-50%, -50%);
}
#field-map .self {
  background: #fff;
  width: 9px;
  height: 9px;
  clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%);
}
#field-map .ally {
  background: #67cfff;
}
#field-map .boss {
  background: #ff5151;
  width: 10px;
  height: 10px;
}
#field-map b {
  position: absolute;
  font-size: 10px;
  color: #a5f3c1;
}
#hud .exit {
  bottom: 292px;
}
@media (max-width: 600px) {
  #hud .exit {
    bottom: 312px;
  }
}
@media (max-height: 500px) and (min-width: 601px) {
  #hud .exit {
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
.unavailable {
  opacity: 0.55;
}
@media (max-width: 600px) {
  .shop-detail {
    max-height: none;
  }
  .field-card {
    padding: 16px;
  }
  .field-card #pve {
    min-height: 140px;
  }
  #field-map {
    width: 105px;
    height: 105px;
    right: 14px;
    bottom: 190px;
  }
  #field-progress {
    max-width: 210px;
  }
}

.mana progress::-webkit-progress-value {
  background: #71a9f1;
}
#core-hp::-webkit-progress-value {
  background: #efd17c;
}
@media (max-height: 500px) and (min-width: 601px) {
  #hud .status {
    top: 60px;
    width: 250px;
    padding: 10px;
    font-size: 11px;
  }
  #hud .status progress {
    height: 5px;
    margin: 3px 0;
  }
  #field-progress {
    display: none;
  }
  #targets {
    top: 65px;
    font-size: 10px;
  }
  #field-map {
    width: 90px;
    height: 90px;
    bottom: 95px;
    right: 14px;
  }
}

@media (max-height: 500px) and (min-width: 601px) {
  #field-map {
    right: 180px;
  }
  #battle-clock {
    top: 60px;
    right: 180px;
    padding: 8px;
    font-size: 13px;
  }
}

#boss-panel {
  position: absolute;
  top: 90px;
  left: 35%;
  width: 30%;
  padding: 12px 16px;
  background: #38262be8;
  border-bottom: 3px solid #ee9767;
  color: #fff0d6;
  pointer-events: none;
}
@media (max-height: 620px) and (min-width: 601px) {
  .selection-screen .dino-list {
    width: clamp(176px, 24vw, 260px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    top: 110px;
    bottom: 20px;
    overflow-y: auto;
  }
  .dino-detail {
    width: clamp(200px, 27vw, 270px);
    display: block;
    top: 110px;
    bottom: 20px;
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
  }
  #dinos-preview-space {
    display: block;
    position: absolute;
    left: calc(clamp(176px, 24vw, 260px) + 44px);
    right: calc(clamp(200px, 27vw, 270px) + 44px);
    top: 100px;
    bottom: 24px;
    width: auto;
    height: auto;
    pointer-events: none;
  }
}
#boss-panel progress {
  width: 100%;
  height: 9px;
  margin: 8px 0;
}
#boss-panel progress::-webkit-progress-value {
  background: #ea7959;
}
#boss-panel small {
  display: block;
  font-size: 12px;
}
#crosshair.confirmed-hit {
  color: #ffe29c;
  text-shadow: 0 0 7px #462b12;
  transform: translate(-50%, -50%) rotate(45deg);
}
@media (max-width: 600px) {
  #boss-panel {
    top: 320px;
    left: 14px;
    right: 14px;
    width: auto;
    padding: 8px 12px;
  }
}
@media (min-width: 601px) and (max-width: 1100px) and (min-height: 501px) {
  #boss-panel {
    top: 335px;
    left: 20px;
    width: 290px;
  }
}
@media (max-height: 500px) and (min-width: 601px) {
  #boss-panel {
    top: 60px;
    left: 290px;
    width: 250px;
    padding: 7px 10px;
    font-size: 12px;
  }
  #boss-panel small {
    font-size: 10px;
  }
}

/* Selection lives in menus; no additional battle controls. */
.dino-choice-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.dino-choice-actions .primary {
  flex: 1;
}
.dino-choice-actions .secondary {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 14px;
}
.trait-dialog {
  color: #f6eedb;
  background: #142c3c;
  border: 1px solid #78929c;
  border-top: 4px solid #f0bd56;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  padding: 24px;
  box-shadow: 0 24px 80px #000a;
  overflow-y: auto;
}
.departure-dialog {
  width: min(420px, calc(100vw - 32px));
}
.departure-dialog form {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.departure-dialog form button {
  min-height: 48px;
  min-width: 112px;
}
.trait-dialog::backdrop {
  background: #06121cc9;
}
.trait-dialog header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.trait-dialog h2 {
  font-size: 22px;
  margin: 0;
}
.trait-dialog header button {
  min-height: 44px;
  padding: 8px 16px;
}
#dino-trait-options {
  display: grid;
  gap: 12px;
}
.dino-trait-choice {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: #244454;
  border: 1px solid #61818b;
  box-shadow: 0 4px #0c1c27;
  min-height: 116px;
}
.trait-choice-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  background: #142c3c;
  border: 1px solid #7a9398;
  color: #f4ca73;
  font-weight: 800;
}
.dino-trait-choice strong,
.dino-trait-choice span span,
.dino-trait-choice small {
  display: block;
}
.dino-trait-choice strong {
  font-size: 18px;
  margin-bottom: 8px;
}
.dino-trait-choice span span {
  font-size: 14px;
  line-height: 1.5;
  color: #d1e1df;
}
.dino-trait-choice small {
  margin-top: 12px;
  color: #f5c66d;
  font-size: 12px;
}
.dino-trait-choice[aria-pressed="true"] {
  border: 2px solid #f6c565;
  background: #36535b;
  opacity: 1;
}
.dino-trait-choice:disabled:not([aria-pressed="true"]) {
  opacity: 0.55;
}
.trait-row button[aria-pressed="true"] {
  border-color: #f6c565;
  color: #f6d083;
  opacity: 1;
}
@media (max-width: 600px) {
  .trait-dialog {
    padding: 16px;
  }
  .trait-dialog h2 {
    font-size: 18px;
  }
  .dino-choice-actions {
    flex-wrap: wrap;
  }
  .dino-choice-actions .secondary {
    flex: 1;
  }
  .dino-trait-choice {
    gap: 12px;
    padding: 14px;
  }
}

.dino-detail .dino-choice-actions {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
}
.dino-choice-actions .primary,
.dino-choice-actions .secondary {
  width: auto;
  min-width: 0;
  font-size: 13px;
  padding: 8px 10px;
  margin: 0;
}
.unit-progress {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #617b87;
  background: #102536;
}
.unit-progress-label {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11px;
  color: #c7d9df;
}
.unit-progress-label strong {
  color: #ffe0a0;
}
.unit-progress progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 7px;
  border: 0;
  appearance: none;
  background: #081723;
  accent-color: #e9b64e;
}
.unit-progress progress::-webkit-progress-bar {
  background: #081723;
}
.unit-progress progress::-webkit-progress-value {
  background: #e9b64e;
}
.unit-progress progress::-moz-progress-bar {
  background: #e9b64e;
}
@media (min-width: 1001px) {
  .dino-detail #dino-progress {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0;
  }
  .dino-detail h2 {
    min-height: 0;
  }
}
