/* [project]/apps/web/src/app/styles.css [app-client] (css) */
:root {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  color: #eff7f0;
  background: #07100f;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button {
  font: inherit;
}

.game-shell {
  background: radial-gradient(circle at 50% -10%, #19342d 0, #0a1415 32%, #05090a 78%);
  min-height: 100svh;
  padding: 24px;
}

.topbar, .hall-card, .hint, .first-session-guidance {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.topbar {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  display: flex;
}

.eyebrow, .section-label {
  color: #6fe1b6;
  letter-spacing: .13em;
  margin: 0;
  font: 700 11px / 1.4 ui-monospace, monospace;
}

h1, h2 {
  letter-spacing: -.04em;
  margin: 4px 0 0;
  line-height: 1;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
}

h2 {
  font-size: 28px;
}

.connection {
  color: #c6d7d0;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: flex;
}

.connection span {
  background: #e5ba61;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  box-shadow: 0 0 14px #e5ba61;
}

.connection.online span {
  background: #62e6b8;
  box-shadow: 0 0 14px #62e6b8;
}

.connection.offline span {
  background: #e66d6d;
  box-shadow: 0 0 14px #e66d6d;
}

.hall-card {
  background: #0b1717;
  border: 1px solid #314c56;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 80px #0008;
}

.hall-card__power-overlay {
  z-index: 20;
  pointer-events: auto;
  position: absolute;
  top: 23px;
  right: 22px;
}

.hall-card__edit-overlay {
  z-index: 20;
  pointer-events: auto;
  justify-content: center;
  width: 64px;
  height: 30px;
  min-height: 30px;
  padding: 3px;
  position: absolute;
  top: 23px;
  left: 22px;
}

.hall-power-battery {
  color: #e8f4fa;
  cursor: pointer;
  background: #123247;
  border: 1px solid #4f91ad;
  border-radius: 8px;
  place-items: center;
  width: 64px;
  height: 30px;
  padding: 3px;
  display: grid;
  position: relative;
}

.hall-power-battery:after {
  content: "";
  background: #123247;
  border: 1px solid #4f91ad;
  border-left: 0;
  border-radius: 0 2px 2px 0;
  width: 4px;
  height: 12px;
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
}

.hall-power-battery__time {
  color: #e8f4fa;
  white-space: nowrap;
  font: 800 .62rem / 1 ui-monospace, monospace;
}

.hall-power-battery .power-segments--compact {
  z-index: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: auto;
  padding: 0;
  display: grid;
  position: absolute;
  inset: 3px;
}

.hall-power-battery .power-segments--compact .power-segment {
  border-radius: 1px;
  width: auto;
  height: auto;
  min-height: 0;
}

.hall-power-battery__time {
  z-index: 1;
  position: relative;
}

.hall-header, .hall-footer {
  background: linear-gradient(90deg, #112022, #0e1919);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 22px;
  display: flex;
}

.hall-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.hall-workshop-mobile-entry {
  display: none;
}

.power-segments {
  grid-template-columns: repeat(4, minmax(24px, 1fr));
  gap: 6px;
  padding: 12px 0;
  display: grid;
}

.power-segments--compact {
  gap: 3px;
  padding: 0;
  display: flex;
}

.power-segment {
  background: #17211f;
  border: 1px solid #405953;
  border-radius: 3px;
  min-height: 13px;
}

.power-segments--compact .power-segment {
  width: 7px;
  min-height: 14px;
}

.power-segment--full {
  background: #5bd9c5;
  border-color: #4bc9b7;
  box-shadow: 0 0 9px #4cd9c266;
}

.power-segment--partial {
  background: linear-gradient(90deg, #56cfc1 50%, #17211f 50%);
  border-color: #5dafa8;
}

.power-segment--empty {
  background: #17211f;
}

.hall-header strong {
  margin-top: 3px;
  font-size: 16px;
  display: block;
}

.quiet-button, .battery-button, .slot-row button {
  color: #c6f3e4;
  cursor: pointer;
  background: #122d34;
  border: 1px solid #3d6474;
  border-radius: 9px;
  padding: 9px 12px;
}

.hall-scene {
  isolation: isolate;
  background: linear-gradient(90deg, #17201d, #202a24 48%, #16201e);
  min-height: 630px;
  position: relative;
  overflow: hidden;
}

.hall-scene:before {
  content: "";
  z-index: -1;
  opacity: .45;
  background: repeating-linear-gradient(90deg, #0000 0 66px, #d8d1ae0c 67px 69px), linear-gradient(#0000 0 42%, #090d0ba8 43% 45%, #0000 46%), repeating-linear-gradient(0deg, #0000 0 48px, #eef4d607 49px 50px);
  position: absolute;
  inset: 0;
}

.ceiling {
  background: linear-gradient(#080e0e, #29322c 60%, #141d1a);
  border-bottom: 3px solid #475247;
  height: 128px;
  position: absolute;
  inset: 0 0 auto;
}

.ceiling:before, .ceiling:after {
  content: "";
  background: repeating-linear-gradient(90deg, #202721 0 12px, #566057 13px 15px);
  border-radius: 20px;
  width: 48%;
  height: 30px;
  position: absolute;
  top: 26px;
  box-shadow: 0 48px #1d2824;
}

.ceiling:before {
  left: -3%;
}

.ceiling:after {
  right: -3%;
}

.gantry {
  color: #cdbf82;
  z-index: 2;
  background: #725d27;
  border-block: 3px solid #b39943;
  place-items: center;
  height: 22px;
  font: 700 10px ui-monospace, monospace;
  display: grid;
  position: absolute;
  top: 130px;
  left: 8%;
  right: 8%;
}

.rear-terminal {
  text-align: center;
  color: #81ecd0;
  background: #071615;
  border: 1px solid #46786a;
  padding: 12px 16px;
  font: 700 11px / 1.3 ui-monospace, monospace;
  position: absolute;
  top: 188px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 22px #4de1b42b;
}

.rear-terminal small {
  color: #a1bbb0;
  font-weight: 400;
}

.service-aisle {
  background: linear-gradient(90deg, #0003, #d1b85b16, #0003);
  border-inline: 2px solid #a68e46;
  position: absolute;
  inset: 220px 37% 0;
}

.service-aisle span {
  white-space: nowrap;
  color: #c1a85f;
  letter-spacing: .17em;
  font: 700 10px ui-monospace, monospace;
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
}

.rack-field {
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  grid-auto-rows: 145px;
  gap: 20px;
  width: 31%;
  display: grid;
  position: absolute;
  top: 245px;
  bottom: 56px;
}

.left-field {
  left: 5%;
}

.right-field {
  right: 5%;
}

.rack {
  cursor: pointer;
  color: #d8e4dc;
  text-align: center;
  background: none;
  border: 0;
  min-width: 0;
  padding: 0;
  position: relative;
}

.rack-frame {
  border: 4px solid #53605a;
  background: #101615;
  border-top-color: #839189;
  gap: 3px;
  height: 112px;
  padding: 7px;
  display: grid;
  box-shadow: 5px 7px #0006;
}

.rack:hover .rack-frame {
  border-color: #7de1ba;
  box-shadow: 0 0 0 2px #59ba9540, 5px 7px #0006;
}

.rack.empty .rack-frame {
  border-style: dashed;
}

.rack i {
  background: repeating-linear-gradient(90deg, #17231f 0 10px, #26342d 11px 12px);
  border: 1px solid #3b4b45;
  min-height: 17px;
  display: block;
}

.rack i.miner {
  background: linear-gradient(90deg, #142d29, #2b7262, #123b35);
  border-color: #5dd7ae;
  box-shadow: inset 0 0 0 2px #0a1817, 0 0 12px #48e1b387;
}

.rack-number {
  z-index: 1;
  color: #d6c47e;
  background: #141b18;
  padding: 2px 5px;
  font: 700 10px ui-monospace, monospace;
  position: absolute;
  top: -9px;
  left: 3px;
}

.rack-caption {
  color: #c4d0ca;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 7px;
  font-size: 11px;
  display: block;
  overflow: hidden;
}

.worker {
  z-index: 3;
  background: linear-gradient(#d1b28b 0 17px, #263e40 18px 64px, #161e22 65px);
  border-radius: 20px 20px 9px 9px;
  width: 42px;
  height: 90px;
  position: absolute;
  bottom: 32px;
  box-shadow: 0 6px #050807;
}

.worker span {
  color: #c3d3ca;
  white-space: nowrap;
  font-size: 10px;
  position: absolute;
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
}

.worker-electrician {
  left: 32%;
}

.worker-tech {
  background: linear-gradient(#9b7258 0 17px, #413a53 18px 64px, #1d2028 65px);
  right: 29%;
}

.cable-cart {
  z-index: 3;
  color: #d0b24c;
  font-size: 30px;
  position: absolute;
  bottom: 21px;
  left: 43%;
}

.cable-cart small {
  color: #9caf9f;
  white-space: nowrap;
  font-size: 9px;
  display: block;
}

.lift-door {
  color: #cfb97a;
  background: linear-gradient(90deg, #151c1a, #404640, #161b19);
  border: 5px solid #606a61;
  place-items: end center;
  width: 86px;
  height: 220px;
  padding-bottom: 12px;
  font: 700 10px ui-monospace, monospace;
  display: grid;
  position: absolute;
  top: 174px;
  right: 1.8%;
  box-shadow: inset 0 0 0 3px #121817;
}

.shelter-mark {
  color: #c8b36b;
  text-shadow: 0 0 12px #d4b75b88;
  font-size: 48px;
  position: absolute;
  top: 36px;
}

.hall-footer {
  border-top: 1px solid #314047;
}

.hall-footer div {
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  display: grid;
}

.hall-footer .label, .hall-footer small {
  color: #9db0a7;
  font-size: 12px;
}

.hall-footer small {
  grid-column: 1 / -1;
  margin-top: 3px;
}

.hall-footer strong {
  color: #dce9e1;
}

.battery-button {
  color: #f5dfa1;
  background: #173d4b;
  border-color: #3d88a2;
}

.hint {
  color: #99aaa2;
  text-align: center;
  margin-top: 13px;
  font-size: 13px;
}

.first-session-guidance {
  color: #dceee6;
  background: linear-gradient(145deg, #112227, #091215);
  border: 1px solid #3a6270;
  border-radius: 14px;
  gap: 13px;
  margin-top: 14px;
  padding: 16px;
  display: grid;
  box-shadow: 0 12px 34px #0006;
}

.first-session-guidance__header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.first-session-guidance h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.first-session-guidance ul {
  color: #b8cac2;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  font-size: 13px;
  line-height: 1.48;
  display: grid;
}

.first-session-guidance li strong, .first-session-guidance__power strong {
  color: #83e4c7;
}

.first-session-guidance__power {
  color: #b8cac2;
  background: #0a1619;
  border-left: 3px solid #5da9d0;
  gap: 7px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.5;
  display: grid;
}

.first-session-guidance__power p {
  margin: 0;
}

.first-session-guidance__actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.first-session-guidance__actions button {
  color: #d3f5ee;
  cursor: pointer;
  background: #12333b;
  border: 1px solid #3d6474;
  border-radius: 9px;
  min-height: 40px;
  padding: 0 12px;
  font-weight: 700;
}

.first-session-guidance__dismiss {
  color: #dceee6;
  cursor: pointer;
  background: none;
  border: 1px solid #425f68;
  border-radius: 50%;
  flex: none;
  width: 34px;
  height: 34px;
  font-size: 23px;
  line-height: 1;
}

.first-session-guidance__actions button:focus-visible, .first-session-guidance__dismiss:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #7dbae1;
}

.wallet-sheet__context {
  color: #a8bbb2;
  margin: 14px 0 2px;
  font-size: 13px;
  line-height: 1.5;
}

.wallet-screen__header {
  border-bottom: 1px solid #315b76;
  padding-bottom: 14px;
  align-items: center !important;
}

.wallet-screen__subtitle {
  color: var(--cs-steel-muted);
  margin: 7px 0 0;
  font-size: 13px;
}

.wallet-screen__status {
  color: var(--cs-cyan);
  letter-spacing: .08em;
  font: 700 10px ui-monospace, monospace;
}

.wallet-home {
  border: 1px solid var(--cs-blue-border);
  background: linear-gradient(145deg, #102638, #091724);
  border-radius: 18px;
  gap: 14px;
  padding: 14px;
  display: grid;
  box-shadow: inset 0 1px #dceeff0d, 0 12px 28px #0006;
}

.wallet-home .slot-list {
  border: 0;
  gap: 14px;
  margin: 0;
  display: grid;
}

.wallet-balance-hero {
  text-align: center;
  background: radial-gradient(circle at 50% 0, #1a4a66, #0b1b2a 72%);
  border: 1px solid #3d7895;
  border-radius: 14px;
  gap: 6px;
  padding: 20px 16px;
  display: grid;
}

.wallet-balance-hero span, .wallet-balance-grid span, .wallet-balance-grid small, .wallet-section-heading > span {
  color: var(--cs-steel-muted);
  letter-spacing: .1em;
  font-size: 11px;
}

.wallet-balance-hero strong {
  color: var(--cs-cyan);
  font-size: clamp(32px, 10vw, 48px);
  line-height: 1;
}

.wallet-balance-hero strong small {
  color: var(--cs-steel-muted);
  margin-left: 6px;
  font-size: 13px;
}

.wallet-balance-hero p {
  color: var(--cs-steel-muted);
  margin: 0;
  font-size: 12px;
}

.wallet-balance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.wallet-balance-grid div {
  background: #0b1b29;
  border: 1px solid #315b76;
  border-radius: 11px;
  gap: 6px;
  padding: 13px 11px;
  display: grid;
}

.wallet-balance-grid strong {
  color: var(--cs-steel);
  font-size: 16px;
}

.wallet-assets, .wallet-withdraw-card {
  gap: 10px;
  padding-top: 4px;
  display: grid;
}

.wallet-section-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.wallet-section-heading h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.wallet-asset-list {
  gap: 8px;
  display: grid;
}

.wallet-asset {
  min-height: 68px;
  color: var(--cs-steel);
  text-align: left;
  cursor: pointer;
  background: #0b1b29;
  border: 1px solid #315b76;
  border-radius: 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  display: grid;
}

.wallet-asset.is-selected {
  border-color: var(--cs-cyan);
  box-shadow: 0 0 0 1px #78d0e633, inset 0 0 18px #78d0e611;
}

.wallet-asset i {
  color: #06121b;
  background: #79d4e7;
  border-radius: 50%;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 21px;
  font-style: normal;
  font-weight: 900;
  display: grid;
}

.wallet-asset--blue i {
  color: #eff9ff;
  background: #4094d0;
}

.wallet-asset--gold i {
  background: #d5b15d;
}

.wallet-asset span {
  gap: 3px;
  display: grid;
}

.wallet-asset strong {
  font-size: 16px;
}

.wallet-asset small {
  color: var(--cs-steel-muted);
}

.wallet-asset b {
  color: var(--cs-cyan);
  font-size: 26px;
  font-weight: 400;
}

.wallet-dev-badge {
  color: var(--cs-steel-muted);
  letter-spacing: .08em;
  border: 1px solid #52758b;
  border-radius: 5px;
  padding: 3px 6px;
  font: 700 9px ui-monospace, monospace;
}

.wallet-withdraw-card label, .wallet-quote label {
  color: var(--cs-steel-muted);
  gap: 5px;
  font-size: 12px;
  display: grid;
}

.wallet-withdraw-card input, .wallet-quote input {
  width: 100%;
  min-height: 44px;
  color: var(--cs-steel);
  font: inherit;
  background: #071522;
  border: 1px solid #315b76;
  border-radius: 9px;
  padding: 0 11px;
}

.wallet-primary-action {
  border: 1px solid var(--cs-cyan);
  color: #06121b;
  background: var(--cs-cyan);
  cursor: pointer;
  border-radius: 9px;
  min-height: 44px;
  font-weight: 800;
}

.wallet-quote {
  border-top: 1px solid #315b76;
  gap: 10px;
  padding-top: 10px;
  display: grid;
}

.wallet-quote > div {
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.wallet-quote > div span, .wallet-quote small {
  color: var(--cs-steel-muted);
}

.wallet-quote > div strong {
  color: var(--cs-cyan);
  font-size: 20px;
}

.wallet-feedback {
  color: #b9e8d5;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.wallet-usdt-summary {
  background: #0b1b29;
  border: 1px solid #3d7895;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px;
  display: flex;
}

.wallet-usdt-summary strong {
  color: #79d4e7;
  font-size: 24px;
}

.wallet-usdt-summary span {
  color: var(--cs-steel-muted);
  font-size: 12px;
}

.wallet-ton-connect {
  border-top: 1px solid #315b76;
  gap: 9px;
  padding-top: 14px;
  display: grid;
}

.wallet-ton-connect > div span {
  color: var(--cs-steel-muted);
  letter-spacing: .08em;
  font-size: 11px;
}

.wallet-ton-address {
  color: var(--cs-cyan);
  margin: 0;
  font: 700 16px ui-monospace, monospace;
}

.wallet-secondary-action {
  min-height: 40px;
  color: var(--cs-steel);
  cursor: pointer;
  background: #102638;
  border: 1px solid #52758b;
  border-radius: 9px;
  font-weight: 700;
}

.wallet-ton-actions {
  gap: 8px;
  display: grid;
}

.wallet-balance-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.wallet-balance-card {
  background: linear-gradient(145deg, #102638, #0b1b29);
  border: 1px solid #315b76;
  border-radius: 14px;
  gap: 12px;
  padding: 14px;
  display: grid;
  box-shadow: inset 0 1px #dceeff0d;
}

.wallet-balance-card--earned {
  border-color: #8b7440;
}

.wallet-balance-card--purchased {
  border-color: #6e8290;
}

.wallet-balance-card__top {
  align-items: center;
  gap: 12px;
  display: flex;
}

.wallet-balance-card__top img {
  object-fit: contain;
  flex: none;
  width: 46px;
  height: 46px;
}

.wallet-balance-card__top div {
  gap: 4px;
  display: grid;
}

.wallet-balance-card span {
  color: var(--cs-steel);
  font-size: 15px;
  font-weight: 700;
}

.wallet-balance-card small {
  color: var(--cs-steel-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}

.wallet-balance-card > strong {
  color: var(--cs-steel);
  font-size: 26px;
  line-height: 1;
}

.wallet-balance-card--earned > strong {
  color: #f0d58a;
}

.wallet-balance-card--purchased > strong {
  color: #d6e1e8;
}

.wallet-balance-card em {
  color: var(--cs-steel-muted);
  margin-left: 5px;
  font-size: 13px;
  font-style: normal;
}

.wallet-receive-preview {
  background: #071522;
  border: 1px solid #315b76;
  border-radius: 9px;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 11px 12px;
  display: flex;
}

.wallet-receive-preview span {
  color: var(--cs-steel-muted);
  font-size: 12px;
}

.wallet-receive-preview strong {
  color: var(--cs-cyan);
  font-size: 18px;
}

.wallet-screen__header {
  padding-bottom: 8px;
}

.wallet-screen__subtitle {
  display: none;
}

.wallet-home {
  -webkit-backdrop-filter: blur(6px);
  background: #04121d85;
  border: 0;
  gap: 10px;
  padding: 10px 12px 12px;
}

.wallet-home .slot-list {
  gap: 12px;
}

.wallet-balance-item {
  grid-template-rows: auto auto auto;
  grid-template-columns: 52px 1fr;
  align-items: center;
  column-gap: 10px;
  min-width: 0;
  padding: 4px 2px;
  display: grid;
}

.wallet-balance-item img {
  object-fit: contain;
  grid-row: 1 / span 3;
  width: 52px;
  height: 52px;
}

.wallet-balance-item strong {
  color: var(--cs-steel);
  white-space: nowrap;
  font-size: 22px;
  line-height: 1;
}

.wallet-balance-item--purchased strong {
  color: #d6e1e8;
}

.wallet-balance-item span {
  color: var(--cs-steel);
  font-size: 13px;
  font-weight: 700;
}

.wallet-balance-item small {
  color: var(--cs-steel-muted);
  font-size: 10px;
}

.wallet-withdraw-card {
  border-top: 0;
  gap: 9px;
  padding-top: 8px;
}

.wallet-usdt-summary {
  background: none;
  border: 0;
  border-bottom: 1px solid #315b76;
  border-radius: 0;
  padding: 8px 0;
}

.wallet-usdt-summary strong {
  font-size: 21px;
}

.wallet-withdraw-card label {
  gap: 4px;
}

.wallet-withdraw-card input {
  min-height: 42px;
}

.wallet-receive-preview {
  padding: 9px 11px;
}

.wallet-ton-connect {
  border-top: 1px solid #315b76;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
  display: flex;
}

.wallet-ton-row {
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  min-width: 0;
  display: grid;
}

.wallet-ton-row .eyebrow {
  color: #79d4e7;
  grid-row: 1 / span 2;
  margin: 0;
}

.wallet-ton-row strong {
  white-space: nowrap;
  font-size: 13px;
}

.wallet-ton-row small {
  color: var(--cs-cyan);
  white-space: nowrap;
  font: 600 11px ui-monospace, monospace;
}

.wallet-ton-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  display: flex;
}

.wallet-link-action {
  min-height: 30px;
  color: var(--cs-cyan);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
}

.wallet-link-action:disabled {
  opacity: .55;
}

.wallet-primary-action {
  min-height: 42px;
}

@media (max-width: 360px) {
  .wallet-balance-item {
    grid-template-columns: 44px 1fr;
    column-gap: 7px;
  }

  .wallet-balance-item img {
    width: 44px;
    height: 44px;
  }

  .wallet-balance-item strong {
    font-size: 19px;
  }

  .wallet-balance-item span {
    font-size: 12px;
  }
}

.wallet-screen__header {
  border-bottom: 0;
  padding-bottom: 2px;
}

.wallet-screen__status {
  display: none;
}

.wallet-balance-grid {
  border-bottom: 1px solid #315b76;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 0 10px;
  display: grid;
}

.wallet-balance-item {
  background: none;
  border: 0;
  grid-template-rows: auto auto;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 9px;
  min-width: 0;
  padding: 9px 8px 9px 0;
  display: grid;
}

.wallet-balance-item + .wallet-balance-item {
  border-top: 0;
  padding-left: 16px;
}

.wallet-balance-grid .wallet-balance-item {
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
}

.wallet-balance-item img {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
}

.wallet-balance-item strong {
  color: var(--cs-steel);
  white-space: nowrap;
  grid-area: 1 / 3 / span 2;
  font-size: 15px;
  font-weight: 700;
}

.wallet-balance-item--earned strong, .wallet-balance-item--purchased strong {
  color: var(--cs-steel);
}

.wallet-balance-item em {
  color: var(--cs-steel-muted);
  margin-left: 3px;
  font-size: 10px;
  font-style: normal;
}

.wallet-balance-item span {
  min-width: 0;
  color: var(--cs-steel);
  letter-spacing: 0;
  white-space: nowrap;
  grid-area: 1 / 2;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.1;
}

.wallet-balance-item small {
  letter-spacing: 0;
  grid-area: 2 / 2;
  font-size: 11px;
}

.wallet-withdraw-card {
  border: 0;
  gap: 10px;
  padding-top: 12px;
}

.wallet-withdraw-heading {
  justify-content: space-between;
  align-items: baseline;
  display: flex;
}

.wallet-withdraw-heading h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.wallet-withdraw-heading > span {
  color: #79d4e7;
  letter-spacing: .08em;
  font: 700 11px ui-monospace, monospace;
}

.wallet-withdraw-meta {
  color: var(--cs-steel-muted);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  display: grid;
}

.wallet-withdraw-meta strong {
  color: var(--cs-steel);
  margin-top: 2px;
  font-size: 13px;
  display: block;
}

.wallet-conversion-input {
  background: #071522;
  border: 1px solid #315b76;
  border-radius: 9px;
  grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  display: grid;
}

.wallet-conversion-input input {
  background: none;
  border: 0;
  min-width: 0;
  min-height: 40px;
  padding: 0;
}

.wallet-conversion-input span {
  color: var(--cs-steel-muted);
  font-size: 12px;
}

.wallet-conversion-input b {
  color: var(--cs-steel-muted);
}

.wallet-conversion-input strong {
  color: var(--cs-cyan);
  text-align: right;
  white-space: nowrap;
  font-size: 14px;
}

.wallet-ton-connect {
  padding: 8px 0 0;
}

.wallet-ton-connect--identity {
  background: #071522;
  border: 1px solid #315b76;
  border-radius: 9px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 10px 0 2px;
  padding: 9px 10px;
  display: flex;
}

.wallet-ton-connect--identity .wallet-ton-row {
  flex: 1;
}

.wallet-ton-connect--identity .wallet-ton-actions {
  flex: none;
}

.wallet-ton-row .eyebrow {
  font-size: 10px;
}

.wallet-helper {
  color: var(--cs-steel-muted);
  margin: 0;
  font-size: 12px;
}

@media (max-width: 360px) {
  .wallet-balance-grid {
    column-gap: 0;
  }

  .wallet-balance-item {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    column-gap: 7px;
    padding-right: 5px;
  }

  .wallet-balance-item + .wallet-balance-item {
    padding-left: 10px;
  }

  .wallet-balance-item img {
    width: 28px;
    height: 28px;
  }

  .wallet-balance-item span {
    font-size: 11px;
  }

  .wallet-balance-item small {
    font-size: 10px;
  }

  .wallet-balance-item strong {
    font-size: 14px;
  }

  .wallet-conversion-input {
    gap: 4px;
    padding: 0 7px;
  }

  .wallet-conversion-input strong {
    font-size: 12px;
  }
}

.wallet-primary-action:disabled {
  color: #82949a;
  box-shadow: none;
  opacity: .8;
  cursor: not-allowed;
  background: #1a2b33;
  border-color: #3d5965;
}

.wallet-balance-list {
  border-bottom: 1px solid #315b76;
  gap: 0;
  padding: 0 0 10px;
  display: grid;
}

.wallet-balance-list .wallet-balance-item {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 11px 0;
  display: grid;
}

.wallet-balance-list .wallet-balance-item img {
  object-fit: contain;
  width: 30px;
  height: 30px;
}

.wallet-balance-list .wallet-balance-item > div {
  min-width: 0;
}

.wallet-balance-list .wallet-balance-item span {
  min-width: 0;
  color: var(--cs-steel);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}

.wallet-balance-list .wallet-balance-item small {
  color: var(--cs-steel-muted);
  white-space: nowrap;
  font-size: 11px;
}

.wallet-balance-list .wallet-balance-item strong {
  min-width: 0;
  color: var(--cs-steel);
  text-align: right;
  white-space: nowrap;
  justify-self: end;
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
}

.wallet-balance-list .wallet-balance-item em {
  color: var(--cs-steel-muted);
  margin-left: 4px;
  font-size: 11px;
  font-style: normal;
}

.wallet-withdraw-info {
  color: var(--cs-steel-muted);
  gap: 8px;
  font-size: 12px;
  display: grid;
}

.wallet-withdraw-info p {
  color: var(--cs-steel);
  margin: 0;
}

.wallet-withdraw-info > div {
  gap: 4px;
  display: grid;
}

.wallet-withdraw-guidance {
  color: var(--cs-steel-muted);
  line-height: 1.45;
}

.wallet-withdraw-info span {
  justify-content: space-between;
  gap: 12px;
  display: flex;
}

.wallet-withdraw-info strong {
  color: var(--cs-steel);
  text-align: right;
  font-weight: 650;
}

.wallet-primary-action--soft {
  color: #b1c0c4;
  box-shadow: none;
  background: #20333c;
  border-color: #52758b;
}

@media (max-width: 360px) {
  .wallet-balance-list .wallet-balance-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    column-gap: 12px;
  }

  .wallet-balance-list .wallet-balance-item img {
    width: 30px;
    height: 30px;
  }

  .wallet-balance-list .wallet-balance-item span {
    font-size: 12px;
  }

  .wallet-balance-list .wallet-balance-item strong {
    font-size: 16px;
  }

  .wallet-withdraw-info span {
    gap: 8px;
  }
}

.energy-sheet__success {
  color: #aee7d5;
  background: #0c251f;
  border: 1px solid #3b7869;
  border-radius: 11px;
  gap: 8px;
  margin: 13px 0 8px;
  padding: 13px;
  font-size: 13px;
  line-height: 1.45;
  display: grid;
}

.energy-sheet__success p {
  margin: 0;
}

.energy-sheet__success button {
  color: #d3f5ee;
  cursor: pointer;
  background: #155047;
  border: 1px solid #58bfa7;
  border-radius: 9px;
  width: max-content;
  min-height: 42px;
  padding: 0 11px;
  font-weight: 700;
}

.mining-pool__empty {
  gap: 5px;
  line-height: 1.5;
  display: grid;
}

.gameplay-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  max-width: 900px;
  margin: 0 auto 12px;
  display: grid;
}

.gameplay-nav button {
  color: #d9f3e9;
  cursor: pointer;
  background: #101f25;
  border: 1px solid #36545d;
  border-radius: 9px;
  min-height: 42px;
  font-weight: 700;
}

.gameplay-nav button:hover, .gameplay-nav button:focus-visible {
  border-color: #76bbd9;
  outline: none;
}

.gameplay-surface {
  min-height: 100svh;
  padding: 18px 14px calc(28px + env(safe-area-inset-bottom));
  color: #e4eee9;
  background: radial-gradient(circle at 80% 0, #183a32, #08130f 57%, #030706);
}

.gameplay-nav__cell {
  position: relative;
}

.gameplay-nav__news-badge {
  background: #f0bd63;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  position: absolute;
  top: 5px;
  right: 9px;
  box-shadow: 0 0 0 2px #101f25;
}

.news-feed {
  gap: 12px;
  width: min(100%, 720px);
  margin-inline: auto;
  display: grid;
}

.news-card {
  background: #101f25;
  border: 1px solid #36545d;
  border-radius: 12px;
  overflow: hidden;
}

.news-card__image {
  object-fit: cover;
  width: 100%;
  max-height: 320px;
  display: block;
}

.news-card__content {
  gap: 8px;
  padding: 14px;
  display: grid;
}

.news-card__content h2, .news-card__content p {
  margin: 0;
}

.news-card__content > p:last-child {
  white-space: pre-wrap;
  line-height: 1.55;
}

.news-card__body {
  gap: 8px;
  line-height: 1.55;
  display: grid;
}

.news-card__body p, .news-card__body h3, .news-card__body ul {
  margin: 0;
}

.news-card__body ul {
  padding-left: 22px;
}

.news-card__body a {
  color: #8ac7e8;
}

.gameplay-surface > header, .gameplay-surface > article, .gameplay-surface > .offer-list, .gameplay-surface > .gameplay-state {
  width: min(100%, 720px);
  margin-inline: auto;
}

.gameplay-surface > header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  display: flex;
}

.gameplay-surface h1 {
  margin: 4px 0;
  font-size: 32px;
}

.gameplay-state, .gameplay-empty, .gameplay-info, .gameplay-hero, .offer-card {
  background: #101e23;
  border: 1px solid #314c56;
  border-radius: 15px;
  margin-block: 12px;
  padding: 16px;
}

.gameplay-state, .gameplay-empty {
  color: #b6c9c1;
  line-height: 1.55;
}

.gameplay-empty strong {
  color: #e5f4ed;
}

.gameplay-hero {
  background: linear-gradient(135deg, #172f39, #101e23);
  gap: 7px;
  display: grid;
}

.gameplay-hero span, .gameplay-info span {
  color: #9dbdb1;
  letter-spacing: .08em;
  font-size: 12px;
}

.gameplay-hero strong {
  color: #84e8c7;
  font-size: 30px;
}

.gameplay-hero small, .gameplay-info small, .offer-card small {
  color: #b3c7bf;
  line-height: 1.5;
}

.gameplay-info {
  gap: 6px;
  display: grid;
}

.gameplay-info strong {
  color: #edf7f2;
  font-size: 18px;
}

.offer-list {
  gap: 10px;
  display: grid;
}

.offer-card {
  gap: 7px;
  display: grid;
}

.offer-card h2, .offer-card p {
  margin: 0;
}

.offer-card p {
  color: #b7c8c1;
}

.offer-card strong {
  color: #84e8c7;
  font-size: 21px;
}

@media (max-width: 500px) {
  .gameplay-nav {
    z-index: 5;
    overscroll-behavior-x: none;
    background: #070e11f2;
    margin-inline: -2px;
    padding: 7px 2px;
    position: sticky;
    top: 0;
    overflow-x: auto;
  }

  .gameplay-nav button {
    font-size: 11px;
  }

  .gameplay-surface {
    padding-inline: 12px;
  }

  .gameplay-surface h1 {
    font-size: 28px;
  }
}

.mining-pool__empty strong {
  color: #d7e3f6;
}

.sheet-backdrop {
  z-index: 10;
  background: #020605b8;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.rack-sheet {
  background: #0e1a1b;
  border: 1px solid #476673;
  border-radius: 17px;
  width: min(100%, 620px);
  padding: 27px;
  position: relative;
  box-shadow: 0 28px 80px #000;
}

.rack-sheet > p:not(.eyebrow) {
  color: #b8c9c0;
  line-height: 1.6;
}

.rack-sheet b {
  color: #70e3ba;
}

.sheet-close {
  color: #dceee6;
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 30px;
  position: absolute;
  top: 12px;
  right: 14px;
}

.slot-list {
  border-top: 1px solid #2d3f46;
  margin-top: 22px;
}

.slot-row {
  color: #a8bbb2;
  border-bottom: 1px solid #25363b;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 13px;
  display: grid;
}

.slot-row strong {
  color: #e4eee9;
}

.slot-row button {
  padding: 6px 9px;
  font-size: 12px;
}

.energy-sheet-backdrop {
  z-index: 12;
  background: linear-gradient(0deg, #020506cf 0 62%, #0000 88%);
  align-items: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.energy-sheet {
  overscroll-behavior: none;
  width: 100%;
  min-height: 50svh;
  max-height: 65svh;
  padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
  color: #dceee6;
  background: linear-gradient(155deg, #102223, #091415 68%);
  border: 1px solid #47787a;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  overflow: auto;
  box-shadow: 0 -16px 50px #000a;
}

.energy-sheet__header {
  border-bottom: 1px solid #2d4c51;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  min-height: 44px;
  padding-bottom: 14px;
  display: flex;
  position: relative;
}

.energy-sheet__header h2 {
  font-size: 20px;
}

.energy-sheet__header .sheet-close {
  position: static;
}

.energy-sheet__status {
  color: #b8c9c0;
  margin: 22px 0;
  line-height: 1.5;
}

.energy-sheet__status button, .energy-sheet__battery button, .energy-confirmation__actions button {
  color: #d3f5ee;
  cursor: pointer;
  background: #12383b;
  border: 1px solid #3d6f74;
  border-radius: 9px;
  min-height: 38px;
  padding: 0 11px;
}

.energy-sheet__readout {
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px 0 5px;
  display: grid;
}

.energy-sheet__readout div, .energy-sheet__battery > div {
  gap: 4px;
  display: grid;
}

.energy-sheet__readout span, .energy-sheet__battery span, .energy-sheet__battery p, .energy-sheet__battery small {
  color: #a8c1bc;
  font-size: 13px;
  line-height: 1.45;
}

.energy-sheet__readout strong, .energy-sheet__battery strong {
  color: #e8f6f1;
  font-size: 18px;
}

.energy-sheet__battery {
  border-top: 1px solid #2d4c51;
  gap: 10px;
  margin-top: 4px;
  padding: 15px 0;
  display: grid;
}

.energy-sheet__battery-art {
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 8px #2ed9ff55);
  width: 72px;
  height: 92px;
}

.energy-sheet__battery > div {
  justify-content: space-between;
  align-items: baseline;
  display: flex;
}

.energy-sheet__battery p {
  margin: 0;
}

.energy-sheet__battery button {
  width: max-content;
}

.energy-sheet button:disabled {
  cursor: default;
  opacity: .48;
}

.energy-sheet__success {
  color: #83e4c7;
  margin: 8px 0;
  font-size: 13px;
}

.energy-confirmation {
  background: #0b1b1d;
  border: 1px solid #4e767e;
  border-radius: 12px;
  gap: 10px;
  margin-top: 13px;
  padding: 15px;
  display: grid;
}

.energy-confirmation h3 {
  margin: 0;
  font-size: 17px;
}

.energy-confirmation dl {
  border-top: 1px solid #284146;
  margin: 0;
}

.energy-confirmation dl div {
  border-bottom: 1px solid #284146;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  display: flex;
}

.energy-confirmation dt {
  color: #a8c1bc;
}

.energy-confirmation dd {
  color: #e8f6f1;
  margin: 0;
  font-weight: 700;
}

.energy-confirmation p[role="alert"] {
  color: #f0c0aa;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.energy-confirmation__actions {
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.energy-confirmation__actions button:last-child {
  background: #154850;
  border-color: #57a8b9;
}

.rack-management-actions {
  border-bottom: 1px solid #253b36;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  display: flex;
}

.rack-management-actions button {
  padding: 7px 9px;
  font-size: 12px;
}

.slot-row__actions {
  justify-content: flex-end;
  gap: 6px;
  display: flex;
}

.rack-static-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  display: grid;
}

.rack-static-stats div {
  border: 1px solid #2d3f46;
  border-radius: 8px;
  padding: 9px 10px;
}

.rack-static-stats dt {
  color: #a8bbb2;
  font-size: 11px;
}

.rack-static-stats dd {
  color: #e4eee9;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.slot-row__miner-info {
  color: #e4eee9;
  min-width: 0;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 700;
  overflow: hidden;
}

.slot-row__miner-info:hover, .slot-row__miner-info:focus-visible {
  color: #70e3ba;
  outline: none;
  text-decoration: underline;
}

.miner-details {
  padding-top: 12px;
}

.miner-details h2 {
  color: #e4eee9;
  margin: 4px 0 0;
}

.miner-details__rarity {
  color: #9ebcb1;
  text-transform: capitalize;
  margin: 4px 0 21px;
}

.miner-details__facts {
  border-top: 1px solid #2d3f46;
  margin: 0;
}

.miner-details__facts div {
  border-bottom: 1px solid #25363b;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  display: flex;
}

.miner-details__facts dt {
  color: #a8bbb2;
}

.miner-details__facts dd {
  color: #e4eee9;
  margin: 0;
  font-weight: 700;
}

.miner-details__close {
  color: #c6f3e4;
  cursor: pointer;
  background: #122d34;
  border: 1px solid #3d6474;
  border-radius: 9px;
  width: 100%;
  margin-top: 20px;
  padding: 11px 12px;
}

@media (max-width: 720px) {
  .game-shell {
    padding: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hall-header {
    padding: 14px;
  }

  .hall-workshop-header-entry {
    display: none;
  }

  .hall-workshop-mobile-entry {
    border: 0;
    color: #def5eb;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(90deg, #12303a, #0d1f24);
    border-block: 1px solid #3f7566;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 56px;
    padding: 10px 14px;
    display: grid;
  }

  .hall-workshop-mobile-entry .gameplay-icon {
    color: #7de6c2;
    width: 25px;
    height: 25px;
  }

  .hall-workshop-mobile-entry > span:nth-child(2) {
    gap: 2px;
    min-width: 0;
    display: grid;
  }

  .hall-workshop-mobile-entry strong {
    font-size: 15px;
  }

  .hall-workshop-mobile-entry small {
    color: #a8c5ba;
    font-size: 11px;
  }

  .hall-workshop-mobile-entry__arrow {
    color: #86e4c3;
    font-size: 27px;
    line-height: 1;
  }

  .hall-workshop-mobile-entry:focus-visible {
    outline-offset: -3px;
    outline: 2px solid #8ac9eb;
  }

  .hall-scene {
    min-height: 670px;
  }

  .rack-field {
    grid-auto-rows: 140px;
    gap: 10px;
    width: 34%;
  }

  .left-field {
    left: 2%;
  }

  .right-field {
    right: 2%;
  }

  .rack-frame {
    height: 98px;
    padding: 5px;
  }

  .lift-door {
    width: 60px;
    height: 185px;
    right: 0;
  }

  .service-aisle {
    inset-inline: 36%;
  }

  .worker-electrician {
    left: 31%;
  }

  .worker-tech {
    right: 27%;
  }

  .quiet-button {
    font-size: 12px;
  }

  .hall-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .slot-row {
    grid-template-columns: 65px 1fr;
  }

  .slot-row button {
    grid-column: 2;
  }

  .gantry {
    left: 2%;
    right: 2%;
  }

  .cable-cart {
    left: 42%;
  }
}

.cutaway-shell {
  background: #030608;
  min-height: 100svh;
  overflow-x: hidden;
}

.rack.empty {
  opacity: .82;
}

.rack--target .rack-frame {
  border-color: #e0bd60;
  box-shadow: 0 0 0 2px #e0bd6066, 5px 7px #0006;
}

.rack-add {
  color: #d8e7d5;
  background: #203126;
  border: 1px solid #7b926e;
  border-radius: 6px;
  margin-top: 5px;
  padding: 3px 7px;
  font-size: 10px;
  display: inline-flex;
}

.equipment-storage-backdrop {
  z-index: 11;
  background: linear-gradient(0deg, #020506cc 0 60%, #0000 88%);
  align-items: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.equipment-storage {
  overscroll-behavior: none;
  width: 100%;
  min-height: 50svh;
  max-height: 65svh;
  padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
  color: #dceee6;
  background: #0e1a1b;
  border: 1px solid #476673;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  overflow: auto;
  box-shadow: 0 -16px 50px #000a;
}

.equipment-storage__header {
  border-bottom: 1px solid #2d3f46;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  min-height: 44px;
  padding-bottom: 14px;
  display: flex;
  position: relative;
}

.equipment-storage__header h2 {
  font-size: 20px;
}

.equipment-storage__header .sheet-close {
  position: static;
}

.equipment-storage__list {
  gap: 10px;
  padding-top: 16px;
  display: grid;
}

.equipment-storage__card {
  background: #101e24;
  border: 1px solid #314c56;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px;
  display: flex;
}

.equipment-storage__card div {
  gap: 3px;
  display: grid;
}

.equipment-storage__card span, .equipment-storage__empty {
  color: #b8c9c0;
  font-size: 13px;
}

.equipment-storage__card button {
  color: #c6f3e4;
  background: #122d34;
  border: 1px solid #3d6474;
  border-radius: 9px;
  min-height: 38px;
  padding: 0 11px;
}

.equipment-storage__empty {
  margin-top: 22px;
}

.storage-screen {
  min-height: 100svh;
  padding: 18px 14px calc(28px + env(safe-area-inset-bottom));
  color: #e4eee9;
  background: radial-gradient(circle at 72% 0, #17352e 0, #091411 42%, #030706 100%);
}

.storage-screen__header, .storage-panel {
  width: min(100%, 900px);
  margin-inline: auto;
}

.storage-screen__header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 0 4px 20px;
  display: flex;
}

.storage-screen__header h1 {
  margin: 4px 0;
  font-size: clamp(28px, 7vw, 39px);
}

.storage-screen__header p:last-child {
  color: #a8bdb4;
  margin: 0;
  font-size: 13px;
}

.storage-screen__back {
  color: #d9f3e9;
  cursor: pointer;
  background: #11272d;
  border: 1px solid #476c7b;
  border-radius: 9px;
  flex: none;
  min-height: 42px;
  padding: 0 12px;
}

.storage-screen__back:focus-visible, .storage-tabs button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #7dbae1;
}

.storage-panel {
  background: linear-gradient(145deg, #101e23, #091013 72%);
  border: 1px solid #314c56;
  border-radius: 16px;
  padding: 17px;
  box-shadow: 0 20px 58px #0008;
}

.storage-panel__heading {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex;
}

.storage-panel__heading h2 {
  margin: 0;
  font-size: 20px;
}

.storage-panel__heading span {
  color: #9db3aa;
  text-align: right;
  font-size: 12px;
}

.storage-tabs {
  background: #070e11;
  border: 1px solid #293e46;
  border-radius: 11px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 17px 0;
  padding: 4px;
  display: grid;
}

.storage-tabs button {
  color: #a9beb5;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  min-height: 42px;
  font-weight: 700;
}

.storage-tabs button[aria-selected="true"] {
  color: #e2f6ee;
  background: #16333c;
  border-color: #466d7c;
  box-shadow: 0 0 20px #4ba3d022;
}

.storage-panel > .storage-tabs {
  margin-block: 12px;
}

.storage-panel > .hall-edit-sort {
  gap: 6px;
}

.storage-panel > .hall-edit-sort > button {
  min-height: 38px;
  padding-block: 4px;
}

.storage-panel > .hall-edit-sort + .storage-grid {
  margin-top: 8px;
}

.storage-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 11px;
  display: grid;
}

.storage-card {
  background: linear-gradient(145deg, #101f26, #0a1317);
  border: 1px solid #314c56;
  border-radius: 12px;
  min-width: 0;
  padding: 14px;
}

.storage-card__identity {
  border-bottom: 1px solid #283c44;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding-bottom: 13px;
  display: grid;
}

.storage-card__glyph {
  color: #8ae1c5;
  background: #10262d;
  border: 1px solid #566f80;
  border-radius: 9px;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  display: grid;
}

.storage-card h3 {
  overflow-wrap: anywhere;
  color: #e4f0ea;
  margin: 0;
  font-size: 16px;
}

.storage-card__identity p {
  color: #a4b9b1;
  text-transform: capitalize;
  margin: 3px 0 0;
  font-size: 12px;
}

.storage-card dl {
  gap: 0;
  margin: 12px 0 0;
  display: grid;
}

.storage-card dl div {
  border-bottom: 1px solid #21333a;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  display: flex;
}

.storage-card dt {
  color: #a7bdb4;
  font-size: 12px;
}

.storage-card dd {
  color: #edf7f2;
  text-align: right;
  white-space: nowrap;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.storage-state {
  color: #b6c9c1;
  text-align: center;
  background: #080f13;
  border: 1px dashed #3d5762;
  border-radius: 11px;
  margin: 20px 0 4px;
  padding: 17px;
}

@media (max-width: 360px) {
  .storage-screen {
    padding-inline: 10px;
  }

  .storage-panel {
    padding: 13px;
  }

  .storage-screen__header {
    gap: 8px;
  }

  .storage-screen__back {
    padding-inline: 9px;
    font-size: 12px;
  }

  .storage-panel__heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .storage-panel__heading span {
    text-align: left;
  }

  .storage-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mining-status-screen {
  color: #f4f6ff;
  background: radial-gradient(circle at top, #1b2741, #0b101d 65%);
  min-height: 100vh;
  padding: 20px;
}

.mining-status-screen__header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  display: flex;
}

.mining-status-screen h1, .mining-status-screen h2 {
  margin: 0;
}

.mining-status-state, .mining-card, .mining-history, .mining-hero {
  background: #141b2d;
  border: 1px solid #485579;
  border-radius: 16px;
  margin: 12px 0;
  padding: 16px;
}

.mining-hero {
  background: linear-gradient(135deg, #192a4b, #17233a);
  gap: 7px;
  display: grid;
}

.mining-hero p, .mining-card p, .mining-reward p {
  color: #8ea3cc;
  letter-spacing: .08em;
  margin: 0;
  font-size: 12px;
}

.mining-hero > strong {
  color: #7ee7ff;
  font-size: 32px;
}

.mining-hero > span, .mining-card span, .mining-reward small {
  color: #b9c4dc;
}

.mining-hero__empty {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  display: flex;
}

.mining-card {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.mining-card > div {
  gap: 5px;
  display: grid;
}

.mining-card button, .mining-reward button, .mining-hero__empty button {
  color: #08111c;
  background: #20d1d7;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
}

.mining-pool h2 {
  margin: 8px 0 14px;
  font-size: 16px;
  line-height: 1.35;
}

.mining-pool__empty, .mining-history__empty {
  color: #b9c4dc;
  margin: 0;
}

.mining-history__heading {
  margin-bottom: 10px;
}

.mining-history__rows {
  gap: 8px;
  display: grid;
}

.mining-reward {
  border-top: 1px solid #394665;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  display: flex;
}

.mining-reward:first-child {
  border-top: 0;
}

.mining-reward > div {
  gap: 5px;
  display: grid;
}

.mining-reward strong {
  color: #77e6b9;
  font-size: 19px;
}

.mining-reward--primary {
  background: #101829;
  border: 1px solid #4e678e;
  border-radius: 12px;
  padding: 14px;
}

.mining-reward--primary strong {
  font-size: 25px;
}

.mining-status-state[role="alert"] {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.mining-status-state button {
  color: #08111c;
  background: #20d1d7;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
}

@media (min-width: 760px) {
  .mining-status-screen {
    max-width: 820px;
    margin: 0 auto;
  }

  .mining-history__rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mining-reward {
    border: 1px solid #394665;
    border-radius: 12px;
    padding: 12px;
  }
}

.player-hud {
  align-items: center;
  gap: 7px;
  display: flex;
}

.player-hud button {
  color: #d9f3e9;
  cursor: pointer;
  background: #101f25;
  border: 1px solid #36545d;
  border-radius: 9px;
  min-height: 40px;
}

.player-hud__wallet, .player-hud__avatar {
  place-items: center;
  width: 42px;
  padding: 0;
  display: grid;
}

.player-hud__balance {
  align-items: baseline;
  gap: 4px;
  padding: 0 10px;
  display: flex;
}

.player-hud__balance strong {
  font-size: 13px;
}

.player-hud__balance small {
  color: #8fcdb8;
  font-size: 10px;
}

.player-hud__avatar {
  border-radius: 50% !important;
}

.player-hud .gameplay-icon {
  width: 20px;
  height: 20px;
}

.gameplay-menu-backdrop, .player-menu-backdrop {
  z-index: 30;
  background: linear-gradient(0deg, #020506de 0 58%, #02050655 100%);
  align-items: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.gameplay-menu, .player-menu {
  overscroll-behavior: none;
  width: min(100%, 560px);
  max-height: min(76svh, 650px);
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  color: #dceee6;
  background: linear-gradient(150deg, #101f24, #070f11 74%);
  border: 1px solid #486875;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  margin-inline: auto;
  overflow: auto;
  box-shadow: 0 -16px 52px #000b;
}

.gameplay-menu header, .player-menu header {
  border-bottom: 1px solid #2d4750;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 44px;
  padding-bottom: 13px;
  display: flex;
  position: relative;
}

.gameplay-menu h2, .player-menu h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.gameplay-menu .sheet-close, .player-menu .sheet-close {
  color: #dceee6;
  background: #101f25;
  border: 1px solid #46636e;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 26px;
  position: static;
}

.gameplay-menu__list {
  gap: 8px;
  padding-top: 14px;
  display: grid;
}

.gameplay-menu__list > button {
  color: #e1f1ea;
  text-align: left;
  cursor: pointer;
  background: #0c181d;
  border: 1px solid #314e59;
  border-radius: 10px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 56px;
  padding: 9px 11px;
  display: grid;
}

.gameplay-menu__list > button:disabled {
  color: #91a39b;
  opacity: .72;
  cursor: default;
  border-color: #2a363b;
}

.gameplay-menu__list .gameplay-icon {
  color: #79d8b7;
  width: 23px;
  height: 23px;
}

.gameplay-menu__list span {
  gap: 2px;
  min-width: 0;
  font-weight: 700;
  display: grid;
}

.gameplay-menu__list small {
  color: #aa9b74;
  letter-spacing: .08em;
  text-transform: uppercase;
  font: 700 10px ui-monospace, monospace;
}

.gameplay-menu__list b {
  color: #85dfbf;
  font-size: 23px;
  line-height: 1;
}

.gameplay-menu__list > button:focus-visible, .player-hud button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #8ac7e8;
}

@media (max-width: 720px) {
  .game-shell {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
  }

  .topbar > div:first-child, .topbar .connection {
    display: none;
  }

  .player-hud {
    justify-content: flex-end;
    width: 100%;
  }

  .player-hud__wallet span {
    display: none;
  }

  .gameplay-nav {
    z-index: 20;
    width: 100%;
    max-width: none;
    padding: 7px max(8px, env(safe-area-inset-left))
      calc(7px + env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-right));
    background: #070e11f7;
    border-top: 1px solid #36545d;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: visible;
    box-shadow: 0 -10px 28px #0009;
  }

  .gameplay-nav button {
    color: #b3c7be;
    background: none;
    border: 0;
    border-radius: 8px;
    place-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 52px;
    padding: 4px 2px;
    font-size: 10px;
    display: grid;
  }

  .gameplay-nav button:disabled {
    color: #687972;
    opacity: .72;
  }

  .gameplay-nav .gameplay-icon {
    width: 22px;
    height: 22px;
  }

  .gameplay-nav__label {
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
  }

  .gameplay-nav .gameplay-nav__active {
    color: #8ce8c7;
    background: #18323c;
    box-shadow: inset 0 0 0 1px #4e7d92;
  }

  .gameplay-surface, .storage-screen, .mining-status-screen {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .hall-controls {
    margin-left: auto;
  }

  .hall-controls .hud-icon-action {
    min-height: 38px;
  }

  .hall-controls .hud-icon-action span {
    display: none;
  }

  .hall-workshop-mobile-entry, .hall-workshop-header-entry {
    display: none !important;
  }
}

@media (min-width: 721px) {
  .player-hud {
    display: none;
  }

  .gameplay-menu, .player-menu {
    border-bottom: 1px solid #486875;
    border-radius: 18px;
    margin-bottom: 10svh;
  }
}

:root {
  --cs-bg: #111719;
  --cs-panel: #182023;
  --cs-panel-raised: #202a2d;
  --cs-text: #f2eee5;
  --cs-muted: #a9b0ad;
  --cs-amber: #d7923b;
  --cs-amber-bright: #f0b44d;
  --cs-copper: #8f582b;
  --cs-info: #65b8c5;
  --cs-danger: #cf6e62;
  --cs-success: #76b99b;
}

.game-shell, .gameplay-surface, .storage-screen {
  color: var(--cs-text);
  background: radial-gradient(circle at 74% 0,
    #2b261d 0,
    var(--cs-bg) 48%,
    #080b0c 100%);
}

.topbar .connection {
  color: var(--cs-muted);
}

.topbar .connection span {
  background: var(--cs-info);
}

.player-hud button, .gameplay-nav button {
  border-color: color-mix(in srgb, var(--cs-copper) 74%, #34434d);
  color: var(--cs-text);
  background: var(--cs-panel);
}

.player-hud__balance {
  border-left-color: var(--cs-amber) !important;
}

.player-hud__balance small {
  color: var(--cs-amber-bright);
}

.gameplay-nav button:focus-visible, .player-hud button:focus-visible {
  outline-color: var(--cs-amber-bright);
}

.gameplay-menu, .player-menu {
  border-color: var(--cs-copper);
  background: linear-gradient(150deg, var(--cs-panel-raised), var(--cs-bg) 74%);
}

.gameplay-menu__list .gameplay-icon, .gameplay-menu__list b {
  color: var(--cs-amber);
}

.gameplay-menu__list small {
  color: var(--cs-amber-bright);
}

.hall-header .section-label, .eyebrow {
  color: var(--cs-amber) !important;
}

.quiet-button:hover, .quiet-button:focus-visible, .storage-screen__back:focus-visible {
  border-color: var(--cs-amber-bright) !important;
  outline-color: var(--cs-amber-bright) !important;
}

.storage-tabs button[aria-selected="true"] {
  border-color: var(--cs-copper);
  color: var(--cs-text);
  background: #1e3149;
  box-shadow: 0 0 20px #3b92d722;
}

.league-status-card {
  border: 1px solid var(--cs-copper);
  border-left: 4px solid var(--cs-amber);
  width: min(100%, 1040px);
  min-height: 76px;
  color: var(--cs-text);
  text-align: left;
  background: linear-gradient(100deg, #162129, var(--cs-panel));
  cursor: pointer;
  border-radius: 12px;
  grid-template-columns: 46px minmax(0, 1fr) minmax(115px, .8fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0 auto 12px;
  padding: 10px 13px;
  display: grid;
  box-shadow: 0 10px 28px #0006;
}

.league-status-card:focus-visible {
  outline: 2px solid var(--cs-amber-bright);
  outline-offset: 2px;
}

.league-status-card__badge {
  border: 1px solid var(--cs-amber);
  width: 38px;
  height: 46px;
  color: var(--cs-amber-bright);
  background: #0f1820;
  border-radius: 8px 8px 13px 13px;
  place-items: center;
  font: 800 19px ui-monospace, monospace;
  display: grid;
}

.league-status-card__summary {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.league-status-card__summary small, .league-status-card__summary em, .league-status-card__progress small {
  color: var(--cs-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-style: normal;
  overflow: hidden;
}

.league-status-card__summary strong {
  color: var(--cs-text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  overflow: hidden;
}

.league-status-card__progress {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.league-status-card__progress > span {
  background: #0c1011;
  border-radius: 999px;
  height: 7px;
  display: block;
  overflow: hidden;
}

.league-status-card__progress i {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cs-copper), var(--cs-amber-bright));
  height: 100%;
  display: block;
}

.league-status-card__max {
  border: 1px solid var(--cs-amber);
  color: var(--cs-amber-bright);
  border-radius: 6px;
  padding: 5px 7px;
  font: 700 10px ui-monospace, monospace;
}

.league-status-card > b {
  color: var(--cs-amber);
  font-size: 24px;
}

.league-status-card--silver {
  --cs-amber: #c1c7c4;
  --cs-amber-bright: #edf0ec;
  --cs-copper: #76807c;
}

.league-status-card--gold {
  --cs-amber: #d7a949;
  --cs-amber-bright: #f1cd72;
  --cs-copper: #89652a;
}

.league-status-card--platinum {
  --cs-amber: #83b7ba;
  --cs-amber-bright: #b4dce0;
  --cs-copper: #4c777b;
}

.league-status-card--diamond {
  --cs-amber: #79aeca;
  --cs-amber-bright: #b3d9ed;
  --cs-copper: #486f88;
}

.league-status-card--titan {
  --cs-amber: #aaa59a;
  --cs-amber-bright: #ded8c9;
  --cs-copper: #625e57;
}

.league-status-card--emerald {
  --cs-amber: #7fae9b;
  --cs-amber-bright: #a6d3bc;
  --cs-copper: #476c5d;
}

.league-status-card--legend {
  --cs-amber: #e0b15c;
  --cs-amber-bright: #f5d887;
  --cs-copper: #8d652d;
}

@media (max-width: 720px) {
  .league-status-card {
    grid-template-columns: 42px minmax(0, 1fr) minmax(94px, .72fr) auto;
    width: calc(100% - 28px);
    min-height: 68px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .league-status-card__badge {
    width: 34px;
    height: 40px;
  }

  .league-status-card__summary em {
    max-width: 118px;
  }

  .league-status-card__progress small {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .league-status-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .league-status-card__progress {
    display: none;
  }
}

.hall-discovery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 1040px);
  margin: 0 auto 12px;
  display: grid;
  position: relative;
}

.hall-discovery__card {
  isolation: isolate;
  min-width: 0;
  height: clamp(92px, 14vw, 126px);
  min-height: 92px;
  color: var(--cs-text);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 0;
  align-items: end;
  padding: 16px 18px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.hall-discovery__card:focus-visible {
  outline: 2px solid var(--cs-amber-bright);
  outline-offset: 2px;
}

.hall-discovery__card:disabled {
  cursor: default;
  opacity: 1;
}

.hall-discovery__card:before {
  z-index: 0;
  content: "";
  filter: saturate(.78) brightness(.63);
  background: linear-gradient(#07131c2e, #03070bc7), linear-gradient(90deg, #45d7ed09 1px, #0000 1px) 0 0 / 15px 15px, linear-gradient(#45d7ed09 1px, #0000 1px) 0 0 / 15px 15px, url("/game/optimized/ui/store-supply-depot-header-v2.webp") center / cover no-repeat;
  position: absolute;
  inset: 13.5% 2.8%;
}

.hall-discovery > .hall-discovery__frame {
  z-index: 2;
  object-fit: fill;
  object-position: center;
  pointer-events: none;
  width: 99.2%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0 .4%;
}

.hall-discovery__media {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  filter: none;
  width: 94.4%;
  height: 73%;
  animation: .7s ease-out both hall-expedition-art-in;
  position: absolute;
  inset: 13.5% 2.8%;
}

@keyframes hall-expedition-art-in {
  from {
    opacity: 0;
  }
}

.hall-discovery__card > :not(.hall-discovery__media) {
  z-index: 1;
  position: relative;
}

.hall-discovery__copy {
  text-shadow: 0 2px 4px #000;
  gap: 2px;
  min-width: 0;
  padding-inline: 2px;
  display: grid;
}

.hall-discovery__card--expeditions .hall-discovery__copy strong {
  color: #e8fbff;
  letter-spacing: .08em;
  text-shadow: -1px -1px #061016, 1px -1px #061016, -1px 1px #061016, 1px 1px #061016, 0 0 7px #51d7eb6b;
  font: 800 16px / 1 Arial Narrow, Roboto Condensed, sans-serif;
}

.hall-discovery__card--expeditions .hall-discovery__copy {
  text-align: center;
  place-self: center;
}

.hall-discovery__card small {
  color: var(--cs-muted);
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 8px ui-monospace, monospace;
  overflow: hidden;
}

.hall-discovery__card strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  overflow: hidden;
}

.hall-discovery__card em {
  color: #c3d0d3;
  font-size: 10px;
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  .hall-discovery__media {
    animation: none;
  }
}

.hall-header {
  background: none;
  min-height: 0;
  padding: 10px 12px;
}

.hall-header .hall-controls {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
}

.hall-header .energy-indicator {
  flex: auto;
  justify-content: center;
  min-height: 42px;
}

.hall-header .hall-edit-entry {
  place-items: center;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
}

.hall-header .hall-edit-entry .gameplay-icon {
  width: 20px;
  height: 20px;
}

.hall-header .hall-edit-entry span {
  display: none;
}

@media (max-width: 720px) {
  .hall-discovery {
    width: calc(100% - 28px);
  }

  .hall-card {
    border-radius: 14px;
  }

  .hall-header {
    padding: 8px 10px;
  }

  .hall-scene {
    min-height: 610px;
  }
}

@media (min-width: 721px) {
  .hall-discovery {
    max-width: 900px;
  }

  .hall-header .hall-controls {
    justify-content: flex-end;
  }

  .hall-header .hall-edit-entry {
    gap: 7px;
    width: auto;
    min-width: 0;
    padding: 7px 10px;
    display: inline-flex;
  }

  .hall-header .hall-edit-entry span {
    display: inline;
  }
}

*, :before, :after {
  box-sizing: border-box;
}

html, body {
  overscroll-behavior: none;
  background: #0b0f0f;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
}

:root {
  --cs-bg: #07111d;
  --cs-panel: #0d1b29;
  --cs-panel-raised: #13283a;
  --cs-text: #e8f0f5;
  --cs-muted: #9baeba;
  --cs-primary: #4e94bb;
  --cs-primary-bright: #78d0e6;
  --cs-border: #315b76;
  --cs-info: #70c7e2;
  --cs-success: #74b996;
  --cs-danger: #cf6e62;
  --cs-amber: var(--cs-primary);
  --cs-amber-bright: var(--cs-primary-bright);
  --cs-copper: var(--cs-border);
}

.game-shell, .gameplay-surface, .storage-screen, .mining-status-screen {
  background-color: #0b0f0f;
  background-image: linear-gradient(#03050538, #0305054d 58%, #03050561), url("/images/cryptoshelter-metal-wall.jpg");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  max-width: 100%;
}

.game-shell, .gameplay-surface {
  isolation: isolate;
  position: relative;
}

.game-shell:before, .gameplay-surface:before {
  display: none;
}

.player-hud {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: stretch;
  gap: 6px;
  width: min(100%, 360px);
  min-width: 0;
  display: grid;
}

.player-hud button {
  border-color: var(--cs-border);
  min-height: 42px;
  color: var(--cs-text);
  background: linear-gradient(145deg, #142c40, var(--cs-panel));
  box-shadow: inset 0 0 0 1px #78d0e60a;
}

.player-hud__balance {
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  border-left-color: var(--cs-primary) !important;
}

.player-hud__balance strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.player-hud__balance small, .hall-header .section-label, .eyebrow {
  color: var(--cs-info) !important;
}

.player-hud .gameplay-icon, .gameplay-nav .gameplay-icon {
  color: var(--cs-info);
}

.gameplay-nav .gameplay-nav__active {
  color: var(--cs-text);
  background: linear-gradient(145deg, #1b4661, var(--cs-panel-raised));
  box-shadow: inset 0 0 0 1px var(--cs-primary),
    0 0 18px #70c7e21c;
}

.gameplay-menu, .player-menu {
  border-color: var(--cs-border);
  color: var(--cs-text);
  background: linear-gradient(150deg, #132b3f, var(--cs-bg) 74%);
}

.gameplay-menu header, .player-menu header {
  border-color: #294a60;
}

.gameplay-menu .sheet-close, .player-menu .sheet-close, .gameplay-menu__list > button {
  color: var(--cs-text);
  background: linear-gradient(145deg, #12283a, var(--cs-panel));
  border-color: #315b76;
}

.gameplay-menu__list .gameplay-icon, .gameplay-menu__list b, .gameplay-menu__list small {
  color: var(--cs-info);
}

.hall-card, .hall-header, .gameplay-state, .gameplay-empty, .gameplay-info, .gameplay-hero, .offer-card, .storage-panel, .storage-card {
  background: linear-gradient(145deg, #102333, var(--cs-panel));
  border-color: #315b76;
}

.quiet-button, .storage-screen__back, .energy-indicator {
  border-color: var(--cs-border) !important;
  color: var(--cs-text) !important;
  background: linear-gradient(145deg, #17334a, #0d1c2a) !important;
}

.league-status-card {
  border-color: var(--cs-border);
  border-left-color: var(--cs-primary);
  background: linear-gradient(100deg, #102b40, var(--cs-panel));
}

.league-status-card__badge {
  border-color: var(--cs-primary);
  color: var(--cs-primary-bright);
  background: #0b1926;
}

.league-status-card__progress i {
  background: linear-gradient(90deg,
    var(--cs-primary),
    var(--cs-primary-bright));
}

.task-wall-screen {
  flex-direction: column;
  min-height: 100svh;
  display: flex;
}

.task-wall__plus {
  border: 1px solid var(--cs-border);
  width: 38px;
  min-width: 38px;
  height: 38px;
  color: var(--cs-primary-bright);
  background: #102638;
  border-radius: 9px;
  place-items: center;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  display: grid;
}

.task-wall {
  flex-direction: column;
  flex: auto;
  gap: 12px;
  width: min(100%, 520px);
  min-height: 0;
  margin-inline: auto;
  display: flex;
}

.task-wall__tabs {
  background: #07131d;
  border: 1px solid #294a60;
  border-radius: 11px;
  flex: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  display: grid;
}

.task-wall__tabs button {
  color: #8196a3;
  background: none;
  border: 0;
  border-radius: 8px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.task-wall__tabs button[aria-selected="true"] {
  color: #eaf8ff;
  background: #15354b;
  box-shadow: inset 0 0 0 1px #4c94ba;
}

.task-wall__tabs button:focus-visible {
  outline: 2px solid var(--cs-primary-bright);
  outline-offset: 1px;
}

.task-wall__notice {
  color: #b9d8e8;
  background: #102738;
  border: 1px solid #375b70;
  border-radius: 10px;
  margin: 0;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 16px;
}

.task-wall__list, .task-wall__skeletons {
  gap: 10px;
  display: grid;
}

.task-wall__card, .task-wall__skeleton {
  background: linear-gradient(145deg, #102638, #0b1823);
  border: 1px solid #315b76;
  border-radius: 16px;
  width: 100%;
  min-height: 132px;
  padding: 14px;
  box-shadow: 0 8px 20px #0005;
}

.task-wall__card {
  gap: 12px;
  display: grid;
}

.task-wall__card-top {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: grid;
}

.task-wall__telegram {
  color: #dff7ff;
  background: #1787bd;
  border: 1px solid #4f9bc2;
  border-radius: 50%;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
  box-shadow: 0 0 15px #38b9ef22;
}

.task-wall__telegram svg {
  fill: currentColor;
  width: 23px;
  height: 23px;
}

.task-wall__channel {
  min-width: 0;
}

.task-wall__channel h2 {
  color: #f1f7fa;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  overflow: hidden;
}

.task-wall__channel p {
  color: #8499a5;
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 15px;
}

.task-wall__reward {
  border: 1px solid color-mix(in srgb, var(--cs-amber) 72%, #74501f);
  min-width: 58px;
  color: var(--cs-amber-bright);
  text-align: center;
  white-space: nowrap;
  background: #362819;
  border-radius: 8px;
  flex: none;
  padding: 5px 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.task-wall__primary, .task-wall__secondary, .task-wall__empty button {
  letter-spacing: .045em;
  cursor: pointer;
  border-radius: 10px;
  place-items: center;
  width: 100%;
  font-weight: 800;
  display: grid;
}

.task-wall__primary {
  color: #f5fbff;
  background: linear-gradient(#1b78a0, #12516e);
  border: 1px solid #6ad6f3;
  border-radius: 12px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  box-shadow: inset 0 0 0 1px #b4efff18;
}

a.task-wall__primary {
  text-decoration: none;
}

.task-wall__secondary {
  color: #bddfed;
  background: #102433;
  border: 1px solid #3f7591;
  min-height: 38px;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
}

.task-wall__primary:disabled, .task-wall__secondary:disabled {
  cursor: wait;
  opacity: .66;
}

.task-wall__primary:focus-visible, .task-wall__secondary:focus-visible, .task-wall__empty button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #9beaff;
}

.task-wall__status {
  gap: 6px;
  min-height: 58px;
  display: grid;
}

.task-wall__status > span {
  color: #75c7e8;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.task-wall__status > strong {
  color: #edf8fc;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.task-wall__card--attempting .task-wall__status > strong {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
}

.task-wall__status p {
  color: #8da3ae;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: 12px;
  line-height: 17px;
  display: -webkit-box;
  overflow: hidden;
}

.task-wall__status--success > span, .task-wall__status--success > strong {
  color: #72dfb4;
}

.task-wall__status--failed > span {
  color: #dcae7b;
}

.task-wall__status--failed > small {
  color: #8499a5;
  font-size: 11px;
  line-height: 16px;
}

.task-wall__progress {
  background: #071017;
  border-radius: 999px;
  width: 100%;
  height: 5px;
  overflow: hidden;
}

.task-wall__progress i {
  border-radius: inherit;
  background: linear-gradient(90deg, #2e91bd, #73d8ee);
  height: 100%;
  display: block;
}

.task-wall__empty {
  border: 1px solid var(--cs-border);
  width: 100%;
  min-height: 132px;
  color: var(--cs-text);
  text-align: center;
  background: linear-gradient(145deg, #102638, #0b1823);
  border-radius: 16px;
  place-content: center;
  gap: 7px;
  padding: 18px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.task-wall__empty strong {
  font-size: 16px;
  line-height: 20px;
}

.task-wall__empty p {
  color: var(--cs-muted);
  margin: 0;
  font-size: 12px;
  line-height: 17px;
}

.task-wall__empty button {
  color: #eaf8ff;
  background: #14384e;
  border: 1px solid #559fc3;
  min-height: 38px;
  margin-top: 4px;
  padding: 6px 20px;
}

.task-wall__skeleton {
  grid-template-rows: 17px 13px 44px;
  grid-template-columns: 36px minmax(0, 1fr) 54px;
  gap: 6px 10px;
  display: grid;
}

.task-wall__skeleton i, .task-wall__skeleton span, .task-wall__skeleton b {
  background: linear-gradient(100deg, #142a38 20%, #1d3b4c 42%, #142a38 64%) 0 0 / 220% 100%;
  border-radius: 7px;
  animation: 1.5s ease-in-out infinite task-wall-shimmer;
  display: block;
}

.task-wall__skeleton i {
  border-radius: 50%;
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
}

.task-wall__skeleton span:first-of-type {
  width: min(70%, 180px);
}

.task-wall__skeleton span:last-of-type {
  width: 92px;
}

.task-wall__skeleton b {
  grid-column: 1 / -1;
  align-self: end;
  height: 44px;
}

@keyframes task-wall-shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-wall__skeleton i, .task-wall__skeleton span, .task-wall__skeleton b {
    animation: none;
  }
}

.task-wall {
  gap: 6px;
}

.task-wall__tabs {
  border-radius: 7px;
  min-height: 30px;
}

.task-wall__tabs button {
  border-radius: 5px;
  min-height: 28px;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 14px;
}

.task-wall__list, .task-wall__skeletons {
  gap: 1px;
}

.task-wall__card, .task-wall__skeleton {
  height: 28px;
  min-height: 28px;
  box-shadow: none;
  background: #0b1c29;
  border-color: #294b60;
  border-radius: 4px;
  padding: 3px 6px;
}

.task-wall__card {
  grid-template-columns: 20px minmax(0, 1fr) 50px 58px;
  align-items: center;
  gap: 6px;
  display: grid;
}

.task-wall__telegram {
  color: #32aee8;
  width: 20px;
  height: 20px;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 3px;
}

.task-wall__telegram svg {
  width: 18px;
  height: 18px;
}

.task-wall__channel h2 {
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
}

.task-wall__reward {
  min-width: 0;
  color: var(--cs-amber-bright);
  text-align: right;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 11px;
  line-height: 14px;
}

.task-wall__row-action {
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.task-wall__row-action .task-wall__primary, .task-wall__row-action .task-wall__secondary {
  width: 56px;
  min-width: 56px;
  height: 23px;
  min-height: 23px;
  box-shadow: none;
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 10px;
  line-height: 12px;
}

.task-wall__row-action a.task-wall__primary {
  display: grid;
}

.task-wall__compact-status {
  color: #91a7b2;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 58px;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  display: block;
  overflow: hidden;
}

.task-wall__compact-status--delayed {
  color: #d5b277;
}

.task-wall__status--success {
  color: #72dfb4;
}

.task-wall__skeleton {
  grid-template-columns: 20px minmax(0, 1fr) 50px 58px;
  gap: 6px;
  display: grid;
}

.task-wall__skeleton i {
  border-radius: 3px;
  width: 20px;
  height: 20px;
}

.task-wall__skeleton span:first-of-type {
  width: 70%;
  height: 14px;
}

.task-wall__skeleton span:last-of-type {
  width: 42px;
  height: 12px;
}

.task-wall__skeleton b {
  grid-column: 4;
  align-self: center;
  width: 56px;
  height: 23px;
}

.task-create, .my-tasks {
  gap: 14px;
  display: grid;
}

.task-create {
  background: linear-gradient(145deg, #102638, #0b1823);
  border: 1px solid #315b76;
  border-radius: 16px;
  padding: 14px;
}

.task-create > label {
  gap: 6px;
  display: grid;
}

.task-create > label > span, .task-create__funding legend, .task-create__calculator span, .task-create__funding div span {
  color: #86a0ad;
  letter-spacing: .07em;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.task-create input[type="text"], .task-create > label > input {
  box-sizing: border-box;
  color: #f0f8fb;
  background: #071522;
  border: 1px solid #315b76;
  border-radius: 10px;
  outline: 0;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 20px;
}

.task-create input:focus {
  border-color: #62badf;
  box-shadow: 0 0 0 2px #62badf22;
}

.task-create input[aria-invalid="true"] {
  border-color: #b96767;
}

.task-create label small[role="alert"], .task-create__funding small[role="alert"] {
  color: #ef9696;
  font-size: 12px;
  line-height: 17px;
}

.task-owner__success {
  color: #72dfb4;
  font-size: 12px;
}

.task-create__warning {
  background: #2a2217;
  border: 1px solid #7a6038;
  border-radius: 11px;
  gap: 6px;
  padding: 11px 12px;
  display: grid;
}

.task-create__warning strong {
  color: #e5c47a;
  letter-spacing: .08em;
  font-size: 11px;
}

.task-create__warning p {
  color: #c8bca1;
  margin: 0;
  font-size: 12px;
  line-height: 17px;
}

.task-create__calculator {
  background: #071522;
  border: 1px solid #294d66;
  border-radius: 12px;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.task-create__calculator > div {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.task-create__calculator strong {
  color: #eaf4f8;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.task-create__calculator .task-create__total {
  border-top: 1px solid #294d66;
  padding-top: 9px;
}

.task-create__calculator .task-create__total strong {
  overflow-wrap: anywhere;
  color: var(--cs-amber-bright);
  font-size: 22px;
  line-height: 26px;
}

.task-create__funding {
  border: 1px solid #294d66;
  border-radius: 12px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 11px 12px;
  display: grid;
}

.task-create__funding legend {
  padding-inline: 5px;
}

.task-create__funding label {
  color: #b7c9d2;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  display: flex;
}

.task-create__funding div {
  border-top: 1px solid #294d66;
  grid-column: 1 / -1;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 7px;
  display: flex;
}

.task-create__funding div strong {
  color: var(--cs-amber-bright);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}

.task-create__funding small, .task-create__funding button {
  grid-column: 1 / -1;
}

.my-tasks__list {
  gap: 10px;
  display: grid;
}

.owned-campaign {
  background: linear-gradient(145deg, #102638, #0b1823);
  border: 1px solid #315b76;
  border-radius: 16px;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.owned-campaign > header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.owned-campaign > header div {
  min-width: 0;
}

.owned-campaign h2 {
  color: #eff8fb;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 20px;
  overflow: hidden;
}

.owned-campaign header span {
  color: #77cae9;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 700;
}

.owned-campaign header > strong {
  color: #d9edf5;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}

.owned-campaign > p {
  color: #9fb4be;
  margin: 0;
  font-size: 12px;
}

.owned-campaign > p strong {
  color: #e9f5f9;
}

.owned-campaign dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  display: grid;
}

.owned-campaign dl div {
  background: #081722;
  border: 1px solid #253f51;
  border-radius: 8px;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  display: grid;
}

.owned-campaign dt {
  color: #78909c;
  letter-spacing: .07em;
  font-size: 9px;
}

.owned-campaign dd {
  color: #e5f1f5;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

.owned-campaign__warning {
  background: #261c16;
  border: 1px solid #76563c;
  border-radius: 10px;
  gap: 7px;
  padding: 10px;
  display: grid;
}

.owned-campaign__warning > strong, .owned-campaign__warning p {
  color: #e4b789;
  margin: 0;
  font-size: 11px;
  line-height: 16px;
}

@media (max-width: 720px) {
  .game-shell {
    padding-inline: 14px;
  }

  .topbar {
    width: 100%;
    max-width: 100%;
  }

  .player-hud {
    margin-left: auto;
  }

  .gameplay-nav {
    box-sizing: border-box;
    border-color: var(--cs-border);
    background: #07111df7;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    max-width: 100%;
    left: 0;
    right: 0;
    overflow: clip;
  }

  .gameplay-nav button {
    min-width: 0;
  }

  .league-status-card, .hall-discovery {
    width: 100%;
    max-width: 100%;
  }

  .hall-card, .hall-scene, .hall-header .hall-controls {
    max-width: 100%;
  }

  .task-wall-screen {
    padding-inline: 14px;
  }
}

.player-hud {
  grid-template-columns: 36px minmax(0, max-content) 1fr;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: none;
}

.player-hud button {
  min-height: 36px;
}

.player-hud__wallet, .player-hud__avatar {
  width: 36px;
  height: 36px;
}

.player-hud__wallet span {
  display: none;
}

.player-hud__wallet .gameplay-icon {
  width: 19px;
  height: 19px;
}

.player-hud__balance {
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: min(39vw, 166px);
  min-height: 36px;
  padding: 6px 8px;
  display: inline-flex;
  overflow: hidden;
}

.player-hud__balance strong {
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1;
  overflow: hidden;
}

.player-hud__balance small {
  flex: none;
  font-size: .66rem;
  line-height: 1;
}

.player-hud__avatar {
  justify-self: end;
}

.hall-discovery__card {
  height: clamp(88px, 24vw, 104px);
  min-height: 88px;
  padding: 15px 16px;
}

.hall-discovery__card small {
  font-size: 7px;
}

.hall-discovery__card strong {
  font-size: 12px;
}

.hall-discovery__card em {
  font-size: 9px;
}

.mining-hall-viewport {
  position: relative;
}

.mining-hall-viewport__edit {
  z-index: 9;
  color: #eef7ff;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  letter-spacing: 1px;
  background-color: #123a52;
  background-image: repeating-linear-gradient(135deg, #72d5ed1a 0 1px, #0000 1px 6px);
  border: 1px solid #72d5ed;
  border-radius: 8px;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
  position: absolute;
  top: 23px;
  left: 22px;
  box-shadow: 0 3px 12px #0008, inset 0 0 0 1px #78d0e612;
}

.mining-hall-viewport__tools-icon {
  fill: none;
  stroke: #78d0e6;
  stroke-width: 1.7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 17px;
  height: 17px;
}

.mining-hall-viewport__edit:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #78d0e6;
}

@media (max-width: 420px) {
  .player-hud__balance {
    max-width: 44vw;
  }

  .player-hud__balance strong {
    font-size: 1rem;
  }

  .hall-discovery {
    gap: 7px;
  }

  .mining-hall-viewport__edit {
    top: 23px;
    left: 19px;
  }
}

.player-audio-unlock {
  z-index: 2400;
  min-height: 100svh;
  padding: max(24px,
      var(--cs-hud-top, var(--cs-safe-top, env(safe-area-inset-top))))
    max(20px, var(--cs-safe-right, env(safe-area-inset-right)))
    max(24px, var(--cs-safe-bottom, env(safe-area-inset-bottom)))
    max(20px, var(--cs-safe-left, env(safe-area-inset-left)));
  isolation: isolate;
  color: #dce8ed;
  background: #02070b;
  place-items: center;
  display: grid;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.player-audio-unlock:before, .player-audio-unlock:after {
  z-index: -2;
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -2%;
}

.player-audio-unlock:before {
  filter: saturate(.78) brightness(.58) contrast(1.08);
  background: linear-gradient(#01050838, #010508b3), url("/game/optimized/rooms/mining-hall-i-realistic-lived-in-v2.webp") 50% 16% / cover no-repeat;
  animation: 14s ease-in-out infinite alternate player-audio-entry-drift;
  transform: scale(1.025);
}

.player-audio-unlock:after {
  z-index: -1;
  background: linear-gradient(#02070b3d, #0000 30%), radial-gradient(circle at 50% 42%, #209bb91f, #0000 32%), linear-gradient(#0000 48%, #010508c7 100%), repeating-linear-gradient(#a2e2ec05 0 1px, #0000 1px 4px);
  inset: 0;
  box-shadow: inset 0 0 120px #000c;
}

.player-audio-unlock__content {
  text-align: center;
  text-shadow: 0 2px 8px #000;
  justify-items: center;
  gap: 14px;
  width: min(100%, 460px);
  display: grid;
}

.player-audio-unlock__protocol {
  color: #91b8c3;
  letter-spacing: .13em;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 12px;
  width: min(100%, 360px);
  margin: 0;
  font: 700 .62rem / 1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  display: grid;
}

.player-audio-unlock__protocol span {
  background: linear-gradient(90deg, #0000, #43c3dba8);
  height: 1px;
}

.player-audio-unlock__protocol span:last-child {
  background: linear-gradient(90deg, #43c3dba8, #0000);
}

.player-audio-unlock__emblem {
  aspect-ratio: 1;
  isolation: isolate;
  place-items: center;
  width: clamp(116px, 32vw, 168px);
  display: grid;
  position: relative;
}

.player-audio-unlock__emblem:before, .player-audio-unlock__emblem:after {
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  position: absolute;
}

.player-audio-unlock__emblem:before {
  filter: blur(22px);
  background: #19afd133;
  animation: 3.8s ease-in-out infinite player-audio-entry-pulse;
  inset: 8%;
}

.player-audio-unlock__emblem:after {
  border: 1px solid #56d2e633;
  inset: -4%;
  box-shadow: inset 0 0 18px #30bad714;
}

.player-audio-unlock__emblem img {
  filter: drop-shadow(0 0 14px #25c5e157);
  width: 100%;
  height: auto;
  display: block;
}

.player-audio-unlock__title h1, .player-audio-unlock__title p, .player-audio-unlock__note {
  margin: 0;
}

.player-audio-unlock__title {
  gap: 7px;
  display: grid;
}

.player-audio-unlock__title h1 {
  color: #e7f1f4;
  letter-spacing: .14em;
  text-indent: .14em;
  font: 900 clamp(1.62rem, 7vw, 2.3rem) / 1 Arial Narrow, Roboto Condensed, sans-serif;
}

.player-audio-unlock__title p {
  color: #aac2ca;
  letter-spacing: .08em;
  font: 700 clamp(.7rem, 2.8vw, .82rem) / 1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.player-audio-unlock__status {
  background: linear-gradient(90deg, #0000, #04131cbd, #0000);
  border-block: 1px solid #3d8d9e5c;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: min(100%, 330px);
  min-height: 48px;
  padding: 9px 14px;
  display: flex;
}

.player-audio-unlock__status i {
  background: #55c178;
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
  animation: 2.4s ease-in-out infinite player-audio-entry-status;
  box-shadow: 0 0 10px #55c178b8;
}

.player-audio-unlock__status span {
  text-align: left;
  justify-items: start;
  gap: 2px;
  display: grid;
}

.player-audio-unlock__status strong {
  color: #cde1e6;
  letter-spacing: .1em;
  font: 800 .67rem / 1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.player-audio-unlock__status small {
  color: #829ba5;
  font-size: .65rem;
}

.player-audio-unlock__action {
  color: #fff2cc;
  cursor: pointer;
  touch-action: manipulation;
  background: linear-gradient(#edc14f21, #79480d29), #15140f;
  border: 1px solid #edc14fd1;
  border-radius: 0;
  align-content: center;
  gap: 3px;
  width: min(100%, 330px);
  min-height: 68px;
  padding: 12px 22px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px #000a, inset 0 1px #fff0be21, inset 0 0 22px #edc14f0f;
}

.player-audio-unlock__action:after {
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #0000, #ffe9a829, #0000);
  width: 28%;
  animation: 4.8s ease-in-out infinite player-audio-entry-scan;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -42%;
  transform: skewX(-18deg);
}

.player-audio-unlock__action:hover {
  background-color: #221d11;
  border-color: #edc14f;
}

.player-audio-unlock__action:active {
  filter: brightness(.86);
  box-shadow: 0 8px 20px #000a, inset 0 0 24px #edc14f1f;
}

.player-audio-unlock__action:focus-visible {
  outline-offset: 4px;
  outline: 2px solid #edc14f;
}

.player-audio-unlock__action small {
  color: #bda869;
  letter-spacing: .14em;
  font: 700 .58rem / 1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.player-audio-unlock__action strong {
  letter-spacing: .09em;
  font: 900 .92rem / 1.2 Arial Narrow, Roboto Condensed, sans-serif;
}

.player-audio-unlock__note {
  color: #738d97;
  letter-spacing: .07em;
  font: 700 .6rem / 1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

@keyframes player-audio-entry-drift {
  from {
    transform: scale(1.025) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.055) translate3d(0, -.7%, 0);
  }
}

@keyframes player-audio-entry-pulse {
  0%, 100% {
    opacity: .42;
    transform: scale(.9);
  }

  50% {
    opacity: .78;
    transform: scale(1.08);
  }
}

@keyframes player-audio-entry-status {
  0%, 100% {
    opacity: .62;
  }

  50% {
    opacity: 1;
  }
}

@keyframes player-audio-entry-scan {
  0%, 72% {
    left: -42%;
  }

  100% {
    left: 116%;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .player-audio-unlock {
    padding-block: max(12px, var(--cs-safe-top, env(safe-area-inset-top)))
      max(12px, var(--cs-safe-bottom, env(safe-area-inset-bottom)));
  }

  .player-audio-unlock__content {
    grid-template-columns: minmax(105px, .42fr) minmax(260px, 1fr);
    grid-template-areas: "protocol protocol"
                         "emblem title"
                         "emblem status"
                         "emblem action"
                         "note note";
    gap: 7px 24px;
    width: min(100%, 700px);
  }

  .player-audio-unlock__protocol {
    grid-area: protocol;
  }

  .player-audio-unlock__emblem {
    grid-area: emblem;
    align-self: center;
    width: clamp(92px, 24vh, 126px);
  }

  .player-audio-unlock__title {
    text-align: left;
    grid-area: title;
    justify-self: stretch;
  }

  .player-audio-unlock__title h1 {
    font-size: clamp(1.35rem, 6vh, 1.9rem);
  }

  .player-audio-unlock__status {
    grid-area: status;
    justify-self: stretch;
    width: 100%;
  }

  .player-audio-unlock__action {
    grid-area: action;
    justify-self: stretch;
    width: 100%;
    min-height: 58px;
  }

  .player-audio-unlock__note {
    grid-area: note;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-audio-unlock:before, .player-audio-unlock__emblem:before, .player-audio-unlock__status i, .player-audio-unlock__action:after {
    animation: none;
  }
}

.league-status-card--placeholder {
  cursor: default;
  pointer-events: none;
}

.league-status-card__placeholder-block {
  opacity: .38;
}

.league-status-card__placeholder-line {
  color: #0000;
  background: linear-gradient(90deg, #315b7655, #78d0e633);
  border-radius: 3px;
  width: 72%;
  height: 12px;
  display: block;
}

.league-status-card__placeholder-line--short {
  width: 48%;
  height: 8px;
  margin-top: 3px;
}

.league-status-card--placeholder .league-status-card__progress i {
  opacity: .5;
  width: 38%;
}

.game-shell {
  padding-top: 12px;
}

.game-shell > .topbar, .game-shell > .league-status-card {
  margin-bottom: 6px;
}

.game-shell > .hall-discovery {
  gap: 8px;
  margin-bottom: 6px;
}

.mining-hall-viewport__tools-icon {
  stroke-width: 1.9px;
  width: 22px;
  height: 22px;
}

.mining-hall-viewport__edit {
  letter-spacing: 1px;
  justify-content: center;
  min-width: 40px;
  min-height: 28px;
  padding: 3px 7px;
}

@media (max-width: 500px) {
  .game-shell {
    padding-top: 8px;
  }
}

.player-hud__avatar {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
}

.player-hud__avatar > img {
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  display: block;
}

.rack-sheet__intro {
  color: #b8c9c0;
  margin: 10px 0 0;
  line-height: 1.5;
}

.rack-inspection-miners {
  gap: 8px;
  margin-top: 18px;
  display: grid;
}

.rack-inspection-miner {
  color: #e4eee9;
  text-align: left;
  background: #0a1714;
  border: 1px solid #2d463f;
  border-radius: 10px;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 112px;
  padding: 7px;
  display: grid;
}

.rack-inspection-miner .rack-inspection-miner__art {
  object-fit: contain;
  width: 100%;
  max-width: 240px;
  height: 128px;
}

.rack-inspection-miner strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.rack-inspection-miner--empty {
  color: #a8bbb2;
  grid-template-columns: 1fr;
  place-items: center;
}

.rack-management-backdrop {
  z-index: 30;
  padding: clamp(190px, 38vh, 360px) 12px
    calc(80px + env(safe-area-inset-bottom));
  justify-content: center;
  align-items: flex-start;
  display: flex;
}

.rack-sheet.rack-management {
  width: min(84vw, 520px);
  max-height: calc(100dvh - 112px - env(safe-area-inset-bottom));
  overscroll-behavior: none;
  padding: 10px 12px 4px;
  overflow-y: auto;
}

.rack-management > .eyebrow {
  align-items: center;
  min-height: 16px;
  margin: 0;
  padding-right: 44px;
  font-size: 10px;
  display: flex;
  position: relative;
  top: -3px;
}

.rack-management > .sheet-close {
  box-sizing: border-box;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 12px;
  line-height: 1;
  display: grid;
  top: 2px;
  right: 12px;
}

.rack-management__header {
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin: 30px 0 8px;
  padding-right: 0;
  display: flex;
}

.rack-management__header h2 {
  margin: 0;
  font-size: 18px;
}

.rack-management__header > div:first-child {
  position: relative;
  top: -12px;
}

.rack-management__header small {
  margin-top: 4px;
  display: block;
}

.rack-management__actions {
  align-items: center;
  gap: 4px;
  display: flex;
}

.rack-management .rack-management__icon {
  border: 1px solid var(--cs-blue-border, #315b76);
  width: 44px;
  min-width: 44px;
  height: 44px;
  color: var(--cs-steel, #dceee6);
  cursor: pointer;
  box-sizing: border-box;
  background: none;
  border-radius: 8px;
  place-items: center;
  padding: 8px;
  display: grid;
}

.rack-management__icon svg {
  width: 22px;
  height: 22px;
}

.rack-management__icon:disabled, .rack-management__icon[aria-disabled="true"] {
  opacity: .45;
  cursor: default;
}

.rack-management__icon:focus-visible {
  outline: 2px solid var(--cs-cyan, #70caff);
  outline-offset: 2px;
}

.rack-management__positions {
  gap: 2px;
  display: grid;
}

.rack-management__position {
  border: 1px solid var(--cs-blue-border, #315b76);
  background: #111416;
  border-radius: 10px;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: start;
  gap: 4px;
  min-height: 92px;
  padding: 8px 52px 8px 8px;
  display: grid;
  position: relative;
}

.rack-management__miner {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.rack-management__miner .equipment-visual {
  object-fit: contain;
  width: 100%;
  max-width: 160px;
  height: 72px;
}

.rack-management__miner strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  display: block;
}

.rack-management__miner small {
  margin-top: 3px;
  font-size: 12px;
  display: block;
}

.rack-management__empty {
  grid-column: 1 / -1;
  align-self: center;
  padding: 0;
}

.rack-management__choices small {
  display: block;
}

.rack-sheet.rack-management .rack-management__position {
  background-color: #0d0d0d;
  background-image: linear-gradient(#ffffff09 1px, #0000 1px), linear-gradient(90deg, #ffffff09 1px, #0000 1px);
  background-size: 14px 14px;
  border-color: #343434;
  grid-template-rows: 44px 44px;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 4px 8px;
  min-height: 0;
  padding: 6px;
}

.rack-management__position > .rack-management__actions {
  grid-area: 1 / 2;
  position: static;
}

.rack-management__position > .rack-management__select {
  grid-area: 2 / 2;
  position: static;
}

.rack-management__miner {
  grid-area: 1 / 1 / span 2;
  grid-template-columns: clamp(72px, 22vw, 112px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding-top: 0;
}

.rack-management__miner .equipment-visual {
  object-fit: contain;
  justify-self: center;
  width: 100%;
  max-width: 112px;
  height: 80px;
}

.rack-management__info {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.4;
}

.rack-management__confirmation {
  background: #171717;
  border: 1px solid #555;
  border-radius: 10px;
  margin-top: 12px;
  padding: 14px;
}

.rack-management__confirmation h3 {
  margin: 0 0 8px;
}

.rack-management__confirmation p {
  line-height: 1.4;
}

.rack-management__confirmation > div {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.rack-management__confirmation button {
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 12px;
}

.rack-management__confirmation .rack-management__cancel {
  background: #252525;
  border: 1px solid #555;
}

.rack-management__confirmation .rack-management__destructive {
  background: #9e2828;
  border: 1px solid #d95b5b;
}

.rack-management__info > strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.rack-management__stats {
  color: #cda85f;
  flex-wrap: wrap;
  gap: 3px 7px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  display: flex;
}

.rack-management__stats > span {
  white-space: nowrap;
  align-items: center;
  gap: 3px;
  display: inline-flex;
}

.rack-management__stats svg {
  fill: currentColor;
  flex: none;
  width: 13px;
  height: 13px;
}

:root {
  --cs-safe-top: max(var(--tg-safe-area-inset-top, 0px),
    var(--tg-content-safe-area-inset-top, 0px),
    env(safe-area-inset-top, 0px));
  --cs-safe-right: max(var(--tg-safe-area-inset-right, 0px),
    var(--tg-content-safe-area-inset-right, 0px),
    env(safe-area-inset-right, 0px));
  --cs-safe-bottom: max(var(--tg-safe-area-inset-bottom, 0px),
    var(--tg-content-safe-area-inset-bottom, 0px),
    env(safe-area-inset-bottom, 0px));
  --cs-safe-left: max(var(--tg-safe-area-inset-left, 0px),
    var(--tg-content-safe-area-inset-left, 0px),
    env(safe-area-inset-left, 0px));
  --cs-hud-extra-top: 24px;
  --cs-hud-extra-right: 12px;
  --cs-hud-extra-bottom: 12px;
  --cs-hud-extra-left: 12px;
  --cs-hud-top: calc(var(--cs-safe-top) + var(--cs-hud-extra-top));
  --cs-hud-right: calc(var(--cs-safe-right) + var(--cs-hud-extra-right));
  --cs-hud-bottom: calc(var(--cs-safe-bottom) + var(--cs-hud-extra-bottom));
  --cs-hud-left: calc(var(--cs-safe-left) + var(--cs-hud-extra-left));
  --cs-viewport-stable-height: 100svh;
}

.wallet-home {
  -webkit-backdrop-filter: blur(6px);
  background: #04121d85;
  border: 1px solid #315b76;
  border-radius: 18px;
  box-shadow: inset 0 1px #dceeff0d, 0 12px 28px #0006;
}

.wallet-balance-list {
  border-bottom: 0;
  gap: 8px;
  padding: 0;
}

.wallet-balance-list .wallet-balance-item {
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: minmax(0, 2fr) minmax(92px, 1fr);
  column-gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: grid;
}

.wallet-balance-list .wallet-balance-item + .wallet-balance-item {
  border-top: 0;
}

.wallet-balance-list .wallet-balance-item__identity {
  background: #071926;
  border: 1px solid #4984a647;
  border-radius: 11px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 12px;
  display: flex;
}

.wallet-balance-list .wallet-balance-item__identity > div {
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.wallet-balance-list .wallet-balance-item__identity small {
  color: #d6b75c;
}

.wallet-balance-list .wallet-balance-item__amount {
  background: #123042;
  border: 1px solid #5ba3c761;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 7px 10px;
  display: flex;
}

.wallet-balance-list .wallet-balance-item__balance {
  text-align: center;
  white-space: nowrap;
  min-width: 0;
}

.wallet-withdraw-card {
  border-top: 0;
  padding-top: 16px;
}

.wallet-withdraw-card > .wallet-primary-action {
  width: 50%;
  min-width: 132px;
  max-width: 240px;
  margin-inline: auto;
}

.wallet-deposit {
  border-top: 1px solid #315b76;
  gap: 9px;
  padding-top: 15px;
  display: grid;
}

.wallet-deposit__heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.wallet-deposit__heading h2 {
  color: var(--cs-steel);
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}

.wallet-deposit__status {
  color: var(--cs-steel-muted);
  border: 1px solid #52758b;
  border-radius: 6px;
  padding: 4px 7px;
  font: 700 10px ui-monospace, monospace;
}

.wallet-deposit__rate {
  color: var(--cs-steel-muted);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  display: flex;
}

.wallet-deposit__rate span {
  color: #8099a8;
}

.wallet-deposit__control {
  min-height: 48px;
  color: var(--cs-steel-muted);
  background: #071522;
  border: 1px solid #315b76;
  border-radius: 9px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  font-size: 12px;
  display: grid;
}

.wallet-deposit__input-wrap {
  background: #0b2030;
  border: 1px solid #294d66;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  display: flex;
}

.wallet-deposit__input-wrap input {
  color: #f1f7fa;
  appearance: none;
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  padding: 0;
  font: 700 16px / 1.1 ui-monospace, monospace;
}

.wallet-deposit__input-wrap input:focus {
  box-shadow: none;
}

.wallet-deposit__input-wrap input:disabled {
  opacity: .8;
}

.wallet-deposit__input-wrap span {
  color: #8fa8b6;
  flex: none;
  font: 700 11px / 1 ui-monospace, monospace;
}

.wallet-usdt-unit, .wallet-usdt-amount {
  align-items: center;
  gap: 5px;
  min-width: 0;
  display: inline-flex;
}

.wallet-usdt-mark {
  object-fit: contain;
  flex: none;
  width: 18px;
  height: 18px;
}

.wallet-network-badge {
  box-sizing: border-box;
  color: #9adce8;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #071923;
  border: 1px solid #3f7181;
  justify-content: center;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  font: 800 10px / 1 Arial Narrow, Roboto Condensed, sans-serif;
  display: inline-flex;
}

.wallet-settlement-rate {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.wallet-withdraw-guidance small {
  color: #738e98;
  font-size: 11px;
  line-height: 1.35;
}

.wallet-deposit__arrow {
  color: #5eb8d7;
  font-size: 18px;
  font-weight: 500;
}

.wallet-deposit__result {
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.wallet-deposit__result strong {
  max-width: 100%;
  color: var(--cs-cyan);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 clamp(14px, 4.2vw, 18px) / 1.05 ui-monospace, monospace;
  overflow: hidden;
}

.wallet-balance-item__balance em {
  display: none;
}

.wallet-deposit .wallet-primary-action {
  width: 50%;
  min-width: 132px;
  max-width: 240px;
  margin-inline: auto;
}

.wallet-deposit__message {
  color: #b8c9d1;
  text-align: center;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}

.wallet-deposit__message--muted {
  color: #8199a8;
}

.stars-support-link {
  color: #bfe7ed;
  letter-spacing: .04em;
  text-underline-offset: 3px;
  justify-content: center;
  justify-self: center;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
}

.wallet-deposit__amount-label {
  color: var(--cs-steel-muted);
  gap: 5px;
  font-size: 12px;
  display: grid;
}

.wallet-deposit__control, .wallet-deposit__input-wrap, .wallet-deposit__input-wrap input {
  box-sizing: border-box;
}

.wallet-deposit__input-wrap:focus-within {
  border-color: #5eb8d7;
}

.wallet-conversion-input {
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  gap: 9px;
  min-height: 48px;
  padding: 5px 10px;
}

.wallet-conversion-input__amount {
  box-sizing: border-box;
  background: #0b2030;
  border: 1px solid #294d66;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  display: flex;
}

.wallet-conversion-input__amount:focus-within {
  border-color: #5eb8d7;
}

.wallet-conversion-input__amount input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.wallet-conversion-input__amount span {
  color: #8fa8b6;
  flex: none;
  font: 700 11px / 1 ui-monospace, monospace;
}

.wallet-conversion-input strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font: 700 clamp(14px, 4.2vw, 18px) / 1.05 ui-monospace, monospace;
  overflow: hidden;
}

.wallet-conversion-input input, .wallet-deposit__input-wrap input, .wallet-conversion-input input:focus, .wallet-conversion-input input:focus-visible, .wallet-deposit__input-wrap input:focus, .wallet-deposit__input-wrap input:focus-visible {
  appearance: none;
  -webkit-focus-ring-color: transparent;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
}

.wallet-feedback {
  color: #ef8f8f;
}

.wallet-withdraw-heading h2, .wallet-deposit__heading > div > .eyebrow {
  color: #79d4e7;
  letter-spacing: .04em;
  margin: 2px 0 0;
  font: 400 16.5px / 1.2 ui-monospace, monospace;
}

.gameplay-nav--keyboard-hidden {
  display: none !important;
}

@media (max-width: 360px) {
  .wallet-balance-list .wallet-balance-item {
    grid-template-columns: minmax(0, 2fr) minmax(92px, 1fr);
    column-gap: 8px;
  }

  .wallet-balance-list .wallet-balance-item strong {
    font-size: 16px;
  }
}

.energy-sheet-backdrop {
  z-index: 30;
}

.energy-sheet {
  overscroll-behavior: none;
  max-height: 100svh;
  padding-bottom: calc(96px + var(--cs-safe-bottom, env(safe-area-inset-bottom)));
  overflow: hidden auto;
}

.storage-card__temporary-art {
  width: 100%;
  height: 104px;
  color: var(--cs-info);
  background: #0b1926;
  border: 1px dashed #315b76;
  border-radius: 10px;
  place-items: center;
  font-size: 32px;
  display: grid;
  overflow: hidden;
}

.storage-card__temporary-art > img {
  object-fit: contain;
  width: 72px;
  max-width: 100%;
  height: 88px;
  max-height: 100%;
  display: block;
}

@media (max-width: 900px) {
  .game-shell {
    padding-right: max(14px, var(--cs-safe-right));
    padding-bottom: calc(84px + var(--cs-safe-bottom));
    padding-left: max(14px, var(--cs-safe-left));
  }

  .gameplay-surface, .storage-screen, .mining-status-screen {
    padding-right: max(14px, var(--cs-safe-right));
    padding-bottom: calc(92px + var(--cs-safe-bottom));
    padding-left: max(14px, var(--cs-safe-left));
  }

  .topbar, .league-status-card, .hall-discovery, .hall-card {
    max-width: 640px;
    margin-inline: auto;
  }

  .task-wall-screen {
    padding-inline: max(14px, var(--cs-safe-left));
  }
}

.gameplay-surface > .store-balances {
  width: min(100%, 720px);
  margin: 0 auto 10px;
}

.store-balances {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.store-balances > div {
  background: #0b1b29;
  border: 1px solid #315b76;
  border-radius: 10px;
  grid-template-rows: auto auto;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  display: grid;
}

.store-balances img {
  object-fit: contain;
  grid-row: 1 / 3;
  align-self: center;
  width: 30px;
  height: 30px;
}

.store-balances span {
  color: var(--cs-steel-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 13px;
  overflow: hidden;
}

.store-balances strong {
  color: var(--cs-steel);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 17px;
  overflow: hidden;
}

.offer-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 8px;
}

.offer-card {
  align-content: start;
  gap: 8px;
  min-height: 158px;
  margin: 0;
  padding: 11px 12px;
  display: grid;
}

.offer-card__main {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 11px;
  min-height: 76px;
  display: grid;
}

.offer-card__visual {
  background: radial-gradient(circle at 50% 35%, #19384a, #08141e 76%);
  border: 1px solid #294d66;
  border-radius: 10px;
  align-self: center;
  place-items: center;
  width: 72px;
  height: 72px;
  display: grid;
  overflow: hidden;
}

.offer-card__visual .equipment-visual--thumbnail, .offer-card__visual .offer-card__asset {
  object-fit: contain;
  width: 68px;
  height: 68px;
}

.offer-card__visual .offer-card__asset[data-store-interior="true"], .store-dialog__details-image[data-store-interior="true"] {
  object-fit: cover;
}

.store-interior-placeholder {
  background: linear-gradient(90deg, #48cfe81a 1px, #0000 1px) 0 0 / 12px 12px, linear-gradient(#48cfe81a 1px, #0000 1px) 0 0 / 12px 12px, linear-gradient(145deg, #17394a, #07121a);
  display: block;
}

.store-category-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-block: 10px;
}

.offer-card__copy {
  align-content: center;
  gap: 2px;
  min-width: 0;
  display: grid;
}

.offer-card__title {
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 4px;
  display: grid;
}

.offer-card__title h2 {
  color: #f0f8fb;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  overflow: hidden;
}

.offer-card__title button {
  color: #86bfd8;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 17px;
  display: grid;
}

.offer-card__title button:hover, .offer-card__title button:focus-visible {
  color: #dff7ff;
  background: #173348;
  outline: 0;
}

.offer-card__rarity, .offer-card__copy p, .offer-card__copy small {
  color: #91a7b2;
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}

.offer-card__rarity {
  color: #c7d9e2;
}

.offer-card__footer {
  border-top: 1px solid #254256;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-top: 7px;
  display: flex;
}

.offer-card__price {
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.offer-card__price img {
  object-fit: contain;
  width: 26px;
  height: 26px;
}

.offer-card .offer-card__price strong {
  color: var(--cs-cyan);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  overflow: hidden;
}

.offer-card .offer-card__buy {
  width: 94px;
  min-width: 94px;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
}

.offer-card__success {
  border-top: 1px solid #254256;
  gap: 6px;
  padding-top: 7px;
  display: grid;
}

.offer-card__success > div {
  gap: 6px;
  display: flex;
}

.offer-card__success button {
  color: #d8edf5;
  background: #102433;
  border: 1px solid #3f7591;
  border-radius: 8px;
  min-height: 44px;
  padding: 5px 9px;
  font-size: 11px;
}

.store-dialog-backdrop {
  z-index: 70;
  padding: 20px 14px calc(20px + env(safe-area-inset-bottom));
  background: #02070bc7;
  justify-content: center;
  align-items: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.sheet-backdrop, .equipment-storage-backdrop, .energy-sheet-backdrop, .store-dialog-backdrop {
  z-index: 100;
}

.store-dialog {
  overscroll-behavior: none;
  width: min(100%, 430px);
  max-height: min(92svh, 720px);
  color: var(--cs-steel);
  background: linear-gradient(145deg, #102638, #081521);
  border: 1px solid #3c6680;
  border-radius: 16px;
  gap: 13px;
  padding: 14px;
  display: grid;
  overflow-y: auto;
  box-shadow: 0 20px 55px #000c;
}

.store-dialog > header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.store-dialog > header > strong {
  font-size: 16px;
  line-height: 21px;
}

.store-dialog > header > button {
  color: #d7e8ef;
  background: #102433;
  border: 1px solid #315b76;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.store-dialog__summary {
  background: #091925;
  border: 1px solid #294d66;
  border-radius: 11px;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  display: grid;
}

.store-dialog__summary--purchase {
  background: none;
  border: 0;
  border-bottom: 1px solid #5a697066;
  border-radius: 0;
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 10px 2px 13px;
}

.store-dialog__purchase-visual {
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  background: radial-gradient(circle at 50% 42%, #173849 0%, #06111a 72%);
  border: 1px solid #277387;
  place-items: center;
  width: 88px;
  height: 76px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #02090e, inset 0 0 16px #49cce614;
}

.store-dialog__purchase-visual:after {
  z-index: 2;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #d89b3d 0 14px, #0000 14px) 0 0 / 28px 2px no-repeat, linear-gradient(#d89b3d 0 14px, #0000 14px) 0 0 / 2px 28px no-repeat, linear-gradient(270deg, #43cde8 0 14px, #0000 14px) 100% 100% / 28px 2px no-repeat, linear-gradient(0deg, #43cde8 0 14px, #0000 14px) 100% 100% / 2px 28px no-repeat;
  border: 1px solid #6fdcf51f;
  position: absolute;
  inset: 0;
}

.store-dialog__purchase-visual .equipment-visual--thumbnail, .store-dialog__purchase-visual > .store-dialog__details-image {
  width: 80px;
  height: 68px;
}

.store-dialog__price {
  gap: 3px;
  display: grid;
}

.store-dialog__price > span {
  color: #91a7b2;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.store-dialog__price > strong {
  color: #f0c36f;
  font-variant-numeric: tabular-nums;
  font: 850 19px / 22px Arial Narrow, Roboto Condensed, sans-serif;
}

.store-dialog__price > em {
  color: #fff2d0;
  background: #8f2a1d;
  width: max-content;
  padding: 2px 6px;
  font: 900 10px / 12px Arial Narrow, Roboto Condensed, sans-serif;
}

.store-dialog__price > s {
  color: #7f9299;
  font-size: 12px;
}

.store-dialog__summary .equipment-visual--thumbnail, .store-dialog__details > .equipment-visual--thumbnail {
  width: 58px;
  height: 58px;
}

.store-dialog__details-image {
  object-fit: contain;
  width: 58px;
  height: 58px;
}

.store-dialog__summary > div {
  gap: 4px;
  display: grid;
}

.store-dialog__summary > div > strong {
  font-size: 15px;
}

.store-dialog__summary span {
  color: var(--cs-cyan);
  font-size: 14px;
  font-weight: 700;
}

.store-payment-source {
  border: 0;
  border-bottom: 1px solid #5a697066;
  border-radius: 0;
  gap: 0;
  margin: 0;
  padding: 0 2px 10px;
  display: grid;
}

.store-payment-source legend {
  color: #91a7b2;
  letter-spacing: .06em;
  padding: 0 0 7px;
  font-size: 11px;
  font-weight: 700;
}

.store-payment-source label {
  color: #e7f2f6;
  border-radius: 2px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 4px 9px;
  font-size: 13px;
  display: grid;
}

.store-payment-source label + label {
  border-top: 1px solid #33444c80;
}

.store-payment-source label:has(input:checked) {
  background: #123347b8;
  box-shadow: inset 2px 0 #57cce2;
}

.store-payment-source label span {
  color: #9fc3d2;
  font-variant-numeric: tabular-nums;
}

.store-dialog > small[role="alert"] {
  color: #e5b384;
  font-size: 12px;
  line-height: 17px;
}

.store-dialog > footer {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 8px;
  display: grid;
}

.store-dialog > footer button {
  min-height: 40px;
}

.store-dialog > footer .store-dialog__confirm {
  color: #fff0c8;
  clip-path: polygon(7px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 4px 100%, 0 calc(100% - 4px), 0 7px);
  letter-spacing: .01em;
  white-space: nowrap;
  background-color: #0000;
  background-image: linear-gradient(110deg, #0000 34%, #fff4d000 42%, #fff4d075 50%, #fff4d000 58%, #0000 66%), linear-gradient(#72521f, #38270f);
  background-position: 200% 0, 0 0;
  background-repeat: no-repeat;
  background-size: 260% 100%, 100% 100%;
  background-attachment: scroll, scroll;
  background-origin: padding-box, padding-box;
  background-clip: border-box, border-box;
  border: 0;
  border-radius: 0;
  font: 850 12px / 16px Arial Narrow, Roboto Condensed, sans-serif;
  box-shadow: inset 0 1px #ffe9af55, inset 0 0 12px #e7ac4520;
}

.store-dialog > footer .store-dialog__confirm:not(:disabled) {
  animation: 3.4s linear infinite store-confirm-sheen;
}

@keyframes store-confirm-sheen {
  0%, 45% {
    background-position: 200% 0, 0 0;
  }

  85%, 100% {
    background-position: -100% 0, 0 0;
  }
}

.store-dialog > footer .store-dialog__confirm:hover:not(:disabled) {
  filter: brightness(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .store-dialog > footer .store-dialog__confirm {
    animation: none;
  }
}

:is(.store-dialog:has(.store-dialog__summary--purchase), .store-dialog:has(.store-dialog__details)) {
  isolation: isolate;
  filter: none;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  background: linear-gradient(135deg, #a3abad 0 50%, #0000 50%) 0 0 / 12px 12px no-repeat border-box, linear-gradient(225deg, #4f5b5f 0 50%, #0000 50%) 100% 0 / 12px 12px no-repeat border-box, linear-gradient(315deg, #8b6230 0 50%, #0000 50%) 100% 100% / 12px 12px no-repeat border-box, linear-gradient(45deg, #66757a 0 50%, #0000 50%) 0 100% / 12px 12px no-repeat border-box, linear-gradient(#48cde00a 1px, #0000 1px) 0 0 / 18px 18px padding-box padding-box, linear-gradient(90deg, #48cde00a 1px, #0000 1px) 0 0 / 18px 18px padding-box padding-box, linear-gradient(145deg, #0d202cfa, #06121afb) padding-box padding-box, linear-gradient(135deg, #90999b, #313b3f 18%, #66757a 48%, #252d30 78%, #8b6230) border-box;
  border: 2px solid #0000;
  border-radius: 0;
  gap: 11px;
  padding: 16px;
  position: relative;
  box-shadow: 0 20px 55px #000d, inset 0 0 0 1px #0a0f12, inset 0 1px #d8e0df24;
}

:is(.store-dialog:has(.store-dialog__summary--purchase) > header, .store-dialog:has(.store-dialog__details) > header) {
  border-bottom: 1px solid #66757a80;
  padding-bottom: 11px;
}

:is(.store-dialog:has(.store-dialog__summary--purchase) > header > button, .store-dialog:has(.store-dialog__details) > header > button) {
  color: #dce5e6;
  background: linear-gradient(#202b30, #0b1419);
  border-color: #69777c;
  border-radius: 2px;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  box-shadow: inset 0 1px #eef5f52e;
}

.store-dialog:has(.store-dialog__summary--purchase) > footer {
  padding-top: 1px;
}

.store-dialog:has(.store-dialog__summary--purchase) > footer button {
  min-height: 44px;
}

.store-dialog__details {
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  display: grid;
}

.store-dialog__details-visual {
  align-self: start;
  width: 108px;
  height: 112px;
}

.store-dialog__details-visual .equipment-visual--thumbnail, .store-dialog__details-visual > .store-dialog__details-image {
  width: 100px;
  height: 96px;
}

.store-dialog__details dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0;
  display: grid;
}

.store-dialog__details dl > div {
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  background: linear-gradient(145deg, #102631d9, #07131ad9);
  border: 1px solid #314d5d;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 52px;
  padding: 7px 8px;
  display: grid;
  box-shadow: inset 0 1px #91c6d218;
}

.store-dialog__details dt {
  color: #91a7b2;
  letter-spacing: .06em;
  text-transform: uppercase;
  font: 750 9px / 11px Arial Narrow, Roboto Condensed, sans-serif;
}

.store-dialog__details dd {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  margin: 0;
  font: 850 13px / 16px Arial Narrow, Roboto Condensed, sans-serif;
}

.store-dialog__metric--identity dd:not([class*="rarity-tone-"]) {
  color: #edf8fc;
}

.store-dialog__metric--power dd {
  color: #72d8eb;
}

.store-dialog__metric--bonus dd {
  color: #f0c36f;
}

.store-dialog__metric--bonus:last-child {
  grid-column: 1 / -1;
}

.store-dialog__details-description {
  color: #c9d8de;
  background: #07131bb8;
  border-left: 2px solid #3bbbd5;
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .store-dialog-backdrop {
    align-items: center;
  }

  .offer-card {
    min-height: 158px;
  }
}

@media (max-width: 360px) {
  .offer-card__main {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .offer-card__visual {
    width: 64px;
    height: 64px;
  }

  .offer-card__visual .equipment-visual--thumbnail {
    width: 60px;
    height: 60px;
  }

  .offer-card .offer-card__buy {
    width: 84px;
    min-width: 84px;
  }

  .store-balances > div {
    grid-template-columns: 26px minmax(0, 1fr);
    padding-inline: 7px;
  }

  .store-balances img {
    width: 26px;
    height: 26px;
  }
}

.activation-screen {
  z-index: 1;
  min-height: 100dvh;
  padding: calc(1rem + var(--cs-safe-top, 0px))
    calc(1rem + var(--cs-safe-right, 0px))
    calc(1.5rem + var(--cs-safe-bottom, 0px))
    calc(1rem + var(--cs-safe-left, 0px));
  overscroll-behavior: none;
  color: #eaf7ff;
  background-color: #040a11;
  background-image: var(--cs-blueprint-grid),
    radial-gradient(circle at 50% 16%, #173a53 0, #081522 42%, #03070c 78%);
  background-size: 24px 24px, auto;
  align-content: center;
  gap: 1rem;
  font-family: Arial Narrow, Roboto Condensed, Arial, sans-serif;
  display: grid;
  position: relative;
  overflow: auto;
}

.activation-screen:before, .activation-screen:after {
  z-index: -1;
  pointer-events: none;
  content: "";
  position: fixed;
}

.activation-screen:before {
  background: linear-gradient(90deg, #0000 0 8%, #78d0e60a 8% 8.2%, #0000 8.2% 92%, #78d0e60a 92% 92.2%, #0000 92.2%), linear-gradient(#78d0e612, #0000 28% 74%, #d7923b0a);
  inset: 0;
}

.activation-screen:after {
  background: linear-gradient(90deg, transparent, var(--cs-cyan), transparent);
  width: min(34vw, 320px);
  height: 1px;
  bottom: 8dvh;
  right: 7vw;
  box-shadow: 0 0 18px #78d0e680;
}

.activation-screen--loading {
  background: none;
}

.activation-screen--loading:before, .activation-screen--loading:after {
  content: none;
}

.activation-intro {
  border: 1px solid var(--cs-blue-border);
  background: linear-gradient(90deg, #78d0e60b 1px, #0000 1px) 0 0 / 24px 24px, linear-gradient(#78d0e60b 1px, #0000 1px) 0 0 / 24px 24px, linear-gradient(145deg, #102638f7, #07131ff7);
  border-radius: 0;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 1rem;
  padding: clamp(18px, 4vw, 30px);
  display: grid;
  overflow: hidden;
  box-shadow: inset 0 1px #dceeff12, 0 24px 80px #000a;
}

.activation-intro--memberships {
  border-top-color: #78d0e6a6;
  border-bottom-color: #b9934e80;
  grid-template-columns: 1fr;
  width: min(100%, 620px);
  margin: 0 auto;
}

.activation-membership__header {
  border-bottom: 1px solid #315b7688;
  gap: 8px;
  padding-bottom: 16px;
  display: grid;
}

.activation-membership__header .eyebrow {
  color: var(--cs-cyan);
  letter-spacing: .16em;
  margin: 0;
  font: 800 .7rem / 1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.activation-membership__header h1 {
  max-width: 520px;
  color: var(--cs-steel);
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  line-height: .98;
}

.activation-membership__header > p:last-child {
  max-width: 540px;
  color: var(--cs-steel-muted);
  margin: 0;
  font-size: .96rem;
  line-height: 1.55;
}

.activation-membership__progress {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 12px;
  display: grid;
}

.activation-membership__progress > span {
  color: var(--cs-steel-muted);
  letter-spacing: .11em;
  font: 800 .68rem / 1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.activation-membership__progress > strong {
  color: #edc14f;
  font-variant-numeric: tabular-nums;
}

.activation-membership__progress progress {
  accent-color: #55c178;
  background: #02080d;
  border: 0;
  border-radius: 0;
  grid-column: 1 / -1;
  width: 100%;
  height: 6px;
  overflow: hidden;
}

.activation-membership__progress progress::-webkit-progress-bar {
  background: #02080d;
}

.activation-membership__progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, #4e94bb, #55c178);
}

.activation-memberships {
  gap: 10px;
  display: grid;
}

.activation-membership {
  background: linear-gradient(145deg, #0b1c29, #06111b);
  border: 1px solid #315b76;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 12px;
  transition: border-color .15s, background-color .15s;
  display: grid;
  box-shadow: inset 3px 0 #4e94bb66;
}

.activation-membership:hover {
  border-color: #4e94bb;
}

.activation-membership[data-complete="true"] {
  background: linear-gradient(145deg, #0b2722, #071814);
  border-color: #3f8960;
  box-shadow: inset 3px 0 #55c178;
}

.activation-membership__mark {
  fill: none;
  width: 28px;
  height: 28px;
  stroke: var(--cs-steel-muted);
  stroke-width: 1.7px;
}

.activation-membership[data-complete="true"] .activation-membership__mark {
  color: #55c178;
  filter: drop-shadow(0 0 5px #55c17866);
  stroke: currentColor;
}

.activation-membership__mark path {
  stroke-width: 2.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activation-membership__copy {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.activation-membership__copy strong {
  color: var(--cs-steel);
  font-size: .98rem;
  line-height: 1.2;
}

.activation-membership__copy small {
  color: var(--cs-steel-muted);
  letter-spacing: .06em;
  font: 700 .62rem / 1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.activation-membership[data-complete="true"] .activation-membership__copy small {
  color: #7dd99b;
}

.activation-membership a, .activation-check, .satoshi-scene__dialog button {
  border: 1px solid var(--cs-blue);
  min-height: 44px;
  color: var(--cs-steel);
  cursor: pointer;
  background: linear-gradient(145deg, #1a4a66, #10283b);
  border-radius: 0;
  justify-content: center;
  align-items: center;
  padding: 8px 12px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .12s, color .12s, background-color .12s, box-shadow .12s;
  display: inline-flex;
}

.activation-membership a:hover, .activation-membership a:focus-visible, .activation-check:hover:not(:disabled), .activation-check:focus-visible, .satoshi-scene__dialog button:hover:not(:disabled), .satoshi-scene__dialog button:focus-visible {
  border-color: var(--cs-cyan);
  color: #fff;
  box-shadow: 0 0 0 2px #78d0e638;
}

.activation-membership a:focus-visible, .activation-check:focus-visible, .satoshi-scene__dialog button:focus-visible {
  outline: 2px solid var(--cs-cyan);
  outline-offset: 2px;
}

.activation-membership a:active, .activation-check:active:not(:disabled), .satoshi-scene__dialog button:active:not(:disabled) {
  filter: brightness(.85);
}

.activation-check {
  background: linear-gradient(145deg, #5a451e, #2b2517);
  border-color: #b9934e;
  width: 100%;
}

.activation-check:disabled, .satoshi-scene__dialog button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.activation-intro h1 {
  margin: .25rem 0 .7rem;
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.activation-intro p {
  color: #b9cfdb;
  line-height: 1.55;
}

.activation-intro img {
  object-fit: cover;
  opacity: .72;
  filter: saturate(.8);
  pointer-events: none;
  border-radius: 12px;
  width: 100%;
  max-height: 310px;
}

.activation-progress {
  background: #05121df0;
  border: 1px solid #50d2ff40;
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.activation-progress div {
  justify-content: space-between;
  align-items: center;
  margin-bottom: .65rem;
  display: flex;
}

.activation-progress strong {
  color: #67e8f9;
  font-size: 1.35rem;
}

.activation-progress progress {
  accent-color: #22d3ee;
  width: 100%;
  height: 12px;
}

.activation-provider .earnings-provider-card {
  max-width: 100%;
}

.activation-unavailable {
  color: #f9d98c;
  text-align: center;
  background: #05121df0;
  border-radius: 14px;
  padding: 1rem;
}

.satoshi-scene {
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: linear-gradient(#4ca9ec0a 1px, #0000 1px) 0 0 / 32px 32px, linear-gradient(90deg, #4ca9ec0a 1px, #0000 1px) 0 0 / 32px 32px, radial-gradient(circle at 78% 28%, #21455a5c, #0000 34%), linear-gradient(#010609a6, #010509e8);
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.satoshi-scene--ready {
  visibility: visible;
  opacity: 1;
}

.satoshi-scene--passthrough {
  pointer-events: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: linear-gradient(#01060938, #01050966);
}

.satoshi-scene--passthrough .satoshi-scene__character {
  opacity: .52;
}

.satoshi-scene--passthrough .satoshi-scene__dialog {
  pointer-events: auto;
}

.satoshi-scene__character {
  object-fit: contain;
  object-position: right bottom;
  opacity: .94;
  filter: drop-shadow(-18px 18px 30px #000e);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  width: min(76vw, 860px);
  height: min(88dvh, 840px);
  animation: .26s ease-out both satoshi-arrival;
  position: absolute;
  bottom: 0;
  right: max(-3vw, -34px);
}

.satoshi-scene__dialog {
  z-index: 1;
  bottom: max(18px, var(--cs-safe-bottom, 0px));
  left: max(18px, var(--cs-safe-left, 0px));
  overscroll-behavior: none;
  box-sizing: border-box;
  width: min(590px, 100vw - 36px);
  max-height: min(56dvh, 500px);
  color: var(--cs-steel);
  background: linear-gradient(90deg, #4ca9ec14, #0000 44%), repeating-linear-gradient(0deg, #0000 0 23px, #4ca9ec08 23px 24px), repeating-linear-gradient(90deg, #0000 0 31px, #4ca9ec08 31px 32px), linear-gradient(145deg, #102638fa, #050e17fc);
  border: 1px solid #315b76;
  border-top: 2px solid #4ca9ec;
  border-radius: 0;
  gap: 10px;
  padding: 16px 18px 18px;
  animation: .22s ease-out both satoshi-dialog-arrival;
  display: grid;
  position: absolute;
  overflow: auto;
  box-shadow: 0 18px 54px #000d, 0 0 0 1px #02070b, inset 0 1px #dceeff14, inset 3px 0 #4ca9ec1f;
}

.satoshi-scene__character, .satoshi-scene__dialog {
  animation-play-state: paused;
}

.satoshi-scene--ready .satoshi-scene__character, .satoshi-scene--ready .satoshi-scene__dialog {
  animation-play-state: running;
}

.satoshi-scene__dialog header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  display: grid;
  position: relative;
}

.satoshi-scene__dialog--closable header {
  grid-template-columns: minmax(0, 1fr) auto 44px;
}

.satoshi-scene__dialog header:after {
  content: "";
  background: linear-gradient(90deg, #4ca9ecc7, #315b7688 48%, #0000);
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 1px #02070b;
}

.satoshi-scene__identity {
  min-width: 0;
}

.satoshi-scene__eyebrow {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.satoshi-scene__status-lights {
  flex: none;
  gap: 4px;
  display: inline-flex;
}

.satoshi-scene__status-lights i {
  background: #4ca9ec;
  border: 1px solid #8bc7db;
  width: 5px;
  height: 5px;
  box-shadow: 0 0 5px #4ca9ec8c;
}

.satoshi-scene__status-lights i:nth-child(2) {
  background: #55c178;
  border-color: #8fd2a4;
  box-shadow: 0 0 5px #55c1787a;
}

.satoshi-scene__status-lights i:nth-child(3) {
  background: #edc14f;
  border-color: #e6c97a;
  box-shadow: 0 0 5px #edc14f70;
}

.satoshi-scene__dialog header p, .satoshi-scene__dialog header h2, .onboarding-coach > p, .gameplay-tutorial > p, .gameplay-tutorial > h3 {
  margin: 0;
}

.satoshi-scene__dialog header p {
  color: var(--cs-steel-muted);
  letter-spacing: .1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  font: 800 .62rem / 1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
}

.satoshi-scene__dialog header h2 {
  color: var(--cs-cyan);
  letter-spacing: .035em;
  text-transform: uppercase;
  align-items: baseline;
  gap: 9px;
  margin-top: 4px;
  font-size: clamp(1.16rem, 4.8vw, 1.35rem);
  line-height: 1.08;
  display: flex;
}

.satoshi-scene__dialog header h2 small {
  color: #6f91a4;
  letter-spacing: .12em;
  border-left: 1px solid #4ca9ec8c;
  padding-left: 9px;
  font: 800 .56rem / 1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.satoshi-scene__progress {
  color: #edc14f;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(#2d210e, #171209);
  border: 1px solid #8b6a2f;
  padding: 7px 9px;
  font: 800 .62rem / 1 ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: inset 0 1px #fff0a717, 0 0 10px #d7923b14;
}

.onboarding-coach > p, .gameplay-tutorial > p {
  color: #c0d0d9;
  font-size: 1rem;
  line-height: 1.48;
}

.gameplay-tutorial > h3 {
  color: var(--cs-steel);
  letter-spacing: .01em;
  font-size: clamp(1.05rem, 4vw, 1.22rem);
  line-height: 1.25;
}

.satoshi-scene__dialog > button, .gameplay-tutorial__actions button {
  color: #fff1ba;
  letter-spacing: .08em;
  text-transform: uppercase;
  touch-action: manipulation;
  background: linear-gradient(90deg, #edc14f17, #0000 36%), linear-gradient(#594017, #271b09);
  border-color: #b9934e;
  width: 100%;
  font: 800 .76rem / 1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: inset 0 1px #fff0a71f, 0 6px 18px #0006;
}

.satoshi-scene__close {
  place-items: center;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  font-size: 1.24rem;
  line-height: 1;
  width: 44px !important;
  color: var(--cs-steel-muted) !important;
  background: linear-gradient(#102638, #07131f) !important;
  border-color: #315b76 !important;
  padding: 0 !important;
  display: inline-grid !important;
  box-shadow: inset 0 1px #dceeff0f !important;
}

.gameplay-tutorial__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
  display: grid;
}

.gameplay-tutorial__actions > button:only-child {
  grid-column: 1 / -1;
}

.gameplay-tutorial__secondary {
  background: linear-gradient(145deg, #102638, #07131f) !important;
  border-color: #315b76 !important;
}

@keyframes satoshi-arrival {
  from {
    opacity: 0;
    transform: translateX(5%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes satoshi-dialog-arrival {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activation-intro--memberships > p[role="status"] {
  border-left: 2px solid var(--cs-cyan);
  color: var(--cs-steel);
  background: #07131bcc;
  margin: 0;
  padding: 10px 12px;
  font-size: .86rem;
  line-height: 1.45;
}

.onboarding-coach small[role="alert"] {
  color: #ff8f96;
}

.offer-card__onboarding-step {
  letter-spacing: .045em;
  background: linear-gradient(90deg, #d7923b24, #0000 72%);
  border-bottom: 1px solid #d7923b80;
  align-items: center;
  gap: 8px;
  margin: 0 -3px 3px;
  padding: 5px 7px 6px;
  font: 800 .67rem / 1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  display: flex;
  color: #f5d887 !important;
}

.offer-card__onboarding-step > span {
  color: #fff1ba;
  font-variant-numeric: tabular-nums;
  background: #2f210e;
  border: 1px solid #d7923b;
  place-items: center;
  min-width: 24px;
  height: 24px;
  display: inline-grid;
}

.hall-edit-mode__tutorial {
  color: var(--cs-steel);
  background: linear-gradient(100deg, #34260f, #0a1823 58%);
  border: 1px solid #b9934e;
  border-left: 3px solid #edc14f;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 8px 10px;
  display: grid;
  box-shadow: inset 0 1px #fff2bb1f;
}

.hall-edit-mode__tutorial img {
  object-fit: cover;
  object-position: 100% 20%;
  background: #02070b;
  width: 52px;
  height: 52px;
}

.hall-edit-mode__tutorial strong {
  color: #edc14f;
  letter-spacing: .08em;
  font: 800 .68rem / 1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hall-edit-mode__tutorial p {
  color: var(--cs-steel);
  margin: 4px 0 0;
  font-size: .82rem;
  line-height: 1.35;
}

.onboarding-target {
  scroll-margin-block: 120px 190px;
}

.onboarding-target--purchase, .onboarding-target--install, [data-onboarding-target="open-edit"] {
  animation: 1.8s ease-in-out infinite onboarding-attention;
  border-color: #edc14f !important;
  box-shadow: 0 0 0 2px #edc14f70, 0 0 22px #d7923b4d !important;
}

.onboarding-target--purchase .offer-card__buy, .onboarding-target--install button, .hall-edit-equipment.onboarding-target--install > button, [data-onboarding-target="open-edit"] {
  color: #fff1ba !important;
  background: linear-gradient(#6b4c1d, #2a1c0a) !important;
  border-color: #edc14f !important;
}

@keyframes onboarding-attention {
  0%, 100% {
    filter: brightness();
  }

  50% {
    filter: brightness(1.13);
  }
}

@media (max-width: 600px) {
  .activation-intro {
    grid-template-columns: 1fr;
  }

  .activation-intro img {
    order: -1;
    max-height: 180px;
  }

  .activation-membership {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 9px;
  }

  .activation-membership a {
    min-width: 82px;
    padding-inline: 9px;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .satoshi-scene {
    box-sizing: border-box;
    padding: max(12px, var(--cs-safe-top, 0px))
      max(12px, var(--cs-safe-right, 0px)) max(12px, var(--cs-safe-bottom, 0px))
      max(12px, var(--cs-safe-left, 0px));
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    display: grid;
  }

  .satoshi-scene__character {
    z-index: 0;
    grid-row: 1;
    place-self: end;
    width: 104vw;
    height: auto;
    max-height: 58dvh;
    margin-bottom: -2px;
    margin-right: -3vw;
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
  }

  .satoshi-scene__dialog {
    grid-row: 2;
    width: 100%;
    max-height: 56dvh;
    padding: 14px 15px 15px;
    position: relative;
    inset: auto;
  }

  .satoshi-scene--passthrough .satoshi-scene__character {
    max-height: 52dvh;
  }

  .satoshi-scene--passthrough .satoshi-scene__dialog {
    max-height: 36dvh;
  }

  .satoshi-scene__dialog header {
    gap: 9px;
  }

  .satoshi-scene__dialog--closable header {
    grid-template-columns: minmax(0, 1fr) auto 44px;
  }

  .satoshi-scene__progress {
    text-overflow: ellipsis;
    max-width: 118px;
    overflow: hidden;
  }
}

@media (min-width: 601px) and (min-height: 521px) and (max-width: 1100px) and (orientation: landscape) {
  .satoshi-scene__character {
    right: 8vw;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .satoshi-scene__character {
    width: 92vw;
    height: 96dvh;
    right: 5vw;
  }

  .satoshi-scene__dialog {
    top: max(10px, var(--cs-safe-top, 0px));
    right: auto;
    bottom: max(10px, var(--cs-safe-bottom, 0px));
    left: max(10px, var(--cs-safe-left, 0px));
    width: min(52vw, 560px);
    max-height: none;
    padding: 13px 15px 14px;
  }

  .satoshi-scene__dialog header {
    padding-bottom: 9px;
  }

  .onboarding-coach > p, .gameplay-tutorial > p {
    font-size: .88rem;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activation-membership a, .activation-check, .satoshi-scene__dialog button {
    transition: none;
  }

  .onboarding-target--purchase, .onboarding-target--install, [data-onboarding-target="open-edit"], .satoshi-scene__character, .satoshi-scene__dialog {
    animation: none;
  }
}

.marketplace-note {
  width: min(100%, 720px);
  color: var(--cs-steel-muted);
  margin: 0 auto 12px;
  font-size: 12px;
  line-height: 1.45;
}

.marketplace-landing, .marketplace-flow-bar {
  width: min(100%, 980px);
  margin: 0 auto 12px;
}

.marketplace-stepper {
  color: var(--cs-steel-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  display: flex;
}

.marketplace-stepper span {
  background: #08141e;
  border: 1px solid #294d66;
  border-radius: 999px;
  padding: 6px 9px;
}

.marketplace-stepper span.active {
  color: #e2f6ee;
  background: #16333c;
  border-color: #77c4a5;
}

.marketplace-stepper span.complete {
  color: #9ad2bb;
}

.marketplace-landing-heading {
  gap: 5px;
  margin-bottom: 12px;
  display: grid;
}

.marketplace-landing-heading h2 {
  color: var(--cs-steel);
  margin: 0;
  font-size: clamp(18px, 4vw, 24px);
}

.marketplace-landing-heading p:last-child {
  max-width: 560px;
  color: var(--cs-steel-muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.marketplace-mode-cards, .marketplace-category-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.marketplace-category-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marketplace-mode-card, .marketplace-category-card {
  min-height: 96px;
  color: var(--cs-steel);
  text-align: left;
  cursor: pointer;
  background: #0b1b29;
  border: 1px solid #315b76;
  border-radius: 12px;
  align-content: center;
  gap: 6px;
  padding: 16px;
  display: grid;
}

.marketplace-mode-card:hover, .marketplace-mode-card:focus-visible, .marketplace-category-card:hover, .marketplace-category-card:focus-visible {
  background: #102832;
  border-color: #77c4a5;
}

.marketplace-category-card--disabled, .marketplace-category-card--disabled:hover {
  color: #85859d;
  cursor: not-allowed;
  background: #171827;
  border-color: #2d3046;
}

.marketplace-category-card--disabled small {
  margin-left: 5px;
  font-size: 9px;
}

.marketplace-mode-card strong, .marketplace-category-card strong {
  font-size: 16px;
}

.marketplace-mode-card span, .marketplace-category-card span {
  color: var(--cs-steel-muted);
  font-size: 11px;
  line-height: 1.4;
}

.marketplace-mode-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 420px);
  margin: 0 auto 8px;
  display: grid;
}

.marketplace-mode-tabs button {
  min-height: 44px;
  color: var(--cs-steel-muted);
  cursor: pointer;
  background: #08141e;
  border: 1px solid #315b76;
  border-radius: 8px;
  font-weight: 700;
}

.marketplace-mode-tabs button.active {
  color: #e2f6ee;
  background: #16333c;
  border-color: #77c4a5;
}

.marketplace-tabs {
  flex-wrap: wrap;
  gap: 6px;
  width: min(100%, 720px);
  margin: 0 auto 10px;
  display: flex;
}

.marketplace-tabs button {
  min-height: 44px;
  color: var(--cs-steel-muted);
  cursor: pointer;
  background: #08141e;
  border: 1px solid #315b76;
  border-radius: 7px;
  padding: 5px 10px;
}

.marketplace-flow-bar .marketplace-tabs {
  width: 100%;
  margin-bottom: 0;
}

.marketplace-filter-panel {
  background: #08141e;
  border: 1px solid #294d66;
  border-radius: 8px;
}

.marketplace-filter-panel summary {
  min-height: 44px;
  color: var(--cs-steel);
  cursor: pointer;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  list-style-position: inside;
}

.marketplace-filter-panel[open] {
  padding-bottom: 10px;
}

.marketplace-filter-panel[open] .marketplace-buy-controls {
  padding-inline: 10px;
}

.marketplace-tabs button.active {
  color: #e2f6ee;
  background: #16333c;
  border-color: #77c4a5;
}

.marketplace-tabs button.disabled {
  color: #85859d;
  cursor: not-allowed;
  opacity: .7;
  border-color: #2d3046;
}

.marketplace-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 720px);
  margin-inline: auto;
  display: grid;
}

.marketplace-panel {
  background: #0b1b29;
  border: 1px solid #315b76;
  border-radius: 12px;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.marketplace-panel h2, .marketplace-panel h3 {
  color: var(--cs-steel);
  margin: 0;
  font-size: 14px;
}

.marketplace-insights {
  width: min(100%, 720px);
  margin: 0 auto 10px;
}

.marketplace-buy-browser {
  width: min(100%, 980px);
  margin: 0 auto 10px;
}

.marketplace-buy-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.marketplace-buy-browser > .marketplace-buy-controls {
  grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr);
}

.marketplace-buy-controls label, .marketplace-buy-checkout label {
  color: var(--cs-steel-muted);
  gap: 4px;
  font-size: 11px;
  display: grid;
}

.marketplace-buy-controls input, .marketplace-buy-controls select, .marketplace-buy-checkout input {
  color: #dcecf2;
  background: #07121b;
  border: 1px solid #315267;
  border-radius: 6px;
  min-height: 34px;
  padding: 6px 8px;
}

.marketplace-buy-count {
  color: var(--cs-steel-muted);
  margin: 0;
  font-size: 11px;
}

.marketplace-buy-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.marketplace-buy-card {
  background: #08141e;
  border: 1px solid #1c3a4b;
  border-radius: 8px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 10px;
  display: grid;
}

.marketplace-buy-card h3, .marketplace-buy-card p {
  margin: 0;
}

.marketplace-buy-card small, .marketplace-buy-card p {
  color: var(--cs-steel-muted);
  font-size: 11px;
}

.marketplace-buy-card button, .marketplace-buy-checkout button {
  color: #dff7ee;
  cursor: pointer;
  background: #16333c;
  border: 1px solid #497f95;
  border-radius: 6px;
  min-height: 32px;
  padding: 5px 9px;
}

.marketplace-buy-checkout {
  background: #102832;
  border: 1px solid #497f95;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  padding: 10px;
  display: flex;
}

.marketplace-buy-checkout fieldset {
  border: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  display: flex;
}

.marketplace-buy-checkout fieldset label {
  align-items: center;
  display: flex;
}

.marketplace-stats, .marketplace-history-tabs, .marketplace-pagination, .marketplace-medians {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.marketplace-stats span {
  background: #08141e;
  border: 1px solid #294d66;
  border-radius: 8px;
  gap: 2px;
  min-width: 100px;
  padding: 7px;
  display: grid;
}

.marketplace-stats small, .marketplace-medians, .marketplace-history-list small {
  color: var(--cs-steel-muted);
  font-size: 11px;
}

.marketplace-history-tabs button, .marketplace-pagination button {
  min-height: 30px;
  color: var(--cs-steel-muted);
  cursor: pointer;
  background: #08141e;
  border: 1px solid #315b76;
  border-radius: 7px;
  padding: 4px 8px;
}

.marketplace-history-tabs button.active, .marketplace-pagination button.active {
  color: #e2f6ee;
  background: #16333c;
  border-color: #77c4a5;
}

.marketplace-history-list {
  gap: 6px;
  display: grid;
}

.marketplace-history-list > div {
  background: #08141e;
  border: 1px solid #294d66;
  border-radius: 8px;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  display: flex;
}

.marketplace-history-list span {
  gap: 2px;
  display: grid;
}

.marketplace-medians {
  padding-top: 3px;
}

.marketplace-supply-list, .marketplace-listings {
  gap: 6px;
  display: grid;
}

.marketplace-supply-list > div, .marketplace-listings > div {
  background: #08141e;
  border: 1px solid #294d66;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px;
  display: flex;
}

.marketplace-supply-list span, .marketplace-listings small {
  color: var(--cs-steel-muted);
  font-size: 11px;
}

.marketplace-form {
  gap: 8px;
  display: grid;
}

.marketplace-form label, .marketplace-form legend {
  color: var(--cs-steel-muted);
  font-size: 11px;
}

.marketplace-form label {
  gap: 4px;
  display: grid;
}

.marketplace-form input:not([type="radio"]), .marketplace-form select {
  min-height: 36px;
  color: var(--cs-steel);
  background: #07121b;
  border: 1px solid #315b76;
  border-radius: 7px;
  padding: 7px 9px;
}

.marketplace-form fieldset {
  border: 1px solid #294d66;
  border-radius: 8px;
  gap: 5px;
  padding: 6px 8px;
  display: grid;
}

.marketplace-form fieldset label {
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
  display: flex;
}

.marketplace-form button, .marketplace-listings button {
  color: #e2f6ee;
  cursor: pointer;
  background: #16333c;
  border: 1px solid #497f95;
  border-radius: 7px;
  min-height: 36px;
  font-weight: 700;
}

.marketplace-form button:disabled, .marketplace-listings button:disabled {
  cursor: wait;
  opacity: .55;
}

.marketplace-message {
  color: #f9d98c;
  width: min(100%, 720px);
  margin: 10px auto;
  font-size: 12px;
}

.gameplay-surface > .marketplace-panel {
  width: min(100%, 720px);
  margin: 10px auto 0;
}

@media (max-width: 680px) {
  .marketplace-category-cards, .marketplace-buy-controls, .marketplace-buy-cards {
    grid-template-columns: 1fr 1fr;
  }

  .marketplace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .marketplace-mode-cards, .marketplace-category-cards, .marketplace-buy-browser > .marketplace-buy-controls, .marketplace-buy-controls, .marketplace-buy-cards {
    grid-template-columns: 1fr;
  }
}

.marketplace-landing {
  width: min(100%, 720px);
}

.marketplace-landing-heading {
  margin: 0 0 14px;
}

.marketplace-landing-heading h2 {
  font-size: clamp(22px, 5vw, 30px);
}

.marketplace-action-list {
  gap: 12px;
  display: grid;
}

.marketplace-action-card {
  color: #f6f7ff;
  text-align: left;
  cursor: pointer;
  background: #171827;
  border: 1px solid #465273;
  border-radius: 8px;
  grid-template-rows: auto auto;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 3px 12px;
  min-height: 84px;
  padding: 14px 16px;
  display: grid;
}

.marketplace-action-card:hover, .marketplace-action-card:focus-visible {
  background: #20233a;
  border-color: #00dfe8;
}

.marketplace-action-card--disabled, .marketplace-action-card--disabled:hover {
  color: #85859d;
  cursor: not-allowed;
  background: #171827;
  border-color: #2d3046;
}

.marketplace-action-icon {
  color: #00e0e8;
  grid-row: 1 / span 2;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 28px;
  display: grid;
}

.marketplace-action-card strong {
  font-size: 18px;
}

.marketplace-action-card strong small {
  color: #9b9aae;
  letter-spacing: .08em;
  margin-left: 6px;
  font-size: 10px;
}

.marketplace-action-card > small {
  color: #9b9aae;
  font-size: 11px;
}

.marketplace-subnav {
  color: #f3f3fa;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: min(100%, 980px);
  margin: 0 auto 12px;
  font-size: 16px;
  display: flex;
}

.marketplace-back-link {
  color: #00dfe8;
  cursor: pointer;
  background: none;
  border: 0;
  min-height: 44px;
  padding: 6px 0;
  font-weight: 700;
}

.marketplace-stats-card {
  background: #32344d;
  border: 1px solid #4b4f6b;
  border-radius: 8px;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.marketplace-stats-card h3 {
  color: #aaaabd;
  text-align: center;
  text-transform: none;
  margin: 0;
  font-size: 14px;
}

.marketplace-category-filter {
  background: #32344d;
  border: 1px solid #4b4f6b;
  border-radius: 8px;
  gap: 5px;
  margin: 0;
  padding: 12px;
  display: grid;
}

.marketplace-category-filter legend {
  color: #9b9aae;
  padding: 0 4px;
  font-size: 12px;
}

.marketplace-category-filter label {
  color: #f5f5fb;
  cursor: pointer;
  grid-template-columns: 28px auto 1fr;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  display: grid;
}

.marketplace-category-filter label.disabled {
  color: #85859d;
  cursor: not-allowed;
  opacity: .7;
}

.marketplace-category-filter input {
  accent-color: #00dfe8;
  width: 22px;
  height: 22px;
}

.marketplace-category-filter span {
  color: #aaaabd;
}

.marketplace-price-filter {
  background: #32344d;
  border: 1px solid #4b4f6b;
  border-radius: 8px;
  gap: 12px;
  padding: 12px;
  display: grid;
}

.marketplace-price-filter > div:first-child {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.marketplace-price-filter h3 {
  color: #f5f5fb;
  margin: 0;
  font-size: 15px;
}

.marketplace-price-filter > div:first-child button {
  color: #9fe9ea;
  cursor: pointer;
  background: none;
  border: 0;
  min-height: 32px;
  text-decoration: underline;
}

.marketplace-price-filter input[type="range"] {
  accent-color: #00dfe8;
  width: 100%;
}

.marketplace-price-inputs {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  display: grid;
}

.marketplace-price-inputs input, .marketplace-buy-controls--listing input, .marketplace-buy-controls--listing select {
  color: #f5f5fb;
  background: #202133;
  border: 1px solid #4b4f6b;
  border-radius: 6px;
  min-height: 42px;
  padding: 8px 10px;
}

.marketplace-price-inputs button {
  color: #17202a;
  cursor: pointer;
  background: #00dfe8;
  border: 0;
  border-radius: 6px;
  min-height: 42px;
  font-weight: 800;
}

.marketplace-buy-controls--listing label {
  color: #aaaabd;
}

.marketplace-buy-browser {
  background: #303249;
  border-color: #4b4f6b;
  border-radius: 8px;
  gap: 12px;
  padding: 16px;
}

.marketplace-buy-browser > h2 {
  display: none;
}

.marketplace-buy-cards {
  grid-template-columns: 1fr;
  gap: 12px;
}

.marketplace-buy-card {
  cursor: pointer;
  background: #303249;
  border: 1px solid #555a78;
  border-radius: 7px;
  grid-template-columns: 146px minmax(0, 1fr);
  gap: 14px;
  min-height: 142px;
  padding: 12px;
  display: grid;
}

.marketplace-buy-card:hover, .marketplace-buy-card:focus-visible {
  border-color: #00dfe8;
  outline: 0;
}

.marketplace-card-visual, .marketplace-detail-visual {
  background: #202133;
  border-radius: 5px;
  place-items: center;
  display: grid;
  overflow: hidden;
}

.marketplace-card-visual {
  min-height: 116px;
}

.marketplace-item-visual {
  object-fit: contain;
  width: 100%;
  max-width: 128px;
  height: 100%;
  max-height: 104px;
  image-rendering: pixelated;
}

.marketplace-item-visual--part {
  color: #00dfe8;
  background: #28334a;
  border: 2px solid #00dfe8;
  border-radius: 8px;
  place-items: center;
  width: 78px;
  height: 78px;
  font-size: 30px;
  font-weight: 800;
  display: grid;
}

.marketplace-buy-card__body {
  align-content: center;
  gap: 4px;
  min-width: 0;
  display: grid;
}

.marketplace-buy-card h3, .marketplace-buy-card p {
  color: #f5f5fb;
  margin: 0;
}

.marketplace-buy-card h3 {
  font-size: 18px;
}

.marketplace-buy-card p {
  font-size: 14px;
}

.marketplace-buy-card p:last-child, .marketplace-buy-card p:last-child strong {
  color: #00dfe8;
}

.marketplace-rarity--common {
  color: #f5f5fb;
}

.marketplace-rarity--uncommon {
  color: #59d17d;
}

.marketplace-rarity--rare {
  color: #00dfe8;
}

.marketplace-rarity--epic {
  color: #ff43cf;
}

.marketplace-rarity--legendary {
  color: #ffb14a;
}

.marketplace-rarity--unreal {
  color: #ff6675;
}

.marketplace-filter-panel {
  background: #24263a;
  border-color: #4b4f6b;
}

.marketplace-filter-panel summary {
  color: #f5f5fb;
}

.marketplace-detail {
  width: min(100%, 720px);
  margin: 0 auto;
}

.marketplace-detail-card {
  background: #303249;
  border: 1px solid #555a78;
  border-radius: 8px;
  gap: 12px;
  padding: 16px;
  display: grid;
}

.marketplace-detail-heading {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.marketplace-detail-heading h2 {
  color: #f5f5fb;
  margin: 0;
}

.marketplace-detail-close {
  color: #fff;
  cursor: pointer;
  background: #898ba8;
  border: 1px solid #a4a8c2;
  border-radius: 7px;
  width: 36px;
  height: 36px;
  font-size: 26px;
}

.marketplace-detail-visual {
  min-height: 180px;
}

.marketplace-detail-visual .marketplace-item-visual {
  max-width: 250px;
  max-height: 170px;
}

.marketplace-purchase-panel {
  color: #f5f5fb;
  gap: 10px;
  display: grid;
}

.marketplace-purchase-panel > label {
  color: #e8e8f1;
  gap: 5px;
  display: grid;
}

.marketplace-purchase-panel input[readonly] {
  color: #f5f5fb;
  background: #202133;
  border: 0;
  border-radius: 6px;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 700;
}

.marketplace-purchase-panel input:not([type="radio"]) {
  color: #f5f5fb;
  background: #202133;
  border: 1px solid #4b4f6b;
  border-radius: 6px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 16px;
}

.marketplace-inline-action {
  color: #9fe9ea;
  cursor: pointer;
  background: none;
  border: 0;
  text-decoration: underline;
}

.marketplace-quantity-stepper {
  text-align: center;
  background: #202133;
  border-radius: 6px;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 42px;
  display: grid;
}

.marketplace-quantity-stepper button {
  color: #fff;
  cursor: pointer;
  background: #8587a5;
  border: 1px solid #6f7190;
  border-radius: 6px;
  min-height: 42px;
  font-size: 22px;
}

.marketplace-purchase-panel fieldset {
  border: 0;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  display: flex;
}

.marketplace-purchase-panel fieldset label {
  color: #b8b9ca;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: flex;
}

.marketplace-buy-button {
  color: #12333b;
  cursor: pointer;
  background: #00aeb5;
  border: 1px solid #00f0f1;
  border-radius: 7px;
  min-height: 50px;
  font-size: 17px;
  font-weight: 800;
}

.marketplace-buy-button:disabled {
  opacity: .6;
  cursor: wait;
}

.marketplace-characteristics, .marketplace-price-distribution {
  border-top: 1px solid #676a85;
  gap: 6px;
  padding-top: 12px;
  display: grid;
}

.marketplace-characteristics h3, .marketplace-price-distribution h3 {
  color: #f5f5fb;
  margin: 0 0 4px;
}

.marketplace-characteristics > div, .marketplace-price-table > div {
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  display: grid;
}

.marketplace-characteristics > div span, .marketplace-price-table > div span, .marketplace-price-table > div strong {
  background: #24263a;
  padding: 8px;
}

.marketplace-characteristics > div strong {
  color: #f5f5fb;
  background: #24263a;
  padding: 8px;
}

.marketplace-detail-description {
  color: #f5f5fb;
  margin: 0;
  font-size: 15px;
}

.marketplace-price-table {
  gap: 4px;
  display: grid;
}

.marketplace-price-table > div:first-child {
  color: #b8b9ca;
}

.marketplace-median-chart {
  color: #f5f5fb;
  background: #202133;
  border-radius: 6px;
  gap: 6px;
  min-height: 150px;
  padding: 14px;
  display: grid;
}

.marketplace-median-chart span {
  color: #aaaabd;
  font-size: 12px;
}

.marketplace-chart-line {
  background: repeating-linear-gradient(#0000 0 23px, #565970 24px);
  border-bottom: 1px dashed #72758d;
  align-items: end;
  gap: 18%;
  min-height: 74px;
  padding: 0 12px 10px;
  display: flex;
}

.marketplace-chart-line i {
  background: #00dfe8;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: block;
  box-shadow: 0 0 0 3px #00dfe844;
}

@media (max-width: 600px) {
  .marketplace-buy-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .marketplace-card-visual {
    min-height: 106px;
  }

  .marketplace-buy-controls--listing {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .marketplace-buy-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .marketplace-buy-card h3 {
    font-size: 16px;
  }

  .marketplace-buy-card p {
    font-size: 12px;
  }

  .marketplace-price-inputs {
    grid-template-columns: 1fr auto 1fr 42px;
  }
}

.marketplace-buy-browser, .marketplace-panel, .marketplace-sell-navigation, .marketplace-sell-card, .marketplace-sell-listings, .marketplace-buy-controls, .marketplace-price-filter, .marketplace-category-filter, .marketplace-price-inputs, .marketplace-buy-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.marketplace-buy-browser, .marketplace-sell-card, .marketplace-sell-listings {
  width: min(100%, 720px);
  margin-inline: auto;
  overflow: hidden;
}

.marketplace-buy-browser input, .marketplace-buy-browser select, .marketplace-buy-controls label, .marketplace-buy-controls input, .marketplace-buy-controls select, .marketplace-price-inputs input, .marketplace-sell-form label, .marketplace-sell-form input, .marketplace-sell-form select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.marketplace-buy-controls--listing {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 84px);
}

.marketplace-price-inputs {
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 42px;
}

.marketplace-buy-card__body {
  min-width: 0;
  overflow: hidden;
}

.marketplace-buy-card h3, .marketplace-buy-card p {
  overflow-wrap: anywhere;
}

.marketplace-sell-navigation {
  width: min(100%, 720px);
  margin: 0 auto 10px;
}

.marketplace-sell-navigation .marketplace-mode-tabs {
  width: min(100%, 420px);
}

.marketplace-sell-navigation .marketplace-tabs {
  overscroll-behavior-x: none;
  flex-wrap: nowrap;
  width: 100%;
  padding-bottom: 2px;
  overflow-x: auto;
}

.marketplace-sell-navigation .marketplace-tabs button {
  flex: none;
}

.marketplace-panel-heading {
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  display: flex;
}

.marketplace-panel-heading h2 {
  margin-top: 3px;
  font-size: clamp(18px, 5vw, 24px);
}

.marketplace-kicker {
  color: #00dfe8;
  letter-spacing: .1em;
  font-size: 10px;
}

.marketplace-sell-badge {
  color: #9fe9ea;
  border: 1px solid #4b8e98;
  border-radius: 999px;
  flex: none;
  padding: 5px 7px;
  font-size: 10px;
}

.marketplace-sell-form {
  gap: 10px;
  display: grid;
}

.marketplace-sell-form > label {
  color: #d8d9e7;
  gap: 5px;
  font-size: 13px;
  display: grid;
}

.marketplace-sell-form input, .marketplace-sell-form select {
  color: #f5f5fb;
  background: #202133;
  border: 1px solid #555a78;
  border-radius: 7px;
  min-height: 44px;
  padding: 8px 10px;
}

.marketplace-sell-form fieldset {
  border: 1px solid #4b4f6b;
  border-radius: 7px;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 9px 10px;
  display: flex;
}

.marketplace-sell-form legend {
  color: #aaaabd;
  padding: 0 4px;
  font-size: 11px;
}

.marketplace-sell-form fieldset label {
  color: #d8d9e7;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: flex;
}

.marketplace-sell-form fieldset input {
  width: auto;
  min-height: auto;
}

.marketplace-sell-submit {
  color: #12333b;
  cursor: pointer;
  background: #00aeb5;
  border: 1px solid #00f0f1;
  border-radius: 7px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 800;
}

.marketplace-sell-submit:disabled, .marketplace-sell-listing button:disabled {
  cursor: wait;
  opacity: .6;
}

.marketplace-sell-list {
  gap: 8px;
  display: grid;
}

.marketplace-sell-listing {
  background: #24263a;
  border: 1px solid #555a78;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  display: flex;
}

.marketplace-sell-listing > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.marketplace-sell-listing strong, .marketplace-sell-listing small {
  overflow-wrap: anywhere;
}

.marketplace-sell-listing small {
  color: #aaaabd;
}

.marketplace-sell-listing button {
  color: #f5f5fb;
  cursor: pointer;
  background: #32344d;
  border: 1px solid #6f7190;
  border-radius: 6px;
  flex: none;
  min-height: 36px;
  padding: 5px 10px;
}

.marketplace-orders-browser {
  width: min(100%, 720px);
}

.marketplace-orders-tabs {
  width: 100%;
  margin: 0;
}

.marketplace-orders-tabs button {
  flex: 150px;
  min-height: 44px;
}

.marketplace-order-card {
  cursor: default;
}

.marketplace-order-card:hover, .marketplace-order-card:focus-visible {
  border-color: #555a78;
}

.marketplace-order-cancel {
  color: #f5f5fb;
  cursor: pointer;
  background: #32344d;
  border: 1px solid #6f7190;
  border-radius: 6px;
  min-height: 44px;
  margin-top: 4px;
  padding: 7px 10px;
}

.marketplace-order-cancel:disabled {
  cursor: wait;
  opacity: .6;
}

@media (max-width: 600px) {
  .marketplace-buy-controls--listing {
    grid-template-columns: 1fr;
  }

  .marketplace-price-inputs {
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 42px;
  }
}

@media (max-width: 420px) {
  .marketplace-sell-badge {
    display: none;
  }

  .marketplace-sell-listing {
    align-items: start;
  }
}

/* [project]/apps/web/src/app/auth-bootstrap.css [app-client] (css) */
.bootstrap-screen {
  isolation: isolate;
  background: #030912;
  place-items: center;
  min-height: 100svh;
  padding: 20px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.bootstrap-screen > .particle-background {
  z-index: 0;
}

.bootstrap-card {
  z-index: 1;
  text-align: center;
  background: #0d1b29;
  border: 1px solid #315b76;
  border-radius: 18px;
  width: min(100%, 420px);
  padding: 28px 22px;
  position: relative;
  box-shadow: 0 24px 70px #0008;
}

.bootstrap-logo {
  object-fit: contain;
  filter: drop-shadow(0 0 10px #39cfff6b);
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: block;
}

.bootstrap-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(27px, 8vw, 36px);
}

.bootstrap-card > p:last-child, .bootstrap-card--error > p {
  color: #9baeba;
  margin: 0;
  line-height: 1.55;
}

.bootstrap-eyebrow {
  color: #78d0e6;
  letter-spacing: .13em;
  margin: 0;
  font: 700 11px / 1.4 ui-monospace, monospace;
}

.bootstrap-card--error {
  border-color: #744747;
}

.bootstrap-card--error .bootstrap-eyebrow {
  color: #ed8b8b;
}

.bootstrap-card--error > .bootstrap-assurance {
  color: #c3d2dc;
  margin-bottom: 8px;
}

.bootstrap-card button {
  color: #e8f0f5;
  cursor: pointer;
  background: #173d56;
  border: 1px solid #4e94bb;
  border-radius: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
}

@media (max-height: 430px) {
  .bootstrap-card {
    padding-block: 16px;
  }

  .bootstrap-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
  }

  .bootstrap-card h1 {
    margin: 4px 0 6px;
  }

  .bootstrap-card button {
    margin-top: 12px;
  }
}

.prelaunch-screen {
  overscroll-behavior: none;
  min-height: 100svh;
  padding: calc(var(--cs-hud-top, var(--cs-safe-top, env(safe-area-inset-top))) + 18px)
    14px calc(24px + var(--cs-safe-bottom, env(safe-area-inset-bottom)));
  color: #e8f4fa;
  background: #030912;
  position: relative;
  overflow: auto;
}

.prelaunch-screen > .particle-background {
  z-index: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.prelaunch-content {
  z-index: 1;
  gap: 12px;
  width: min(100%, 720px);
  margin-inline: auto;
  display: grid;
  position: relative;
}

.prelaunch-hero, .prelaunch-referrals {
  background: linear-gradient(145deg, #102638e8, #091724e8);
  border: 1px solid #315b76;
  border-radius: 14px;
  gap: 9px;
  padding: 16px;
  display: grid;
  box-shadow: 0 12px 28px #0007;
}

.prelaunch-brand {
  color: #eef7ff;
  letter-spacing: .08em;
  margin: 0;
  font: 900 clamp(1.5rem, 7vw, 2.4rem) / 1 ui-monospace, monospace;
}

.prelaunch-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.1;
}

.prelaunch-hero > p:last-child {
  color: #b8cedc;
  margin: 0;
  line-height: 1.45;
}

.prelaunch-referrals > .eyebrow {
  margin: 0;
}

.prelaunch-link {
  background: #071522a8;
  border: 1px solid #315b76;
  border-radius: 10px;
  gap: 6px;
  padding: 10px;
  display: grid;
}

.prelaunch-link span, .prelaunch-link small, .prelaunch-state, .prelaunch-referral-list > small {
  color: #9db7c7;
  font-size: .75rem;
}

.prelaunch-link strong {
  overflow-wrap: anywhere;
  color: #e8f4fa;
  font: .72rem / 1.35 ui-monospace, monospace;
}

.prelaunch-link div {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.prelaunch-link button {
  color: #e8f4fa;
  background: #123247;
  border: 1px solid #4f91ad;
  border-radius: 8px;
  min-height: 36px;
  padding: 5px 9px;
  font-size: .7rem;
  font-weight: 800;
}

.prelaunch-counts {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  display: grid;
}

.prelaunch-counts span {
  color: #9db7c7;
  border: 1px solid #315b76;
  border-radius: 9px;
  justify-content: space-between;
  padding: 9px 10px;
  display: flex;
}

.prelaunch-counts strong {
  color: #72d5ed;
}

.prelaunch-referral-list {
  gap: 0;
  display: grid;
}

.prelaunch-referral-list .referral-detail:first-child {
  border-top: 0;
}

.development-session {
  color: #171207;
  text-align: center;
  background: #e5ba61;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.development-session--visual-prototype {
  z-index: 100;
  top: max(5px, env(safe-area-inset-top));
  color: #d8bd78;
  letter-spacing: .04em;
  pointer-events: none;
  background: #100d07c2;
  border: 1px solid #e5ba61ad;
  border-radius: 5px;
  padding: 3px 6px;
  font: 700 8px / 1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  position: fixed;
  left: 5px;
}

.bootstrap-art-surface {
  background-color: #080704;
  background-repeat: no-repeat;
  background-size: auto 100%;
  width: 100%;
  min-height: 100svh;
}

.bootstrap-art-surface--loading {
  background-position: 0;
}

.bootstrap-art-surface--closed {
  background-position: 100%;
}

.crypto-loader {
  isolation: isolate;
  color: #e8f4fa;
  background: #030912;
  place-items: center;
  min-height: 100svh;
  display: grid;
  position: relative;
  overflow: hidden;
}

.crypto-loader > .particle-background {
  z-index: 0;
  position: absolute;
  inset: 0;
}

.crypto-loader--overlay {
  z-index: 80;
  background: #030912c7;
  min-height: 0;
  position: absolute;
  inset: 0;
}

.crypto-loader-gate {
  z-index: 200;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .32s;
  position: fixed;
  inset: 0;
}

.crypto-loader-gate.is-fading {
  opacity: 0;
  pointer-events: none;
}

.crypto-loader__stage {
  z-index: 1;
  aspect-ratio: 1;
  isolation: isolate;
  place-items: center;
  width: min(52vw, 235px);
  display: grid;
  position: relative;
}

.crypto-loader__stage:before, .crypto-loader__stage:after {
  pointer-events: none;
  content: "";
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

.crypto-loader__stage:before {
  z-index: -2;
  filter: blur(10px);
  background: radial-gradient(circle, #29cdff52 0, #22aeec2e 30%, #22aeec00 70%);
  animation: 3.8s ease-in-out infinite prelaunch-energy-halo;
}

.crypto-loader__stage:after {
  z-index: -1;
  filter: blur(4px);
  opacity: 0;
  background: radial-gradient(circle, #48d0ff2e 0, #48d0ff14 38%, #0000 68%);
  border: 1px solid #5adaff57;
  animation: 8s ease-out infinite prelaunch-energy-surge;
}

.crypto-loader__logo {
  z-index: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 7px #39cfff61);
  transform-origin: center;
  width: clamp(112px, 34vw, 152px);
  max-width: 100%;
  height: auto;
  animation: 3.8s ease-in-out infinite prelaunch-logo-breathe;
  display: block;
  position: relative;
}

.crypto-loader__status {
  z-index: 2;
  right: 16px;
  bottom: max(24px, env(safe-area-inset-bottom));
  color: #9edff2;
  letter-spacing: .12em;
  text-align: center;
  justify-items: center;
  gap: 12px;
  font: 800 12px / 1.2 ui-monospace, monospace;
  display: grid;
  position: absolute;
  left: 16px;
}

.crypto-loader__status button {
  color: #e8f4fa;
  min-width: 112px;
  min-height: 44px;
  font: inherit;
  letter-spacing: .08em;
  cursor: pointer;
  background: #134965e6;
  border: 1px solid #5adaffb8;
  border-radius: 4px;
  padding: 8px 16px;
}

.crypto-loader__status button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #e8f4fa;
}

.prelaunch-hero {
  isolation: isolate;
  box-shadow: none;
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
  justify-items: center;
  gap: 7px;
  padding: 4px 8px 12px;
  position: relative;
  overflow: hidden;
}

.prelaunch-hero:before, .prelaunch-hero:after {
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  border-radius: 50%;
  width: clamp(170px, 52vw, 235px);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translate(-50%, -3%);
}

.prelaunch-hero:before {
  z-index: -2;
  filter: blur(10px);
  background: radial-gradient(circle, #29cdff52 0, #22aeec2e 30%, #22aeec00 70%);
  animation: 3.8s ease-in-out infinite prelaunch-energy-halo;
}

.prelaunch-hero:after {
  z-index: -1;
  filter: blur(4px);
  opacity: 0;
  background: radial-gradient(circle, #48d0ff2e 0, #48d0ff14 38%, #0000 68%);
  border: 1px solid #5adaff57;
  animation: 8s ease-out infinite prelaunch-energy-surge;
}

.prelaunch-logo {
  z-index: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 7px #39cfff61);
  transform-origin: center;
  width: clamp(112px, 34vw, 152px);
  max-width: 100%;
  height: auto;
  animation: 3.8s ease-in-out infinite prelaunch-logo-breathe;
  display: block;
  position: relative;
}

.prelaunch-hero .prelaunch-brand {
  font-size: clamp(1.25rem, 5.6vw, 1.8rem);
}

@keyframes prelaunch-logo-breathe {
  0%, 100% {
    filter: drop-shadow(0 0 5px #39cfff52) brightness(.92);
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 15px #39cfffc7) brightness(1.12);
    transform: scale(1.025);
  }
}

@keyframes prelaunch-energy-halo {
  0%, 100% {
    opacity: .15;
    transform: translate(-50%, -3%) scale(.88);
  }

  50% {
    opacity: .5;
    transform: translate(-50%, -3%) scale(1.08);
  }
}

@keyframes prelaunch-energy-surge {
  0%, 68%, 100% {
    opacity: 0;
    transform: translate(-50%, -3%) scale(.88);
  }

  74% {
    opacity: .5;
  }

  88% {
    opacity: 0;
    transform: translate(-50%, -3%) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prelaunch-logo, .prelaunch-hero:before, .prelaunch-hero:after {
    animation: none;
  }

  .prelaunch-logo {
    filter: drop-shadow(0 0 8px #39cfff7a);
    transform: none;
  }

  .prelaunch-hero:before {
    opacity: .25;
    transform: translate(-50%, -3%) scale(.96);
  }

  .prelaunch-hero:after {
    opacity: 0;
  }

  .crypto-loader__logo, .crypto-loader__stage:before, .crypto-loader__stage:after {
    animation: none;
  }

  .crypto-loader__logo {
    filter: drop-shadow(0 0 8px #39cfff7a);
    transform: none;
  }

  .crypto-loader__stage:before {
    opacity: .25;
    transform: scale(.96);
  }

  .crypto-loader__stage:after {
    opacity: 0;
  }
}

.prelaunch-content > *, .prelaunch-referrals > *, .prelaunch-referral-list > * {
  min-width: 0;
}

.prelaunch-referrals > .eyebrow {
  color: #72d5ed;
}

.prelaunch-hero p {
  margin: 0;
}

.prelaunch-hero .prelaunch-welcome {
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  font-size: clamp(.75rem, 3.2vw, .9rem);
  line-height: 1.3;
}

.prelaunch-hero .prelaunch-status {
  color: #72d5ed;
  letter-spacing: .08em;
  border: 1px solid #4f91ad;
  border-radius: 6px;
  width: fit-content;
  padding: 5px 8px;
  font: 700 .65rem / 1.4 ui-monospace, monospace;
}

.prelaunch-hero .prelaunch-message {
  color: #eef7ff;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.prelaunch-hero .prelaunch-description, .prelaunch-invite {
  color: #b8cedc;
  margin: 0;
  font-size: .82rem;
  line-height: 1.45;
}

.prelaunch-hero .prelaunch-context {
  color: #a2e2f2;
  border-top: 1px solid #315b7680;
  padding-top: 9px;
  font-size: .8rem;
  line-height: 1.4;
}

.prelaunch-referral-list .referral-detail__identity strong {
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: .8rem;
}

.prelaunch-referral-list .referral-detail__income span {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}

.prelaunch-countdown {
  text-align: center;
  background: #07152255;
  border-block: 1px solid #315b7666;
  gap: 7px;
  padding: 10px 8px;
  display: grid;
}

.prelaunch-countdown__label {
  color: #72d5ed;
  letter-spacing: .1em;
  margin: 0;
  font: 700 .62rem / 1.3 ui-monospace, monospace;
}

.prelaunch-countdown__units {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  display: grid;
}

.prelaunch-countdown__units div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.prelaunch-countdown__units strong {
  color: #e8f8ff;
  text-shadow: 0 0 10px #39cfff66;
  font: 800 clamp(1.35rem, 7vw, 2rem) / 1 ui-monospace, monospace;
}

.prelaunch-countdown__units small {
  color: #9db7c7;
  letter-spacing: .04em;
  font-size: clamp(.48rem, 2.4vw, .62rem);
}

@media (prefers-reduced-motion: reduce) {
  .prelaunch-countdown__units strong {
    text-shadow: 0 0 6px #39cfff44;
  }
}

/* [project]/apps/web/src/app/mining-hall-visual.css [app-client] (css) */
.hall-state {
  z-index: 6;
  color: #dff8ee;
  text-align: center;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #020e0beb;
  border: 1px solid #60e9bd59;
  border-radius: 14px;
  place-items: center;
  gap: 12px;
  min-height: 180px;
  padding: 20px;
  display: grid;
  position: absolute;
  inset: auto 16px 16px;
}

.hall-state--error {
  border-color: #e66d6d8c;
}

.hall-state button {
  color: #dff8ee;
  background: #12342d;
  border: 1px solid #3d7464;
  border-radius: 9px;
  min-height: 44px;
  padding: 0 18px;
}

/* [project]/apps/web/src/app/mining-hall-scene.css [app-client] (css) */
.hall-scene {
  isolation: isolate;
  background: none;
  min-height: 0;
  position: relative;
  overflow: visible;
}

.hall-card .hall-scene:before, .hall-card .hall-scene:after {
  content: none !important;
  display: none !important;
}

.mining-hall-sections {
  touch-action: pan-y;
  width: 100%;
  position: relative;
}

.mining-hall-sections__viewport {
  overflow: hidden;
}

.mining-hall-sections__track {
  will-change: transform;
  width: 500%;
  transition: transform .24s ease-out;
  display: flex;
}

.mining-hall-sections__panel {
  flex: 0 0 20%;
  min-width: 0;
}

.mining-hall-sections__switcher {
  z-index: 5;
  background: none;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  display: flex;
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
}

.mining-hall-sections__number {
  color: #a6c8d8;
  touch-action: manipulation;
  background: #061624d1;
  border: 1px solid #63daff52;
  border-radius: 4px;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  display: grid;
}

.mining-hall-sections__number.is-active {
  color: #eafaff;
  background: linear-gradient(145deg, #287eaa, #15506f);
  border-color: #63daff;
  box-shadow: 0 0 16px #63daff42, inset 0 1px #ffffff2e;
}

.mining-hall-sections__number--add {
  color: #63daff;
  background: #06162494;
  border-style: dashed;
  border-color: #63daff8c;
  font-size: 22px;
}

.mining-hall-sections__number:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #63daff;
}

.mining-hall-sections__number:not(:disabled) {
  cursor: pointer;
}

.mining-hall-sections__number:not(:disabled):hover {
  background-color: #184c68c7;
  border-color: #63daff;
}

.mining-hall-sections__number--add:disabled {
  cursor: default;
  opacity: .8;
}

.mining-hall-sections__unlock {
  z-index: 6;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: linear-gradient(#020812b3, #020812e6);
  place-items: center;
  padding: 16px;
  display: grid;
  position: absolute;
  inset: 0;
}

.mining-hall-sections__unlock-card {
  color: #eaf6ff;
  background: linear-gradient(145deg, #0b1c2bfa, #06101bfa);
  border: 1px solid #63daff80;
  border-radius: 4px;
  gap: 14px;
  width: min(100%, 360px);
  padding: 22px 20px 18px;
  display: grid;
  position: relative;
  box-shadow: 0 0 0 1px #63daff14, 0 20px 48px #0000009e, inset 0 1px #ffffff0f;
}

.mining-hall-sections__unlock-card:before, .mining-hall-sections__unlock-card:after {
  content: "";
  pointer-events: none;
  border-style: solid;
  border-color: #63daff;
  width: 26px;
  height: 26px;
  position: absolute;
}

.mining-hall-sections__unlock-card:before {
  border-width: 2px 0 0 2px;
  inset: -1px auto auto -1px;
}

.mining-hall-sections__unlock-card:after {
  border-width: 0 2px 2px 0;
  inset: auto -1px -1px auto;
}

.mining-hall-sections__unlock-kicker, .mining-hall-sections__unlock-price-label, .mining-hall-sections__unlock-price-unit {
  color: #6e9db4;
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 700;
}

.mining-hall-sections__unlock-card > strong {
  color: #f4fbff;
  letter-spacing: -.02em;
  font-size: 23px;
}

.mining-hall-sections__unlock-price {
  background: #030d17b8;
  border: 1px solid #ffba5452;
  border-left: 3px solid #ffba54;
  gap: 3px;
  padding: 13px 14px;
  display: grid;
}

.mining-hall-sections__unlock-price-value {
  color: #ffd08a;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
}

.mining-hall-sections__unlock-price-unit {
  color: #c08d4f;
  font-size: 9px;
}

.mining-hall-sections__unlock-hint {
  color: #9bb3c1;
  font-size: 12px;
}

.mining-hall-sections__unlock-sources, .mining-hall-sections__unlock-actions {
  gap: 8px;
  display: flex;
}

.mining-hall-sections__unlock-sources button, .mining-hall-sections__unlock-actions button {
  color: #b9d3df;
  background: #071622ad;
  border: 1px solid #72a4ba47;
  border-radius: 3px;
  flex: 1;
  min-height: 48px;
  padding: 8px 10px;
  font-size: 12px;
  transition: border-color .16s, background .16s, color .16s;
}

.mining-hall-sections__unlock-sources button.is-selected {
  color: #e9fbff;
  background: #1e84a95c;
  border-color: #63daff;
  box-shadow: inset 0 0 18px #63daff1a;
}

.mining-hall-sections__unlock-actions {
  align-items: stretch;
  padding-top: 2px;
}

.mining-hall-sections__unlock-cancel {
  letter-spacing: .1em;
  color: #8ea7b5 !important;
  background: none !important;
  border-color: #0000 !important;
  flex: 0 0 84px !important;
  font-size: 10px !important;
}

.mining-hall-sections__unlock-buy {
  letter-spacing: .04em;
  font-weight: 800;
  box-shadow: 0 0 18px #63daff33;
  color: #04141b !important;
  background: linear-gradient(135deg, #63daff, #7df4d0) !important;
  border-color: #8af5dc !important;
}

.mining-hall-sections__unlock-buy:disabled {
  opacity: .45;
  box-shadow: none;
}

.mining-hall-sections__unlock-card p {
  color: #ffb4b4;
  background: #80203233;
  border: 1px solid #ff788c4d;
  margin: 0;
  padding: 9px 10px;
  font-size: 12px;
}

.mining-hall-viewport {
  z-index: 3;
  isolation: isolate;
  background: #0a100f;
  width: min(100%, 640px);
  margin-inline: auto;
  display: block;
  position: relative;
  overflow: visible;
  box-shadow: 0 22px 58px #0000007a;
}

.mining-room-composition {
  aspect-ratio: 1 / 2;
  isolation: isolate;
  background: #332b1e;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.mining-room-scene {
  isolation: isolate;
  width: 100%;
  height: 75%;
  position: relative;
  overflow: hidden;
}

.mining-room-scene__floor-continuation {
  background: #332b1e;
  width: 100%;
  height: 25%;
  display: block;
  overflow: hidden;
}

.mining-room-scene__floor-continuation img {
  object-fit: cover;
  object-position: center top;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
}

.mining-room-scene__environment {
  z-index: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
  position: absolute;
  inset: 0;
}

.mining-room-scene__ambient {
  z-index: 1;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.mining-room-scene__wall-display {
  background: repeating-linear-gradient(0deg, #48d3e214 0 1px, #0000 1px 20%), repeating-linear-gradient(90deg, #48d3e20f 0 1px, #0000 1px 16.66%), #031014e6;
  width: 31.5%;
  height: 7.9%;
  position: absolute;
  top: 8.05%;
  left: 29%;
  overflow: hidden;
  box-shadow: inset 0 0 12px #23d1e133;
}

.mining-room-scene__wall-display svg {
  width: 100%;
  height: 100%;
}

.mining-room-scene__wall-display polyline {
  fill: none;
  stroke: #54e7ef;
  stroke-width: .9px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 2px #54e7efe6);
  stroke-dasharray: 4 3;
  animation: 5.4s linear infinite mining-hall-wall-trace;
}

.mining-room-scene__wall-display polyline + polyline {
  stroke: #f0a33a;
  opacity: .78;
  animation-duration: 7.2s;
  animation-direction: reverse;
}

.mining-room-scene__operator-terminal {
  background: #021114e0;
  align-content: center;
  gap: 7%;
  width: 12.3%;
  height: 4.3%;
  padding: .45% .65%;
  display: grid;
  position: absolute;
  top: 17.72%;
  left: 31.35%;
  box-shadow: inset 0 0 8px #3ddae033;
}

.mining-room-scene__operator-terminal span {
  transform-origin: 0;
  background: #61e8e7;
  width: 64%;
  height: 8%;
  min-height: 1px;
  animation: 3.2s steps(5, end) infinite mining-hall-terminal-line;
  display: block;
  box-shadow: 0 0 3px #61e8e7cc;
}

.mining-room-scene__operator-terminal span:nth-child(2) {
  width: 82%;
  animation-delay: -.8s;
}

.mining-room-scene__operator-terminal span:nth-child(3) {
  width: 46%;
  animation-delay: -1.6s;
}

.mining-room-scene__operator-terminal span:nth-child(4) {
  background: #e69c38;
  width: 72%;
  animation-delay: -2.4s;
}

.mining-room-scene__ambient[data-hall="I"][data-skin-code="premium_renovation_v1"] .mining-room-scene__wall-display {
  width: 34%;
  height: 8%;
  top: 8%;
  left: 28.7%;
}

.mining-room-scene__ambient[data-hall="I"][data-skin-code="premium_renovation_v1"] .mining-room-scene__operator-terminal {
  width: 18.5%;
  height: 4.1%;
  top: 18.25%;
  left: 28.7%;
}

.mining-room-scene__ambient[data-hall="III"] .mining-room-scene__wall-display--media {
  width: 35.8%;
  height: 9.6%;
  top: 7.8%;
  left: 32.3%;
}

.mining-room-scene__aquarium-bubbles {
  width: 20.5%;
  height: 7.3%;
  position: absolute;
  top: 17.4%;
  left: 73.4%;
  overflow: hidden;
}

.mining-room-scene__aquarium-bubbles span {
  aspect-ratio: 1;
  background: #94e2f31f;
  border: 1px solid #b4f3ffad;
  border-radius: 50%;
  width: 2.2%;
  animation: 5.2s ease-in infinite mining-hall-aquarium-bubble;
  position: absolute;
  bottom: -8%;
  box-shadow: 0 0 3px #6ee4ff94;
}

.mining-room-scene__aquarium-bubbles span:first-child {
  animation-delay: -1.2s;
  left: 18%;
}

.mining-room-scene__aquarium-bubbles span:nth-child(2) {
  animation-delay: -3.8s;
  left: 36%;
}

.mining-room-scene__aquarium-bubbles span:nth-child(3) {
  animation-delay: -2.5s;
  left: 56%;
}

.mining-room-scene__aquarium-bubbles span:nth-child(4) {
  animation-delay: -4.4s;
  left: 72%;
}

.mining-room-scene__aquarium-bubbles span:nth-child(5) {
  animation-delay: -.4s;
  left: 86%;
}

.mining-room-scene__cat {
  z-index: 2;
  cursor: pointer;
  touch-action: manipulation;
  transform-origin: 60% 80%;
  background: none;
  border: 0;
  width: 11.2%;
  height: 6.4%;
  padding: 0;
  position: absolute;
  top: 20.9%;
  left: 68.5%;
}

.mining-room-scene__cat:before {
  content: "";
  z-index: 0;
  filter: blur(1.5px);
  background: #00000094;
  border-radius: 50%;
  height: 14%;
  position: absolute;
  bottom: 12%;
  left: 16%;
  right: 12%;
}

.mining-room-scene__cat-frame {
  z-index: 1;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 2px 2px #00000094);
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.mining-room-scene__cat-frame--resting {
  opacity: 1;
}

.mining-room-scene__cat-frame--crouch {
  transform: scale(1.12);
}

.mining-room-scene__cat-frame--leap {
  transform: scale(1.38);
}

.mining-room-scene__cat:focus-visible {
  outline-offset: 1px;
  outline: 2px solid #67dfe8;
}

.mining-room-scene__cat[data-cat-state="leaving"] {
  pointer-events: none;
  animation: 1.4s linear forwards mining-hall-cat-leave;
}

.mining-room-scene__cat[data-cat-state="leaving"] .mining-room-scene__cat-frame--resting {
  animation: 1.4s step-end forwards mining-hall-cat-frame-resting;
}

.mining-room-scene__cat[data-cat-state="leaving"] .mining-room-scene__cat-frame--startled {
  animation: 1.4s step-end forwards mining-hall-cat-frame-startled;
}

.mining-room-scene__cat[data-cat-state="leaving"] .mining-room-scene__cat-frame--crouch {
  animation: 1.4s step-end forwards mining-hall-cat-frame-crouch;
}

.mining-room-scene__cat[data-cat-state="leaving"] .mining-room-scene__cat-frame--leap {
  animation: 1.4s step-end forwards mining-hall-cat-frame-leap;
}

.mining-room-scene__cat[data-cat-state="away"] {
  visibility: hidden;
  opacity: 0;
}

@keyframes mining-hall-wall-trace {
  to {
    stroke-dashoffset: -28px;
  }
}

@keyframes mining-hall-cat-leave {
  0% {
    opacity: 1;
    transform: translate(0);
  }

  43% {
    opacity: 1;
    transform: translate(0);
  }

  85% {
    opacity: 1;
    transform: translate(78%, -22%) scale(.86);
  }

  100% {
    opacity: 0;
    transform: translate(110%, -28%) scale(.8);
  }
}

@keyframes mining-hall-cat-frame-resting {
  0%, 9.9% {
    opacity: 1;
  }

  10%, 100% {
    opacity: 0;
  }
}

@keyframes mining-hall-cat-frame-startled {
  0%, 9.9%, 28%, 100% {
    opacity: 0;
  }

  10%, 27.9% {
    opacity: 1;
  }
}

@keyframes mining-hall-cat-frame-crouch {
  0%, 27.9%, 43%, 100% {
    opacity: 0;
  }

  28%, 42.9% {
    opacity: 1;
  }
}

@keyframes mining-hall-cat-frame-leap {
  0%, 42.9% {
    opacity: 0;
  }

  43%, 100% {
    opacity: 1;
  }
}

@keyframes mining-hall-terminal-line {
  0%, 18% {
    opacity: .45;
    transform: scaleX(.16);
  }

  72%, 100% {
    opacity: .95;
    transform: scaleX(1);
  }
}

@keyframes mining-hall-aquarium-bubble {
  0% {
    opacity: 0;
    transform: translateY(0) scale(.72);
  }

  16% {
    opacity: .68;
  }

  82% {
    opacity: .5;
  }

  100% {
    opacity: 0;
    transform: translateY(-440%) scale(1.12);
  }
}

.mining-room-scene__rack-field {
  z-index: 4;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.mining-room-scene__equipment, .mining-room-scene__hitboxes {
  z-index: 1;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.mining-room-scene__hitboxes {
  z-index: 2;
}

.mining-hall-viewport__frame {
  z-index: 10;
  pointer-events: none;
  object-fit: fill;
  -webkit-user-select: none;
  user-select: none;
  width: 105%;
  max-width: none;
  height: 105%;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.scene-rack-sprite, .scene-rack-hitbox {
  position: absolute;
}

.scene-rack-sprite {
  overflow: visible;
}

.scene-rack-art {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.scene-rack-art:after {
  content: "";
  z-index: 0;
  filter: blur(1px);
  background: #0000006b;
  border-radius: 50%;
  height: 5%;
  position: absolute;
  bottom: 2%;
  left: 7%;
  right: 9%;
}

.scene-rack-frame {
  z-index: 1;
  object-fit: contain;
  width: 100%;
  max-width: none;
  height: 100%;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 3px #000000c2) saturate(1.12) brightness(1.08) contrast(1.18);
  position: relative;
}

.scene-miner-sprite {
  z-index: 2;
  transform-origin: bottom;
  filter: drop-shadow(0 1px 1px #000000c7)
    drop-shadow(0 0 2px var(--equipment-accent, #64dcb480))
    hue-rotate(var(--equipment-hue, 0deg)) saturate(1.7) brightness(1.2)
    contrast(1.13);
  display: block;
  position: absolute;
  transform: none;
}

.scene-miner-sprite__asset {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}

.scene-miner-rarity-slot {
  z-index: 4;
  pointer-events: none;
  display: block;
  position: absolute;
  overflow: visible;
}

.scene-miner-rarity-slot[data-rarity-numeral]:after {
  content: attr(data-rarity-numeral);
  color: #aeb9c0;
  width: auto;
  min-width: 0;
  height: auto;
  box-shadow: none;
  text-shadow: 0 1px 1px #000, 0 0 1px #000;
  white-space: nowrap;
  pointer-events: none;
  background: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 0;
  font: 900 7px / 1 ui-monospace, monospace;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
}

.scene-miner-rarity-slot.rarity-uncommon:after {
  color: #55c178;
}

.scene-miner-rarity-slot.rarity-rare:after {
  color: #4ca9ec;
}

.scene-miner-rarity-slot.rarity-epic:after {
  color: #af71e7;
}

.scene-miner-rarity-slot.rarity-legendary:after {
  color: #edc14f;
}

.scene-miner-rarity-slot.rarity-unreal:after {
  color: #ff4e63;
}

.scene-rack-sprite[data-equipment-accent="green"] {
  --equipment-accent: #69ff5ed1;
  --equipment-hue: 68deg;
}

.scene-rack-sprite[data-equipment-accent="amber"] {
  --equipment-accent: #ffbb37d1;
  --equipment-hue: 0deg;
}

.scene-rack-sprite[data-equipment-accent="violet"] {
  --equipment-accent: #bb68ffd1;
  --equipment-hue: 248deg;
}

.scene-rack-sprite[data-equipment-accent="cyan"] {
  --equipment-accent: #39deffd1;
  --equipment-hue: 148deg;
}

.scene-rack-sprite[data-equipment-accent="red"] {
  --equipment-accent: #ff5b3fd1;
  --equipment-hue: -22deg;
}

.scene-rack-sprite[data-equipment-accent] .scene-miner-sprite {
  filter: drop-shadow(0 1px 1px #000c)
    drop-shadow(0 0 2px var(--equipment-accent)) sepia(.62) saturate(3.4)
    hue-rotate(var(--equipment-hue)) brightness(1.24) contrast(1.14);
}

.scene-rack-foreground {
  z-index: 3;
  pointer-events: none;
  object-fit: contain;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  position: absolute;
  inset: 0;
}

.scene-miner-dev-preview-marker {
  z-index: 4;
  color: #dcf8ff;
  letter-spacing: .04em;
  pointer-events: none;
  white-space: nowrap;
  background: #04101fe6;
  border: 1px solid #62deffa6;
  border-radius: 2px;
  padding: 1px 3px;
  font: 700 clamp(5px, .78vw, 8px) / 1 ui-monospace, SFMono-Regular, Menlo, monospace;
  position: absolute;
  top: 35%;
  right: -4%;
  box-shadow: 0 1px 3px #000000a6;
}

.scene-rack-position-plate {
  z-index: 4;
  color: #eafff8;
  text-align: center;
  background: #04110eeb;
  border: 1px solid #76dbbca6;
  border-radius: 3px;
  min-width: 28%;
  padding: 2.5% 4%;
  font: 700 clamp(7px, 1.4vw, 11px) / 1 ui-monospace, SFMono-Regular, Menlo, monospace;
  position: absolute;
  top: 1.5%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 5px #000000a8, inset 0 0 7px #37dcae1f;
}

.scene-rack-hitbox {
  pointer-events: auto;
}

.scene-rack-hitbox--empty {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.scene-rack-hitbox--empty:hover, .scene-rack-hitbox--empty:focus-visible, .scene-rack-hitbox--empty.is-selected {
  outline-offset: -1px;
  background: radial-gradient(#3cad8226, #0000 72%);
  border-radius: 4px;
  outline: 1px solid #83edc7b8;
  box-shadow: inset 0 0 13px #3ad6a229;
}

.scene-rack-hitbox--installed {
  pointer-events: none;
}

.equipment-visual {
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

.equipment-visual--inventory {
  width: 100%;
  height: 104px;
}

.equipment-visual--thumbnail {
  width: 48px;
  height: 48px;
}

.storage-card__miner-visual {
  background: linear-gradient(145deg, #152420, #09110e);
  border-radius: 10px;
  width: 100%;
  height: 126px;
  margin-bottom: 8px;
  display: block;
  position: relative;
  overflow: hidden;
}

.storage-card__miner-visual .storage-card__art {
  border-radius: inherit;
  width: 100%;
  height: 100%;
}

.storage-card__action {
  color: #e0f8ee;
  cursor: pointer;
  background: #153b30;
  border: 1px solid #4a8873;
  border-radius: 8px;
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  font-weight: 700;
}

.storage-card__action--pending {
  cursor: wait;
  border-color: #315b76;
  transform: translateY(2px);
  box-shadow: inset 0 3px 7px #020b14cc;
}

.equipment-storage__card--visual {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.equipment-storage__card--visual .equipment-visual {
  width: 48px;
  height: 48px;
}

@media (max-width: 500px) {
  .mining-hall-viewport {
    width: 100%;
  }

  .scene-miner-sprite {
    filter: drop-shadow(0 1px 2px #000000c7) saturate(1.16) contrast(1.08);
  }

  .storage-card__art {
    height: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-rack-hitbox--empty {
    transition: none;
  }

  .mining-room-scene__wall-display polyline, .mining-room-scene__operator-terminal span, .mining-room-scene__aquarium-bubbles span {
    animation: none;
  }

  .mining-room-scene__cat[data-cat-state="leaving"] {
    animation-duration: 1ms;
  }
}

.mining-hall-viewport.is-critical-loading .mining-room-scene, .mining-hall-viewport.is-critical-loading .mining-room-scene__floor-continuation, .mining-hall-viewport.is-critical-loading .mining-room-scene__rack-field {
  visibility: hidden;
}

.mining-hall-viewport__loading {
  z-index: 50;
  color: #e8f0f5;
  text-align: center;
  letter-spacing: .12em;
  background: linear-gradient(145deg, #102638, #07111d);
  place-content: center;
  gap: 8px;
  min-height: 180px;
  font: 800 clamp(12px, 2vw, 16px) / 1.2 ui-monospace, monospace;
  display: grid;
  position: absolute;
  inset: 0;
}

.mining-hall-viewport__loading small {
  color: #78d0e6;
  letter-spacing: .09em;
  font-size: .66em;
}

.rack-sheet__edit {
  border: 1px solid var(--cs-blue, #4e94bb);
  color: #e8f0f5;
  cursor: pointer;
  background: linear-gradient(145deg, #1a4a66, #10283b);
  border-radius: 9px;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  font-weight: 800;
}

@media (min-width: 501px) {
  .mining-hall-viewport {
    width: min(100%, 640px);
  }
}

/* [project]/apps/web/src/app/gameplay-visual.css [app-client] (css) */
.gameplay-background-shell :is(button, a, [role="button"]) {
  -webkit-tap-highlight-color: transparent;
}

:is(.game-shell, .gameplay-surface--store, .store-dialog) :is(button, [role="button"]):not(:disabled):not([aria-disabled="true"]) {
  touch-action: manipulation;
  transition: translate 80ms ease-out, scale 80ms ease-out, filter .1s ease-out;
}

:is(.game-shell, .gameplay-surface--store, .store-dialog) :is(button, [role="button"]):not(:disabled):not([aria-disabled="true"]):active {
  filter: brightness(.86) saturate(.96);
  translate: 0 1px;
  scale: .975;
}

.gameplay-surface--wallet .wallet-screen__hero:before, .gameplay-surface--wallet .wallet-screen__hero:after {
  content: none;
}

.wallet-screen__hero-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.gameplay-surface--wallet .wallet-screen__shell:before {
  background-image: url("/game/optimized/ui/mining-hall-shell-frame-concept-v2-2026-11-06.png");
}

.gameplay-store__controls-frame > header.wallet-screen__header {
  z-index: 4;
  box-sizing: border-box;
  width: auto;
  min-height: 0;
  box-shadow: none;
  clip-path: none;
  background: none;
  border: 0;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 18px 22px;
  display: flex;
  position: absolute;
  inset: 0;
}

.gameplay-surface--wallet .wallet-screen__scroll {
  inset: 31px 18px calc(var(--store-nav-height) + 6.5%);
  padding: 0 2px 16px;
}

.gameplay-surface--wallet .wallet-home {
  box-sizing: border-box;
  width: 100%;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  background: none;
  border: 0;
  border-radius: 0;
  gap: 12px;
  padding: 0 2px 16px;
  display: grid;
}

.gameplay-surface--wallet .wallet-screen__state {
  color: #a9bec6;
  text-align: center;
  place-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 150px;
  margin: 0;
  display: grid;
}

.gameplay-surface--wallet .wallet-screen__state p {
  margin: 0;
}

.gameplay-surface--wallet .wallet-screen__debt {
  box-sizing: border-box;
  color: #d9a4a5;
  background: #291419cc;
  border: 1px solid #884f53;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 8px 11px;
  font-size: 12px;
  display: flex;
}

.gameplay-surface--wallet .wallet-ton-connect--identity {
  box-sizing: border-box;
  background: linear-gradient(90deg, #45d7ed08 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(#0d2531f2, #041019f5);
  border: 1px solid #477687;
  border-radius: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 8px 10px;
  display: grid;
  box-shadow: inset 0 0 0 1px #02080d, inset 0 1px #b7f5ff24, 0 5px 14px #0005;
}

.gameplay-surface--wallet .wallet-ton-connect--identity .wallet-ton-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
  min-width: 0;
  display: flex;
}

.gameplay-surface--wallet .wallet-ton-status-dot {
  background: #db5158;
  border: 1px solid #ff9da2;
  border-radius: 50%;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 2px #02080d, 0 0 9px #db515866;
}

.gameplay-surface--wallet .wallet-ton-connect--identity[data-connected="true"] .wallet-ton-status-dot {
  background: #63d59a;
  border-color: #79d8b0;
  box-shadow: 0 0 0 2px #02080d, 0 0 10px #63d59a66;
}

.gameplay-surface--wallet .wallet-ton-network {
  color: #e2edf0;
  letter-spacing: .08em;
  font: 850 14px / 17px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--wallet .wallet-ton-status {
  color: #94a9b1;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  font: 750 10.5px / 13px Arial Narrow, Roboto Condensed, sans-serif;
  overflow: hidden;
}

.gameplay-surface--wallet .wallet-ton-connect--identity[data-connected="false"] .wallet-ton-status {
  color: #f09297;
}

.gameplay-surface--wallet .wallet-ton-connect--identity[data-proof-state="verified"] .wallet-ton-status {
  color: #78d7a0;
}

.gameplay-surface--wallet .wallet-ton-row small {
  color: #9eb3ba;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 750 11px / 14px ui-monospace, monospace;
  overflow: hidden;
}

.gameplay-surface--wallet .wallet-ton-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  display: flex;
}

.gameplay-surface--wallet .wallet-link-action, .gameplay-surface--wallet .wallet-screen__actions button, .gameplay-surface--wallet .wallet-operations__filters button, .gameplay-surface--wallet .wallet-primary-action {
  isolation: isolate;
  box-sizing: border-box;
  appearance: none;
  color: #cce1e6;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(#1b3945, #07131a 72%);
  border: 1px solid #416c7b;
  border-radius: 0;
  min-height: 48px;
  font: 800 12px / 15px Arial Narrow, Roboto Condensed, sans-serif;
  transition: color .12s, border-color .12s, box-shadow .1s, filter .12s, transform 80ms;
  position: relative;
  box-shadow: inset 0 0 0 1px #02080d, inset 0 1px #d4f8ff30, inset 0 -3px #02080dcc, 0 2px #02070b, 0 5px 10px #0005;
}

.gameplay-surface--wallet .wallet-link-action {
  color: #bfe7ed;
  white-space: nowrap;
  border-color: #4a7c8b;
  min-width: 142px;
  min-height: 44px;
  padding: 6px 10px;
}

.gameplay-surface--wallet :is(.wallet-link-action, .wallet-screen__actions button, .wallet-operations__filters button, .wallet-primary-action):focus-visible {
  outline-offset: 2px;
  outline: 2px solid #8ce9f4;
}

.gameplay-surface--wallet .wallet-screen__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: center;
  gap: 8px;
  width: min(100%, 620px);
  display: grid;
}

.gameplay-surface--wallet .wallet-screen__actions button {
  color: #f0c36f;
  text-shadow: 0 1px #000;
  border-color: #6f663f;
  min-height: 48px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 16px;
}

.gameplay-surface--wallet .wallet-screen__actions button[aria-pressed="true"] {
  color: #fff1c2;
  text-shadow: 0 1px #000, 0 0 9px #f0b84280;
  background: linear-gradient(#7a581f, #2c1d08);
  border-color: #d29b3c;
  box-shadow: inset 0 0 0 1px #201004, inset 0 1px #fff2b566, inset 0 -2px #0008, 0 0 10px #d69d3824;
}

.gameplay-surface--wallet .wallet-feedback {
  color: #b9d4da;
  background: #071721cc;
  border-left: 2px solid #68bdcb;
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.gameplay-surface--wallet :is(.wallet-withdraw-card, .wallet-deposit) {
  background: linear-gradient(#081b26e8, #031019ed);
  border: 1px solid #315b76;
  border-radius: 0;
  gap: 12px;
  padding: 15px 14px;
  display: grid;
  box-shadow: inset 0 1px #b9f5ff14, 0 7px 18px #0004;
}

.gameplay-surface--wallet :is(.wallet-withdraw-heading h2, .wallet-deposit__heading h2) {
  color: #79d4e7;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin: 0;
  font: 800 17px / 20px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--wallet .wallet-deposit__heading .eyebrow {
  display: none;
}

.gameplay-surface--wallet .wallet-star-packages__grid {
  gap: 8px;
  display: grid;
}

.gameplay-surface--wallet .wallet-star-package {
  background: #06131d;
  border: 1px solid #3d6574;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 12px;
  padding: 12px;
  display: grid;
}

.gameplay-surface--wallet .wallet-star-package h3 {
  color: #d9e5e9;
  letter-spacing: .04em;
  grid-column: 1 / -1;
  margin: 0;
  font: 700 14px / 18px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--wallet .wallet-star-package > span {
  color: #8ba4ae;
  font-size: 11px;
}

.gameplay-surface--wallet .wallet-star-package > b {
  color: #edc14f;
  white-space: nowrap;
  grid-area: 2 / 2 / span 2;
  font: 800 16px / 20px ui-monospace, monospace;
}

.gameplay-surface--wallet .wallet-star-package .wallet-primary-action {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin-top: 5px;
}

.gameplay-surface--wallet .wallet-credit-context, .gameplay-surface--wallet .wallet-credit-unit, .gameplay-surface--wallet .wallet-credit-amount {
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: inline-flex;
}

.gameplay-surface--wallet .wallet-credit-mark {
  object-fit: contain;
  flex: none;
  width: 20px;
  height: 20px;
}

.gameplay-surface--wallet .wallet-credit-unit .wallet-credit-mark, .gameplay-surface--wallet .wallet-operation__amount .wallet-credit-mark {
  width: 18px;
  height: 18px;
}

.gameplay-surface--wallet .wallet-withdraw-info {
  gap: 5px;
  display: grid;
}

.gameplay-surface--wallet .wallet-withdraw-info :is(p, div), .gameplay-surface--wallet .wallet-deposit__rate {
  color: #8ba4ae;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.gameplay-surface--wallet :is(.wallet-conversion-input, .wallet-deposit__control) {
  background: #06131d;
  border: 1px solid #477687;
  border-radius: 0;
  min-height: 56px;
}

.gameplay-surface--wallet :is(.wallet-conversion-input__amount, .wallet-deposit__input-wrap) {
  border-radius: 0;
  min-height: 44px;
}

.gameplay-surface--wallet :is(.wallet-conversion-input__amount input, .wallet-deposit__input-wrap input) {
  min-height: 44px;
}

.gameplay-surface--wallet .wallet-primary-action {
  color: #211506;
  text-shadow: 0 1px #ffd98080;
  background: linear-gradient(#f0b844, #a9650e);
  border-color: #d39b39;
  justify-self: center;
  width: min(100%, 240px);
  max-width: 240px;
  min-height: 48px;
  margin: 0 auto;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 17px;
  box-shadow: inset 0 0 0 1px #412305, inset 0 1px #fff2b58a, inset 0 -2px #6d3e06, 0 0 12px #d69d3830;
}

.gameplay-surface--wallet .wallet-primary-action--soft {
  opacity: .72;
}

.gameplay-surface--wallet :is(.wallet-link-action, .wallet-screen__actions button, .wallet-primary-action):disabled {
  color: #74878e;
  text-shadow: none;
  cursor: not-allowed;
  opacity: .78;
  background: linear-gradient(#18252b, #091116);
  border-color: #40545d;
  box-shadow: inset 0 0 0 1px #02080d, inset 0 1px #d8f8ff12;
}

.gameplay-surface--wallet .wallet-quote {
  background: #06131d;
  border: 1px solid #3d6574;
  border-radius: 0;
  gap: 8px;
  padding: 10px;
  display: grid;
}

.gameplay-surface--wallet .wallet-operations {
  background: linear-gradient(#081a24e8, #020c13ed);
  border: 1px solid #315b76;
  gap: 8px;
  padding: 14px;
  display: grid;
  box-shadow: inset 0 1px #b9f5ff14, 0 7px 18px #0004;
}

.gameplay-surface--wallet .wallet-operations__heading {
  border-bottom: 1px solid #315b76;
  gap: 5px;
  padding: 0 0 7px;
  display: grid;
}

.gameplay-surface--wallet .wallet-operations__heading h2 {
  color: #c8d9de;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  font: 800 17px / 20px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--wallet .wallet-operations__filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 540px);
  display: grid;
}

.gameplay-surface--wallet .wallet-operations__filters button {
  color: #8faab4;
  min-height: 44px;
  box-shadow: none;
  background: none;
  border-color: #0000;
  padding: 4px 5px;
  font-size: 10.5px;
  line-height: 13px;
}

.gameplay-surface--wallet .wallet-operations__filters button:before {
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(#1b3945, #07131a 72%);
  border: 1px solid #416c7b;
  transition: border-color .12s, box-shadow .1s, filter .12s, transform 80ms;
  position: absolute;
  inset: 5px 0;
  box-shadow: inset 0 0 0 1px #02080d, inset 0 1px #d4f8ff24, inset 0 -2px #02080dcc, 0 2px #02070b;
}

.gameplay-surface--wallet .wallet-operations__filters button[aria-pressed="true"] {
  color: #d9f3f7;
  box-shadow: none;
  background: none;
  border-color: #0000;
}

.gameplay-surface--wallet .wallet-operations__filters button[aria-pressed="true"]:before {
  background: linear-gradient(#1b4a5a, #071820);
  border-color: #64adbd;
  box-shadow: inset 0 0 0 1px #02080d, inset 0 1px #d5fbff38, inset 0 -2px #02080dcc, 0 2px #02070b, 0 0 8px #4ab6ca20;
}

@media (hover: hover) {
  .gameplay-surface--wallet :is(.wallet-link-action, .wallet-screen__actions button, .wallet-primary-action):not(:disabled):hover {
    filter: brightness(1.13);
    transform: translateY(-1px);
  }

  .gameplay-surface--wallet .wallet-operations__filters button:not(:disabled):hover:before {
    filter: brightness(1.13);
    border-color: #5d92a2;
  }
}

.gameplay-surface--wallet :is(.wallet-link-action, .wallet-screen__actions button, .wallet-primary-action):not(:disabled):active {
  filter: brightness(.9);
  transition-duration: 40ms;
  transform: translateY(2px);
  box-shadow: inset 0 2px 6px #000b, inset 0 1px #d4f8ff18, 0 0 #02070b;
}

.gameplay-surface--wallet .wallet-operations__filters button:not(:disabled):active {
  transform: translateY(1px);
}

.gameplay-surface--wallet .wallet-operations__filters button:not(:disabled):active:before {
  filter: brightness(.88);
  box-shadow: inset 0 2px 5px #000b, inset 0 1px #d4f8ff16;
}

.gameplay-surface--wallet .wallet-operations__state {
  color: #839ca6;
  text-align: center;
  place-content: center;
  min-height: 66px;
  margin: 0;
  font-size: 11px;
  display: grid;
}

.gameplay-surface--wallet .wallet-operations__list {
  display: grid;
}

.gameplay-surface--wallet .wallet-operation {
  box-sizing: border-box;
  border-bottom: 1px solid #1d3a47;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 12px;
  min-height: 78px;
  padding: 11px 4px;
  display: grid;
}

.gameplay-surface--wallet .wallet-operation > div:first-child, .gameplay-surface--wallet .wallet-operation__amount {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.gameplay-surface--wallet .wallet-operation > div:first-child > strong {
  color: #c7d8dd;
  text-transform: uppercase;
  font: 800 14px / 17px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--wallet .wallet-operation time, .gameplay-surface--wallet .wallet-operation__amount small {
  color: #6f8994;
  font: 700 10px / 13px ui-monospace, monospace;
}

.gameplay-surface--wallet .wallet-operation__amount {
  justify-items: end;
}

.gameplay-surface--wallet .wallet-operation__amount > strong {
  color: #f0c36f;
  white-space: nowrap;
  font: 800 15px / 18px ui-monospace, monospace;
}

.gameplay-surface--wallet .wallet-operation--deposit .wallet-operation__amount > strong {
  color: #8bcad5;
}

.gameplay-surface--wallet .wallet-operation__status {
  color: #8fa8b1;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #07151dcc;
  border: 1px solid #526e78;
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  font: 750 10px / 12px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--wallet .wallet-operation__status[data-status="pending"], .gameplay-surface--wallet .wallet-operation__status[data-status="processing"], .gameplay-surface--wallet .wallet-operation__status[data-status="awaiting_payment"], .gameplay-surface--wallet .wallet-operation__status[data-status="verifying"] {
  color: #d8b661;
  background: #2a1d08c7;
  border-color: #a98232;
}

.gameplay-surface--wallet .wallet-operation__status[data-status="paid"], .gameplay-surface--wallet .wallet-operation__status[data-status="credited"] {
  color: #78ce91;
  background: #092416c7;
  border-color: #55c178;
}

.gameplay-surface--wallet .wallet-operation__status[data-status="rejected"], .gameplay-surface--wallet .wallet-operation__status[data-status="failed"], .gameplay-surface--wallet .wallet-operation__status[data-status="underpaid"] {
  color: #d0777c;
  background: #2a1014c7;
  border-color: #b85b61;
}

@media (max-width: 380px) {
  .gameplay-store__controls-frame > header.wallet-screen__header {
    padding-inline: 17px;
  }
}

@media (min-width: 600px) and (orientation: portrait) {
  .gameplay-surface--wallet .wallet-screen__scroll {
    left: 40px;
    right: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gameplay-surface--wallet * {
    scroll-behavior: auto !important;
  }

  .gameplay-surface--wallet :is(.wallet-link-action, .wallet-screen__actions button, .wallet-operations__filters button, .wallet-primary-action), .gameplay-surface--wallet .wallet-operations__filters button:before {
    transition: none;
  }
}

.gameplay-background-shell :is(button, a, [role="button"]):focus:not(:focus-visible) {
  outline: none;
}

.gameplay-nav {
  isolation: isolate;
  background: linear-gradient(#121d23f5, #050c0ffa);
  border: 1px solid #6d7c8d85;
  border-radius: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 48px;
  align-items: stretch;
  height: auto;
  padding: 5px;
  display: grid;
  box-shadow: inset 0 1px #d0d8e714, 0 10px 28px #00000047;
}

.expedition-console {
  gap: 12px;
  display: grid;
}

.expedition-panel {
  background: #07131f;
  border: 1px solid #639eb975;
  border-radius: 0;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px #d8f2ff0f;
}

.expedition-panel:before {
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #0000, #78d0e6d1, #0000);
  height: 2px;
  position: absolute;
  inset: 0 14px auto;
}

.expedition-panel__heading, .expedition-character__topline {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.expedition-panel__heading h2 {
  margin: 2px 0 0;
}

.expedition-panel__heading > span, .expedition-muted, .expedition-character small, .expedition-run small:not(.expedition-reward-drop__rarity) {
  color: #91a9ad;
  font-size: .78rem;
}

.expedition-character-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
  display: grid;
}

.expedition-character {
  border: 1px solid #639eb966;
  border-left: 3px solid var(--cs-blue);
  background: linear-gradient(145deg, #122b3adb, #050e15f5);
  border-radius: 0;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.expedition-character--available {
  border-left-color: var(--cs-success);
}

.expedition-character--on_expedition {
  border-left-color: var(--cs-cyan);
}

.expedition-character--recovery {
  border-left-color: var(--expedition-warning);
}

.expedition-character--disabled {
  border-left-color: var(--cs-steel-muted);
}

.expedition-character__topline > div {
  gap: 4px;
  display: grid;
}

.expedition-status, .expedition-reward {
  color: #b9ffe5;
  text-transform: uppercase;
  background: #29997733;
  border: 1px solid #76b99b57;
  border-radius: 0;
  padding: 4px 8px;
  font-size: .7rem;
}

.expedition-status--recovery {
  color: #f5d58a;
  background: #9f6a1f40;
}

.expedition-stats {
  color: #87a8b4;
  gap: 10px;
  font-size: .72rem;
  display: flex;
}

.expedition-stats b {
  color: #effff6;
}

.expedition-skills {
  color: var(--cs-steel-muted);
  gap: 5px;
  font-size: .74rem;
  line-height: 1.35;
  display: grid;
}

.expedition-skills b {
  color: var(--cs-cyan);
  letter-spacing: .05em;
  text-transform: uppercase;
  font: 700 .64rem / 1 ui-monospace, monospace;
}

.expedition-route-list {
  gap: 8px;
  display: grid;
}

.expedition-route {
  color: #eafff6;
  text-align: left;
  background: #0e1d25c7;
  border: 1px solid #739aaa5c;
  border-radius: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  display: flex;
}

.expedition-route:disabled {
  opacity: .5;
}

.expedition-route span {
  gap: 3px;
  display: grid;
}

.expedition-route small {
  color: #91a9ad;
}

.expedition-route__rewards {
  font-size: .68rem;
  color: #8ee8c6 !important;
}

.expedition-route strong {
  color: #8ee8c6;
  font-size: .75rem;
}

.expedition-run {
  border-top: 1px solid #6d7c8d33;
  padding: 11px 0;
}

.expedition-run:first-of-type {
  margin-top: 8px;
}

.expedition-run time {
  color: #a9bdc1;
  font-size: .75rem;
}

.expedition-reward {
  margin-left: auto;
}

.expedition-screen {
  --expedition-warning: #f0b44d;
  --expedition-warning-text: #f5d58a;
  color: var(--cs-steel);
}

.expedition-screen .expedition-panel {
  border-color: var(--cs-blue-border);
  background: var(--cs-blueprint-grid),
    linear-gradient(135deg, #122938f7, #050e15fc),
    #07131f;
  background-size: 22px 22px, 22px 22px, auto;
  border-radius: 0;
  box-shadow: inset 0 1px #d7f1ff14, 0 12px 28px #00000038;
}

.expedition-panel__heading {
  border-bottom: 1px solid var(--cs-blue-border);
  align-items: flex-end;
  margin-bottom: 14px;
  padding-bottom: 11px;
}

.expedition-panel__heading > span {
  color: var(--cs-cyan);
  letter-spacing: .08em;
  font: 700 .62rem / 1 ui-monospace, monospace;
}

.expedition-route-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.expedition-route-card {
  --expedition-difficulty-color: var(--cs-cyan);
  width: 100%;
  min-height: 214px;
  color: var(--cs-steel);
  text-align: left;
  background: linear-gradient(135deg, #122b3afa, #050e15fc), #07131f;
  border: 1px solid #639eb985;
  border-radius: 0;
  grid-template-columns: minmax(132px, .43fr) minmax(0, .57fr);
  padding: 0;
  transition: border-color .14s, transform .14s, box-shadow .14s;
  display: grid;
  overflow: hidden;
}

.expedition-route-card--low {
  --expedition-difficulty-color: var(--cs-success);
}

.expedition-route-card--guarded {
  --expedition-difficulty-color: var(--cs-cyan);
}

.expedition-route-card--high {
  --expedition-difficulty-color: var(--expedition-warning);
}

.expedition-route-card--critical {
  --expedition-difficulty-color: var(--cs-danger);
}

.expedition-route-card:hover, .expedition-route-card:focus-visible {
  border-color: var(--expedition-difficulty-color);
  box-shadow: 0 0 0 1px
      color-mix(in srgb, var(--expedition-difficulty-color) 30%, transparent),
    0 12px 26px #00000057;
  outline: none;
  transform: translateY(-1px);
}

.expedition-route-card__visual {
  min-height: 100%;
  box-shadow: inset -3px 0 var(--expedition-difficulty-color);
  background: #03090e;
  border-right: 1px solid #639eb97a;
  position: relative;
  overflow: hidden;
}

.expedition-route-card__title {
  color: var(--cs-steel);
  letter-spacing: -.01em;
  padding: 0;
  font-size: clamp(.98rem, 1.7vw, 1.12rem);
  display: block;
}

.expedition-route-card__art {
  object-fit: cover;
  filter: saturate(.78) contrast(1.08) brightness(.78);
  width: 100%;
  height: 100%;
  min-height: 214px;
  transition: filter .16s, transform .22s;
  display: block;
}

.expedition-route-card:hover .expedition-route-card__art, .expedition-route-card:focus-visible .expedition-route-card__art {
  filter: saturate(.96) contrast(1.08) brightness(.9);
  transform: scale(1.018);
}

.expedition-route-card__scan {
  pointer-events: none;
  background: linear-gradient(90deg, #0000 72%, #78d0e61c), repeating-linear-gradient(#0000 0 5px, #78d0e606 5px 6px), linear-gradient(#0000 58%, #03090ec2);
  position: absolute;
  inset: 0;
}

.expedition-route-card__body {
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 14px 14px 12px;
  display: grid;
  position: relative;
}

.expedition-route-card__copy {
  min-width: 0;
  padding: 0;
  display: grid;
}

.expedition-route-card__copy small {
  color: var(--cs-steel-muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: .82rem;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.expedition-route-card__meta {
  color: var(--cs-cyan);
  letter-spacing: .02em;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 0;
  font: 700 .68rem / 1.3 ui-monospace, monospace;
  display: flex;
}

.expedition-route-card__meta > span:not(.expedition-route-card__arrow) {
  background: #071b269e;
  border: 1px solid #78d0e642;
  border-radius: 0;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 5px 8px;
  display: inline-flex;
}

.expedition-route-card__meta > span > span[aria-hidden="true"] {
  font-family: system-ui, sans-serif;
  font-size: .95rem;
}

.expedition-route-card__meta-label {
  color: var(--cs-steel-muted);
  letter-spacing: .09em;
  font-size: .54rem;
}

.expedition-difficulty {
  --expedition-difficulty-color: var(--cs-cyan);
  color: var(--expedition-difficulty-color);
}

.expedition-difficulty--low {
  --expedition-difficulty-color: var(--cs-success);
}

.expedition-difficulty--guarded {
  --expedition-difficulty-color: var(--cs-cyan);
}

.expedition-difficulty--high {
  --expedition-difficulty-color: var(--expedition-warning);
}

.expedition-difficulty--critical {
  --expedition-difficulty-color: var(--cs-danger);
}

.expedition-difficulty__label {
  color: var(--cs-steel-muted);
  letter-spacing: .09em;
  font-size: .54rem;
}

.expedition-difficulty__segments {
  grid-template-columns: repeat(10, 5px);
  gap: 2px;
  margin-left: 2px;
  display: grid;
}

.expedition-difficulty__segments > span {
  background: #9baeba14;
  border: 1px solid #9baeba33;
  width: 5px;
  height: 12px;
  transform: skewX(-10deg);
}

.expedition-difficulty__segments > .is-active {
  border-color: var(--expedition-difficulty-color);
  background: var(--expedition-difficulty-color);
  box-shadow: 0 0 5px
    color-mix(in srgb, var(--expedition-difficulty-color) 48%, transparent);
}

.expedition-route-card__arrow {
  color: var(--cs-amber-bright);
  font-size: 1.35rem;
  position: absolute;
  bottom: 9px;
  right: 12px;
}

.expedition-reward-kinds {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.expedition-reward-kinds__label {
  color: var(--cs-steel-muted);
  letter-spacing: .1em;
  font: 700 .55rem / 1 ui-monospace, monospace;
}

.expedition-reward-kinds__list {
  flex-wrap: wrap;
  gap: 5px;
  padding-right: 26px;
  display: flex;
}

.expedition-reward-kind {
  color: var(--cs-amber-bright);
  background: #4c2f1252;
  border: 1px solid #d7923b66;
  border-radius: 0;
  padding: 4px 6px;
  font: 700 .58rem / 1.2 ui-monospace, monospace;
}

.expedition-route-detail {
  gap: 14px;
  display: grid;
}

.expedition-back-button {
  border: 1px solid var(--cs-blue-border);
  min-height: 44px;
  color: var(--cs-steel);
  background: #123040b8;
  border-radius: 0;
  justify-self: start;
  padding: 8px 12px;
}

.expedition-back-button:hover, .expedition-back-button:focus-visible {
  border-color: var(--cs-cyan);
  color: var(--cs-cyan);
  outline: none;
}

.expedition-route-detail__hero {
  --expedition-difficulty-color: var(--cs-cyan);
  box-shadow: inset 3px 0 var(--expedition-difficulty-color);
  background: #040e16bd;
  border: 1px solid #639eb961;
  grid-template-columns: minmax(210px, .44fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  padding: 10px;
  display: grid;
}

.expedition-route-detail__hero--low {
  --expedition-difficulty-color: var(--cs-success);
}

.expedition-route-detail__hero--guarded {
  --expedition-difficulty-color: var(--cs-cyan);
}

.expedition-route-detail__hero--high {
  --expedition-difficulty-color: var(--expedition-warning);
}

.expedition-route-detail__hero--critical {
  --expedition-difficulty-color: var(--cs-danger);
}

.expedition-route-detail__hero img {
  object-fit: cover;
  filter: saturate(.82) contrast(1.08) brightness(.84);
  border: 1px solid #639eb970;
  border-radius: 0;
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: block;
}

.expedition-route-detail__hero > div {
  align-content: center;
  gap: 8px;
  display: grid;
}

.expedition-route-detail__hero h2 {
  margin: 4px 0 7px;
}

.expedition-route-detail__hero p {
  line-height: 1.45;
}

.expedition-route-detail__meta {
  color: var(--cs-cyan);
  flex-wrap: wrap;
  gap: 6px 10px;
  font: 700 .62rem / 1.3 ui-monospace, monospace;
  display: flex;
}

.expedition-deploy-button {
  border: 1px solid var(--cs-amber);
  color: #160f07;
  background: linear-gradient(180deg, var(--cs-amber-bright), var(--cs-amber));
  border-radius: 0;
  min-height: 44px;
  padding: 9px 12px;
  font-weight: 800;
}

.expedition-deploy-button:disabled {
  color: var(--cs-steel-muted);
  background: #14232d99;
  border-color: #7e97aa4d;
}

.expedition-character__identity {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  display: grid;
}

.expedition-character__portrait, .expedition-run__portrait {
  color: var(--cs-cyan);
  letter-spacing: .08em;
  background: linear-gradient(160deg, #123040eb, #050d14fa), #07131f;
  border: 1px solid #639eb97a;
  border-radius: 0;
  place-items: center;
  font: 800 1rem / 1 ui-monospace, monospace;
  display: grid;
  overflow: hidden;
}

.expedition-character__portrait {
  aspect-ratio: 2 / 3;
  width: 88px;
}

.expedition-character__portrait img, .expedition-run__portrait img {
  object-fit: cover;
  object-position: center top;
  width: 100%;
  height: 100%;
}

.expedition-character__topline {
  align-items: flex-start;
  min-width: 0;
}

.expedition-character__topline strong {
  color: var(--cs-steel);
  font-size: 1rem;
}

.expedition-recovery {
  border: 1px solid #f0b44d80;
  border-left: 3px solid var(--expedition-warning);
  color: var(--cs-steel-muted);
  letter-spacing: .06em;
  background: repeating-linear-gradient(135deg, #0000 0 8px, #d7923b09 8px 9px), #281b0e70;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  padding: 10px 12px;
  font: 700 .62rem / 1.25 ui-monospace, monospace;
  display: grid;
}

.expedition-recovery > span {
  text-transform: uppercase;
}

.expedition-recovery > strong {
  color: var(--expedition-warning-text);
  letter-spacing: .04em;
  font-size: .86rem;
}

.expedition-recovery > time {
  color: var(--cs-steel-muted);
  letter-spacing: 0;
  grid-column: 1 / -1;
  font-size: .66rem;
}

.expedition-run {
  grid-template-columns: minmax(190px, 1fr) minmax(190px, .9fr) auto;
  align-items: center;
  gap: 12px;
  display: grid;
}

.expedition-run__identity {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.expedition-run__identity > div:last-child {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.expedition-run__identity small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.expedition-run__portrait {
  flex: 0 0 54px;
  width: 54px;
  height: 68px;
}

.expedition-run__progress {
  gap: 6px;
  display: grid;
}

.expedition-run__progress > div:first-child {
  color: var(--cs-steel-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 700 .62rem / 1.2 ui-monospace, monospace;
  display: flex;
}

.expedition-run__progress > div:first-child strong {
  color: var(--cs-cyan);
  font-size: .72rem;
}

.expedition-progress {
  background: #02090edb;
  border: 1px solid #639eb97a;
  border-radius: 0;
  height: 30px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px #0000009e;
}

.expedition-progress__fill {
  background: linear-gradient(90deg, #266984e6, #78d0e6cc), #326f89;
  height: 100%;
  transition: width .4s linear;
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  box-shadow: 0 0 12px #78d0e657;
}

.expedition-progress__time {
  z-index: 1;
  letter-spacing: .04em;
  text-shadow: 0 1px 3px #02070a;
  place-items: center;
  width: 100%;
  padding: 0 8px;
  display: grid;
  position: relative;
  color: #f4fbff !important;
  font: 800 .64rem / 1 ui-monospace, monospace !important;
}

.expedition-resolve-button {
  border: 1px solid var(--cs-amber);
  color: #160f07;
  background: linear-gradient(180deg, var(--cs-amber-bright), var(--cs-amber));
  border-radius: 0;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 800;
}

.expedition-resolve-button:hover, .expedition-resolve-button:focus-visible {
  background: linear-gradient(180deg, #ffd483, var(--cs-amber-bright));
  border-color: #ffd483;
  outline: none;
}

.expedition-resolve-button:disabled {
  cursor: wait;
  opacity: .66;
}

.expedition-speed-up {
  background: #031017bd;
  border: 1px solid #4fbed261;
  grid-column: 1 / -1;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  display: grid;
}

.expedition-speed-up img {
  object-fit: contain;
  width: 56px;
  height: 42px;
  display: block;
}

.expedition-speed-up div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.expedition-speed-up strong {
  color: #e8f6f8;
  font-size: .78rem;
}

.expedition-speed-up small, .expedition-speed-up-applied {
  color: var(--cs-steel-muted);
  font-size: .68rem;
}

.expedition-speed-up-applied {
  border-left: 2px solid var(--cs-cyan);
  background: #1c606f2e;
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
}

.expedition-run .expedition-reward {
  grid-column: 2 / -1;
  justify-self: start;
  margin-left: 0;
}

.expedition-run__feedback {
  color: #c9f8e8;
  background: #14463957;
  border: 1px solid #8ee8c661;
  border-radius: 0;
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  font-size: .78rem;
}

.expedition-run__feedback.is-error {
  color: #ffd0cb;
  background: #5d252357;
  border-color: #ee7e757a;
}

.expedition-runs {
  padding-top: 16px;
}

@media (max-width: 880px) {
  .expedition-route-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .expedition-screen .expedition-panel {
    padding: 10px;
  }

  .expedition-speed-up {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .expedition-speed-up img {
    width: 48px;
    height: 38px;
  }

  .expedition-speed-up .expedition-resolve-button {
    grid-column: 1 / -1;
  }

  .expedition-route-card {
    border-radius: 0;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .expedition-route-card__visual {
    min-height: 138px;
    box-shadow: inset 0 -3px var(--expedition-difficulty-color);
    border-bottom: 1px solid #639eb97a;
    border-right: 0;
  }

  .expedition-route-card__art {
    min-height: 138px;
    max-height: 170px;
  }

  .expedition-route-card__title {
    padding: 0;
    font-size: .98rem;
  }

  .expedition-route-card__body {
    gap: 8px;
    padding: 11px 12px 12px;
  }

  .expedition-route-card__copy {
    padding: 0;
  }

  .expedition-route-card__copy small {
    font-size: .76rem;
  }

  .expedition-route-card__meta {
    gap: 6px;
    padding: 0;
    font-size: .6rem;
  }

  .expedition-route-card__meta > span:not(.expedition-route-card__arrow) {
    min-height: 28px;
    padding: 4px 7px;
  }

  .expedition-difficulty__segments {
    grid-template-columns: repeat(10, 4px);
  }

  .expedition-difficulty__segments > span {
    width: 4px;
  }

  .expedition-route-detail__hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .expedition-route-detail__hero img {
    min-height: 142px;
    max-height: 190px;
  }

  .expedition-character__identity {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .expedition-character__portrait {
    width: 76px;
  }

  .expedition-run {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .expedition-run time, .expedition-resolve-button {
    width: 100%;
  }

  .expedition-run .expedition-reward, .expedition-run__feedback {
    grid-column: 1;
  }

  .expedition-reward {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expedition-progress__fill, .expedition-route-card__art, .expedition-route-card {
    transition: none;
  }
}

.gameplay-nav button {
  color: #9fb8ad;
  background: none;
  border-color: #0000;
  place-items: center;
  gap: 2px;
  min-width: 0;
  transition: color .14s, background .14s, border-color .14s;
  display: grid;
}

.gameplay-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 21px;
  height: 21px;
}

.gameplay-nav__label {
  color: inherit;
  font-size: .66rem;
  line-height: 1;
}

.gameplay-nav button.gameplay-nav__active small {
  color: #8ee8c6;
}

.gameplay-nav button:hover, .gameplay-nav button:focus-visible {
  color: #ebfff5;
  border-color: #87bfe4c7;
  outline: none;
}

.gameplay-surface {
  background: linear-gradient(90deg, #0107059e, #0000 18% 82%, #010705a8), radial-gradient(at 50% 0, #1a382d 0, #0a1511 43%, #030706 100%);
  min-height: 100svh;
}

.gameplay-surface:before {
  content: "";
  opacity: .75;
  background: linear-gradient(90deg, #0000, #b38e45 18%, #506f5f 50%, #b38e45 82%, #0000);
  width: min(100%, 720px);
  height: 3px;
  margin: 0 auto 14px;
  display: block;
}

.gameplay-surface > header {
  border-bottom: 1px solid #7292805c;
  padding-bottom: 13px;
}

.gameplay-surface h1 {
  letter-spacing: -.025em;
}

.gameplay-surface, .storage-screen, .mining-status-screen {
  padding-top: calc(var(--cs-hud-top) + 25px);
}

.gameplay-surface > header, .storage-screen > header, .mining-status-screen > header {
  margin-top: 0;
  padding-top: 0;
}

.gameplay-surface, .storage-screen, .mining-status-screen {
  position: relative;
}

.gameplay-surface__back {
  top: calc(var(--cs-hud-top) + 25px);
  position: absolute;
  right: max(14px, 50% - 360px);
}

.gameplay-state, .gameplay-empty, .gameplay-info, .gameplay-hero, .offer-card {
  background: linear-gradient(135deg, #122128f5, #070f13fa);
  border-color: #526c7fad;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px #dfe8f80d, 0 12px 28px #00000038;
}

.gameplay-state:before, .gameplay-empty:before, .gameplay-info:before, .offer-card:before {
  content: "";
  background: #62798d;
  width: 3px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.gameplay-hero {
  background: linear-gradient(135deg, #253141fa, #0d151dfa 66%);
  border-color: #7087aba6;
}

.gameplay-hero:after {
  content: "";
  border: 1px solid #5ba9c33d;
  border-radius: 50%;
  width: 170px;
  height: 170px;
  position: absolute;
  top: -60px;
  right: -20px;
  box-shadow: 0 0 0 17px #5ba9c30d, 0 0 0 34px #5ba9c309;
}

.gameplay-hero strong {
  z-index: 1;
  color: #dfedb0;
  position: relative;
}

.gameplay-empty {
  align-content: center;
  gap: 10px;
  min-height: 176px;
  display: grid;
}

.gameplay-empty p {
  margin: 0;
}

.gameplay-empty ol {
  counter-reset: signal;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.gameplay-empty li {
  color: #c7d7ce;
  overflow-wrap: anywhere;
  border-top: 2px solid #606c7a;
  min-width: 0;
  padding: 7px 4px;
  font-size: .62rem;
  line-height: 1.3;
}

.gameplay-empty li:before {
  color: #d2b867;
  content: "0" counter(signal);
  counter-increment: signal;
  margin-bottom: 4px;
  font: 700 .55rem / 1 ui-monospace, SFMono-Regular, Menlo, monospace;
  display: block;
}

.store-offline {
  border-color: #9f81459e;
}

.store-offline:before {
  background: #b9934e;
}

.store-offline span {
  color: #d4c797;
  border: 1px dashed #ae904d80;
  padding: 9px 10px;
  font-size: .75rem;
}

.referral-panel {
  gap: 12px;
  width: min(100%, 720px);
  margin: 12px auto;
  display: grid;
}

.referral-link-card, .referral-summary, .referral-income, .referral-explainer {
  background: linear-gradient(145deg, #12232cf7, #050c10fa);
  border: 1px solid #4f7488b3;
  border-radius: 13px;
  box-shadow: inset 0 1px #e7f2ff0f, 0 12px 30px #00000038;
}

.referral-link-card {
  gap: 9px;
  padding: 15px;
  display: grid;
}

.referral-link-card p, .referral-income p {
  color: #a9c5b7;
  letter-spacing: .1em;
  margin: 0;
  font: 700 .66rem / 1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.referral-link-card strong {
  overflow-wrap: anywhere;
  color: #dff9ec;
  font: 600 .78rem / 1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.referral-link-card div {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.referral-link-card button {
  color: #e9fff4;
  background: #173c4c;
  border: 1px solid #5b8ba8;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 11px;
  font-weight: 700;
}

.referral-link-card small {
  color: #9fdec5;
}

.referral-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  overflow: hidden;
}

.referral-summary div {
  gap: 3px;
  padding: 15px;
  display: grid;
}

.referral-summary div + div {
  border-left: 1px solid #59788e73;
}

.referral-summary span, .referral-income span {
  color: #a8c2b4;
  font-size: .73rem;
}

.referral-summary strong {
  color: #d9e9b0;
  font-size: 1.55rem;
}

.referral-summary small, .referral-income small, .referral-explainer {
  color: #b6cabe;
  font-size: .77rem;
  line-height: 1.45;
}

.referral-income > p {
  margin-bottom: 8px;
}

.referral-income > div {
  border-top: 1px solid #5a768b57;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  display: flex;
}

.referral-income strong {
  color: #e1f2e8;
}

.referral-income__total strong {
  color: #e0c56e;
}

.referral-income small {
  padding-top: 11px;
}

.referral-explainer {
  border-left: 3px solid #5096b9;
  margin: 0;
  padding: 13px 14px;
}

.league-console {
  background: linear-gradient(135deg, #162129, #101016 72%);
  border: 1px solid #49748ebd;
  border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  width: min(100%, 720px);
  margin: 12px auto;
  padding: 16px;
  display: grid;
  box-shadow: inset 0 1px #beedff14, 0 15px 30px #00000042;
}

.league-console p, .league-console small {
  color: #bdb7a0;
  letter-spacing: .08em;
  margin: 0;
  font-size: .69rem;
}

.league-console strong {
  color: #f2e5bd;
  margin: 3px 0;
  font-size: 1.45rem;
  display: block;
}

.league-badge {
  color: #f1d784;
  text-align: center;
  background: radial-gradient(circle at 45% 32%, #2c5162, #111c20 70%);
  border: 2px solid #498cb4;
  border-radius: 50% 50% 45% 45%;
  place-content: center;
  width: 58px;
  height: 58px;
  display: grid;
  box-shadow: inset 0 0 0 4px #0e1415, 0 0 20px #4496c433;
}

.league-badge span {
  font: 900 1.22rem / 1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.league-badge small {
  color: #d8bc6e;
  font: 700 .42rem / 1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.league-progress {
  border-top: 1px solid #659fb545;
  grid-column: 1 / -1;
  gap: 6px;
  padding-top: 9px;
  display: grid;
}

.league-progress div {
  color: #bdb7a0;
  justify-content: space-between;
  gap: 10px;
  font-size: .68rem;
  display: flex;
}

.league-progress strong {
  color: #dfe8d9;
  white-space: nowrap;
  margin: 0;
  font-size: .68rem;
}

.league-progress i {
  background: #0a0c10;
  border: 1px solid #3c5a64;
  border-radius: 999px;
  height: 7px;
  display: block;
  overflow: hidden;
}

.league-progress b {
  border-radius: inherit;
  background: linear-gradient(90deg, #3c7182, #6bbdd5);
  height: 100%;
  display: block;
  box-shadow: 0 0 12px #68bed780;
}

.league-console--silver .league-badge {
  background: radial-gradient(circle at 45% 32%, #596b6d, #192022 70%);
  border-color: #aebbc0;
}

.league-console--gold .league-badge {
  border-color: #48addd;
}

.league-console--platinum .league-badge {
  border-color: #9aa7b8;
}

.league-console--diamond .league-badge {
  border-color: #70d2d7;
}

.league-console--titan .league-badge {
  border-color: #8e95a2;
}

.league-console--emerald .league-badge {
  border-color: #6489ba;
}

.league-console--legend .league-badge {
  border-color: #8cd4e8;
  box-shadow: inset 0 0 0 4px #0e1415, 0 0 24px #8cd4e861;
}

.mining-status-screen {
  min-height: 100svh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  color: #eaf3ed;
  background: radial-gradient(at 52% 0, #214137 0, #0a1411 52%, #030706 100%);
}

.mining-status-screen:before {
  content: "";
  background: linear-gradient(90deg, #0000, #b38e45 20%, #52806c 50%, #b38e45 80%, #0000);
  width: min(100%, 820px);
  height: 3px;
  margin: 0 auto 14px;
  display: block;
}

.mining-status-screen__header {
  border-bottom: 1px solid #6a8f7b61;
  max-width: 820px;
  margin-inline: auto;
  padding-bottom: 13px;
}

.mining-status-screen h1 {
  letter-spacing: -.025em;
}

.mining-status-state, .mining-card, .mining-history, .mining-hero {
  background: linear-gradient(135deg, #122128f5, #070f13fa);
  border-color: #526c7fad;
  border-radius: 12px;
  box-shadow: inset 0 1px #dfe8f80d, 0 12px 28px #00000038;
}

.mining-hero {
  background: linear-gradient(135deg, #22313d, #0b1217 72%);
  border-color: #7d8ba8ad;
}

.mining-hero > strong, .mining-reward strong {
  color: #b7ebc9;
}

.mining-card button, .mining-reward button, .mining-hero__empty button, .mining-status-state button {
  color: #e7fff1;
  background: #173d4d;
  border: 1px solid #5a89a8;
  border-radius: 8px;
  box-shadow: inset 0 1px #ebf4ff1f;
}

.mining-reward--primary {
  background: linear-gradient(135deg, #232935, #10151c);
  border-color: #4a96b88c;
}

.wallet-sheet {
  background: linear-gradient(155deg, #181b21, #0a0d11 70%);
  border-color: #4792b7ad;
}

.wallet-sheet .slot-row:first-of-type strong {
  color: #a9ebc4;
}

.wallet-sheet .slot-row:last-of-type strong {
  color: #e5ca82;
}

.sheet-backdrop, .equipment-storage-backdrop, .energy-sheet-backdrop {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.rack-sheet, .equipment-storage, .energy-sheet {
  background: linear-gradient(155deg, #111e24, #070f12 72%);
  border-color: #567689c7;
}

.rack-management-actions button:last-child {
  color: #ffd5c7;
  background: #4d2720;
  border-color: #d3775dbf;
}

.hall-edit-mode {
  width: min(100%, 720px);
  min-height: 100svh;
  padding: 14px 14px calc(132px + env(safe-area-inset-bottom));
  color: #e7f1eb;
  background: radial-gradient(at 50% 0, #1b382d, #07110d 64%, #040806);
  gap: 14px;
  margin-inline: auto;
  display: grid;
}

.hall-edit-mode__header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.hall-edit-mode__header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.hall-edit-mode__header .eyebrow, .hall-edit-mode__hint {
  margin: 0;
}

.hall-edit-mode__hint {
  color: #a9c3b5;
  font-size: .82rem;
}

.hall-edit-mode__done {
  color: #ecfff4;
  background: #173849;
  border: 1px solid #6593b4;
  border-radius: 10px;
  min-height: 44px;
  font-weight: 800;
}

.hall-edit-mode__sections {
  justify-content: center;
  gap: 8px;
  display: flex;
}

.hall-edit-mode__sections .mining-hall-sections__number {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.hall-edit-mode__segments {
  background: #07131b;
  border: 1px solid #34596e;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  display: grid;
}

.hall-edit-mode__segments button {
  color: #aebdc4;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(#102634, #050d14);
  border: 1px solid #285c6d;
  border-radius: 0;
  min-height: 48px;
  font: 800 .8rem / 1.1 Arial Narrow, Roboto Condensed, sans-serif;
}

.hall-edit-mode__segments button[aria-selected="true"] {
  color: #ffe7a6;
  background: linear-gradient(#63471e, #211407);
  border-color: #d59b3d;
  box-shadow: inset 0 1px #ffe9aa4a;
}

.hall-edit-mode__segments button:focus-visible, .hall-interior-library button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #72d8eb;
}

.hall-interior-state, .hall-interior-library {
  background: linear-gradient(90deg, #45d7ed08 1px, #0000 1px) 0 0 / 16px 16px, linear-gradient(#45d7ed08 1px, #0000 1px) 0 0 / 16px 16px, linear-gradient(145deg, #0b1d2a, #040b11);
  border: 1px solid #3d6072;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  display: grid;
}

.hall-interior-state strong, .hall-interior-state p, .hall-interior-library h2, .hall-interior-library p {
  margin: 0;
}

.hall-interior-state p, .hall-interior-library__intro .eyebrow, .hall-interior-library__preview-copy p {
  color: #aab9c0;
}

.hall-interior-library__intro {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.hall-interior-library__intro h2 {
  font-size: 1.1rem;
}

.hall-interior-library__default, .hall-interior-library__actions button {
  border-radius: 0;
  min-height: 44px;
}

.hall-interior-library__default {
  color: #dbe7ed;
  background: #102633;
  border: 1px solid #486d89;
}

.hall-interior-library__skins {
  overscroll-behavior-x: none;
  scroll-snap-type: x proximity;
  grid-auto-columns: minmax(148px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  padding: 2px 2px 6px;
  display: grid;
  overflow-x: auto;
}

.hall-interior-choice {
  color: #dbe7ed;
  scroll-snap-align: start;
  text-align: left;
  background: #091721;
  border: 1px solid #31596a;
  border-radius: 0;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 4px;
  display: grid;
}

.hall-interior-choice[aria-pressed="true"] {
  border-color: #d59b3d;
  box-shadow: inset 0 0 0 1px #d59b3d55;
}

.hall-interior-choice img, .hall-interior-choice__placeholder {
  object-fit: cover;
  background: linear-gradient(145deg, #183949, #07121a);
  width: 54px;
  height: 54px;
  display: block;
}

.hall-interior-choice__copy {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.hall-interior-choice__copy strong, .hall-interior-choice__copy small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.hall-interior-choice__copy small {
  color: #91a7b2;
}

.hall-interior-library__preview {
  background: #03080c;
  border: 1px solid #31596a;
  min-width: 0;
  overflow: hidden;
}

.hall-interior-library__preview-copy {
  border-bottom: 1px solid #31596a;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 10px;
  display: flex;
}

.hall-interior-library__preview-copy p {
  margin-top: 4px;
  font-size: .8rem;
  line-height: 1.4;
}

.hall-interior-library__preview-copy > span {
  color: #f0c36f;
  text-transform: uppercase;
  border: 1px solid;
  flex: none;
  padding: 4px 7px;
  font-size: .68rem;
  font-weight: 800;
}

.hall-interior-library__preview-copy > span.is-locked {
  color: #aab9c0;
}

.hall-interior-library__preview .mining-hall-viewport {
  max-width: 560px;
  box-shadow: none;
}

.hall-interior-library__error {
  color: #ffd5c7;
}

.hall-interior-library__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

@media (max-width: 430px) {
  .hall-interior-library {
    padding: 8px;
  }

  .hall-interior-library__intro {
    flex-direction: column;
    align-items: stretch;
  }

  .hall-interior-library__preview-copy {
    display: grid;
  }

  .hall-interior-library__preview-copy > span {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-interior-library__skins {
    scroll-behavior: auto;
  }
}

.hall-edit-layout {
  background: #04090cc7;
  border: 1px solid #667e9685;
  border-radius: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  display: grid;
}

.hall-edit-position {
  color: #c5d8ce;
  background: linear-gradient(155deg, #172630f5, #070d12f5);
  border: 1px solid #5c6e818c;
  border-radius: 0;
  place-items: center;
  min-width: 0;
  min-height: 82px;
  padding: 5px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.hall-edit-position.is-selected {
  border-color: #83bde6;
  box-shadow: 0 0 0 2px #60a9d93d, inset 0 0 18px #418fc221;
}

.hall-edit-position.is-empty {
  background: #0a131ac7;
  border-style: dashed;
}

.hall-edit-position__number {
  color: #8da89a;
  font: 700 .57rem / 1 ui-monospace, SFMono-Regular, Menlo, monospace;
  position: absolute;
  top: 5px;
  left: 6px;
}

.hall-edit-position .equipment-visual {
  width: 88%;
  height: 66px;
}

.hall-edit-position__empty {
  color: #95aa9f;
  margin-top: 13px;
  font-size: .59rem;
}

.hall-edit-drawer {
  background: linear-gradient(155deg, #142631fa, #050a0ffa);
  border: 1px solid #69849db3;
  border-radius: 15px;
  gap: 10px;
  min-height: 200px;
  padding: 14px;
  display: grid;
  box-shadow: inset 0 1px #e7f0ff0f, 0 14px 34px #0000004d;
}

.hall-edit-drawer .eyebrow, .hall-edit-drawer h2, .hall-edit-drawer p {
  margin: 0;
}

.hall-edit-drawer h2 {
  font-size: 1.1rem;
}

.hall-edit-drawer__empty {
  color: #b6c8be;
}

.hall-edit-equipment-list {
  gap: 8px;
  display: grid;
}

.hall-edit-equipment {
  background: #050b1094;
  border: 1px solid #5c70856b;
  border-radius: 9px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  display: grid;
}

.hall-edit-equipment .equipment-visual {
  width: 42px;
  height: 42px;
}

.hall-edit-equipment strong, .hall-edit-equipment small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.hall-edit-equipment small {
  color: #a6beaf;
  margin-top: 2px;
  font-size: .69rem;
}

.hall-edit-equipment button, .hall-edit-rack-actions button {
  color: #edfff4;
  background: #17313e;
  border: 1px solid #577d97;
  border-radius: 8px;
  min-height: 38px;
  font-weight: 700;
}

.hall-edit-rack-heading {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  display: grid;
}

.hall-edit-rack-heading .equipment-visual {
  width: 54px;
  height: 54px;
}

.hall-edit-rack-heading h2, .hall-edit-rack-heading p {
  margin: 0;
}

.hall-edit-rack-heading p {
  color: #abc4b6;
  margin-top: 3px;
  font-size: .75rem;
}

.hall-edit-slots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.hall-edit-slot {
  color: #dcece3;
  text-align: left;
  background: #050b0f9e;
  border: 1px solid #5f758b8c;
  border-radius: 9px;
  grid-template-rows: auto 1fr;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 3px 7px;
  min-height: 84px;
  padding: 8px;
  display: grid;
}

.hall-edit-slot.is-selected {
  background: #1e3e52bf;
  border-color: #8bc6ee;
}

.hall-edit-slot > span {
  color: #9eb9aa;
  grid-column: 1 / -1;
  font-size: .67rem;
}

.hall-edit-slot .equipment-visual {
  width: 34px;
  height: 34px;
}

.hall-edit-slot strong, .hall-edit-slot small {
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .69rem;
  overflow: hidden;
}

.hall-edit-slot small {
  color: #a0b5aa;
}

.hall-edit-slot-drawer {
  border-top: 1px solid #6f829759;
  gap: 9px;
  padding-top: 2px;
  display: grid;
}

.hall-edit-slot-drawer h3, .hall-edit-slot-drawer p {
  margin: 0;
}

.hall-edit-slot-drawer h3 {
  font-size: .95rem;
}

.hall-edit-slot-drawer p {
  color: #b2c9bc;
  font-size: .76rem;
}

.hall-edit-miner-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  display: grid;
}

.hall-edit-miner-stats div {
  background: #02070b6e;
  border-radius: 7px;
  padding: 7px;
}

.hall-edit-miner-stats dt {
  color: #9bb5a8;
  font-size: .63rem;
}

.hall-edit-miner-stats dd {
  color: #effaf3;
  margin: 3px 0 0;
  font-weight: 700;
}

.hall-edit-rack-actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}

.hall-edit-rack-actions__danger {
  color: #ffd8cb !important;
  background: #4a2820 !important;
  border-color: #ce7057c7 !important;
}

@media (max-width: 500px) {
  .game-shell {
    min-height: 100svh;
    padding: 0 0 calc(76px + env(safe-area-inset-bottom));
    background: #050907;
  }

  .game-shell > .topbar {
    display: none;
  }

  .game-shell > .hall-card {
    width: 100%;
    box-shadow: none;
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .game-shell .hall-header {
    z-index: 8;
    top: calc(8px + env(safe-area-inset-top));
    background: none;
    padding: 0;
    position: absolute;
    left: auto;
    right: 8px;
  }

  .game-shell .hall-header > div:first-child {
    display: none;
  }

  .game-shell .hall-controls {
    gap: 6px;
  }

  .game-shell .storage-entry {
    display: none;
  }

  .hud-icon-action {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background: #071310db;
    border-radius: 11px;
    place-items: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    display: grid;
  }

  .hud-icon-action .gameplay-icon {
    width: 20px;
    height: 20px;
  }

  .hud-icon-action span {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
  }

  .game-shell .hall-scene {
    width: 100%;
  }

  .game-shell .hint {
    display: none;
  }

  .game-shell .first-session-guidance {
    margin: 12px;
  }

  .gameplay-surface {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body .gameplay-nav {
    top: auto;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 20;
    background: linear-gradient(#121d23f5, #050c0ffa);
    border-radius: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 48px;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 5px;
    position: fixed;
    left: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px #d0d8e714, 0 12px 36px #00000080;
  }

  .gameplay-nav button {
    height: 48px;
    min-height: 0;
    padding: 4px 1px;
  }

  .gameplay-nav__label {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
  }

  .gameplay-surface:before {
    margin-bottom: 9px;
  }

  .gameplay-empty ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gameplay-empty li {
    font-size: .58rem;
  }

  .league-console {
    gap: 10px;
    padding: 14px;
  }

  .league-badge {
    width: 50px;
    height: 50px;
  }

  .league-console strong {
    font-size: 1.25rem;
  }

  .league-progress div {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gameplay-nav button {
    transition: none;
  }
}

.workshop-parts, .workshop-list {
  gap: 8px;
  display: grid;
}

.workshop-parts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workshop-card, .rarity-badge {
  background: #111a1d;
  border: 1px solid #56636a;
  border-radius: 8px;
  padding: 8px;
}

.workshop-card {
  gap: 4px;
  display: grid;
}

.rarity-badge {
  text-transform: capitalize;
  display: inline-block;
}

.workshop-surface {
  gap: 12px;
  display: grid;
}

.workshop-tabs {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  display: grid;
}

.workshop-tabs button[aria-selected="true"], .workshop-selected {
  background: #242d30;
  border-color: #3ba3e2;
}

.workshop-inputs {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
  display: grid;
}

.workshop-card fieldset {
  border-color: #56636a;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0;
  display: flex;
}

.workshop-card fieldset label {
  font-size: .78rem;
}

.workshop-card button {
  text-align: left;
  min-height: 40px;
}

.workshop-card > button {
  text-align: center;
  justify-content: center;
}

:root {
  --cs-neutral: #0d1b29;
  --cs-neutral-raised: #132b3f;
  --cs-blue-border: #315b76;
  --cs-blue: #4e94bb;
  --cs-cyan: #78d0e6;
  --cs-steel: #e8f0f5;
  --cs-steel-muted: #9baeba;
  --cs-blueprint-grid: linear-gradient(#78d0e60a 1px, transparent 1px),
    linear-gradient(90deg, #78d0e60a 1px, transparent 1px);
}

.screen-fade-transition {
  z-index: 190;
  opacity: 1;
  pointer-events: auto;
  background: #03080d;
  place-items: center;
  display: grid;
  position: fixed;
  inset: 0;
}

.screen-fade-transition > span {
  background: linear-gradient(90deg, transparent, var(--cs-cyan), transparent);
  width: 64px;
  height: 2px;
  animation: .9s ease-in-out infinite screen-fade-transition-scan;
  box-shadow: 0 0 12px #78d0e680;
}

.screen-fade-transition.is-revealing {
  pointer-events: none;
  animation: .26s ease-out forwards screen-fade-transition-reveal;
}

@keyframes screen-fade-transition-reveal {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes screen-fade-transition-scan {
  0%, 100% {
    opacity: .45;
    transform: scaleX(.72);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-fade-transition > span {
    animation: none;
  }

  .screen-fade-transition.is-revealing {
    opacity: 0;
    animation: none;
  }
}

.gameplay-surface, .mining-status-screen {
  color: var(--cs-steel);
  background-color: #0b0f0f;
  background-image: linear-gradient(#03050538, #0305054d 58%, #03050561), url("/images/cryptoshelter-metal-wall.jpg");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
}

.hall-edit-mode {
  color: var(--cs-steel);
  background-color: #07111d;
  background-image: var(--cs-blueprint-grid),
    radial-gradient(ellipse at 50% 0, #183a55 0, #07111d 52%, #040a12 100%);
  background-size: 18px 18px, 18px 18px, auto;
}

.gameplay-surface:before, .mining-status-screen:before {
  background: linear-gradient(90deg,
    transparent,
    var(--cs-cyan) 20%,
    #315b76 50%,
    var(--cs-cyan) 80%,
    transparent);
}

.gameplay-nav {
  border-color: var(--cs-blue-border);
  background: linear-gradient(#112a3d, #07111d);
  box-shadow: inset 0 1px #78d0e616, 0 10px 28px #0008;
}

.gameplay-nav button {
  color: var(--cs-steel-muted);
}

.gameplay-nav button.gameplay-nav__active {
  color: var(--cs-steel);
  background: linear-gradient(#1b4a67, #102c40);
  border-color: #78d0e699;
  box-shadow: inset 0 0 17px #78d0e626;
}

.gameplay-nav button.gameplay-nav__active small, .gameplay-nav button:hover, .gameplay-nav button:focus-visible {
  color: var(--cs-cyan);
  border-color: #78d0e6c7;
}

.gameplay-state, .gameplay-empty, .gameplay-info, .gameplay-hero, .offer-card, .mining-status-state, .mining-card, .mining-history, .mining-hero, .wallet-sheet, .rack-sheet, .equipment-storage, .energy-sheet, .referral-link-card, .referral-summary, .referral-income, .referral-explainer {
  border-color: var(--cs-blue-border);
  color: var(--cs-steel);
  background: linear-gradient(145deg, #102638, #091724);
  box-shadow: inset 0 1px #dceeff0d, 0 12px 28px #0006;
}

.gameplay-state:before, .gameplay-empty:before, .gameplay-info:before, .offer-card:before {
  background: var(--cs-blue);
}

.gameplay-hero {
  background: linear-gradient(135deg, #173d56, #0b1927 72%);
}

.gameplay-hero strong, .mining-hero > strong, .mining-reward strong {
  color: var(--cs-cyan);
}

.gameplay-empty li {
  color: var(--cs-steel-muted);
  border-color: #315b76;
}

.mining-status-screen__header {
  border-color: #315b76;
}

.mining-hero p, .mining-card p, .mining-reward p, .mining-hero > span, .mining-card span, .mining-reward small {
  color: var(--cs-steel-muted);
}

.mining-card button, .mining-reward button, .mining-hero__empty button, .mining-status-state button, .storage-card__action, .equipment-storage__card button, .hall-state button, .storage-tabs button[aria-selected="true"] {
  border-color: var(--cs-blue);
  color: var(--cs-steel);
  background: linear-gradient(145deg, #1a4a66, #10283b);
  box-shadow: inset 0 1px #dceeff14;
}

.wallet-sheet .slot-row:first-of-type strong, .wallet-sheet .slot-row:last-of-type strong {
  color: var(--cs-cyan);
}

.equipment-storage-backdrop {
  background: linear-gradient(0deg, #020b14cc 0 60%, #0000 88%);
}

.equipment-storage__header {
  border-color: #294a60;
}

.equipment-storage__card {
  border-color: var(--cs-blue-border);
  background: #102638;
}

.equipment-storage__card span, .equipment-storage__empty, .referral-link-card p, .referral-income p, .referral-summary span, .referral-income span, .referral-summary small, .referral-income small, .referral-explainer {
  color: var(--cs-steel-muted);
}

.referral-link-card strong, .referral-income strong {
  color: var(--cs-steel);
}

.referral-link-card button {
  border-color: var(--cs-blue);
  color: var(--cs-steel);
  background: #173d56;
}

.referral-link-card button + button {
  background: #163244;
  border-color: #52758b;
}

.referral-summary div + div, .referral-income > div {
  border-color: #315b7688;
}

.referral-summary strong {
  color: var(--cs-cyan);
}

.referral-explainer {
  border-left-color: var(--cs-cyan);
}

.referral-ambassador {
  border: 1px solid var(--cs-blue-border);
  background: linear-gradient(145deg, #102638, #091724);
  border-radius: 13px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.referral-ambassador__header {
  gap: 5px;
  display: grid;
}

.referral-ambassador__header p {
  color: var(--cs-cyan);
  letter-spacing: .1em;
  margin: 0;
  font: 700 .66rem / 1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.referral-ambassador__header h2 {
  color: var(--cs-steel);
  margin: 0;
  font-size: 1.05rem;
}

.referral-ambassador small {
  color: var(--cs-steel-muted);
  line-height: 1.45;
}

.referral-ambassador__form {
  gap: 8px;
  display: grid;
}

.referral-ambassador__form label, .referral-ambassador__form input {
  font-size: .78rem;
}

.referral-ambassador__form input {
  min-height: 42px;
  color: var(--cs-steel);
  background: #0b1b29;
  border: 1px solid #315b76;
  border-radius: 8px;
  padding: 8px 10px;
}

.referral-ambassador__form input:focus {
  outline: 2px solid var(--cs-cyan);
  outline-offset: 2px;
}

.referral-ambassador__status {
  background: #0b1b29;
  border: 1px solid #315b76;
  border-radius: 10px;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.referral-ambassador__status strong {
  color: var(--cs-steel);
}

.referral-ambassador__status button {
  justify-self: start;
}

.referral-ambassador__applications {
  border-top: 1px solid #315b7688;
  gap: 7px;
  padding-top: 10px;
  display: grid;
}

.referral-ambassador__application {
  border-top: 1px solid #315b7644;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding: 8px 0;
  font-size: .78rem;
  display: grid;
}

.referral-ambassador__application span {
  overflow-wrap: anywhere;
  color: var(--cs-steel);
}

.referral-ambassador__application b {
  color: var(--cs-cyan);
  text-align: right;
  font-size: .7rem;
}

.referral-ambassador__application small {
  grid-column: 1 / -1;
}

.referral-ambassador__modal-backdrop {
  z-index: 40;
  background: #030a12c7;
  place-items: center;
  padding: 18px;
  display: grid;
  position: fixed;
  inset: 0;
}

.referral-ambassador__modal {
  border: 1px solid var(--cs-cyan);
  background: linear-gradient(145deg, #102638, #091724);
  border-radius: 14px;
  gap: 10px;
  width: min(100%, 430px);
  padding: 18px;
  display: grid;
  box-shadow: 0 18px 60px #00000073;
}

.referral-ambassador__modal h2, .referral-ambassador__modal p, .referral-ambassador__modal ul {
  margin: 0;
}

.referral-ambassador__modal h2 {
  color: var(--cs-steel);
  font-size: 1.1rem;
}

.referral-ambassador__modal p, .referral-ambassador__modal li {
  color: var(--cs-steel-muted);
  line-height: 1.45;
}

.referral-ambassador__modal ul {
  gap: 6px;
  padding-left: 20px;
  display: grid;
}

.referral-ambassador__modal-eyebrow {
  letter-spacing: .1em;
  font: 700 .66rem / 1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--cs-cyan) !important;
}

.referral-ambassador__modal-error {
  background: #7f202857;
  border: 1px solid #ff7e7eb8;
  border-radius: 9px;
  padding: 10px 12px;
  font-weight: 600;
  color: #ffd0d0 !important;
}

.referral-ambassador__confirm-check {
  min-height: 44px;
  color: var(--cs-steel);
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  line-height: 1.4;
  display: flex;
}

.referral-ambassador__confirm-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--cs-cyan);
  flex: 0 0 20px;
}

.referral-ambassador__confirm-check input:focus-visible, .referral-ambassador__modal button:focus-visible {
  outline: 2px solid var(--cs-cyan);
  outline-offset: 3px;
}

.referral-ambassador__modal-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.referral-ambassador__modal-actions button {
  min-height: 44px;
  padding: 9px 13px;
}

.referral-details {
  border: 1px solid var(--cs-blue-border);
  background: linear-gradient(145deg, #102638, #091724);
  border-radius: 13px;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.referral-details > p {
  color: var(--cs-steel-muted);
  letter-spacing: .1em;
  margin: 0;
  font: 700 .66rem / 1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.referral-details > small {
  color: var(--cs-steel-muted);
}

.referral-level-tabs button {
  min-height: 34px;
  color: var(--cs-steel-muted);
  background: #0b1b29;
  border: 1px solid #315b76;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: .72rem;
  font-weight: 700;
}

.referral-level-tabs button[aria-selected="true"] {
  border-color: var(--cs-cyan);
  color: var(--cs-steel);
  background: #173d56;
}

.referral-detail {
  border-top: 1px solid #315b7688;
  gap: 6px;
  padding: 8px 0;
  display: grid;
}

.referral-detail strong {
  color: var(--cs-steel);
}

.referral-detail__identity {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  line-height: 1.25;
  display: flex;
}

.referral-detail__identity span {
  color: var(--cs-cyan);
  font-size: .72rem;
}

.referral-detail__identity small {
  color: var(--cs-steel-muted);
}

.referral-detail__income {
  color: var(--cs-steel-muted);
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: .74rem;
  line-height: 1.3;
  display: flex;
}

.referral-detail .referral-detail__income span {
  color: var(--cs-steel-muted);
  white-space: nowrap;
}

.referral-detail__income strong {
  color: var(--cs-steel);
}

.league-console {
  border-color: var(--cs-blue-border);
  background: linear-gradient(135deg, #102a40, #091724 72%);
}

.league-console p, .league-console small, .league-progress div {
  color: var(--cs-steel-muted);
}

.league-console strong, .league-progress strong {
  color: var(--cs-steel);
}

.league-badge {
  border-color: var(--cs-blue);
  color: var(--cs-cyan);
  background: radial-gradient(circle at 45% 32%, #29536d, #0b1926 70%);
  box-shadow: inset 0 0 0 4px #09131d, 0 0 20px #78d0e622;
}

.league-badge small {
  color: var(--cs-cyan);
}

.league-progress {
  border-color: #315b7688;
}

.league-progress i {
  background: #07111d;
  border-color: #315b76;
}

.league-progress b {
  background: linear-gradient(90deg, #315b76, var(--cs-cyan));
  box-shadow: 0 0 12px #78d0e655;
}

.workshop-surface {
  background-image: var(--cs-blueprint-grid);
  background-size: 18px 18px;
  padding: 2px;
  position: relative;
}

.workshop-card, .rarity-badge {
  border-color: var(--cs-blue-border);
  color: var(--cs-steel);
  background: linear-gradient(145deg, #102638, #091724);
}

.workshop-tabs button[aria-selected="true"], .workshop-selected {
  border-color: var(--cs-cyan);
  color: var(--cs-steel);
  background: #173d56;
}

.workshop-card button {
  color: var(--cs-steel);
  background: #102638;
  border-color: #315b76;
}

.workshop-card button:not(:disabled):hover, .workshop-card button:not(:disabled):focus-visible {
  border-color: var(--cs-cyan);
  outline: none;
}

@media (max-width: 500px) {
  .game-shell {
    padding: 14px 14px calc(84px + env(safe-area-inset-bottom));
    background-color: #0b0f0f;
    background-image: linear-gradient(#03050538, #0305054d 58%, #03050561), url("/images/cryptoshelter-metal-wall.jpg");
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .game-shell > .topbar {
    display: flex;
  }

  .game-shell .hall-header {
    background: none;
    padding: 8px 10px;
    position: relative;
    inset: auto;
  }

  .game-shell .hall-controls {
    width: 100%;
  }

  .hud-icon-action, .energy-indicator {
    background: linear-gradient(145deg, #17334a, #0d1c2a);
  }

  .game-shell .hall-card {
    border: 1px solid var(--cs-blue-border);
    background: linear-gradient(145deg, #102638, #091724);
    border-radius: 14px;
  }

  .game-shell .hall-scene {
    background: none;
  }

  body .gameplay-nav {
    border-color: var(--cs-blue-border);
    background: linear-gradient(#112a3df7, #07111df9);
    border-radius: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -10px 28px #0009;
  }

  .gameplay-nav button {
    height: 48px;
  }

  .gameplay-nav__label {
    clip: auto;
    clip-path: none;
    text-overflow: ellipsis;
    width: auto;
    height: auto;
    font-size: 10px;
    position: static;
    overflow: hidden;
  }

  .league-status-card, .hall-discovery {
    width: 100%;
  }

  .hall-discovery {
    margin-inline: auto;
  }
}

body .gameplay-nav {
  z-index: 20;
  box-sizing: border-box;
  width: min(100%, 720px);
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 4px max(8px, var(--cs-safe-right, env(safe-area-inset-right)))
    calc(4px + var(--cs-safe-bottom, env(safe-area-inset-bottom)))
    max(8px, var(--cs-safe-left, env(safe-area-inset-left)));
  box-shadow: none;
  background: none;
  border: 1px solid #0000;
  border-radius: 0;
  margin: 0 auto;
  display: block;
  position: fixed;
  inset: auto 0 0;
  overflow: visible;
}

body .gameplay-nav__grid {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #050a0e8f;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  min-width: 0;
  display: grid;
}

body .gameplay-nav .gameplay-nav__cell {
  box-sizing: border-box;
  color: #c2d1d7;
  background: linear-gradient(#112a39, #050d14);
  border: 1px solid #397b90;
  border-radius: 0;
  grid-template-rows: 1fr;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 68px;
  margin: 0;
  padding: 5px 2px;
  transition: filter .12s, transform .1s;
  display: grid;
  position: relative;
  transform: none;
  box-shadow: inset 0 1px #bbf4ff18;
}

body .gameplay-nav .gameplay-nav__cell .gameplay-icon--asset {
  object-fit: contain;
  opacity: .88;
  width: 34px;
  max-width: 100%;
  height: 34px;
  display: block;
}

body .gameplay-nav .gameplay-nav__cell .gameplay-icon {
  width: 34px;
  height: 34px;
}

body .gameplay-nav .gameplay-nav__more-cell {
  grid-template-rows: 1fr;
  align-content: center;
  place-items: center;
}

body .gameplay-nav .gameplay-nav__more-cell .gameplay-icon--asset {
  place-self: center;
}

body .gameplay-nav .gameplay-nav__label {
  display: none;
}

body .gameplay-nav .gameplay-nav__cell.gameplay-nav__active {
  color: #ffe7a6;
  background: linear-gradient(#43311a, #171007);
  border-color: #d9a13e;
  box-shadow: inset 0 0 10px #e7a83b22, 0 0 8px #d69d3824;
}

body .gameplay-nav .gameplay-nav__active .gameplay-icon--asset {
  opacity: 1;
}

body .gameplay-nav .gameplay-nav__cell:disabled {
  opacity: .55;
  cursor: default;
}

body .gameplay-nav .gameplay-nav__cell:hover {
  filter: brightness(1.12);
}

body .gameplay-nav .gameplay-nav__cell:active {
  filter: brightness(.92);
  transform: translateY(1px);
}

body .gameplay-nav button, .gameplay-menu button {
  -webkit-tap-highlight-color: transparent;
}

body .gameplay-nav button:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #6ab5e0;
}

@media (prefers-reduced-motion: reduce) {
  body .gameplay-nav button {
    transition: none;
  }
}

body .gameplay-nav {
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  grid-template-columns: none;
  width: auto;
  max-width: 720px;
  margin-inline: auto;
  transform: none;
}

body .gameplay-nav__grid {
  grid-template-rows: 0 0 68px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 0;
  gap: 0;
  transition: grid-template-rows .26s ease-out;
  overflow: hidden;
}

body .gameplay-nav__grid > .gameplay-nav__cell:nth-child(-n+5) {
  grid-row: 3;
}

body .gameplay-nav__grid > .gameplay-nav__cell:nth-child(n+6):nth-child(-n+10) {
  grid-row: 1;
}

body .gameplay-nav__grid > .gameplay-nav__cell:nth-child(n+11):nth-child(-n+15) {
  grid-row: 2;
}

body .gameplay-nav__grid:not(.is-expanded) > .gameplay-nav__cell:nth-child(n+6) {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s ease-out, transform .26s ease-out, visibility 0s linear .26s;
  transform: translateY(8px);
}

body .gameplay-nav__grid.is-expanded {
  grid-template-rows: 68px 68px 68px;
  gap: 3px;
}

body .gameplay-nav__grid.is-expanded > .gameplay-nav__cell:nth-child(n+6) {
  opacity: 1;
  visibility: visible;
  transition: opacity .22s ease-out, transform .26s ease-out, visibility linear;
  transform: translateY(0);
}

body .gameplay-nav__grid.is-expanded > .gameplay-nav__cell:nth-child(n+6) .gameplay-nav__label {
  white-space: normal;
}

@media (max-width: 720px) {
  body .gameplay-nav {
    --cs-safe-bottom: env(safe-area-inset-bottom, 0px);
    height: 68px;
  }

  body .gameplay-nav__grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

body .gameplay-nav .gameplay-nav__label {
  word-break: normal;
  overflow-wrap: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

.gameplay-surface--earnings {
  --store-filter-height: 44px;
  --store-region-gap: 6px;
}

.gameplay-surface--earnings .gameplay-store__controls-frame:before, .gameplay-surface--earnings .gameplay-store__controls-frame:after {
  content: none;
}

.earnings-header-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.earnings-provider-summary {
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 4px 8px 4px 11px;
  display: grid;
}

.earnings-provider-summary > div {
  min-width: 0;
}

.earnings-provider-summary strong, .earnings-provider-summary span {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.earnings-provider-summary strong {
  color: #eef5f6;
  letter-spacing: .06em;
  text-transform: uppercase;
  font: 850 11px / 13px Arial Narrow, Roboto Condensed, sans-serif;
}

.earnings-provider-summary span {
  color: #8ea9b0;
  margin-top: 2px;
  font-size: 9px;
  line-height: 11px;
}

.earnings-provider-summary b {
  color: #f2c66f;
  background: #2b1b09;
  border: 1px solid #b9822d;
  border-radius: 0;
  place-items: center;
  width: 30px;
  height: 30px;
  font: 900 13px / 1 Arial Narrow, Roboto Condensed, sans-serif;
  display: grid;
  box-shadow: inset 0 0 0 1px #0b0804;
}

.earnings-provider-list {
  gap: 3px;
  width: 100%;
  min-width: 0;
  display: grid;
}

.earnings-provider-card {
  box-sizing: border-box;
  color: #dfe9eb;
  background: linear-gradient(90deg, #52d7ed0a 1px, #0000 1px) 0 0 / 15px 15px, linear-gradient(#0b1d27f2, #050d13f5);
  border: 1px solid #244c5b;
  border-radius: 0;
  grid-template-columns: 30px minmax(0, 1fr) 38px 44px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 47px;
  padding: 1px 3px 1px 6px;
  display: grid;
  position: relative;
  box-shadow: inset 0 1px #7bdff12b, inset 3px 0 #153c4a, 0 2px 5px #0005;
}

.earnings-provider-card__logo {
  color: #75d8e8;
  background: #07151e;
  border: 1px solid #316c7e;
  border-radius: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  font: 900 12px / 1 Arial Narrow, Roboto Condensed, sans-serif;
  display: grid;
  overflow: hidden;
}

.earnings-provider-card__logo-fallback, .earnings-provider-card__logo img {
  grid-area: 1 / 1;
}

.earnings-provider-card__logo img {
  object-fit: contain;
  background: #07151e;
  width: 22px;
  height: 22px;
  display: block;
}

.earnings-provider-card__copy {
  min-width: 0;
}

.earnings-provider-card h3, .earnings-status {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.earnings-provider-card h3 {
  color: #eff5f6;
  letter-spacing: .025em;
  margin: 0;
  font: 850 12px / 14px Arial Narrow, Roboto Condensed, sans-serif;
}

.earnings-status {
  color: #7f969e;
  letter-spacing: .035em;
  text-transform: uppercase;
  margin-top: 2px;
  font: 750 9px / 11px ui-monospace, monospace;
}

.earnings-status--available, .earnings-status--credited {
  color: #55c178;
}

.earnings-status--loading, .earnings-status--opening, .earnings-status--waiting {
  color: #66cede;
}

.earnings-status--daily_limit_reached, .earnings-status--cooldown {
  color: #d8ad5c;
}

.earnings-status--no_ad, .earnings-status--error, .earnings-status--unavailable, .earnings-status--reward_blocked {
  color: #84959a;
}

.earnings-provider-card__usage {
  color: #b6c5c9;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font: 800 9px / 11px ui-monospace, monospace;
  overflow: hidden;
}

.earnings-provider-card > button {
  box-sizing: border-box;
  color: #f3ca78;
  cursor: pointer;
  background: linear-gradient(#493214, #211405);
  border: 1px solid #9d722d;
  border-radius: 0;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 15px;
  transition: transform 90ms, filter 90ms;
  display: grid;
  box-shadow: inset 0 1px #ffe2a533, inset 0 0 0 1px #090703;
}

.earnings-provider-card > button:active:not(:disabled) {
  filter: brightness(1.18);
  transform: translateY(1px) scale(.97);
}

.earnings-provider-card > button:focus-visible, .earnings-state button:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #79d8eb;
}

.earnings-provider-card > button:disabled {
  color: #60747b;
  cursor: default;
  background: #0a151c;
  border-color: #294754;
  box-shadow: inset 0 0 0 1px #02070a;
}

.earnings-disclaimer {
  color: #7f949b;
  margin: 6px 2px 0;
  font-size: 9px;
  line-height: 12px;
}

.earnings-state {
  box-sizing: border-box;
  color: #aebfc4;
  background: #07131be8;
  border: 1px solid #244c5b;
  border-radius: 0;
  margin: 0;
  padding: 12px;
}

.earnings-state h2, .earnings-state p {
  margin: 0;
}

.earnings-state h2 {
  color: #eef5f6;
  margin-top: 3px;
  font-size: 16px;
}

.earnings-state button {
  color: #f3ca78;
  background: #2b1b09;
  border: 1px solid #9d722d;
  border-radius: 0;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 14px;
}

@media (prefers-reduced-motion: reduce) {
  .earnings-provider-card > button {
    transition: none;
  }
}

.gameplay-surface--store.gameplay-surface--task-wall {
  --store-filter-height: 44px;
  --store-region-gap: 6px;
}

.gameplay-surface--task-wall .gameplay-store__controls-frame:before, .gameplay-surface--task-wall .gameplay-store__controls-frame:after {
  content: none;
}

.task-wall-header-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.gameplay-surface--task-wall .gameplay-store__filters-frame {
  left: 34px;
  right: 34px;
}

.gameplay-surface--task-wall .gameplay-store__filter-divider {
  width: calc(100% - 68px);
  left: 34px;
  right: 34px;
}

.task-wall__toolbar {
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 3px;
  width: 100%;
  height: 100%;
  display: grid;
}

.task-wall__workspace-bar {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 3px;
  width: 100%;
  height: 100%;
  display: grid;
}

.task-wall__workspace-bar > strong {
  color: #b9d3da;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(#0b1d27f2, #050d13f5);
  border-block: 1px solid #244c5b;
  place-items: center;
  min-width: 0;
  font: 800 10px / 12px Arial Narrow, Roboto Condensed, sans-serif;
  display: grid;
  overflow: hidden;
}

.task-wall__workspace-bar > strong:last-child {
  grid-column: 2 / 4;
}

.gameplay-surface--task-wall .task-wall__workspace-back {
  color: #bfeaf1;
  cursor: pointer;
  background: linear-gradient(#0b1d27f2, #050d13f5);
  border: 1px solid #397b90;
  border-radius: 0;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  font: 800 18px / 1 sans-serif;
  display: grid;
}

.gameplay-surface--task-wall .task-wall__tabs {
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  display: grid;
}

.gameplay-surface--task-wall .task-wall__tabs button, .gameplay-surface--task-wall .task-wall__plus {
  color: #91a7ae;
  background: linear-gradient(#0b1d27f2, #050d13f5);
  border: 1px solid #244c5b;
  border-radius: 0;
  min-height: 44px;
  transition: filter 90ms, transform 90ms;
  box-shadow: inset 0 1px #7bdff11c;
}

.gameplay-surface--task-wall .task-wall__tabs button {
  letter-spacing: .025em;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
  font: 800 9px / 12px Arial Narrow, Roboto Condensed, sans-serif;
  overflow: hidden;
}

.gameplay-surface--task-wall .task-wall__tabs button[aria-selected="true"] {
  color: #f3ca78;
  background: linear-gradient(#493214, #211405);
  border-color: #9d722d;
  box-shadow: inset 0 1px #ffe2a533, inset 0 0 0 1px #090703;
}

.gameplay-surface--task-wall .task-wall__plus {
  color: #bfeaf1;
  cursor: pointer;
  border-color: #397b90;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  font: 800 23px / 1 sans-serif;
  display: grid;
}

.gameplay-surface--task-wall :is(.task-wall__tabs button, .task-wall__plus, .task-wall__workspace-back, .task-wall__actions button):active {
  filter: brightness(1.18);
  transform: translateY(1px);
}

.gameplay-surface--task-wall :is(.task-wall__tabs button, .task-wall__plus, .task-wall__workspace-back, .task-wall__actions button):focus-visible {
  outline-offset: -2px;
  outline: 2px solid #79d8eb;
}

.gameplay-surface--task-wall .task-wall {
  gap: 4px;
  width: 100%;
  margin: 0;
  display: grid;
}

.gameplay-surface--task-wall .task-wall__notice {
  border-radius: 0;
}

.gameplay-surface--task-wall .task-wall__list, .gameplay-surface--task-wall .task-wall__skeletons {
  gap: 3px;
}

.gameplay-surface--task-wall .task-wall__card, .gameplay-surface--task-wall .task-wall__skeleton {
  box-sizing: border-box;
  background: linear-gradient(90deg, #52d7ed0a 1px, #0000 1px) 0 0 / 15px 15px, linear-gradient(#0b1d27f2, #050d13f5);
  border-color: #244c5b;
  border-radius: 0;
  grid-template-columns: 24px minmax(0, 1fr) 50px 112px;
  gap: 6px;
  height: auto;
  min-height: 46px;
  padding: 1px 4px 1px 6px;
  box-shadow: inset 0 1px #7bdff12b, inset 3px 0 #153c4a, 0 2px 5px #0005;
}

.gameplay-surface--task-wall .task-wall__telegram {
  border-radius: 0;
  width: 24px;
  height: 24px;
}

.gameplay-surface--task-wall .task-wall__telegram svg {
  width: 20px;
  height: 20px;
}

.gameplay-surface--task-wall .task-wall__channel h2 {
  font-size: 11px;
  line-height: 13px;
}

.gameplay-surface--task-wall .task-wall__reward {
  font-size: 10px;
  line-height: 12px;
}

.gameplay-surface--task-wall .task-wall__row-action {
  gap: 3px;
}

.gameplay-surface--task-wall .task-wall__row-action :is(.task-wall__primary, .task-wall__secondary) {
  border-radius: 0;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 9px;
  line-height: 11px;
}

.gameplay-surface--task-wall .task-wall__compact-status {
  max-width: 112px;
}

.gameplay-surface--task-wall .task-wall__skeleton i {
  border-radius: 0;
  width: 24px;
  height: 24px;
}

.gameplay-surface--task-wall .task-wall__skeleton b {
  border-radius: 0;
  grid-column: 4;
  width: 100%;
  height: 44px;
}

.gameplay-surface--task-wall .task-wall__empty {
  border-radius: 0;
}

.gameplay-surface--task-wall .task-wall__actions {
  gap: 6px;
  width: 100%;
  display: grid;
}

.gameplay-surface--task-wall .task-wall__actions > button {
  color: #eff8fa;
  text-align: left;
  cursor: pointer;
  background: linear-gradient(90deg, #4ed8ec0a 1px, #0000 1px) 0 0 / 16px 16px, linear-gradient(#0c222d, #061018);
  border: 1px solid #315b68;
  border-radius: 0;
  gap: 4px;
  min-height: 68px;
  padding: 10px 12px;
  transition: filter 90ms, transform 90ms;
  display: grid;
  box-shadow: inset 3px 0 #2e8193, inset 0 1px #9befff17;
}

.gameplay-surface--task-wall .task-wall__actions strong {
  color: #f2c875;
  letter-spacing: .045em;
  font: 900 13px / 16px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--task-wall .task-wall__actions span {
  color: #91a7ae;
  font-size: 11px;
  line-height: 15px;
}

.gameplay-surface--task-wall .task-create, .gameplay-surface--task-wall .my-tasks {
  gap: 8px;
}

.gameplay-surface--task-wall .task-create {
  background: linear-gradient(90deg, #4ed8ec08 1px, #0000 1px) 0 0 / 16px 16px, linear-gradient(#0a1d27, #050f16);
  border-color: #294f5e;
  border-radius: 0;
  padding: 8px;
  font-family: Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--task-wall .task-create :is(input, fieldset), .gameplay-surface--task-wall .task-create__warning, .gameplay-surface--task-wall .task-create__calculator, .gameplay-surface--task-wall .owned-campaign, .gameplay-surface--task-wall .owned-campaign dl div, .gameplay-surface--task-wall .owned-campaign__warning {
  border-radius: 0;
}

.gameplay-surface--task-wall .task-create__warning, .gameplay-surface--task-wall .task-create__calculator, .gameplay-surface--task-wall .task-create__funding {
  padding: 9px 10px;
}

.gameplay-surface--task-wall .task-create > label > span, .gameplay-surface--task-wall .task-create__funding legend, .gameplay-surface--task-wall .task-create__calculator > div > span, .gameplay-surface--task-wall .task-create__available > span {
  color: #8799a2;
  letter-spacing: .055em;
  text-transform: uppercase;
  font: 750 10px / 12px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--task-wall .task-create > label > input {
  color: #edf3f4;
  background: linear-gradient(#071723, #041019);
  border-color: #365765;
  border-radius: 0;
  min-height: 44px;
  font: 750 14px / 18px Arial Narrow, Roboto Condensed, sans-serif;
  box-shadow: inset 0 1px #90e4f10d;
}

.gameplay-surface--task-wall .task-create > label > input:focus {
  border-color: #5fa8b8;
  box-shadow: inset 0 1px #90e4f11a, 0 0 0 2px #5fa8b824;
}

.gameplay-surface--task-wall .task-create__warning {
  background: linear-gradient(#2b2113, #17130d);
  border-color: #73562e;
  gap: 4px;
}

.gameplay-surface--task-wall .task-create__warning strong {
  color: #efc66f;
  font: 850 10px / 13px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--task-wall .task-create__warning p {
  color: #cbbf9f;
  font: 650 11px / 15px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--task-wall .task-create__calculator, .gameplay-surface--task-wall .task-create__funding {
  background: linear-gradient(#081a24, #041018);
  border-color: #36535f;
  box-shadow: inset 0 1px #8ce9f00d;
}

.gameplay-surface--task-wall .task-create__calculator {
  gap: 6px;
}

.gameplay-surface--task-wall .task-create__credit-amount {
  color: #e6edef;
  font-variant-numeric: tabular-nums;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  min-width: 0;
  display: inline-flex;
}

.gameplay-surface--task-wall .task-create__credit-amount > span {
  color: inherit;
  letter-spacing: 0;
  font: 850 14px / 17px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--task-wall .task-create__credit-amount > img {
  object-fit: contain;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.gameplay-surface--task-wall .task-create__total .task-create__credit-amount {
  color: #f1cd72;
}

.gameplay-surface--task-wall .task-create__total .task-create__credit-amount > span {
  font-size: 20px;
  line-height: 23px;
}

.gameplay-surface--task-wall .task-create__total .task-create__credit-amount > img {
  flex-basis: 26px;
  width: 26px;
  height: 26px;
}

.gameplay-surface--task-wall .task-create__funding {
  grid-template-columns: 52px 52px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.gameplay-surface--task-wall .task-create__source-option {
  color: #c6d1d4;
  cursor: pointer;
  background: linear-gradient(#111d22, #080f13);
  border: 1px solid #3a555f;
  place-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 3px;
  transition: filter 90ms, transform 90ms;
  display: grid;
  position: relative;
  box-shadow: inset 0 1px #eef5f512;
}

.gameplay-surface--task-wall .task-create__source-option > input {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
}

.gameplay-surface--task-wall .task-create__source-option > img {
  object-fit: contain;
  opacity: .62;
  filter: saturate(.78);
  width: 34px;
  height: 34px;
  transition: filter 90ms, opacity 90ms;
}

.gameplay-surface--task-wall .task-create__source-option:has(input:checked) {
  background: linear-gradient(#3b2b12, #1c1308);
  border-color: #a87831;
  box-shadow: inset 0 1px #ffe9af3d, inset 3px 0 #d59a3d;
}

.gameplay-surface--task-wall .task-create__source-option:has(input:checked) > img {
  opacity: 1;
  filter: saturate();
}

.gameplay-surface--task-wall .task-create__source-option:has(input:focus-visible) {
  outline-offset: 1px;
  outline: 2px solid #efc66f;
}

.gameplay-surface--task-wall .task-create__source-option:active {
  filter: brightness(1.15);
  transform: translateY(1px);
}

.gameplay-surface--task-wall .task-create__available {
  border-top: 0;
  border-left: 1px solid #36535f;
  grid-column: 3;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 0 0 10px;
  display: grid;
}

.gameplay-surface--task-wall .task-create__available .task-create__credit-amount {
  color: #f1cd72;
}

.gameplay-surface--task-wall .task-create__submit {
  color: #fff0c8;
  letter-spacing: .02em;
  background-color: #0000;
  background-image: linear-gradient(110deg, #0000 34%, #fff4d000 42%, #fff4d075 50%, #fff4d000 58%, #0000 66%), linear-gradient(#72521f, #38270f);
  background-position: 200% 0, 0 0;
  background-repeat: no-repeat;
  background-size: 260% 100%, 100% 100%;
  background-attachment: scroll, scroll;
  background-origin: padding-box, padding-box;
  background-clip: border-box, border-box;
  border: 1px solid #a87831;
  border-radius: 0;
  min-height: 48px;
  font: 850 12px / 16px Arial Narrow, Roboto Condensed, sans-serif;
  animation: 3.4s linear infinite store-confirm-sheen;
  box-shadow: inset 0 1px #ffe9af55, inset 0 0 12px #e7ac4520;
}

.gameplay-surface--task-wall .task-create__submit:hover:not(:disabled) {
  filter: brightness(1.12);
}

.gameplay-surface--task-wall .task-create__submit:active:not(:disabled) {
  filter: brightness(1.18);
  transform: translateY(1px);
}

.gameplay-surface--task-wall .task-create__submit:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #efc66f;
}

.gameplay-surface--task-wall .task-wall__tabs--owned {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gameplay-surface--task-wall .owned-campaign {
  background: linear-gradient(#0b202a, #050e15);
  border-color: #294f5e;
  gap: 8px;
  padding: 10px;
}

.gameplay-surface--task-wall .my-tasks__list {
  gap: 5px;
}

@media (max-width: 360px) {
  .gameplay-surface--task-wall .gameplay-store__filters-frame {
    left: 24px;
    right: 24px;
  }

  .gameplay-surface--task-wall .gameplay-store__filter-divider {
    width: calc(100% - 48px);
    left: 24px;
    right: 24px;
  }

  .gameplay-surface--task-wall .task-wall__card, .gameplay-surface--task-wall .task-wall__skeleton {
    grid-template-columns: 22px minmax(0, 1fr) 44px 104px;
    gap: 4px;
    padding-inline: 4px;
  }

  .gameplay-surface--task-wall .task-create__funding {
    grid-template-columns: 48px 48px minmax(0, 1fr);
    gap: 6px;
  }

  .gameplay-surface--task-wall .task-create__available {
    padding-left: 7px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .gameplay-surface--store.gameplay-surface--task-wall {
    --store-wallet-height: 44px;
    --store-wallet-offset: -2px;
    --store-catalog-offset: -8px;
    --store-filter-top: 8px;
    --store-nav-height: 44px;
    --player-nav-bottom: 10px;
  }

  .gameplay-surface--task-wall .gameplay-store__wallet-frame {
    padding-block: 4px;
  }

  .gameplay-surface--task-wall .gameplay-store__catalog-scroll {
    inset: calc(8px + var(--store-filter-height) + var(--store-region-gap)) 16px
      calc(var(--store-nav-height) + 18px);
  }

  body .gameplay-surface--task-wall .gameplay-store__catalog-frame > .gameplay-nav {
    bottom: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gameplay-surface--task-wall :is(.task-wall__tabs button, .task-wall__plus, .task-wall__workspace-back, .task-wall__actions button, .task-create__source-option), .gameplay-surface--task-wall .task-create__source-option > img {
    transition: none;
  }

  .gameplay-surface--task-wall .task-create__submit {
    animation: none;
  }
}

.gameplay-surface--store, .game-shell[data-hall-mode="normal"] {
  --player-shell-width: min(430px,
    calc(100vw - 12px - var(--cs-safe-left, 0px) - var(--cs-safe-right, 0px)));
  --player-shell-top: calc(var(--cs-safe-top, 0px) + 18px);
  --player-hero-height: clamp(132px,
    calc(var(--player-shell-width) * .36),
    148px);
  --player-secondary-height: clamp(58px,
    calc(var(--player-shell-width) * .16),
    66px);
  --player-secondary-offset: -6px;
  --player-main-offset: -20px;
  --player-nav-height: 68px;
  --player-nav-bottom: 6.5%;
}

@media (max-width: 599px) {
  .gameplay-surface--store:is(.gameplay-surface--earnings, .gameplay-surface--task-wall, .gameplay-surface--wallet, .gameplay-surface--leaderboard, .gameplay-surface--marketplace, .gameplay-surface--inventory, .gameplay-surface--workshop, .gameplay-surface--news, .gameplay-surface--referrals, .gameplay-surface--profile) {
    --store-controls-height: clamp(132px,
      calc((100vw - var(--cs-safe-left, 0px) - var(--cs-safe-right, 0px)) * .35),
      148px);
  }

  .gameplay-surface--store:is(.gameplay-surface--earnings, .gameplay-surface--task-wall, .gameplay-surface--wallet, .gameplay-surface--leaderboard, .gameplay-surface--marketplace, .gameplay-surface--inventory, .gameplay-surface--workshop, .gameplay-surface--news, .gameplay-surface--referrals, .gameplay-surface--profile) .gameplay-store__controls-frame {
    width: calc(100vw - var(--cs-safe-left, 0px) - var(--cs-safe-right, 0px));
  }
}

:is(.earnings-header-art, .task-wall-header-art, .leaderboard-header-art, .marketplace-screen__hero-art, .inventory-screen__hero-art, .workshop-screen__hero-art, .news-header-art, .referral-header-art, .profile-hero__art) {
  transform: scale(var(--player-header-art-scale, 1));
  transform-origin: center;
}

.earnings-header-art {
  --player-header-art-scale: .906;
}

.task-wall-header-art {
  --player-header-art-scale: .886;
}

.leaderboard-header-art {
  --player-header-art-scale: .971;
}

.marketplace-screen__hero-art {
  --player-header-art-scale: .955;
}

.inventory-screen__hero-art, .profile-hero__art {
  --player-header-art-scale: .951;
}

.workshop-screen__hero-art {
  --player-header-art-scale: 1;
}

.news-header-art {
  --player-header-art-scale: .975;
}

.referral-header-art {
  --player-header-art-scale: .903;
}

.gameplay-surface--news .gameplay-store__controls-frame:before, .gameplay-surface--news .gameplay-store__controls-frame:after {
  content: none;
}

.news-header-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.gameplay-surface--news .gameplay-store__filters-frame, .gameplay-surface--news .gameplay-store__filter-divider {
  display: none;
}

.gameplay-surface--news .gameplay-store__catalog-scroll {
  inset: 31px 18px calc(var(--store-nav-height) + 6.5%);
  padding: 0 2px 18px;
}

.gameplay-surface--news .news-feed {
  gap: 8px;
  width: min(100%, 760px);
  margin-inline: auto;
  display: grid;
}

.gameplay-surface--news .news-card {
  background: linear-gradient(90deg, #45d7ed06 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(#45d7ed06 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(#0b202bf2, #041019f7);
  border: 1px solid #285c6d;
  border-radius: 0;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #02080d, inset 0 1px #baf8ff16, 0 5px 12px #0005;
}

.gameplay-surface--news .news-card:before {
  z-index: 2;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #d79b3c, #4ed7ee 46%, #0000 82%);
  height: 2px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.gameplay-surface--news .news-card__image {
  object-fit: cover;
  border-bottom: 1px solid #285c6d;
  width: 100%;
  max-height: 220px;
  display: block;
}

.gameplay-surface--news .news-card__content {
  gap: 7px;
  padding: 12px 13px 14px;
  display: grid;
}

.gameplay-surface--news .news-card__content > .eyebrow {
  color: #d7b46a;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  margin: 0;
  font: 750 10px / 13px ui-monospace, monospace;
}

.gameplay-surface--news .news-card__content h2 {
  color: #edf6f7;
  letter-spacing: .035em;
  margin: 0;
  font: 850 16px / 20px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--news .news-card__body {
  color: #b4c8ce;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  display: grid;
}

.gameplay-surface--news .news-card__body :is(p, h3, ul) {
  margin: 0;
}

.gameplay-surface--news .news-card__body h3 {
  color: #8fdbea;
  letter-spacing: .04em;
  text-transform: uppercase;
  font: 800 13px / 17px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--news .news-card__body ul {
  gap: 5px;
  padding-left: 20px;
  display: grid;
}

.gameplay-surface--news .news-card__body a {
  color: #8fdbea;
  text-underline-offset: 3px;
}

.gameplay-surface--news .news-card__body a:focus-visible {
  outline-offset: 2px;
  border-radius: 0;
  outline: 2px solid #8fdbea;
}

@media (max-width: 360px) {
  .gameplay-surface--news .gameplay-store__catalog-scroll {
    inset-inline: 16px;
  }

  .gameplay-surface--news .news-card__content {
    padding-inline: 11px;
  }
}

@media (min-width: 600px) and (max-width: 1280px) {
  .gameplay-surface--news .gameplay-store__catalog-scroll {
    left: clamp(32px, 5vw, 54px);
    right: clamp(32px, 5vw, 54px);
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .gameplay-surface--news .gameplay-store__catalog-scroll {
    inset: 24px 16px calc(var(--store-nav-height) + 6.5%);
  }
}

.gameplay-surface--referrals .gameplay-store__controls-frame:before, .gameplay-surface--referrals .gameplay-store__controls-frame:after {
  content: none;
}

.referral-header-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.referral-view-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 100%;
  display: grid;
}

.referral-view-tabs button {
  color: #8da8b2;
  letter-spacing: .055em;
  text-transform: uppercase;
  touch-action: manipulation;
  background: none;
  border: 0;
  border-right: 1px solid #285568;
  min-width: 0;
  min-height: 44px;
  padding: 0 5px;
  font: 800 11px / 13px Arial Narrow, Roboto Condensed, sans-serif;
  transition: color .14s, background-color .14s, box-shadow .14s;
}

.referral-view-tabs button:last-child {
  border-right: 0;
}

.referral-view-tabs button[aria-selected="true"] {
  color: #f3c56b;
  background: linear-gradient(#18303a, #081720);
  box-shadow: inset 0 -3px #d99835, inset 0 1px #78d8e244;
}

.referral-view-tabs button:active {
  color: #fff1c9;
  background: #193640;
}

.referral-view-tabs button:focus-visible, .referral-invite__actions button:focus-visible, .referral-level-tabs button:focus-visible, .referral-income__details summary:focus-visible, .referral-ambassador__applications summary:focus-visible {
  outline-offset: -3px;
  outline: 2px solid #78d8ea;
}

.referral-workspace {
  z-index: 1;
  gap: 8px;
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 1px;
  display: grid;
  position: relative;
}

.gameplay-surface--referrals :is(.referral-invite, .referral-kpis, .referral-income, .referral-agents, .referral-ambassador) {
  color: #dce9ec;
  background: linear-gradient(90deg, #45d7ed05 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(#45d7ed05 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(#0a1e29f2, #041019f7);
  border: 1px solid #285c6d;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px #02080d, inset 0 1px #baf8ff14, 0 5px 12px #0005;
}

.referral-section-heading {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.referral-section-heading p, .referral-ambassador__header p {
  color: #d7a84f;
  letter-spacing: .08em;
  margin: 0;
  font: 800 10px / 13px ui-monospace, monospace;
}

.referral-section-heading h2, .referral-ambassador__header h2 {
  color: #eef6f7;
  letter-spacing: .035em;
  margin: 0;
  font: 850 16px / 19px Arial Narrow, Roboto Condensed, sans-serif;
}

.referral-invite {
  gap: 9px;
  padding: 11px 12px 12px;
  display: grid;
}

.referral-invite__link {
  align-items: center;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.referral-invite__link > strong {
  color: #b8d2d8;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #03101ae8;
  border: 1px solid #234d5f;
  flex: auto;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  font: 650 11px / 15px ui-monospace, monospace;
  display: flex;
  overflow: hidden;
}

.referral-invite__actions {
  flex: none;
  gap: 6px;
  display: flex;
}

.referral-invite__actions button {
  color: #bceaf2;
  touch-action: manipulation;
  background: linear-gradient(#123142, #071720);
  border: 1px solid #38768c;
  border-radius: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transition: color .12s, background-color .12s, box-shadow .12s;
  display: grid;
  box-shadow: inset 0 1px #8ce9f22b;
}

.referral-invite__actions button:last-child {
  color: #f1c36d;
  background: linear-gradient(#3b2b14, #171006);
  border-color: #92692f;
}

.referral-invite__actions button:active {
  color: #fff;
  background: #1c4654;
  box-shadow: inset 0 0 0 2px #6bd5e56b;
}

.referral-invite__actions svg, .referral-income__details svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  width: 20px;
  height: 20px;
}

.referral-invite > small {
  color: #75d6ad;
  font-size: 11px;
}

.referral-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
  overflow: hidden;
}

.referral-kpis > div {
  align-content: center;
  gap: 2px;
  min-width: 0;
  padding: 10px 8px;
  display: grid;
}

.referral-kpis > div + div {
  border-left: 1px solid #285568;
}

.referral-kpis span, .referral-kpis small {
  color: #8eaab4;
  text-overflow: ellipsis;
  font-size: 10px;
  line-height: 12px;
  overflow: hidden;
}

.referral-kpis > div > span:first-child {
  color: #62cadd;
  letter-spacing: .045em;
  text-transform: uppercase;
  font: 800 10px / 12px ui-monospace, monospace;
}

.referral-kpis > div > strong {
  color: #edf7f8;
  font-variant-numeric: tabular-nums;
  font: 850 23px / 25px Arial Narrow, Roboto Condensed, sans-serif;
}

.referral-kpis__income > span:first-child {
  color: #d7a84f !important;
}

.referral-credit-value {
  color: #f0d69a;
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 5px;
  min-width: 0;
  display: inline-flex;
}

.referral-credit-value img {
  object-fit: contain;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}

.referral-credit-value strong {
  overflow-wrap: anywhere;
  min-width: 0;
  color: inherit;
  font: 850 clamp(12px, 3.3vw, 15px) / 17px Arial Narrow, Roboto Condensed, sans-serif;
}

.referral-income {
  gap: 0;
  padding: 11px 12px 12px;
  display: grid;
}

.referral-income__row {
  color: #a9bec5;
  border-top: 1px solid #244f60;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-size: 12px;
  display: flex;
}

.referral-income__row:first-of-type {
  margin-top: 8px;
}

.referral-income__details {
  border-top: 1px solid #244f60;
}

.referral-income__details summary, .referral-ambassador__applications summary {
  color: #78d8ea;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 750 12px / 15px Arial Narrow, Roboto Condensed, sans-serif;
  list-style: none;
  display: flex;
}

.referral-income__details summary::-webkit-details-marker {
  display: none;
}

.referral-ambassador__applications summary::-webkit-details-marker {
  display: none;
}

.referral-income__details p, .referral-income__details small {
  color: #a7bbc2;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  display: block;
}

.referral-agents {
  gap: 9px;
  padding: 11px 12px 12px;
  display: grid;
}

.referral-level-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  display: grid;
}

.referral-level-tabs button {
  color: #8da8b2;
  background: #06141de8;
  border: 1px solid #285568;
  border-radius: 0;
  min-height: 44px;
  padding: 0 8px;
  font: 800 12px / 14px Arial Narrow, Roboto Condensed, sans-serif;
}

.referral-level-tabs button + button {
  border-left: 0;
}

.referral-level-tabs button[aria-selected="true"] {
  color: #eef8fa;
  background: #12303d;
  border-color: #4da4b8;
  box-shadow: inset 0 -3px #d99b38;
}

.referral-agents__list {
  display: grid;
}

.referral-agent-row {
  border-top: 1px solid #244f60;
  gap: 7px;
  padding: 10px 2px;
  display: grid;
}

.referral-agent-row__identity {
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  display: flex;
}

.referral-agent-row__identity strong {
  color: #edf7f8;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: auto;
  min-width: 0;
  font: 800 13px / 16px Arial Narrow, Roboto Condensed, sans-serif;
  overflow: hidden;
}

.referral-agent-row__identity span {
  color: #64d1e4;
  font: 800 10px / 12px ui-monospace, monospace;
}

.referral-agent-row__identity time {
  color: #778f98;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}

.referral-agent-row__income {
  color: #8da7b0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  font-size: 11px;
  display: grid;
}

.referral-empty {
  color: #9bb0b7;
  text-align: center;
  margin: 0;
  padding: 24px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.gameplay-surface--referrals .referral-ambassador {
  gap: 10px;
  padding: 11px 12px 12px;
  display: grid;
}

.gameplay-surface--referrals .referral-ambassador__header {
  gap: 3px;
  display: grid;
}

.gameplay-surface--referrals .referral-ambassador__header small, .gameplay-surface--referrals .referral-ambassador small {
  color: #a7bbc2;
  font-size: 12px;
  line-height: 1.4;
}

.gameplay-surface--referrals .referral-ambassador__form, .gameplay-surface--referrals .referral-ambassador__status {
  background: none;
  border: 0;
  border-top: 1px solid #244f60;
  border-radius: 0;
  gap: 8px;
  padding: 10px 0 0;
  display: grid;
}

.gameplay-surface--referrals .referral-ambassador__form label {
  color: #d8e5e8;
  font: 750 12px / 15px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--referrals .referral-ambassador__form input {
  color: #edf7f8;
  background: #03101ae8;
  border: 1px solid #315e70;
  border-radius: 0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
}

.gameplay-surface--referrals .referral-ambassador__form input:focus {
  outline-offset: 2px;
  outline: 2px solid #78d8ea;
}

.gameplay-surface--referrals .referral-ambassador .task-wall__primary {
  color: #fff3d4;
  letter-spacing: .04em;
  background: linear-gradient(#6d461b, #2a1a0b);
  border: 1px solid #bd7c28;
  border-radius: 0;
  min-height: 44px;
  font: 850 12px / 14px Arial Narrow, Roboto Condensed, sans-serif;
  box-shadow: inset 0 1px #ffe0a442, 0 4px 10px #0005;
}

.gameplay-surface--referrals .referral-ambassador .task-wall__primary:active:not(:disabled) {
  color: #fff;
  background: #855721;
  box-shadow: inset 0 0 0 2px #efbd6555;
}

.gameplay-surface--referrals .referral-ambassador .task-wall__primary:disabled {
  opacity: .45;
}

.gameplay-surface--referrals .referral-ambassador__applications {
  border-top: 1px solid #244f60;
  padding-top: 0;
}

.gameplay-surface--referrals .referral-ambassador__application {
  border-top: 1px solid #244f6077;
  padding: 9px 0;
}

.gameplay-surface--referrals .referral-ambassador__modal {
  background: linear-gradient(90deg, #45d7ed06 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(#45d7ed06 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(#0b202bf8, #041019fc);
  border-radius: 0;
}

.gameplay-surface--referrals .referral-ambassador__modal-actions > button {
  color: #b8cbd0;
  background: #071720;
  border: 1px solid #315e70;
  border-radius: 0;
  min-height: 44px;
}

.gameplay-surface--referrals .referral-ambassador__modal-actions > .task-wall__primary {
  color: #fff3d4;
  background: linear-gradient(#6d461b, #2a1a0b);
  border-color: #bd7c28;
}

@media (max-width: 360px) {
  .referral-view-tabs button {
    letter-spacing: .025em;
    font-size: 10px;
  }

  .referral-invite, .referral-income, .referral-agents, .gameplay-surface--referrals .referral-ambassador {
    padding-inline: 10px;
  }

  .referral-kpis > div {
    padding-inline: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .referral-view-tabs button, .referral-invite__actions button {
    transition: none;
  }
}

.gameplay-surface--store {
  --store-shell-width: var(--player-shell-width);
  --store-content-width: min(398px, calc(var(--store-shell-width) - 32px));
  --store-shell-top: var(--player-shell-top);
  --store-controls-height: var(--player-hero-height);
  --store-wallet-height: var(--player-secondary-height);
  --store-filter-height: 44px;
  --store-region-gap: 8px;
  --store-filter-top: 30px;
  --store-wallet-offset: var(--player-secondary-offset);
  --store-catalog-offset: var(--player-main-offset);
  --store-nav-height: var(--player-nav-height);
  --store-nav-gap: 8px;
  --store-panel: #06111bf2;
  isolation: isolate;
  box-sizing: border-box;
  background-color: #03080e;
  background-image: none;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
}

.gameplay-surface--store:before {
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(#02070b33 0%, #02070b70 24%, #02070b91 82%, #02070b40 100%);
  position: fixed;
  inset: 0;
}

.gameplay-surface--store:after {
  z-index: 0;
  content: "";
  filter: brightness(1.06) saturate(1.08);
  pointer-events: none;
  background: url("/images/cryptoshelter-blueprint-wall-v1.png") center / 100% 100% no-repeat;
  position: fixed;
  inset: 0;
}

.gameplay-store__controls-frame, .gameplay-store__wallet-frame, .gameplay-store__catalog-frame {
  width: var(--store-shell-width);
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

.gameplay-store__controls-frame {
  top: var(--store-shell-top);
  z-index: 15;
  height: var(--store-controls-height);
  isolation: isolate;
  background: none;
  padding: 0;
  overflow: hidden;
}

.gameplay-store__hero-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.04) saturate(1.04);
  width: calc(100% - 36px);
  height: calc(100% - 28px);
  position: absolute;
  inset: 16px 18px 12px;
}

.gameplay-store__hero {
  z-index: 1;
  position: absolute;
  inset: 0;
}

.gameplay-store__hero-copy {
  z-index: 2;
  color: #eaf7fa;
  text-align: right;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
  background: linear-gradient(90deg, #0410184d, #041018dc);
  gap: 2px;
  max-width: 58%;
  padding: 7px 10px;
  display: grid;
  position: absolute;
  bottom: 22px;
  right: 28px;
}

.gameplay-store__hero-copy strong {
  font: 850 14px / 16px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-store__hero-copy span {
  color: #b8d1d8;
  font-size: 10px;
  line-height: 12px;
}

.gameplay-store__hero-copy time {
  color: #f0c36f;
  font: 800 11px / 13px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-store__controls-frame:before {
  z-index: 3;
  content: "";
  pointer-events: none;
  background: url("/game/ui/store-miner-hero-frame-v1.png") center / 100% 100% no-repeat;
  position: absolute;
  inset: 0;
}

.gameplay-store__controls-frame:after {
  z-index: 2;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #0000 44%, #02070b52 66%, #02070bd9 100%);
  position: absolute;
  inset: 9px 13px;
}

.gameplay-store__wallet-frame {
  top: calc(var(--store-shell-top) + var(--store-controls-height) +
      var(--store-wallet-offset));
  z-index: 15;
  height: var(--store-wallet-height);
  isolation: isolate;
  background: none;
  padding: 8px 20px;
  overflow: hidden;
}

.gameplay-store__wallet-frame:before {
  z-index: 3;
  content: "";
  pointer-events: none;
  background: url("/game/ui/store-wallet-strip-frame-v1.png") center / 100% 100% no-repeat;
  position: absolute;
  inset: 0;
}

.gameplay-store__wallet-frame:after {
  z-index: 0;
  content: "";
  pointer-events: none;
  background: #030a10e8;
  position: absolute;
  inset: 11px 14px;
}

.gameplay-store__filters-frame {
  top: var(--store-filter-top);
  z-index: 2;
  width: auto;
  height: var(--store-filter-height);
  box-sizing: border-box;
  clip-path: none;
  background: linear-gradient(#0a1c27e8, #030a11f2);
  border: 0;
  padding: 0;
  position: absolute;
  left: 16px;
  right: 16px;
  box-shadow: inset 0 1px #4ea9bd66, inset 0 -1px #183d4d, 0 5px 12px #0007;
}

.gameplay-store__filter-divider {
  top: calc(var(--store-filter-top) + var(--store-filter-height) + 2px);
  z-index: 2;
  pointer-events: none;
  width: calc(100% - 32px);
  height: 4px;
  position: absolute;
  left: 16px;
  right: 16px;
}

.gameplay-store__catalog-frame {
  top: calc(var(--store-shell-top) + var(--store-controls-height) +
      var(--store-wallet-height) + var(--store-catalog-offset));
  z-index: 15;
  isolation: isolate;
  background: none;
  border: 0;
  padding: 0;
  bottom: 0;
  overflow: hidden;
}

.gameplay-store__catalog-frame:before {
  z-index: 3;
  content: "";
  pointer-events: none;
  background: url("/game/optimized/ui/mining-hall-shell-frame-concept-v2-2026-11-06.png") center / 100% 100% no-repeat;
  position: absolute;
  inset: 0;
}

.gameplay-store__catalog-frame:after {
  z-index: 0;
  inset: 12px 13px calc(6.5% + var(--store-nav-height));
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #45d7ed06 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(#45d7ed06 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(#06131deb, #02070cec);
  position: absolute;
}

.gameplay-store__catalog-scroll {
  z-index: 1;
  inset: calc(30px + var(--store-filter-height) + var(--store-region-gap)) 16px
    calc(var(--store-nav-height) + 6.5%);
  scrollbar-color: #47778d #030a11;
  scrollbar-width: thin;
  overscroll-behavior-y: none;
  touch-action: pan-y;
  padding: 2px 1px 3px;
  position: absolute;
  overflow: hidden auto;
}

.gameplay-store__catalog-scroll:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #72d8ed99;
}

.gameplay-store__controls-frame > header, .gameplay-store__wallet-frame > .store-balances, .gameplay-store__filters-frame > .store-tabs-frame, .gameplay-store__catalog-scroll > :is(.offer-list, .gameplay-state, .gameplay-empty, .storage-state) {
  z-index: 1;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  position: relative;
}

.gameplay-store__controls-frame > header {
  z-index: 2;
  box-sizing: border-box;
  clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
  background: linear-gradient(90deg, #45d7ed0b 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#45d7ed0b 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#071722d9, #030a12e8);
  border: 1px solid #21728a;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  width: min(42%, 164px);
  min-height: 44px;
  margin: 0;
  padding: 3px 3px 3px 10px;
  display: flex;
  position: absolute;
  top: 18px;
  right: 17px;
  box-shadow: inset 0 0 0 1px #021018, inset 0 1px #9cefff1c;
}

.store-balance-frame:before, .store-offer-frame:before {
  z-index: 0;
  content: "";
  pointer-events: none;
  border-style: solid;
  border-color: #0000;
  position: absolute;
  inset: 0;
}

.gameplay-store__controls-frame > header:before {
  content: none;
}

.gameplay-store__controls-frame > header > * {
  z-index: 1;
  position: relative;
}

.gameplay-store__controls-frame > header > div {
  flex: auto;
  min-width: 0;
}

.gameplay-store__controls-frame > header .eyebrow {
  display: none;
}

.gameplay-store__controls-frame > header h1 {
  color: #f2f6f7;
  letter-spacing: .07em;
  text-shadow: 0 1px #000, 0 0 10px #7ce7fa22;
  text-transform: uppercase;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 17px;
}

.gameplay-store__wallet-frame > .store-balances {
  z-index: 4;
  gap: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  position: relative;
}

.gameplay-store__wallet-frame .store-balance-frame {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
  clip-path: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: block;
  position: relative;
}

.gameplay-store__wallet-frame .store-balance-frame:before {
  content: none;
}

.gameplay-store__wallet-frame .store-balance-frame > div {
  z-index: 1;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-rows: auto auto;
  grid-template-columns: 20px max-content;
  place-content: center;
  justify-items: center;
  column-gap: 5px;
  margin-inline: auto;
  padding: 1px 4px;
  display: grid;
  position: relative;
}

.gameplay-store__wallet-frame .store-balance-frame img {
  grid-area: 1 / 1 / span 2;
  justify-self: center;
}

.gameplay-store__wallet-frame .store-balance-frame span, .gameplay-store__wallet-frame .store-balance-frame strong {
  text-align: center;
  grid-column: 2;
  justify-self: center;
}

.gameplay-surface--store .store-balances img {
  width: 20px;
  height: 20px;
}

.gameplay-surface--store .store-balances span {
  color: #8799a2;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  font: 750 7px / 8px Arial Narrow, Roboto Condensed, sans-serif;
  overflow: hidden;
}

.gameplay-surface--store .store-balances strong {
  color: #9acbd5;
  font-variant-numeric: tabular-nums;
  background: none;
  border-left: 0;
  padding: 1px 0 0;
  font: 800 11px / 13px Arial Narrow, Roboto Condensed, sans-serif;
  display: block;
  position: relative;
}

.gameplay-surface--store .store-balance-frame:first-child strong {
  color: #f0c36f;
  background: none;
}

.store-tabs-frame {
  background: none;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  padding-block: 0;
}

:is(.store-tabs-frame .store-category-tabs, .gameplay-surface--inventory .storage-tabs) {
  z-index: 1;
  box-sizing: border-box;
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  position: relative;
}

:is(.store-tabs-frame .store-category-tabs, .gameplay-surface--inventory .storage-tabs) button {
  box-sizing: border-box;
  color: #aebdc3;
  letter-spacing: .02em;
  min-width: 0;
  min-height: 44px;
  box-shadow: none;
  clip-path: none;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(#102531, #071017);
  border: 1px solid #285c6d;
  border-radius: 0;
  padding: 0 3px;
  font: 800 clamp(9px, 2.55vw, 11px) / 1 Arial Narrow, Roboto Condensed, sans-serif;
  overflow: hidden;
}

:is(.store-tabs-frame .store-category-tabs, .gameplay-surface--inventory .storage-tabs) button[aria-selected="true"] {
  color: #ffe7a6;
  filter: none;
  text-shadow: none;
  background: linear-gradient(#43311a, #171007);
  border-color: #d9a13e;
  box-shadow: inset 0 0 10px #e7a83b22, 0 0 8px #d69d3824;
}

:is(.store-tabs-frame .store-category-tabs, .gameplay-surface--inventory .storage-tabs) button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

:is(.store-tabs-frame .store-category-tabs, .gameplay-surface--inventory .storage-tabs) button:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #79d8eb;
}

.gameplay-surface--store .store-catalog__heading {
  border-bottom: 1px solid #2b5364;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 2px 8px;
  display: flex;
}

.gameplay-surface--store .store-catalog__heading h2 {
  color: #e9f4f6;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
  font: 850 16px / 1.2 Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--store .store-catalog__heading span {
  color: #91a9b2;
  text-align: right;
  font-size: 11px;
  line-height: 1.35;
}

.gameplay-store__catalog-scroll > .offer-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.store-offer-frame {
  isolation: isolate;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  background: linear-gradient(90deg, #45d7ed06 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(#45d7ed06 1px, #0000 1px) 0 0 / 17px 17px, linear-gradient(120deg, #0a1b27f2, #030a11f8);
  border: 1px solid #236477;
  min-width: 0;
  position: relative;
  box-shadow: inset 0 0 0 1px #02070b, inset 0 1px #baf8ff12, 0 5px 12px #0005;
}

.store-offer-frame:before {
  background: linear-gradient(90deg, #d79536, #d7953600) 0 0 / 34px 2px no-repeat, linear-gradient(#d79536, #d7953600) 0 0 / 2px 34px no-repeat, linear-gradient(270deg, #4ed7ee, #4ed7ee00) 100% 0 / 34px 2px no-repeat, linear-gradient(#4ed7ee, #4ed7ee00) 100% 0 / 2px 34px no-repeat, linear-gradient(90deg, #4ed7ee, #4ed7ee00) 0 100% / 34px 2px no-repeat, linear-gradient(0deg, #4ed7ee, #4ed7ee00) 0 100% / 2px 34px no-repeat, linear-gradient(270deg, #d79536, #d7953600) 100% 100% / 34px 2px no-repeat, linear-gradient(0deg, #d79536, #d7953600) 100% 100% / 2px 34px no-repeat;
  border: 0;
}

.store-offer-frame .offer-card {
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  min-height: 153px;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  gap: 4px;
  margin: 0;
  padding: 4px 9px 3px;
  position: relative;
}

.gameplay-surface--store .offer-card:before {
  display: none;
}

.gameplay-surface--store .offer-card__main {
  --store-art-width: clamp(100px, 27.5vw, 110px);
  --store-art-height: clamp(90px, 24vw, 96px);
  grid-template-columns: var(--store-art-width) minmax(0, 1fr);
  min-height: var(--store-art-height);
  gap: 11px;
}

.gameplay-surface--store .offer-card__visual {
  width: var(--store-art-width);
  height: var(--store-art-height);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  background: radial-gradient(circle at 50% 42%, #173849 0%, #06111a 72%);
  border: 1px solid #277387;
  border-radius: 0;
  position: relative;
  box-shadow: inset 0 0 0 1px #02090e, inset 0 0 16px #49cce614;
}

.gameplay-surface--store .offer-card__visual:after {
  z-index: 2;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #d89b3d 0 14px, #0000 14px) 0 0 / 28px 2px no-repeat, linear-gradient(#d89b3d 0 14px, #0000 14px) 0 0 / 2px 28px no-repeat, linear-gradient(270deg, #43cde8 0 14px, #0000 14px) 100% 100% / 28px 2px no-repeat, linear-gradient(0deg, #43cde8 0 14px, #0000 14px) 100% 100% / 2px 28px no-repeat;
  border: 1px solid #6fdcf51f;
  position: absolute;
  inset: 0;
}

.gameplay-surface--store .offer-card__sale {
  z-index: 3;
  color: #fff4d5;
  letter-spacing: .04em;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  background: linear-gradient(135deg, #b33b24, #7a1d16);
  padding: 3px 7px;
  font: 900 9px / 12px Arial Narrow, Roboto Condensed, sans-serif;
  position: absolute;
  top: 6px;
  left: 6px;
  box-shadow: 0 2px 6px #000a, inset 0 0 0 1px #ffc16c66;
}

.gameplay-surface--store .offer-card__visual :is(.equipment-visual--thumbnail, .offer-card__asset) {
  width: calc(var(--store-art-width) - 8px);
  height: calc(var(--store-art-height) - 8px);
}

.gameplay-surface--store .offer-card__rarity-numeral {
  z-index: 3;
  border-radius: 0;
  bottom: 5px;
  right: 5px;
}

.gameplay-surface--store .offer-card__copy {
  background: linear-gradient(90deg, #45d7ed08 1px, #0000 1px) 0 0 / 14px 14px, linear-gradient(#45d7ed08 1px, #0000 1px) 0 0 / 14px 14px, linear-gradient(110deg, #0b1d2a88, #07121ce8);
  border-left: 1px solid #3e6072;
  align-content: center;
  gap: 3px;
  padding: 5px 46px 5px 11px;
  position: relative;
  box-shadow: inset 2px 0 #071018;
}

.gameplay-surface--store .offer-card__title {
  display: block;
}

.gameplay-surface--store .offer-card__title h2 {
  color: #f1f5f6;
  letter-spacing: -.015em;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 16px;
  font-weight: 800;
  line-height: 18px;
  display: -webkit-box;
  overflow: hidden;
}

.gameplay-surface--store .offer-card__title button {
  color: #8cd7e7;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: linear-gradient(#102936, #06121a);
  border: 1px solid #2b6d7f;
  border-radius: 0;
  width: 44px;
  height: 44px;
  font-size: 16px;
  position: absolute;
  top: 4px;
  right: 4px;
  box-shadow: inset 0 0 0 1px #02080c;
}

.gameplay-surface--store .offer-card__rarity {
  letter-spacing: .04em;
  text-transform: uppercase;
  font: 800 10px / 13px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--store .offer-card__copy p {
  color: #c1d0d6;
  font-size: 12px;
  line-height: 15px;
}

.gameplay-surface--store .offer-card__power-icon {
  vertical-align: -2px;
  fill: #69dff3;
  filter: drop-shadow(0 0 3px #42c9e899);
  width: 10px;
  height: 13px;
  margin-right: 4px;
  display: inline-block;
}

.gameplay-surface--store .offer-card__copy small {
  color: #8ba0a9;
  font: 700 10.5px / 13px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--store .offer-card__footer {
  border-color: #31596a;
  height: 44px;
  min-height: 44px;
  padding-top: 0;
  position: relative;
  box-shadow: inset 0 1px #c1f2ff12;
}

.gameplay-surface--store .offer-card__footer:before {
  clip-path: none;
  content: "";
  background: linear-gradient(90deg, #0000, #3e7285 8% 74%, #c98f34 92%, #0000);
  height: 2px;
  position: absolute;
  top: -6px;
  left: 8px;
  right: 8px;
}

.gameplay-surface--store .offer-card__price strong {
  color: #f0c36f;
  font-variant-numeric: tabular-nums;
  font: 850 14px / 18px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--store .offer-card__price {
  gap: 0;
  display: grid;
}

.gameplay-surface--store .offer-card__price s {
  color: #7f9299;
  font: 700 10px / 12px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--store .offer-card .offer-card__buy {
  box-sizing: border-box;
  color: #fff0c8;
  letter-spacing: .02em;
  clip-path: polygon(7px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 4px 100%, 0 calc(100% - 4px), 0 7px);
  filter: none;
  background-image: linear-gradient(112deg, #0000 44%, #ffffff26 48%, #ffffff8c 50%, #ffffff26 52%, #0000 56%), linear-gradient(#72521f, #38270f);
  background-position: 200% 0, 0 0;
  background-repeat: no-repeat;
  background-size: 260% 100%, 100% 100%;
  border: 0;
  border-radius: 0;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100px;
  min-width: 100px;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  font: 850 14px / 16px Arial Narrow, Roboto Condensed, sans-serif;
  display: inline-flex;
  box-shadow: inset 0 1px #ffe9af55, inset 0 0 12px #e7ac4520;
}

.gameplay-surface--store .offer-card .offer-card__buy:not(:disabled) {
  animation: 2.8s linear infinite store-buy-sheen;
}

@keyframes store-buy-sheen {
  0%, 25% {
    background-position: 200% 0, 0 0;
  }

  75%, 100% {
    background-position: -100% 0, 0 0;
  }
}

.offer-card__buy-icon, .offer-card__buy-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.offer-card__buy-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gameplay-surface--store .offer-card .offer-card__buy:hover {
  color: #fff8e8;
  filter: brightness(1.12);
}

.gameplay-surface--store .offer-card .offer-card__buy:focus-visible {
  color: #fff8e8;
  outline-offset: 2px;
  filter: brightness(1.12);
  outline: 2px solid #e2ad5366;
}

@media (prefers-reduced-motion: reduce) {
  .gameplay-surface--store .offer-card .offer-card__buy {
    animation: none;
  }
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav {
  z-index: 2;
  width: auto;
  height: var(--store-nav-height);
  max-width: none;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  transition: height .4s ease-in-out;
  position: absolute;
  overflow: hidden;
  transform: none;
  top: auto !important;
  right: 16px !important;
  bottom: var(--player-nav-bottom) !important;
  left: 16px !important;
}

@media (orientation: landscape) {
  .gameplay-surface--store, .game-shell[data-hall-mode="normal"] {
    --player-nav-bottom: clamp(18px, 2.55svh, 24px);
  }
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav:has(.gameplay-nav__grid.is-expanded) {
  height: calc(3 * var(--store-nav-height) + 6px);
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__grid {
  grid-template-rows: 0 0 var(--store-nav-height);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #050a0e8f;
  gap: 0;
  width: 100%;
  padding: 0;
  transition: grid-template-rows .4s ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__grid.is-expanded {
  grid-template-rows: repeat(3, var(--store-nav-height));
  gap: 3px;
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__cell {
  min-height: var(--store-nav-height);
  box-sizing: border-box;
  color: #c2d1d7;
  background: linear-gradient(#112a39, #050d14);
  border: 1px solid #397b90;
  border-radius: 0;
  grid-template-rows: 1fr;
  align-content: center;
  gap: 0;
  padding: 5px 2px;
  transition: filter .12s, transform .1s;
  box-shadow: inset 0 1px #bbf4ff18;
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__grid:not(.is-expanded) > .gameplay-nav__cell:nth-child(n+6) {
  transition: opacity .4s ease-in-out, transform .4s ease-in-out, visibility 0s linear .4s, filter .12s;
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__grid.is-expanded > .gameplay-nav__cell:nth-child(n+6) {
  transition: opacity .4s ease-in-out, transform .4s ease-in-out, visibility linear, filter .12s;
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__grid > .gameplay-nav__cell:nth-child(n+6):active {
  transition: filter .12s, transform .1s;
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__cell:hover {
  filter: brightness(1.12);
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__cell:active {
  filter: brightness(.92);
  transform: translateY(1px);
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__cell.gameplay-nav__active {
  color: #ffe7a6;
  background: linear-gradient(#43311a, #171007);
  border-color: #d9a13e;
  box-shadow: inset 0 0 10px #e7a83b22, 0 0 8px #d69d3824;
}

@media (prefers-reduced-motion: reduce) {
  body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav, body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__grid, body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__cell {
    transition: none;
  }
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav :is(.gameplay-icon--asset, .gameplay-icon) {
  width: 34px;
  height: 34px;
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__label {
  display: none;
}

body .gameplay-surface--store .gameplay-store__catalog-frame > .gameplay-nav .gameplay-nav__more-cell {
  grid-template-rows: 1fr;
}

@media (max-width: 360px) {
  .gameplay-surface--store {
    --store-content-width: calc(var(--store-shell-width) - 30px);
  }

  .gameplay-store__controls-frame, .gameplay-store__catalog-frame {
    padding-inline: 0;
  }

  .gameplay-store__catalog-scroll {
    inset-inline: 14px;
  }

  .gameplay-store__filters-frame {
    left: 14px;
    right: 14px;
  }

  .gameplay-store__filter-divider {
    width: calc(100% - 28px);
    left: 14px;
    right: 14px;
  }

  .gameplay-store__controls-frame > header h1 {
    font-size: 13px;
  }

  .store-offer-frame .offer-card {
    padding-inline: 8px;
  }

  .gameplay-surface--store .offer-card__title h2 {
    font-size: 14px;
  }

  .gameplay-surface--store .offer-card .offer-card__buy {
    gap: 5px;
    width: 87px;
    min-width: 87px;
    padding-inline: 8px;
  }
}

@media (min-width: 600px) and (max-width: 1280px) {
  .gameplay-surface--store, .game-shell[data-hall-mode="normal"] {
    --player-shell-width: calc(100vw - var(--cs-safe-left, 0px) - var(--cs-safe-right, 0px));
    --player-hero-height: clamp(250px,
      calc(var(--player-shell-width) * .3333 + 27px),
      460px);
    --player-secondary-height: clamp(64px,
      calc(var(--player-shell-width) * .15),
      96px);
  }

  .gameplay-surface--store {
    --store-content-width: calc(var(--store-shell-width) - 32px);
  }

  .gameplay-store__controls-frame:after {
    background: none;
  }

  .gameplay-store__hero-art {
    object-fit: contain;
    object-position: center;
    width: calc(100% - 32px);
    height: calc(100% - 38px);
    inset: 28px 16px 10px;
  }

  .gameplay-surface--store .offer-card__footer {
    box-sizing: border-box;
    padding-left: 24px;
    padding-right: 24px;
  }

  .gameplay-store__catalog-scroll {
    left: clamp(32px, 5vw, 54px);
    right: clamp(32px, 5vw, 54px);
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .gameplay-surface--store, .game-shell[data-hall-mode="normal"] {
    --player-nav-height: 44px;
  }

  .gameplay-surface--store {
    --store-shell-top: calc(var(--cs-safe-top, 0px) + 6px);
    --store-controls-height: 80px;
    --store-wallet-height: 40px;
    --store-filter-height: 38px;
    --store-region-gap: 8px;
    --store-filter-top: 24px;
    --store-wallet-offset: 2px;
    --store-catalog-offset: -12px;
    --store-nav-height: 44px;
    --store-nav-gap: 3px;
  }

  .gameplay-store__controls-frame {
    padding: 0;
  }

  .gameplay-store__controls-frame > header {
    min-height: 36px;
    margin: 0;
    padding-block: 2px;
    top: 10px;
    right: 13px;
  }

  .gameplay-store__controls-frame > header h1 {
    font-size: 12px;
    line-height: 14px;
  }

  .gameplay-store__wallet-frame {
    padding: 5px 16px;
  }

  .gameplay-store__filters-frame {
    top: 24px;
  }

  .gameplay-store__catalog-scroll {
    inset: calc(24px + var(--store-filter-height) + var(--store-region-gap))
      16px calc(var(--store-nav-height) + 6.5%);
  }

  .gameplay-store__wallet-frame .store-balance-frame > div {
    min-height: 100%;
  }

  .gameplay-surface--store .store-balances img {
    width: 18px;
    height: 18px;
  }

  .gameplay-store__wallet-frame .store-balance-frame > div {
    grid-template-columns: 18px max-content;
    padding: 1px 4px;
  }

  .gameplay-store__catalog-frame {
    border-width: 0;
  }
}

.gameplay-surface--leaderboard .gameplay-store__controls-frame:before, .gameplay-surface--leaderboard .gameplay-store__controls-frame:after {
  content: none;
}

.leaderboard-header-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.gameplay-surface--leaderboard .gameplay-store__filters-frame {
  z-index: 4;
  border: 1px solid #285c6d;
}

.leaderboard-league-picker {
  box-sizing: border-box;
  color: #c7d9de;
  background: linear-gradient(#102531, #071017);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: 100%;
  display: grid;
}

.leaderboard-league-picker > button {
  color: #eef6f7;
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  background: #07141d;
  border: 0;
  border-radius: 0;
  grid-template-columns: 32px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding: 0 7px;
  font: 850 11px / 14px Arial Narrow, Roboto Condensed, sans-serif;
  display: grid;
  overflow: hidden;
}

.leaderboard-league-picker .game-select__leading {
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}

.leaderboard-league-picker .game-select__leading img {
  object-fit: contain;
  width: 30px;
  height: 30px;
}

.leaderboard-league-picker .game-select__value {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.leaderboard-league-picker .game-select__detail {
  color: #d5a449;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 9px;
}

.leaderboard-league-picker .game-select__chevron {
  color: #70d6e9;
  font-size: 16px;
}

.leaderboard-league-picker > button:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #79d8eb;
}

.game-select-menu.game-select-menu--rich {
  background: linear-gradient(90deg, #45d7ed08 1px, #0000 1px) 0 0 / 14px 14px, linear-gradient(#45d7ed08 1px, #0000 1px) 0 0 / 14px 14px, #040c12f7;
  border-radius: 0;
}

.game-select-menu.game-select-menu--rich:popover-open {
  gap: 4px;
  padding: 5px;
  display: grid;
}

.game-select-menu.game-select-menu--rich button {
  background: linear-gradient(90deg, #45d7ed07 1px, #0000 1px) 0 0 / 12px 12px, linear-gradient(#45d7ed07 1px, #0000 1px) 0 0 / 12px 12px, linear-gradient(#102631f7, #061018f7);
  border: 1px solid #365d6b;
  border-radius: 0;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 4px 7px;
  display: grid;
  box-shadow: inset 0 1px #8be9fa12, inset 0 0 0 1px #02080c;
}

.game-select-menu.game-select-menu--rich button[aria-checked="true"] {
  background: linear-gradient(90deg, #3a2b18e8, #0b1820f2 62%);
  border-color: #b68535;
  box-shadow: inset 3px 0 #d5a449, inset 0 1px #ffe4a01c, inset 0 0 0 1px #130d05;
}

.game-select-menu.game-select-menu--rich button:focus-visible {
  outline-offset: -3px;
  outline: 2px solid #79d8eb;
}

.game-select-menu__leading {
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}

.game-select-menu__leading img {
  object-fit: contain;
  width: 30px;
  height: 30px;
}

.game-select-menu__label {
  color: #eaf2f4;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 0;
  font: 850 11px / 13px Arial Narrow, Roboto Condensed, sans-serif;
  overflow: hidden;
}

.game-select-menu__detail {
  color: #91abb4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font: 750 9px / 11px Arial Narrow, Roboto Condensed, sans-serif;
}

.game-select-menu.game-select-menu--rich button[aria-checked="true"] .game-select-menu__detail {
  color: #f0c36f;
}

.gameplay-surface--leaderboard .gameplay-store__catalog-scroll {
  padding: 2px 2px 14px;
}

.leaderboard-board {
  box-sizing: border-box;
  width: 100%;
}

.leaderboard-viewer-position {
  color: #aabec4;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #251d12e8, #07131be8 58%);
  border: 1px solid #8c6b34;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 5px;
  padding: 4px 10px;
  font: 750 9px / 12px Arial Narrow, Roboto Condensed, sans-serif;
  display: flex;
  box-shadow: inset 3px 0 #d5a449, inset 0 1px #f3c97914;
}

.leaderboard-viewer-position strong {
  color: #f0c36f;
  font-variant-numeric: tabular-nums;
  font: 900 15px / 18px Arial Narrow, Roboto Condensed, sans-serif;
}

.leaderboard-activation, .leaderboard-empty {
  color: #c9d6da;
  background: #0a1821d9;
  border-left: 2px solid #d39b3e;
  margin: 0;
  padding: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.leaderboard-list {
  border-top: 1px solid #315b69;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.leaderboard-entry > span small {
  color: #f0c36f;
  letter-spacing: .08em;
  font-size: 8px;
  font-weight: 800;
}

.leaderboard-entry {
  box-sizing: border-box;
  color: #c4d1d5;
  background: #06121ae8;
  border-bottom: 1px solid #234653;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 3px 7px;
  display: grid;
}

.leaderboard-entry[data-rank="1"] {
  background: linear-gradient(90deg, #3b2c1747, #06121ae8 40%);
}

.leaderboard-entry.is-viewer {
  background-color: #1b180fd9;
  box-shadow: inset 2px 0 #d9a13e;
}

.leaderboard-entry__rank {
  box-sizing: border-box;
  color: #7fc9d8;
  font-variant-numeric: tabular-nums;
  border: 1px solid #0000;
  place-items: center;
  width: 25px;
  height: 24px;
  font: 850 11px / 1 Arial Narrow, Roboto Condensed, sans-serif;
  display: grid;
}

.leaderboard-entry[data-rank="1"] .leaderboard-entry__rank {
  color: #ffe29a;
  background: #4b381c;
  border-color: #d5a449;
}

.leaderboard-entry[data-rank="2"] .leaderboard-entry__rank {
  color: #e5eef1;
  background: #28353a;
  border-color: #9caeb5;
}

.leaderboard-entry[data-rank="3"] .leaderboard-entry__rank {
  color: #e9b18b;
  background: #39251d;
  border-color: #a96f48;
}

.leaderboard-entry > span {
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  display: flex;
}

.leaderboard-entry > span b {
  color: #e8eff1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 750 12px / 14px Arial Narrow, Roboto Condensed, sans-serif;
  overflow: hidden;
}

.leaderboard-entry > em {
  color: #9fc4cc;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font: 750 11px / 1 Arial Narrow, Roboto Condensed, sans-serif;
}

@media (min-width: 600px) and (max-width: 1280px) {
  .leaderboard-board {
    max-width: 760px;
    margin-inline: auto;
  }
}

.gameplay-surface--marketplace .gameplay-store__controls-frame:before, .gameplay-surface--marketplace .gameplay-store__controls-frame:after {
  content: none;
}

.marketplace-screen__hero-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.02) saturate(.94);
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.gameplay-surface--marketplace .gameplay-store__filters-frame {
  background: linear-gradient(#0d2431, #050d14);
  border: 1px solid #244d60;
}

.marketplace-workspace-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  height: 100%;
  display: grid;
}

.marketplace-workspace-tabs button {
  color: #9eb2ba;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(#102938, #050d14);
  border: 1px solid #285c6d;
  border-radius: 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 5px;
  font: 800 10px / 1 Arial Narrow, Roboto Condensed, sans-serif;
  overflow: hidden;
}

.marketplace-workspace-tabs button[aria-selected="true"] {
  color: #ffe7a6;
  background: linear-gradient(#43311a, #171007);
  border-color: #d9a13e;
  box-shadow: inset 0 0 10px #e7a83b22;
}

.gameplay-surface--marketplace .gameplay-store__catalog-scroll {
  padding: 2px 2px 18px;
}

.gameplay-surface--marketplace .gameplay-store__catalog-frame:has( > .gameplay-nav .gameplay-nav__grid.is-expanded) .gameplay-store__catalog-scroll {
  bottom: calc(3 * var(--store-nav-height) + var(--player-nav-bottom) + 14px);
}

.gameplay-surface--marketplace :is(.marketplace-workspace, .marketplace-landing, .marketplace-panel, .marketplace-detail) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.gameplay-surface--marketplace :is(.marketplace-workspace, .marketplace-landing) {
  gap: 10px;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-subnav {
  z-index: 8;
  box-sizing: border-box;
  color: #e8f2f4;
  background: #041019f2;
  border-bottom: 1px solid #244d60;
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 0 4px;
  position: sticky;
  top: 0;
}

.gameplay-surface--marketplace .marketplace-back-link {
  color: #75cfdf;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  text-decoration: none;
}

.gameplay-surface--marketplace .marketplace-landing-heading {
  border-bottom: 1px solid #244d60;
  margin: 0;
  padding: 2px 4px 8px;
}

.gameplay-surface--marketplace .marketplace-landing-heading h2 {
  color: #edf5f7;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 4px;
  font: 850 17px / 1.2 Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--marketplace .marketplace-landing-heading p {
  color: #91a9b2;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.gameplay-surface--marketplace .marketplace-action-list {
  gap: 8px;
}

.gameplay-surface--marketplace .marketplace-action-card {
  box-sizing: border-box;
  color: #e7f1f4;
  background: linear-gradient(90deg, #45d7ed08 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#45d7ed08 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(145deg, #102333, #071018);
  border: 1px solid #315b6d;
  border-radius: 0;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr;
  gap: 3px;
  min-height: 64px;
  padding: 10px 12px;
  display: grid;
  box-shadow: inset 0 1px #dceeff12;
}

.gameplay-surface--marketplace .marketplace-action-card:focus-visible, .gameplay-surface--marketplace .marketplace-action-card:hover {
  background-color: #102b39;
  border-color: #67c7db;
}

.gameplay-surface--marketplace .marketplace-action-card strong {
  color: #eef6f8;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 15px;
}

.gameplay-surface--marketplace .marketplace-action-card small {
  color: #91a9b2;
  font-size: 11px;
}

.gameplay-surface--marketplace .marketplace-buy-browser {
  background: none;
  border: 0;
  border-radius: 0;
  gap: 9px;
  padding: 0 2px 18px;
  display: grid;
  overflow: visible;
}

.gameplay-surface--marketplace .marketplace-stats-card {
  background: #07141ddb;
  border: 1px solid #294f61;
  border-radius: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-stats-card h3 {
  color: #91a9b2;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid #203f4e;
  align-self: stretch;
  align-items: center;
  margin: 0;
  padding-right: 6px;
  font-size: 10px;
  line-height: 1;
  display: flex;
}

.gameplay-surface--marketplace .marketplace-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-stats span {
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  padding: 2px 6px;
  display: flex;
}

.gameplay-surface--marketplace .marketplace-stats span + span {
  border-left: 1px solid #203f4e;
}

.gameplay-surface--marketplace .marketplace-stats small {
  color: #91a9b2;
  white-space: nowrap;
  order: 2;
  font-size: 9px;
  line-height: 1;
}

.gameplay-surface--marketplace .marketplace-stats strong {
  color: #eef6f8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  order: 1;
  justify-content: center;
  align-items: center;
  gap: 3px;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1;
  display: inline-flex;
}

.gameplay-surface--marketplace .marketplace-stats span:last-child strong {
  color: #edc14f;
}

.gameplay-surface--marketplace .marketplace-stats strong img {
  object-fit: contain;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.gameplay-surface--marketplace .marketplace-category-filter {
  overscroll-behavior-x: none;
  scrollbar-width: thin;
  background: none;
  border: 0;
  border-radius: 0;
  gap: 4px;
  margin: 0;
  padding: 0 0 4px;
  display: flex;
  overflow-x: auto;
}

.gameplay-surface--marketplace .marketplace-category-filter legend {
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.gameplay-surface--marketplace .marketplace-category-filter label {
  box-sizing: border-box;
  color: #a9bec6;
  background: #07141d;
  border: 1px solid #2b5364;
  flex: none;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 9px;
  font-size: 11px;
  display: flex;
}

.gameplay-surface--marketplace .marketplace-category-filter label:has(input:checked) {
  color: #ffe7a6;
  background: #2c1f0d;
  border-color: #d9a13e;
}

.gameplay-surface--marketplace .marketplace-category-filter input {
  width: 16px;
  height: 16px;
}

.gameplay-surface--marketplace :is(.marketplace-price-filter, .marketplace-filter-panel, .marketplace-detail-card, .marketplace-characteristics, .marketplace-price-distribution) {
  border-radius: 0;
}

.gameplay-surface--marketplace .marketplace-price-filter, .gameplay-surface--marketplace .marketplace-filter-panel {
  background: #07141ddd;
  border: 1px solid #294f61;
}

.gameplay-surface--marketplace :is(.marketplace-buy-controls input, .marketplace-buy-controls select, .marketplace-price-inputs input, .marketplace-purchase-panel input:not([type="radio"])) {
  color: #e8f2f4;
  background: #040d14;
  border-radius: 0;
  min-height: 44px;
}

.gameplay-surface--marketplace .marketplace-buy-controls--listing {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 6px;
}

.gameplay-surface--marketplace .marketplace-buy-controls--listing label {
  color: #91a9b2;
  min-width: 0;
  font-size: 11px;
}

.gameplay-surface--marketplace .marketplace-game-select {
  color: #91a9b2;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-game-select > button {
  box-sizing: border-box;
  color: #e8f2f4;
  width: 100%;
  min-width: 0;
  height: 44px;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #040d14;
  border: 1px solid #315b6d;
  border-radius: 0;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 12px;
  display: flex;
  overflow: hidden;
}

.gameplay-surface--marketplace .marketplace-game-select > button .game-select__chevron {
  color: #75cfdf;
  flex: none;
}

.gameplay-surface--marketplace .marketplace-buy-controls--listing :is(input, select) {
  height: 44px;
  padding-inline: 10px;
  font-size: 12px;
}

.gameplay-surface--marketplace .marketplace-filter-panel summary {
  box-sizing: border-box;
  color: #c7d9de;
  cursor: pointer;
  min-height: 44px;
  padding: 14px 12px;
}

.gameplay-surface--marketplace .marketplace-filter-panel__body {
  gap: 12px;
  padding: 0 10px 10px;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-range-filter {
  color: #dbe8eb;
  background: #050f17;
  border: 1px solid #294f61;
  min-width: 0;
  margin: 0;
  padding: 10px;
}

.gameplay-surface--marketplace .marketplace-range-filter legend {
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 800;
}

.gameplay-surface--marketplace .marketplace-range-filter legend span {
  color: #75cfdf;
}

.gameplay-surface--marketplace .marketplace-dual-range {
  height: 44px;
  position: relative;
}

.gameplay-surface--marketplace .marketplace-dual-range:before {
  background: linear-gradient(90deg,
    #17313d 0 var(--marketplace-range-low, 0%),
    #43d2e7 var(--marketplace-range-low, 0%) var(--marketplace-range-high, 100%),
    #17313d var(--marketplace-range-high, 100%) 100%);
  content: "";
  border: 1px solid #315b6d;
  height: 4px;
  position: absolute;
  top: 20px;
  left: 2px;
  right: 2px;
}

.gameplay-surface--marketplace .marketplace-dual-range input[type="range"] {
  appearance: none;
  pointer-events: none;
  touch-action: none;
  background: none;
  border: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  position: absolute;
  inset: 0;
}

.gameplay-surface--marketplace .marketplace-dual-range input[type="range"]::-webkit-slider-runnable-track {
  background: none;
  height: 4px;
}

.gameplay-surface--marketplace .marketplace-dual-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  cursor: ew-resize;
  background: #07141d;
  border: 3px solid #8de5f2;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  box-shadow: 0 0 0 2px #07141d;
}

.gameplay-surface--marketplace .marketplace-dual-range input[type="range"]::-moz-range-track {
  background: none;
  height: 4px;
}

.gameplay-surface--marketplace .marketplace-dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  cursor: ew-resize;
  background: #07141d;
  border: 3px solid #8de5f2;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 2px #07141d;
}

.gameplay-surface--marketplace .marketplace-dual-range input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px #43d2e766;
}

.gameplay-surface--marketplace .marketplace-dual-range input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px #43d2e766;
}

.gameplay-surface--marketplace .marketplace-range-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-range-fields label {
  color: #91a9b2;
  gap: 5px;
  min-width: 0;
  font-size: 10px;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-range-fields input {
  box-sizing: border-box;
  color: #e8f2f4;
  background: #040d14;
  border: 1px solid #315b6d;
  border-radius: 0;
  width: 100%;
  min-height: 44px;
}

.gameplay-surface--marketplace .marketplace-filter-reset {
  color: #d9edf1;
  background: #0d2938;
  border: 1px solid #397b90;
  border-radius: 0;
  min-height: 44px;
}

.gameplay-surface--marketplace .marketplace-buy-cards {
  grid-template-columns: 1fr;
  gap: 8px;
}

.gameplay-surface--marketplace .marketplace-buy-card {
  background: linear-gradient(145deg, #0e2331, #061019);
  border: 1px solid #315b6d;
  border-radius: 0;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  min-height: 112px;
  padding: 8px;
  box-shadow: inset 0 1px #dceeff10;
}

.gameplay-surface--marketplace .marketplace-buy-card--catalog {
  min-height: 136px;
  padding: 0;
  display: block;
  position: relative;
}

.gameplay-surface--marketplace .marketplace-card-open {
  box-sizing: border-box;
  min-height: 136px;
  color: inherit;
  cursor: pointer;
  grid-template-columns: clamp(132px, 44%, 180px) minmax(0, 1fr);
  gap: 10px;
  padding: 7px;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-buy-card:hover {
  border-color: #67c7db;
}

.gameplay-surface--marketplace .marketplace-card-open:focus-visible {
  outline-offset: -3px;
  outline: 2px solid #67c7db55;
}

.gameplay-surface--marketplace :is(.marketplace-card-visual, .marketplace-detail-visual) {
  background: linear-gradient(90deg, #45d7ed08 1px, #0000 1px) 0 0 / 14px 14px, linear-gradient(#45d7ed08 1px, #0000 1px) 0 0 / 14px 14px, #040d14;
  border: 1px solid #274b5c;
  border-radius: 0;
}

.gameplay-surface--marketplace .marketplace-buy-card--catalog .marketplace-card-visual {
  height: 122px;
  min-height: 0;
}

.gameplay-surface--marketplace .marketplace-buy-card--catalog .marketplace-item-visual {
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 3px;
}

.gameplay-surface--marketplace .marketplace-buy-card--catalog h3 {
  color: #eef6f8;
  letter-spacing: -.015em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 36px;
  margin: 0;
  padding-right: 40px;
  font-size: 16px;
  font-weight: 800;
  line-height: 18px;
  display: -webkit-box;
  overflow: hidden;
}

.gameplay-surface--marketplace .marketplace-buy-card--catalog .marketplace-buy-card__body {
  background: linear-gradient(90deg, #45d7ed08 1px, #0000 1px) 0 0 / 14px 14px, linear-gradient(#45d7ed08 1px, #0000 1px) 0 0 / 14px 14px, linear-gradient(110deg, #0b1d2a88, #07121ce8);
  border-left: 1px solid #3e6072;
  align-content: start;
  gap: 3px;
  height: 100%;
  padding: 4px 5px 2px 9px;
  box-shadow: inset 2px 0 #071018;
}

.gameplay-surface--marketplace .marketplace-card-rarity {
  letter-spacing: .04em;
  text-transform: uppercase;
  font: 800 10px / 13px Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--marketplace .marketplace-card-information {
  z-index: 2;
  color: #8cd7e7;
  cursor: pointer;
  background: none;
  border: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  position: absolute;
  top: 7px;
  right: 7px;
}

.gameplay-surface--marketplace .marketplace-card-information span {
  box-sizing: border-box;
  background: #06131ccc;
  border: 1px solid;
  border-radius: 50%;
  place-items: center;
  width: 22px;
  height: 22px;
  font: 800 14px / 1 Georgia, serif;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-card-information:hover, .gameplay-surface--marketplace .marketplace-card-information:focus-visible {
  color: #dff7ff;
  outline: 0;
}

.gameplay-surface--marketplace .marketplace-card-information:focus-visible span {
  box-shadow: 0 0 0 3px #67c7db55;
}

.gameplay-surface--marketplace .marketplace-card-characteristics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 2px 0 0;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-card-characteristics div {
  background: #06131c99;
  border-left: 1px solid #2c687b;
  align-content: start;
  gap: 1px;
  min-width: 0;
  padding: 2px 4px;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-card-characteristics dt {
  color: #7f98a2;
  font-size: 9px;
  line-height: 11px;
}

.gameplay-surface--marketplace .marketplace-card-characteristics dd {
  color: #dce8eb;
  text-align: left;
  white-space: nowrap;
  min-width: 0;
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  line-height: 12px;
}

.gameplay-surface--marketplace .marketplace-card-footer {
  border-top: 1px solid #31596a;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
  padding-top: 4px;
  display: flex;
}

.gameplay-surface--marketplace .marketplace-card-footer > span {
  gap: 1px;
  min-width: 0;
  display: grid;
}

.gameplay-surface--marketplace .marketplace-card-footer small {
  color: #7f9299;
  font-size: 9px;
  line-height: 10px;
}

.gameplay-surface--marketplace .marketplace-card-footer strong {
  color: #e8f2f4;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  line-height: 14px;
}

.gameplay-surface--marketplace .marketplace-card-price {
  justify-items: end;
}

.gameplay-surface--marketplace .marketplace-card-price strong {
  color: #edc14f;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  display: inline-flex;
}

.gameplay-surface--marketplace .marketplace-card-price img {
  object-fit: contain;
  width: 15px;
  height: 15px;
}

.gameplay-surface--marketplace .marketplace-card-action {
  color: #edc14f;
  letter-spacing: .05em;
  align-self: center;
  font-size: 11px;
}

.gameplay-surface--marketplace .marketplace-detail-card {
  background: none;
  border: 0;
  gap: 10px;
  padding: 10px 2px 22px;
}

.gameplay-surface--marketplace .marketplace-detail-close, .gameplay-surface--marketplace .marketplace-quantity-stepper button, .gameplay-surface--marketplace .marketplace-history-tabs button, .gameplay-surface--marketplace .marketplace-pagination button {
  border-radius: 0;
  min-width: 44px;
  min-height: 44px;
}

.gameplay-surface--marketplace .marketplace-detail-visual {
  min-height: 150px;
}

.gameplay-surface--marketplace .marketplace-purchase-panel {
  background: #07141ddd;
  border: 1px solid #315b6d;
  padding: 10px;
  position: relative;
}

.gameplay-surface--marketplace :is(.marketplace-buy-button, .marketplace-sell-submit) {
  color: #ffe7a6;
  background: linear-gradient(#4b371c, #211505);
  border: 1px solid #d9a13e;
  border-radius: 0;
  min-height: 48px;
  box-shadow: inset 0 0 12px #e7a83b24;
}

.gameplay-surface--marketplace .marketplace-characteristics, .gameplay-surface--marketplace .marketplace-price-distribution {
  border-color: #315b6d;
}

.gameplay-surface--marketplace .marketplace-characteristics > div, .gameplay-surface--marketplace .marketplace-price-table > div {
  gap: 2px;
}

.gameplay-surface--marketplace :is(.marketplace-characteristics > div span, .marketplace-characteristics > div strong, .marketplace-price-table > div span, .marketplace-price-table > div strong) {
  background: #07141d;
}

.marketplace-price-history {
  color: #e8f2f4;
  background: linear-gradient(90deg, #45d7ed08 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#45d7ed08 1px, #0000 1px) 0 0 / 18px 18px, #040d14;
  border: 1px solid #315b6d;
  gap: 9px;
  margin-top: 4px;
  padding: 10px;
  display: grid;
}

.marketplace-price-history__heading {
  gap: 8px;
  display: grid;
}

.marketplace-price-history__heading h3, .marketplace-price-history__heading p {
  margin: 0;
}

.marketplace-price-history__heading p {
  color: #91a9b2;
  font-size: 11px;
}

.marketplace-price-history .marketplace-history-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  display: grid;
}

.marketplace-price-history .marketplace-history-tabs button {
  color: #9eb2ba;
  background: #07141d;
  border: 1px solid #2b5364;
  min-height: 44px;
}

.marketplace-price-history .marketplace-history-tabs button.active {
  color: #ffe7a6;
  background: #2c1f0d;
  border-color: #d9a13e;
}

.marketplace-chart-state {
  color: #9eb2ba;
  text-align: center;
  place-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 132px;
  margin: 0;
  display: grid;
}

.marketplace-chart-state button {
  color: #d9edf1;
  background: #0d2938;
  border: 1px solid #397b90;
  min-height: 44px;
  padding: 0 14px;
}

.marketplace-chart-summary {
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  display: flex;
}

.marketplace-chart-summary strong {
  color: #f0c36f;
  font-variant-numeric: tabular-nums;
}

.marketplace-chart-summary span {
  color: #91a9b2;
  text-align: right;
  font-size: 10px;
}

.marketplace-chart-plot {
  min-height: 160px;
  position: relative;
}

.marketplace-chart-plot svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.marketplace-chart-grid line {
  stroke: #294f61;
  stroke-width: 1px;
  stroke-dasharray: 2 4;
}

.marketplace-chart-axis text {
  fill: #78929c;
  font-variant-numeric: tabular-nums;
  font-size: 8px;
}

.marketplace-chart-path {
  fill: none;
  stroke: #69d2e7;
  stroke-width: 2.5px;
  vector-effect: non-scaling-stroke;
}

.marketplace-chart-point {
  cursor: pointer;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  position: absolute;
  transform: translate(-50%, -50%);
}

.marketplace-chart-point:after {
  content: "";
  background: #69d2e7;
  border: 2px solid #041019;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #69d2e755;
}

.marketplace-chart-point:is(:focus-visible, .active):after {
  background: #f0c36f;
  box-shadow: 0 0 0 4px #f0c36f44;
}

.marketplace-chart-table summary {
  color: #9eb2ba;
  cursor: pointer;
  min-height: 44px;
  padding: 12px 4px 0;
}

.marketplace-chart-table table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  width: 100%;
  font-size: 11px;
}

.marketplace-chart-table :is(th, td) {
  text-align: left;
  border: 1px solid #244d60;
  padding: 6px;
}

.gameplay-surface--marketplace .marketplace-orders-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
}

.gameplay-surface--marketplace .marketplace-order-cancel {
  color: #e5a8aa;
  background: #291419;
  border-color: #884f53;
  border-radius: 0;
}

@media (min-width: 600px) and (orientation: portrait) {
  .gameplay-surface--marketplace .marketplace-buy-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (orientation: landscape) and (min-width: 600px) {
  .gameplay-surface--marketplace {
    --marketplace-edge: max(16px, var(--cs-safe-left, 0px));
    --marketplace-system-width: min(33vw, 336px);
    --marketplace-column-gap: 12px;
    --store-nav-height: 52px;
    --store-filter-height: 44px;
  }

  .gameplay-surface--marketplace .gameplay-store__controls-frame, .gameplay-surface--marketplace .gameplay-store__wallet-frame {
    left: var(--marketplace-edge);
    width: var(--marketplace-system-width);
    transform: none;
  }

  .gameplay-surface--marketplace .gameplay-store__controls-frame {
    top: max(16px, var(--cs-safe-top, 0px));
    height: calc(var(--marketplace-system-width) / 3);
  }

  .gameplay-surface--marketplace .gameplay-store__wallet-frame {
    top: calc(max(16px, var(--cs-safe-top, 0px)) + var(--marketplace-system-width) / 3 +
        8px);
    height: clamp(40px, 7.6vw, 58px);
  }

  .gameplay-surface--marketplace .gameplay-store__catalog-frame {
    top: max(16px, var(--cs-safe-top, 0px));
    right: max(16px, var(--cs-safe-right, 0px));
    bottom: max(8px, var(--cs-safe-bottom, 0px));
    left: calc(var(--marketplace-edge) + var(--marketplace-system-width) +
        var(--marketplace-column-gap));
    background: #030a10f2;
    border: 1px solid #315b6d;
    width: auto;
    transform: none;
  }

  .gameplay-surface--marketplace .gameplay-store__catalog-frame:before {
    background: none;
    box-shadow: inset 0 0 0 2px #071821, inset 0 0 24px #45d7ed0c;
  }

  .gameplay-surface--marketplace .gameplay-store__catalog-frame:after {
    inset: 8px 8px calc(14px + var(--store-nav-height));
  }

  .gameplay-surface--marketplace .gameplay-store__filters-frame {
    top: 12px;
  }

  .gameplay-surface--marketplace .gameplay-store__filter-divider {
    top: calc(12px + var(--store-filter-height) + 2px);
  }

  .gameplay-surface--marketplace .gameplay-store__catalog-scroll {
    inset: calc(12px + var(--store-filter-height) + 8px) 16px
      calc(var(--store-nav-height) + 18px);
  }

  body .gameplay-surface--marketplace .gameplay-store__catalog-frame > .gameplay-nav {
    bottom: 10px !important;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .gameplay-surface--marketplace {
    --marketplace-edge: 6px;
    --marketplace-system-width: 240px;
    --marketplace-column-gap: 8px;
    --store-nav-height: 44px;
  }

  .gameplay-surface--marketplace .gameplay-store__controls-frame {
    height: 80px;
    top: 6px;
  }

  .gameplay-surface--marketplace .gameplay-store__wallet-frame {
    height: 40px;
    top: 94px;
  }

  .gameplay-surface--marketplace .gameplay-store__catalog-frame {
    top: 6px;
    bottom: 6px;
    right: 6px;
  }

  .gameplay-surface--marketplace .gameplay-store__filters-frame {
    top: 8px;
  }

  .gameplay-surface--marketplace .gameplay-store__filter-divider {
    top: calc(8px + var(--store-filter-height) + 2px);
  }

  .gameplay-surface--marketplace .gameplay-store__catalog-scroll {
    inset: calc(8px + var(--store-filter-height) + 8px) 12px
      calc(var(--store-nav-height) + 13px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gameplay-surface--marketplace * {
    scroll-behavior: auto !important;
  }
}

.gameplay-surface--inventory .inventory-screen__hero:before, .gameplay-surface--inventory .inventory-screen__hero:after {
  content: none;
}

.inventory-screen__hero-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.03) saturate(.96);
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.gameplay-store__controls-frame > header.inventory-screen__header {
  z-index: 4;
  box-sizing: border-box;
  width: auto;
  min-height: 0;
  box-shadow: none;
  clip-path: none;
  background: none;
  border: 0;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 18px 22px;
  display: flex;
  position: absolute;
  inset: 0;
}

.gameplay-surface--inventory .inventory-screen__filters-frame {
  clip-path: none;
}

.gameplay-surface--inventory .storage-panel {
  box-sizing: border-box;
  width: 100%;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  gap: 10px;
  margin: 0;
  padding: 0 2px 16px;
  display: grid;
}

.gameplay-surface--inventory .storage-panel__heading {
  border-bottom: 1px solid #2b5364;
  align-items: center;
  padding: 0 2px 8px;
}

.gameplay-surface--inventory .storage-panel__heading h2 {
  color: #e9f4f6;
  letter-spacing: .06em;
  text-transform: uppercase;
  font: 850 16px / 1.2 Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--inventory .storage-panel__heading span, .gameplay-surface--inventory .storage-filter-hint {
  color: #91a9b2;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

.gameplay-surface--inventory .storage-panel .hall-edit-sort {
  background: #07131bd9;
  border: 1px solid #315b76;
  justify-content: space-between;
  margin: 0;
  padding: 6px 8px;
}

.gameplay-surface--inventory .storage-panel .hall-edit-sort > button {
  border-radius: 0;
}

.gameplay-surface--inventory .storage-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.gameplay-surface--inventory .storage-card {
  background: linear-gradient(90deg, #45d7ed08 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#45d7ed08 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(145deg, #102333, #071018);
  border: 1px solid #315b76;
  border-radius: 0;
  min-width: 0;
  padding: 10px;
  box-shadow: inset 0 1px #dceeff12, 0 8px 18px #0006;
}

.gameplay-surface--inventory .storage-card__miner-visual, .gameplay-surface--inventory .storage-card > .storage-card__art, .gameplay-surface--inventory .storage-card__temporary-art {
  box-sizing: border-box;
  background: linear-gradient(#0c1d28, #050b10);
  border: 1px solid #294e62;
  border-radius: 0;
  width: 100%;
  height: 112px;
  margin: 0;
  overflow: hidden;
}

.gameplay-surface--inventory .storage-card > .storage-card__art {
  object-fit: contain;
  display: block;
}

.gameplay-surface--inventory .storage-card__identity {
  border-bottom-color: #274553;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 2px 8px;
  display: flex;
}

.gameplay-surface--inventory .storage-card__identity > div {
  min-width: 0;
}

.gameplay-surface--inventory .storage-card__info {
  color: #9eeafa;
  cursor: pointer;
  background: linear-gradient(#153c50, #091a25);
  border: 1px solid #397b90;
  border-radius: 0;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  font-size: 19px;
}

.gameplay-surface--inventory .storage-card__info:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #79d8eb;
}

.gameplay-surface--inventory .storage-card h3 {
  color: #eef7f8;
  font-size: 15px;
  line-height: 1.2;
}

.gameplay-surface--inventory .storage-card__identity p {
  color: #9eb0b7;
}

.gameplay-surface--inventory .storage-card dl {
  margin-top: 5px;
}

.gameplay-surface--inventory .storage-card dl div {
  border-bottom-color: #223c48;
}

.gameplay-surface--inventory .storage-card dt {
  color: #9cafb6;
}

.gameplay-surface--inventory .storage-card dd {
  color: #f0c36f;
}

.gameplay-surface--inventory .storage-card > small {
  color: #91a9b2;
  margin-top: 8px;
  line-height: 1.35;
  display: block;
}

.gameplay-surface--inventory .storage-card__action {
  color: #e7f3f5;
  background: linear-gradient(#153c50, #091a25);
  border-color: #397b90;
  border-radius: 0;
  min-height: 44px;
}

.gameplay-surface--inventory .storage-card__action:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #79d8eb;
}

.gameplay-surface--inventory .storage-state {
  background: #07131bd9;
  border-color: #315b76;
  border-radius: 0;
  margin: 0;
}

@media (min-width: 600px) {
  .gameplay-surface--inventory .storage-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 430px) {
  :is(.store-tabs-frame .store-category-tabs, .gameplay-surface--inventory .storage-tabs) button {
    letter-spacing: 0;
    font-size: 8.5px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .gameplay-surface--store .store-catalog__heading {
    padding-inline: 10px;
  }

  .gameplay-surface--inventory .inventory-screen__header {
    padding: 8px 14px;
  }
}

.workshop-surface {
  gap: 14px;
  width: min(100%, 720px);
  margin-inline: auto;
}

.workshop-intro {
  border: 1px solid var(--cs-blue-border);
  background: linear-gradient(135deg, #112b3f, #0b1927);
  border-radius: 12px;
  gap: 5px;
  padding: 13px;
  display: grid;
}

.workshop-intro strong {
  font-size: .92rem;
  line-height: 1.42;
}

.workshop-intro small {
  color: var(--cs-steel-muted);
  line-height: 1.35;
}

.workshop-tabs {
  border: 1px solid var(--cs-blue-border);
  background: #091724;
  border-radius: 11px;
  padding: 4px;
}

.workshop-tabs button {
  min-height: 42px;
  color: var(--cs-steel-muted);
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  font-weight: 800;
}

.workshop-tabs button[aria-selected="true"] {
  border-color: var(--cs-cyan);
  color: var(--cs-steel);
  background: linear-gradient(145deg, #1a4a66, #112b40);
  box-shadow: inset 0 0 13px #78d0e622;
}

.workshop-families {
  gap: 12px;
  display: grid;
}

.workshop-family {
  border: 1px solid var(--cs-blue-border);
  background-image: var(--cs-blueprint-grid), linear-gradient(145deg, #0f2638, #091724);
  background-size: 18px 18px, auto;
  border-radius: 14px;
  gap: 8px;
  padding: 10px;
  display: grid;
}

.workshop-family > header {
  border-bottom: 1px solid #315b767d;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 2px 3px 8px;
  display: flex;
}

.workshop-family > header strong {
  font-size: 1rem;
}

.workshop-family > header small {
  color: var(--cs-steel-muted);
  text-align: right;
  font-size: .7rem;
}

.workshop-card {
  gap: 9px;
}

.workshop-transition {
  background: linear-gradient(145deg, #102638, #0a1927);
  border-color: #315b76;
}

.workshop-transition__rarities, .workshop-conversion {
  align-items: center;
  gap: 8px;
  display: flex;
}

.workshop-transition__rarities > b, .workshop-conversion > b {
  color: var(--cs-cyan);
  font-size: 1.2rem;
}

.rarity-badge {
  min-width: 0;
  color: var(--cs-steel);
  background: #101f2c;
  border-color: #526b7d;
  gap: 1px;
  padding: 5px 7px;
  font-size: .72rem;
  display: inline-grid;
}

.rarity-badge strong {
  font-size: .68rem;
}

.rarity-badge small {
  color: var(--cs-steel-muted);
  font-size: .63rem;
}

.rarity-unreal {
  border-color: #bd6579;
}

.workshop-terminal {
  color: var(--cs-steel-muted);
  font-size: .78rem;
}

.workshop-requirements, .workshop-result {
  border-left: 2px solid var(--cs-blue);
  background: #071522a8;
  gap: 6px;
  padding: 9px;
  display: grid;
}

.workshop-requirements > p, .workshop-result > p {
  color: var(--cs-cyan);
  letter-spacing: .1em;
  margin: 0;
  font: 800 .62rem / 1 ui-monospace, monospace;
}

.workshop-requirements dl, .workshop-parts-transition dl {
  gap: 5px;
  margin: 0;
  display: grid;
}

.workshop-requirements dl div, .workshop-parts-transition dl div {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  display: grid;
}

.workshop-requirements dt, .workshop-parts-transition dt {
  color: var(--cs-steel-muted);
  font-size: .7rem;
}

.workshop-requirements dd, .workshop-parts-transition dd {
  min-width: 0;
  color: var(--cs-steel);
  overflow-wrap: anywhere;
  margin: 0;
  font-size: .76rem;
}

.workshop-result strong {
  font-size: .82rem;
}

.workshop-result > div {
  color: var(--cs-steel-muted);
  gap: 3px;
  font-size: .72rem;
  display: grid;
}

.workshop-result b {
  color: var(--cs-steel);
}

.workshop-inputs {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.workshop-inputs button {
  color: var(--cs-steel);
  background: #0c1d2b;
  border-color: #315b76;
  font-size: .71rem;
}

.workshop-card fieldset {
  border-color: #315b76;
}

.workshop-card fieldset legend {
  color: var(--cs-steel-muted);
  font-size: .7rem;
}

.workshop-status {
  color: var(--cs-steel-muted);
  margin: 0;
  font-size: .76rem;
}

.workshop-status--ready {
  color: #78bf9d;
}

.workshop-merge-action {
  border-radius: 9px;
  font-weight: 900;
  border: 1px solid var(--cs-cyan) !important;
  color: #07111d !important;
  background: linear-gradient(135deg, #78d0e6, #4e94bb) !important;
  min-height: 44px !important;
}

.workshop-merge-action:disabled {
  color: #7890a0 !important;
  background: #10202d !important;
  border-color: #315b76 !important;
}

.workshop-parts-flow {
  gap: 10px;
  display: grid;
}

.workshop-parts-flow > header {
  gap: 8px;
  display: grid;
}

.workshop-parts-flow h3 {
  margin: 0;
}

.workshop-parts-flow > header > div {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.workshop-parts-transition {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  display: grid;
}

.workshop-parts-transition .workshop-conversion {
  border-right: 1px solid #315b767d;
  flex-direction: column;
  min-width: 88px;
  padding-right: 8px;
}

.workshop-parts-transition fieldset, .workshop-parts-transition .workshop-status, .workshop-parts-transition .workshop-merge-action {
  grid-column: 1 / -1;
}

.workshop-parts-transition .workshop-status {
  margin-top: 2px;
}

@media (max-width: 420px) {
  .workshop-family {
    padding: 8px;
  }

  .workshop-family > header {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .workshop-family > header small {
    text-align: left;
  }

  .workshop-parts-transition {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 8px;
  }

  .workshop-parts-transition .workshop-conversion {
    min-width: 0;
  }

  .workshop-requirements dl div, .workshop-parts-transition dl div {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}

.workshop-catalogue {
  gap: 10px;
  display: grid;
}

.workshop-toolbar {
  border: 1px solid var(--cs-blue-border);
  background: #091724;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px;
  display: flex;
}

.workshop-toolbar label {
  min-width: 0;
  color: var(--cs-steel);
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
}

.workshop-toolbar input {
  accent-color: var(--cs-cyan);
}

.workshop-toolbar select {
  max-width: 145px;
  min-height: 32px;
  color: var(--cs-steel);
  background: #102638;
  border: 1px solid #315b76;
  border-radius: 7px;
  font-size: .68rem;
}

.workshop-cards {
  gap: 7px;
  display: grid;
}

.workshop-catalogue-card {
  border: 1px solid var(--cs-blue-border);
  width: 100%;
  color: var(--cs-steel);
  text-align: left;
  background-image: var(--cs-blueprint-grid), linear-gradient(145deg, #102638, #091724);
  background-size: 18px 18px, auto;
  border-radius: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  padding: 10px;
  display: grid;
}

.workshop-catalogue-card:not(:disabled):hover, .workshop-catalogue-card:not(:disabled):focus-visible {
  border-color: var(--cs-cyan);
  outline: none;
}

.workshop-catalogue-card__identity {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.workshop-catalogue-card__identity > strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .84rem;
  overflow: hidden;
}

.workshop-catalogue-card__identity > span {
  align-items: center;
  gap: 5px;
  display: flex;
}

.workshop-catalogue-card__identity b {
  color: var(--cs-cyan);
}

.workshop-catalogue-card__identity em {
  color: var(--cs-steel-muted);
  font-size: .68rem;
  font-style: normal;
}

.workshop-catalogue-card__power {
  color: var(--cs-steel-muted);
  align-self: end;
  font-size: .72rem;
}

.workshop-status-pill {
  max-width: 104px;
  color: var(--cs-steel-muted);
  text-align: center;
  border: 1px solid #315b76;
  border-radius: 999px;
  align-self: center;
  padding: 4px 6px;
  font-size: .61rem;
  line-height: 1.1;
}

.workshop-filter-empty {
  color: var(--cs-steel-muted);
  text-align: center;
  background: #091724;
  border: 1px dashed #315b76;
  border-radius: 12px;
  justify-items: center;
  gap: 8px;
  padding: 22px 12px;
  display: grid;
}

.workshop-filter-empty button {
  border-color: var(--cs-cyan);
  min-height: 34px;
  color: var(--cs-steel);
  background: #153a52;
}

.workshop-sheet {
  width: 100%;
  max-height: none;
  color: var(--cs-steel);
  background-color: #03080c;
  background-image: linear-gradient(#65727a29, #0000 22%, #010305b8), linear-gradient(#4ab5dc1a 1px, #0000 1px), linear-gradient(90deg, #4ab5dc1a 1px, #0000 1px), linear-gradient(#4ab5dc0a 1px, #0000 1px), linear-gradient(90deg, #4ab5dc0a 1px, #0000 1px);
  background-size: auto, 24px 24px, 24px 24px, 6px 6px, 6px 6px;
  border: 1px solid #536874;
  border-top-color: #d39a35;
  border-radius: 0;
  grid-column: 1 / -1;
  gap: 11px;
  padding: 12px;
  animation: .22s ease-out both workshop-inline-open;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px #d8f4ff1f, inset 0 0 0 3px #03080c, 0 9px 24px #0009, 0 0 18px #38b8e514;
}

.workshop-craft-view {
  width: 100%;
  min-width: 0;
  display: grid;
}

.workshop-sheet > header {
  background: linear-gradient(#182732, #09141d);
  border-bottom: 1px solid #2f5368;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 10px;
  margin: -12px -12px 0;
  padding: 11px 12px;
  display: grid;
  box-shadow: 0 6px 14px #0007;
}

.workshop-sheet__handle {
  background: linear-gradient(90deg, #e2a63a, #51cce3 68%, #0000);
  grid-column: 1 / -1;
  width: 72px;
  height: 2px;
}

.workshop-sheet > header strong {
  color: #e7eef1;
  letter-spacing: .03em;
  font-size: 1rem;
}

.workshop-sheet > header button {
  width: 44px;
  min-height: 44px;
  color: var(--cs-steel);
  background: #10212d;
  border: 1px solid #3c6074;
  border-radius: 0;
  font-size: 1.25rem;
}

.workshop-requirements {
  border-left-color: #7d6577;
  gap: 4px;
  padding: 9px;
  display: grid;
}

.workshop-requirements--met {
  border-left-color: #5f9f87;
}

.workshop-requirements > div {
  justify-content: space-between;
  gap: 10px;
  display: flex;
}

.workshop-requirements span, .workshop-requirements small {
  color: var(--cs-steel-muted);
  font-size: .72rem;
}

.workshop-requirements strong {
  font-size: .9rem;
}

.workshop-funding {
  border: 1px solid #315b76;
  border-radius: 0;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 8px;
  display: flex;
}

.workshop-funding legend {
  color: var(--cs-cyan);
  padding: 0 4px;
  font-size: .68rem;
  font-weight: 800;
}

.workshop-funding label {
  font-size: .76rem;
}

.workshop-sheet-action {
  background: linear-gradient(#07131f00, #07131f 18%);
  border-top: 1px solid #2d5064;
  gap: 6px;
  margin: 0 -12px -12px;
  padding: 10px 12px 12px;
  display: grid;
}

.workshop-sheet-action .workshop-merge-action {
  text-align: center;
  border-radius: 0;
  width: 100%;
  min-height: 48px;
}

@keyframes workshop-inline-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workshop-sheet .workshop-inputs {
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
}

.workshop-sheet .workshop-status {
  min-height: 18px;
}

.workshop-parts-card .workshop-catalogue-card__power {
  grid-column: 1 / -1;
}

.workshop-pagination {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  display: grid;
}

.workshop-pagination span {
  color: var(--cs-steel-muted);
  text-align: center;
  font-size: .72rem;
}

.workshop-pagination button {
  min-height: 40px;
  color: var(--cs-steel);
  background: #123245;
  border: 1px solid #4f88a8;
  border-radius: 8px;
  font-weight: 800;
}

.workshop-pagination button:last-child {
  justify-self: stretch;
}

.workshop-pagination button:disabled {
  color: #607887;
  background: #0b1822;
  border-color: #263f50;
}

.workshop-required-ingredients {
  background: #07152288;
  border: 1px solid #315b76;
  border-radius: 10px;
  gap: 7px;
  padding: 8px;
  display: grid;
}

.hall-edit-miner-visual {
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
  position: relative;
}

.miner-rarity-overlay {
  position: relative;
}

.miner-rarity-badge {
  z-index: 2;
  color: currentColor;
  -webkit-text-fill-color: currentColor;
  text-indent: 0;
  opacity: 1;
  visibility: visible;
  white-space: nowrap;
  background: #07111de8;
  border: 1px solid;
  border-radius: 5px;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 3px;
  font: 900 .65rem / 1 ui-monospace, monospace;
  display: grid;
  position: absolute;
  bottom: 3px;
  right: 3px;
  overflow: visible;
  box-shadow: 0 1px 4px #000b;
}

.miner-rarity-overlay.rarity-common .miner-rarity-badge {
  color: #aeb9c0;
}

.miner-rarity-overlay.rarity-uncommon .miner-rarity-badge {
  color: #55c178;
}

.miner-rarity-overlay.rarity-rare .miner-rarity-badge {
  color: #4ca9ec;
}

.miner-rarity-overlay.rarity-epic .miner-rarity-badge {
  color: #af71e7;
}

.miner-rarity-overlay.rarity-legendary .miner-rarity-badge {
  color: #edc14f;
}

.miner-rarity-overlay.rarity-unreal .miner-rarity-badge {
  color: #ff4e63;
}

.miner-rarity-overlay.rarity-common {
  color: #aeb9c0;
}

.miner-rarity-overlay.rarity-uncommon {
  color: #55c178;
}

.miner-rarity-overlay.rarity-rare {
  color: #4ca9ec;
}

.miner-rarity-overlay.rarity-epic {
  color: #af71e7;
}

.miner-rarity-overlay.rarity-legendary {
  color: #edc14f;
}

.miner-rarity-overlay.rarity-unreal {
  color: #ff4e63;
}

.rack-management__miner .hall-edit-miner-visual {
  width: 100%;
  max-width: 112px;
  height: 80px;
}

@media (max-width: 420px) {
  .workshop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .workshop-toolbar select {
    width: 100%;
    max-width: none;
  }

  .workshop-catalogue-card {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .workshop-status-pill {
    max-width: 92px;
  }
}

.workshop-catalogue-card {
  background-image: linear-gradient(145deg, #1a2a36, #0b1620 72%), var(--cs-blueprint-grid);
  background-size: auto, 18px 18px;
  border-color: #46718a;
  border-radius: 9px;
  box-shadow: inset 0 1px #b9e2ef10, inset 0 0 0 1px #06101a, 0 5px 12px #0005;
}

.workshop-catalogue-card__identity {
  gap: 7px;
}

.workshop-equation {
  align-items: center;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.workshop-equation > b {
  color: var(--cs-cyan);
  font-size: .78rem;
}

.workshop-equation .rarity-badge {
  min-width: 0;
  padding: 4px 5px;
  box-shadow: inset 0 0 10px;
}

.workshop-equation .rarity-badge strong {
  color: #0000;
  width: 13px;
  font-size: 0;
  overflow: hidden;
}

.workshop-equation .rarity-badge strong:after {
  color: var(--cs-steel);
  content: "◆";
  font-size: .68rem;
  display: block;
}

.rarity-common {
  border-color: #9aa8b0;
}

.rarity-uncommon {
  border-color: #55b879;
}

.rarity-rare {
  border-color: #4c9de2;
}

.rarity-epic {
  border-color: #a36cdb;
}

.rarity-legendary {
  border-color: #e2b84f;
}

.rarity-unreal {
  border-color: #ef5365;
  box-shadow: inset 0 0 12px #ef536655, 0 0 8px #ef536644;
}

.workshop-sort {
  flex: none;
  min-width: 142px;
  display: block;
  position: relative;
}

.workshop-sort select {
  appearance: none;
  width: 100%;
  color: var(--cs-steel);
  background: linear-gradient(145deg, #17364b, #0b1a27);
  border-color: #4f88a8;
  border-radius: 8px;
  padding-right: 26px;
  box-shadow: inset 0 0 0 1px #78d0e612;
}

.workshop-sort b {
  pointer-events: none;
  color: var(--cs-cyan);
  font-size: .82rem;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-55%);
}

.gameplay-surface__back {
  border-radius: 9px;
  place-items: center;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 1.2rem;
  display: grid;
  border-color: var(--cs-blue-border) !important;
  color: var(--cs-cyan) !important;
  background: #102638 !important;
}

@media (max-width: 420px) {
  .workshop-sort {
    width: 100%;
  }

  .workshop-equation {
    gap: 3px;
  }
}

.workshop-miner-card {
  grid-template-rows: auto minmax(64px, 1fr) auto;
  min-height: 148px;
}

.workshop-miner-card .workshop-catalogue-card__identity {
  display: contents;
}

.workshop-miner-card .workshop-catalogue-card__identity > strong {
  grid-column: 1 / -1;
}

.workshop-equation {
  grid-column: 1 / -1;
  justify-content: center;
  gap: 7px;
  min-height: 64px;
}

.workshop-miner-slot {
  color: #9aa8b0;
  background: linear-gradient(145deg, #1b2730, #09131c);
  border: 1px solid;
  border-radius: 8px;
  flex: 0 0 62px;
  place-items: center;
  width: 62px;
  height: 62px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 12px, 0 2px 5px #0008;
}

.workshop-miner-slot .equipment-visual {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.workshop-rarity-numeral {
  min-width: 19px;
  height: 19px;
  color: inherit;
  background: #07111de8;
  border: 1px solid;
  border-radius: 5px;
  place-items: center;
  padding: 0 3px;
  font: 900 .65rem / 1 ui-monospace, monospace;
  display: grid;
  position: absolute;
  bottom: 3px;
  right: 3px;
  box-shadow: 0 1px 4px #000b;
}

.workshop-miner-slot.rarity-common {
  color: #aeb9c0;
}

.workshop-miner-slot.rarity-uncommon {
  color: #55c178;
}

.workshop-miner-slot.rarity-rare {
  color: #4ca9ec;
}

.workshop-miner-slot.rarity-epic {
  color: #af71e7;
}

.workshop-miner-slot.rarity-legendary {
  color: #edc14f;
}

.workshop-miner-slot.rarity-unreal {
  color: #ff4e63;
  box-shadow: inset 0 0 16px #ff4e6388, 0 0 10px #ff4e6366;
}

.workshop-miner-slot--detail {
  flex-basis: 78px;
  width: 78px;
  height: 78px;
}

.workshop-required-miner {
  background: #071522a8;
  border-left: 2px solid #7d6577;
  align-items: center;
  gap: 11px;
  padding: 9px;
  display: flex;
}

.workshop-required-miner > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.workshop-required-miner .workshop-miner-slot--detail {
  flex-basis: 54px;
  width: 54px;
  height: 54px;
}

.workshop-required-miner strong {
  overflow-wrap: anywhere;
  font-size: .82rem;
}

.workshop-required-miner span {
  color: var(--cs-steel);
  font-size: .9rem;
  font-weight: 800;
}

.workshop-required-miner small {
  color: var(--cs-steel-muted);
  font-size: .7rem;
}

.workshop-part-requirement {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
}

.workshop-part-requirement > div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  display: grid;
}

.workshop-part-requirement > div > strong:first-child {
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: .8rem;
}

.workshop-part-requirement > div > span {
  color: var(--cs-steel);
  font-size: .9rem;
  font-weight: 800;
}

.workshop-part-requirement > div > small {
  color: var(--cs-steel-muted);
  grid-column: 1 / -1;
  font-size: .7rem;
}

.workshop-part-visual {
  background: #091724;
  border: 1px solid;
  border-radius: 8px;
  place-items: center;
  width: 54px;
  height: 54px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.workshop-part-visual img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.workshop-part-visual.rarity-common {
  color: #aeb9c0;
}

.workshop-part-visual.rarity-uncommon {
  color: #55c178;
}

.workshop-part-visual.rarity-rare {
  color: #4ca9ec;
}

.workshop-part-visual.rarity-epic {
  color: #af71e7;
}

.workshop-part-visual.rarity-legendary {
  color: #edc14f;
}

.workshop-miner-card .workshop-catalogue-card__power {
  align-self: end;
  gap: 2px;
  display: grid;
}

.workshop-miner-card .workshop-catalogue-card__power small {
  color: var(--cs-steel-muted);
  letter-spacing: .09em;
  font: 800 .58rem / 1 ui-monospace, monospace;
}

.workshop-miner-card .workshop-catalogue-card__power strong {
  color: var(--cs-steel);
  font-size: .78rem;
}

.workshop-miner-card .workshop-catalogue-card__power b {
  color: var(--cs-cyan);
}

.workshop-miner-card .workshop-status-pill {
  align-self: end;
}

@media (max-width: 360px) {
  .workshop-equation {
    gap: 4px;
  }

  .workshop-miner-slot {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
}

.workshop-terminal-miner {
  grid-column: 1 / -1;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  display: flex;
}

.workshop-terminal-miner em {
  color: var(--cs-steel-muted);
  font-size: .68rem;
  font-style: normal;
}

.workshop-miner-card {
  background-image: var(--cs-blueprint-grid), linear-gradient(145deg, #102638, #091724);
  background-size: 18px 18px, 18px 18px, auto;
  grid-template-rows: auto;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 9px;
}

.workshop-output-miner {
  justify-self: start;
  place-items: center;
  width: 112px;
  min-width: 0;
  min-height: 112px;
  display: grid;
}

.workshop-output-miner .workshop-miner-slot {
  flex-basis: 112px;
  width: 112px;
  height: 112px;
}

.workshop-output-miner .workshop-rarity-numeral {
  min-width: 24px;
  height: 24px;
  font-size: .76rem;
  bottom: 5px;
  right: 5px;
}

.workshop-surface .workshop-parts-card .workshop-part-visual {
  background: #0a1823;
  border-color: #55758a;
  border-radius: 8px;
  width: 104px;
  height: 104px;
  box-shadow: inset 0 0 0 1px #07101a, 0 3px 8px #0008;
}

.workshop-surface .workshop-parts-card .workshop-part-art {
  object-fit: contain;
  border-radius: 7px;
  width: 100%;
  height: 100%;
}

.workshop-parts-card .workshop-rarity-numeral {
  min-width: 24px;
  height: 24px;
  font-size: .76rem;
  bottom: 7px;
  right: 7px;
}

.workshop-miner-card__info {
  text-align: left;
  align-content: center;
  gap: 0;
  min-width: 0;
  display: grid;
}

.workshop-miner-card__info > strong {
  color: var(--cs-steel);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 18px;
  font-size: .86rem;
  overflow: hidden;
}

.workshop-title-rarity.rarity-common {
  color: #aeb9c0;
}

.workshop-title-rarity.rarity-uncommon {
  color: #55c178;
}

.workshop-title-rarity.rarity-rare {
  color: #4ca9ec;
}

.workshop-title-rarity.rarity-epic {
  color: #af71e7;
}

.workshop-title-rarity.rarity-legendary {
  color: #edc14f;
}

.workshop-title-rarity.rarity-unreal {
  color: #ff4e63;
}

.workshop-miner-card__info .workshop-catalogue-card__power {
  align-self: auto;
}

.workshop-miner-card__info .workshop-status-pill {
  place-self: auto start;
  max-width: 100%;
  margin-top: 12px;
}

@media (max-width: 360px) {
  .workshop-miner-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    min-height: 116px;
    padding: 8px;
  }

  .workshop-output-miner {
    width: 96px;
    min-height: 96px;
  }

  .workshop-output-miner .workshop-miner-slot {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
  }
}

.hall-edit-rack-preview {
  aspect-ratio: 2 / 3;
  pointer-events: none;
  width: 100%;
  max-width: 72px;
  margin-top: 18px;
  display: block;
  position: relative;
}

.hall-edit-rack-preview .scene-rack-frame {
  width: 100%;
  height: 100%;
}

.hall-edit-position__number {
  z-index: 4;
  font-size: 11px;
}

.hall-edit-position__empty {
  font-size: 10px;
}

.hall-edit-mode {
  --editor-blue-base: #102638;
  --editor-blue-grid-size: 14px 14px;
  --editor-structural-border: #8d7950;
  --editor-black-grid: linear-gradient(#ffffff09 1px, transparent 1px),
    linear-gradient(90deg, #ffffff09 1px, transparent 1px);
  --editor-blue-grid: linear-gradient(#649bc21a 1px, transparent 1px),
    linear-gradient(90deg, #649bc21a 1px, transparent 1px);
  color: #dce3e9;
  background-color: #0b0c0e;
  background-image: var(--editor-black-grid);
  background-size: 18px 18px;
}

.hall-edit-mode .hall-edit-position.is-occupied {
  color: #d8e5ef;
  background-color: var(--editor-blue-base);
  background-image: var(--editor-blue-grid);
  background-size: var(--editor-blue-grid-size);
  border-color: #345771;
}

.hall-edit-mode .hall-edit-position.is-selected {
  border-color: #77a9cf;
  box-shadow: 0 0 0 2px #477fa452, inset 0 0 12px #416e8e24;
}

.hall-edit-mode .hall-edit-position__number {
  color: #c2ced8;
}

.hall-edit-mode .hall-edit-position__empty, .hall-edit-mode .hall-edit-mode__hint, .hall-edit-mode .hall-edit-drawer__empty, .hall-edit-mode .hall-edit-rack-heading p, .hall-edit-mode .hall-edit-slot-drawer p, .hall-edit-mode .hall-edit-equipment small {
  color: #b3bcc5;
}

.hall-edit-mode .hall-edit-mode__done, .hall-edit-mode .hall-edit-equipment button, .hall-edit-mode .hall-edit-rack-actions button:not(.hall-edit-rack-actions__danger) {
  color: #e1eaf1;
  background: #193245;
  border-color: #486d89;
}

.hall-edit-mode .hall-edit-equipment {
  background: #111820;
  border-color: #353f48;
}

.hall-edit-mode .hall-edit-slot {
  color: #dce3e9;
  background-color: var(--editor-blue-base);
  background-image: var(--editor-blue-grid);
  background-size: var(--editor-blue-grid-size);
  border-color: #364c5e;
  grid-template-rows: auto 76px auto;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 5px;
  min-height: 136px;
}

.hall-edit-mode .hall-edit-slot.is-selected {
  background-color: var(--editor-blue-base);
  border-color: #77a9cf;
  box-shadow: inset 0 0 0 1px #477fa4;
}

.hall-edit-mode .hall-edit-slot > span {
  color: #abbcca;
  justify-self: start;
}

.hall-edit-mode .hall-edit-miner-art {
  width: 100%;
  max-width: 110px;
  height: 76px;
  display: block;
}

.hall-edit-mode .hall-edit-miner-art img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}

.hall-edit-mode .hall-edit-slot strong {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  overflow: visible;
}

.hall-edit-mode .hall-edit-slot small {
  color: #b3bcc5;
}

.hall-edit-mode .hall-edit-slot-drawer {
  border-color: #39434b;
}

.hall-edit-mode .hall-edit-miner-stats div {
  background: #101316;
}

.hall-edit-mode .hall-edit-miner-stats dt {
  color: #b3bcc5;
}

.hall-edit-mode .hall-edit-miner-stats dd {
  color: #e1e7eb;
}

.hall-edit-mode .hall-edit-sort, .storage-panel .hall-edit-sort {
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 12px;
  display: flex;
}

.hall-edit-mode .hall-edit-sort > button, .storage-panel .hall-edit-sort > button {
  color: #dce3e9;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font: inherit;
  background: #193245;
  border: 1px solid #486d89;
  border-radius: 6px;
  padding: 6px 8px;
}

.game-select-menu {
  box-sizing: border-box;
  overscroll-behavior: none;
  color: #dce3e9;
  background-color: #101215;
  background-image: linear-gradient(#ffffff09 1px, #0000 1px), linear-gradient(90deg, #ffffff09 1px, #0000 1px);
  background-size: 18px 18px;
  border: 1px solid #50798d;
  border-radius: 8px;
  margin: 0;
  padding: 5px;
  position: fixed;
  inset: auto;
  overflow-y: auto;
  box-shadow: 0 12px 28px #000c;
}

.game-select-menu button {
  width: 100%;
  min-height: 44px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: none;
  border: 1px solid #0000;
  border-radius: 4px;
  padding: 8px 12px;
  display: block;
}

.game-select-menu button[aria-checked="true"] {
  color: #bde3ff;
  background: #193245;
  border-color: #486d89;
}

.game-select-menu button:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #77a9cf;
}

.game-confirmation {
  box-sizing: border-box;
  overscroll-behavior: none;
  color: #dce3e9;
  background-color: #07131d;
  background-image: linear-gradient(#ffffff08 1px, #0000 1px), linear-gradient(90deg, #ffffff08 1px, #0000 1px);
  background-size: 18px 18px;
  border: 1px solid #50798d;
  border-radius: 0;
  width: min(380px, 100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 14px;
  overflow: auto;
  box-shadow: 0 18px 48px #000e;
}

.game-confirmation::backdrop {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #000c;
}

.game-confirmation h3 {
  color: #f0c36f;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 15px;
}

.game-confirmation p {
  color: #aebdc5;
  white-space: pre-line;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.game-confirmation__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  display: grid;
}

.game-confirmation__actions button {
  min-height: 44px;
  font: inherit;
  cursor: pointer;
  border-radius: 0;
  padding: 8px 10px;
  font-weight: 800;
}

.game-confirmation__cancel {
  color: var(--cs-steel);
  background: #102638;
  border: 1px solid #47778d;
}

.game-confirmation__confirm {
  color: #fff0bf;
  background: #51300c;
  border: 1px solid #ba8130;
}

.expedition-speed-up-confirmation {
  width: min(320px, 100vw - 64px);
}

.hall-edit-confirmation {
  box-sizing: border-box;
  overscroll-behavior: none;
  color: #dce3e9;
  border-color: #50798d;
  width: min(380px, 100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
}

.hall-edit-confirmation::backdrop {
  background: #000a;
}

.workshop-part-art {
  object-fit: contain;
  background: #091724;
  border-radius: 8px;
  width: 44px;
  height: 44px;
}

.workshop-sort__trigger {
  width: 100%;
  min-height: 32px;
  color: var(--cs-steel);
  font: inherit;
  text-align: left;
  background: linear-gradient(145deg, #17364b, #0b1a27);
  border-color: #4f88a8;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 14px;
  font-size: .68rem;
  display: flex;
  box-shadow: inset 0 0 0 1px #78d0e612;
}

.workshop-sort__trigger b {
  color: var(--cs-cyan);
  flex: none;
  font-size: .82rem;
  position: static;
  transform: none;
}

.workshop-sort__menu {
  z-index: 25;
  border: 1px solid var(--cs-blue-border);
  color: var(--cs-steel);
  background-image: var(--cs-blueprint-grid), linear-gradient(145deg, #112b3f, #07111d);
  background-size: 18px 18px, auto;
  border-radius: 9px;
  gap: 4px;
  padding: 5px;
  display: grid;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  box-shadow: 0 10px 24px #000a;
}

.workshop-sort__menu button {
  width: 100%;
  min-height: 42px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: .68rem;
}

.workshop-sort__menu button[aria-selected="true"] {
  border-color: var(--cs-cyan);
  color: var(--cs-steel);
  background: #173d56;
}

.workshop-sort__menu button:hover, .workshop-sort__menu button:focus-visible {
  border-color: #4f88a8;
  outline: none;
}

.workshop-search {
  width: 100%;
  margin-top: -2px;
  display: block;
  position: relative;
}

.workshop-search:before {
  content: "Search";
  z-index: 1;
  color: var(--cs-steel-muted);
  pointer-events: none;
  font-size: .72rem;
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
}

.workshop-search > span {
  display: none;
}

.workshop-search:before {
  font-size: .86rem;
  line-height: 1;
}

.workshop-search:after {
  content: "⌕";
  z-index: 1;
  color: var(--cs-cyan);
  pointer-events: none;
  font-size: 1.35rem;
  line-height: 1;
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-52%);
}

.workshop-search input {
  box-sizing: border-box;
  border: 1px solid var(--cs-blue-border);
  width: 100%;
  min-height: 40px;
  color: var(--cs-steel);
  font: inherit;
  background: linear-gradient(145deg, #17364b, #0b1a27);
  border-radius: 11px;
  padding: 0 42px 0 14px;
  font-size: .86rem;
}

.workshop-search input::placeholder {
  color: #0000;
}

.workshop-action-header {
  background: linear-gradient(145deg, #17364b, #0b1a27);
  border: 1px solid #315b76;
  border-radius: 11px;
  grid-template-columns: minmax(0, 1fr) minmax(112px, .82fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  display: grid;
  box-shadow: inset 0 0 0 1px #78d0e612;
}

.workshop-action-header__source {
  gap: 7px;
  min-width: 0;
  padding-top: 0;
  display: grid;
}

.workshop-action-header__source > strong, .workshop-action-header__result > strong {
  overflow-wrap: anywhere;
  min-width: 0;
}

.workshop-action-header__source > strong {
  font-size: 1rem;
}

.workshop-action-header__result {
  justify-items: center;
  gap: 4px;
  min-width: 0;
  display: grid;
}

.workshop-action-header__result > p {
  color: var(--cs-cyan);
  letter-spacing: .12em;
  margin: 0;
  font: 800 .62rem / 1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.workshop-action-header__result > strong {
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  order: -1;
  width: 100%;
  font-size: .78rem;
  overflow: hidden;
}

.workshop-action-header__result .workshop-miner-slot--detail {
  width: 92px;
  height: 92px;
}

@media (max-width: 420px) {
  .workshop-action-header {
    grid-template-columns: minmax(0, 1fr) minmax(98px, .78fr);
    gap: 8px;
  }

  .workshop-action-header__result .workshop-miner-slot--detail {
    width: 80px;
    height: 80px;
  }
}

.workshop-action-header__result {
  grid-template-columns: auto minmax(0, 1fr);
  place-items: center start;
  column-gap: 10px;
}

.workshop-action-header__result .workshop-miner-slot--detail {
  grid-row: 1;
}

.workshop-action-header__result-info {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.workshop-action-header__result-info > strong {
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  font-size: .78rem;
  display: block;
  overflow: visible;
}

.workshop-action-header__result-info > span {
  color: var(--cs-steel-muted);
  white-space: nowrap;
  font-size: .72rem;
}

.workshop-action-header__result-info b {
  color: var(--cs-steel);
}

@media (max-width: 420px) {
  .workshop-action-header__result-info > strong {
    font-size: .7rem;
  }

  .workshop-action-header__result-info > span {
    font-size: .66rem;
  }
}

.workshop-surface .workshop-miner-slot {
  aspect-ratio: 1;
  color: #b9cbd5;
  background: #0a1823;
  border-color: #55758a;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #07101a, 0 3px 8px #0008;
}

.workshop-surface .workshop-part-visual {
  aspect-ratio: 1;
  color: #b9cbd5;
  background: #0a1823;
  border-color: #55758a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #07101a, 0 3px 8px #0008;
}

.workshop-surface .workshop-part-art {
  background: none;
  border-radius: 50%;
}

.rarity-tone-common {
  color: #aeb9c0;
}

.rarity-tone-uncommon {
  color: #55c178;
}

.rarity-tone-rare {
  color: #4ca9ec;
}

.rarity-tone-epic {
  color: #af71e7;
}

.rarity-tone-legendary {
  color: #edc14f;
}

.rarity-tone-unreal {
  color: #ff4e63;
}

.workshop-radial {
  isolation: isolate;
  aspect-ratio: 1;
  background: radial-gradient(circle at center,
      #17394edb 0 10%,
      #0b2232d9 31%,
      #07131feb 70%),
    var(--cs-blueprint-grid);
  border: 1px solid #315b76;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  min-height: 390px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}

.workshop-radial__connections {
  z-index: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}

.workshop-radial__connections line {
  stroke: #3f5963;
  stroke-width: 3.2px;
  stroke-dasharray: none;
  vector-effect: non-scaling-stroke;
  opacity: .92;
  filter: drop-shadow(0 1px #82919880) drop-shadow(0 3px 2px #000c);
}

.workshop-radial-node, .workshop-radial-result {
  z-index: 2;
  color: #dbe8ed;
  cursor: default;
  background: none;
  border: 0;
  place-items: center;
  margin: 0;
  padding: 0;
  display: grid;
  position: absolute;
}

.workshop-radial-node {
  --workshop-node-diameter: 70px;
  width: var(--workshop-node-diameter);
  height: var(--workshop-node-diameter);
  transform: translate(-50%, -50%);
}

.workshop-radial-result {
  transform: translate(-50%, -50%);
}

.workshop-radial-node__visual {
  width: var(--workshop-node-diameter);
  height: var(--workshop-node-diameter);
  aspect-ratio: 1;
  background: #0b1923;
  border: 1px solid #68899a;
  border-radius: 50%;
  place-items: center;
  display: grid;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px #07111a, 0 4px 10px #0009;
}

.workshop-radial-node__visual, .workshop-radial-result__visual {
  position: relative;
}

.workshop-radial-node__visual .workshop-rarity-numeral, .workshop-radial-result__visual .workshop-rarity-numeral {
  z-index: 3;
  background: #07111ded;
  border-color: #7691a0;
  bottom: 9px;
  right: 7px;
  box-shadow: 0 1px 4px #000b;
}

.workshop-radial-node__visual img, .workshop-radial-node__visual .equipment-visual {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.workshop-radial-node strong {
  color: #e4edf0;
  white-space: nowrap;
  background: #07131fee;
  border: 1px solid #4d6d7d;
  border-radius: 999px;
  padding: 2px 7px;
  font: 800 .68rem / 1.1 ui-monospace, monospace;
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
}

.workshop-radial-node.is-insufficient .workshop-radial-node__visual img, .workshop-radial-node.is-insufficient .workshop-radial-node__visual .equipment-visual {
  filter: grayscale() saturate(0) brightness(.58);
  opacity: .72;
}

.workshop-radial-node.is-insufficient .workshop-radial-node__visual {
  opacity: .88;
  border-color: #455966;
}

.workshop-radial-node.is-sufficient .workshop-radial-node__visual img, .workshop-radial-node.is-sufficient .workshop-radial-node__visual .equipment-visual {
  filter: none;
  opacity: 1;
}

.workshop-sheet--miner-merge {
  --game-content-panel-inline-size: 100%;
}

.workshop-radial-panel, .workshop-sheet--miner-merge > .workshop-merge-summary {
  width: var(--game-content-panel-inline-size);
  min-width: 0;
  max-width: 100%;
}

.workshop-radial-panel {
  isolation: isolate;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  place-items: center;
  display: grid;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}

.workshop-sheet--miner-merge .workshop-radial {
  z-index: 2;
  --workshop-miner-radial-size: min(100cqi, 390px);
  width: var(--workshop-miner-radial-size);
  max-width: none;
  height: var(--workshop-miner-radial-size);
  aspect-ratio: 1;
  background: none;
  border: 0;
  border-radius: 0;
  justify-self: center;
  min-height: 0;
}

.workshop-sheet--miner-merge .workshop-radial:before {
  z-index: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(43px at 50% 13%, #0000 0 66%, #60737c 68% 72%, #101b22 74% 84%, #2b4956 86% 88%, #0000 90%), radial-gradient(43px at 85.2% 38.6%, #0000 0 66%, #60737c 68% 72%, #101b22 74% 84%, #2b4956 86% 88%, #0000 90%), radial-gradient(43px at 71.7% 79.9%, #0000 0 66%, #60737c 68% 72%, #101b22 74% 84%, #2b4956 86% 88%, #0000 90%), radial-gradient(43px at 28.3% 79.9%, #0000 0 66%, #60737c 68% 72%, #101b22 74% 84%, #2b4956 86% 88%, #0000 90%), radial-gradient(43px at 14.8% 38.6%, #0000 0 66%, #60737c 68% 72%, #101b22 74% 84%, #2b4956 86% 88%, #0000 90%), linear-gradient(90deg, #0000 48%, #5bc5d31a 50%, #0000 52%), linear-gradient(0deg, #0000 48%, #5bc5d312 50%, #0000 52%), repeating-linear-gradient(135deg, #ffffff05 0 1px, #0000 1px 12px), linear-gradient(145deg, #1a2a33, #0b171f 46%, #040a0f 100%);
  border: 1px solid #3b5661;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 4px #03080c, inset 0 0 0 5px #425b65, inset 0 24px 42px #42697a14, 0 12px 20px #0009;
}

.workshop-sheet--miner-merge .workshop-radial:after {
  z-index: 0;
  background: radial-gradient(circle at 50% 7%,
      #d28d35 0 3px,
      #281708 4px 6px,
      transparent 7px),
    radial-gradient(circle at 93% 50%,
      #d28d35 0 3px,
      #281708 4px 6px,
      transparent 7px),
    radial-gradient(circle at 50% 93%,
      #d28d35 0 3px,
      #281708 4px 6px,
      transparent 7px),
    radial-gradient(circle at 7% 50%,
      #d28d35 0 3px,
      #281708 4px 6px,
      transparent 7px),
    repeating-conic-gradient(from 8deg, #293b42 0 8deg, #111e24 8deg 16deg);
  content: "";
  pointer-events: none;
  border: 1px solid #6a7c82;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 7px #071117, inset 0 0 0 9px #718087, inset 0 0 26px #000d, 0 9px 14px #000b;
}

.workshop-radial-result {
  z-index: 3;
  width: 142px;
  height: 142px;
  top: 50%;
  left: 50%;
}

.workshop-radial-result__visual {
  aspect-ratio: 1;
  background: radial-gradient(circle, #18394a, #081621 72%);
  border: 2px solid #79a7b9;
  border-radius: 50%;
  place-items: center;
  width: 136px;
  height: 136px;
  transition: border-color .18s, box-shadow .18s, filter .18s, opacity .18s;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px #07111a, 0 7px 18px #000b;
}

.workshop-radial-result__visual .workshop-rarity-numeral {
  box-sizing: border-box;
  min-width: 27px;
  height: 23px;
  top: 15px;
  bottom: auto;
  right: 18px;
}

.workshop-radial-result__visual img, .workshop-radial-result__visual .equipment-visual {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.workshop-radial button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #a8d8e8;
}

.workshop-radial button:disabled {
  cursor: default;
  opacity: 1;
}

.workshop-assembly-effects {
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.workshop-rarity-effect--common {
  --workshop-rarity-effect: #aeb9c0;
}

.workshop-rarity-effect--uncommon {
  --workshop-rarity-effect: #55c178;
}

.workshop-rarity-effect--rare {
  --workshop-rarity-effect: #4ca9ec;
}

.workshop-rarity-effect--epic {
  --workshop-rarity-effect: #af71e7;
}

.workshop-rarity-effect--legendary {
  --workshop-rarity-effect: #edc14f;
}

.workshop-rarity-effect--unreal {
  --workshop-rarity-effect: #ff4e63;
}

.workshop-assembly-lock {
  filter: drop-shadow(0 9px 10px #000b);
  width: 190px;
  height: 190px;
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.workshop-assembly-lock__frame, .workshop-assembly-lock__jaws, .workshop-assembly-lock__bolts {
  transform-box: view-box;
  transform-origin: center;
}

.workshop-assembly-lock__outer, .workshop-assembly-lock__track, .workshop-assembly-lock__inner, .workshop-assembly-lock__pressure {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.workshop-assembly-lock__outer {
  stroke: #64757c;
  stroke-width: 7px;
  stroke-dasharray: 3 7;
  filter: drop-shadow(0 1px #c7d0d2) drop-shadow(0 3px 3px #000d);
}

.workshop-assembly-lock__track {
  stroke: #14242b;
  stroke-width: 13px;
  filter: drop-shadow(0 1px #829198) drop-shadow(0 -2px #050b0e);
}

.workshop-assembly-lock__inner {
  stroke: #82949b;
  stroke-width: 2px;
  stroke-dasharray: 24 5;
  filter: drop-shadow(0 0 4px #000);
}

.workshop-assembly-lock__jaws path {
  fill: #293940;
  stroke: #91a0a5;
  stroke-width: 1.8px;
  stroke-linejoin: bevel;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 2px #000d);
}

.workshop-assembly-lock__bolts circle {
  fill: #cb842d;
  stroke: #24150a;
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px #f5ad43aa);
}

.workshop-assembly-lock__pressure {
  stroke: var(--workshop-rarity-effect);
  stroke-width: 2px;
  opacity: 0;
  filter: drop-shadow(0 0 5px var(--workshop-rarity-effect));
}

.workshop-assembly-seam {
  box-sizing: border-box;
  border: 2px solid var(--workshop-rarity-effect);
  opacity: 0;
  width: 154px;
  height: 154px;
  box-shadow: 0 0 9px var(--workshop-rarity-effect),
    inset 0 0 10px var(--workshop-rarity-effect);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.workshop-radial.is-revealing {
  animation: 2.35s linear both workshop-chassis-impact;
}

.workshop-radial.is-revealing .workshop-assembly-effects {
  opacity: 1;
}

.workshop-radial.is-revealing .workshop-assembly-lock {
  animation: 2.35s cubic-bezier(.2, .76, .2, 1) both workshop-lock-settle;
}

.workshop-radial.is-revealing .workshop-assembly-lock__frame, .workshop-radial.is-revealing .workshop-assembly-lock__bolts {
  animation: 2.35s cubic-bezier(.2, .76, .2, 1) both workshop-lock-ring;
}

.workshop-radial.is-revealing .workshop-assembly-lock__jaws {
  animation: 2.35s cubic-bezier(.2, .76, .2, 1) both workshop-lock-jaws;
}

.workshop-radial.is-revealing .workshop-assembly-lock__pressure {
  animation: 2.35s ease-out both workshop-pressure-ring;
}

.workshop-radial.is-revealing .workshop-assembly-seam {
  animation: 2.35s ease-out both workshop-seam-flash;
}

.workshop-radial.is-revealing .workshop-radial__connections line {
  stroke: var(--workshop-rarity-effect);
  stroke-width: 1.15px;
  stroke-dasharray: 3 8;
  filter: drop-shadow(0 0 2px var(--workshop-rarity-effect))
    drop-shadow(0 0 4px var(--workshop-rarity-effect));
  animation: 1.28s ease-in both workshop-feed-retract;
}

.workshop-radial.is-revealing .workshop-radial-node, .workshop-part-radial.is-revealing .workshop-part-radial__source {
  animation: 1.34s ease-in both workshop-input-consume;
  animation-delay: var(--workshop-input-delay, 0s);
}

.workshop-radial.is-revealing .workshop-radial-result__visual {
  animation: 2.35s ease-out both workshop-result-assemble;
}

.workshop-radial:not(.is-revealing) .workshop-radial-result__visual > img, .workshop-radial:not(.is-revealing) .workshop-radial-result__visual > .equipment-visual {
  filter: grayscale(.72) brightness(.56);
  opacity: .64;
}

.workshop-radial.is-claimed .workshop-radial-result__visual {
  border-color: var(--workshop-rarity-effect);
  box-shadow: inset 0 0 0 3px #07111a,
    0 0 12px color-mix(in srgb, var(--workshop-rarity-effect) 72%, transparent),
    0 8px 22px #000c;
}

.workshop-radial.is-claimed .workshop-radial__connections, .workshop-radial.is-claimed .workshop-radial-node, .workshop-part-radial.is-claimed .workshop-part-radial__source {
  visibility: hidden;
  opacity: 0;
  transition: opacity .18s, visibility 0s linear .18s;
}

.workshop-part-radial {
  aspect-ratio: 5 / 3;
  background: #050d13;
  border-radius: 0;
  min-height: 330px;
}

.workshop-part-radial:before {
  z-index: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(68px at 28%, #07131a 0 70%, #60737c 72% 75%, #101b22 77% 86%, #2b4956 88% 90%, #0000 92%), radial-gradient(68px at 72%, #07131a 0 70%, #60737c 72% 75%, #101b22 77% 86%, #2b4956 88% 90%, #0000 92%), linear-gradient(#0000 calc(50% - 10px), #718087 calc(50% - 10px) calc(50% - 8px), #17272f calc(50% - 8px) calc(50% + 8px), #02070b calc(50% + 8px) calc(50% + 11px), #0000 calc(50% + 11px)), repeating-linear-gradient(135deg, #ffffff05 0 1px, #0000 1px 12px), linear-gradient(145deg, #1a2a33, #0b171f 48%, #040a0f 100%);
  border: 1px solid #3b5661;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 4px #03080c, inset 0 0 0 5px #425b65, inset 0 24px 42px #42697a14, 0 12px 20px #0009;
}

.workshop-part-radial:after {
  z-index: 0;
  background: radial-gradient(circle at 50% 7%,
      #d28d35 0 3px,
      #281708 4px 6px,
      transparent 7px),
    radial-gradient(circle at 93% 50%,
      #d28d35 0 3px,
      #281708 4px 6px,
      transparent 7px),
    radial-gradient(circle at 50% 93%,
      #d28d35 0 3px,
      #281708 4px 6px,
      transparent 7px),
    radial-gradient(circle at 7% 50%,
      #d28d35 0 3px,
      #281708 4px 6px,
      transparent 7px),
    repeating-conic-gradient(from 8deg, #293b42 0 8deg, #111e24 8deg 16deg);
  content: "";
  pointer-events: none;
  border: 1px solid #6a7c82;
  border-radius: 50%;
  width: 148px;
  height: 148px;
  position: absolute;
  top: 50%;
  left: 72%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 6px #071117, inset 0 0 0 8px #718087, inset 0 0 22px #000d, 0 9px 14px #000b;
}

.workshop-part-radial__node {
  z-index: 2;
  color: #dbe8ed;
  cursor: default;
  background: none;
  border: 0;
  place-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  display: grid;
  position: absolute;
  top: 50%;
}

.workshop-part-radial__source {
  grid-template-rows: 112px 22px;
  left: 28%;
  transform: translate(-50%, -56px);
}

.workshop-part-radial__result {
  z-index: 3;
  left: 72%;
  transform: translate(-50%, -56px);
}

.workshop-part-radial__node .workshop-radial-node__visual, .workshop-part-radial__node .workshop-radial-result__visual {
  width: 112px;
  height: 112px;
}

.workshop-part-radial__node > strong {
  color: #e4edf0;
  white-space: nowrap;
  background: #07131fee;
  border: 1px solid #4d6d7d;
  border-radius: 999px;
  padding: 3px 8px;
  font: 800 .72rem / 1.1 ui-monospace, monospace;
}

.workshop-part-radial__node img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.workshop-part-radial__node.is-insufficient .workshop-radial-node__visual img {
  filter: grayscale() saturate(0) brightness(.58);
  opacity: .72;
}

.workshop-part-radial__node.is-insufficient .workshop-radial-node__visual {
  opacity: .88;
  border-color: #455966;
}

.workshop-part-radial__node.is-sufficient .workshop-radial-node__visual img {
  filter: none;
  opacity: 1;
}

.workshop-part-radial__node .workshop-rarity-numeral {
  z-index: 3;
  box-sizing: border-box;
  background: #07111ded;
  border-color: #7691a0;
  min-width: 24px;
  height: 21px;
  top: 11px;
  bottom: auto;
  right: 12px;
}

.workshop-part-radial__result .workshop-rarity-numeral {
  min-width: 27px;
  height: 23px;
  top: 14px;
  right: 16px;
}

.workshop-part-radial .workshop-assembly-effects {
  transform: translateX(22%);
}

@keyframes workshop-feed-retract {
  0% {
    stroke-dashoffset: 30px;
    opacity: .34;
  }

  32% {
    stroke-dashoffset: 15px;
    opacity: .9;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: .08;
  }
}

@keyframes workshop-input-consume {
  0%, 28% {
    filter: none;
    opacity: 1;
    scale: 1;
  }

  72% {
    filter: saturate(.72) brightness(.78);
    opacity: .62;
    scale: .96;
  }

  100% {
    filter: grayscale(.72) brightness(.58);
    opacity: .26;
    scale: .92;
  }
}

@keyframes workshop-lock-settle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
  }

  24% {
    opacity: .84;
  }

  49% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }

  53% {
    transform: translate(-50%, -50%) scale(.93);
  }

  59% {
    transform: translate(-50%, -50%) scale(1.015);
  }

  100% {
    opacity: .58;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes workshop-lock-ring {
  0% {
    transform: rotate(-20deg);
  }

  49% {
    transform: rotate(18deg);
  }

  53% {
    transform: rotate(28deg);
  }

  100% {
    transform: rotate(34deg);
  }
}

@keyframes workshop-lock-jaws {
  0%, 30% {
    opacity: .62;
    transform: scale(1.2);
  }

  49% {
    opacity: .96;
    transform: scale(1.06);
  }

  53% {
    opacity: 1;
    transform: scale(.92);
  }

  59%, 100% {
    opacity: .76;
    transform: scale(1);
  }
}

@keyframes workshop-pressure-ring {
  0%, 50% {
    opacity: 0;
    stroke-width: 1px;
  }

  53% {
    opacity: 1;
    stroke-width: 7px;
  }

  64%, 100% {
    opacity: 0;
    stroke-width: 1px;
  }
}

@keyframes workshop-seam-flash {
  0%, 50% {
    opacity: 0;
    scale: .88;
  }

  53% {
    opacity: .94;
    scale: 1.04;
  }

  66% {
    opacity: .22;
    scale: 1.12;
  }

  100% {
    opacity: 0;
    scale: 1.16;
  }
}

@keyframes workshop-chassis-impact {
  0%, 51%, 57%, 100% {
    translate: 0;
  }

  52% {
    translate: 1px;
  }

  53% {
    translate: -1px 1px;
  }

  54% {
    translate: 1px -1px;
  }

  55% {
    translate: -.5px;
  }
}

@keyframes workshop-result-assemble {
  0% {
    filter: grayscale(.72) brightness(.56) drop-shadow(0 0 #0000);
    opacity: .64;
    transform: scale(.98);
  }

  49% {
    filter: grayscale(.48) brightness(.7) drop-shadow(0 0 #0000);
    opacity: .78;
    transform: scale(.97);
  }

  53% {
    filter: grayscale(.2) brightness(.9)
      drop-shadow(0 0 4px var(--workshop-rarity-effect));
    opacity: .92;
    transform: scale(.94);
  }

  59% {
    filter: brightness(1.48) drop-shadow(0 0 16px var(--workshop-rarity-effect));
    opacity: 1;
    transform: scale(1.06);
  }

  74% {
    filter: brightness(1.12) drop-shadow(0 0 7px var(--workshop-rarity-effect));
    transform: scale(1.02);
  }

  100% {
    filter: brightness(1.05) drop-shadow(0 0 #0000);
    opacity: 1;
    transform: scale(1);
  }
}

.workshop-merge-summary {
  background: #081722;
  border: 1px solid #315b76;
  border-radius: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  display: grid;
}

.workshop-merge-summary > header {
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.workshop-merge-summary > header strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.workshop-merge-summary > header span {
  color: #9db7c3;
  white-space: nowrap;
  font-size: .72rem;
}

.workshop-merge-summary dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  display: grid;
}

.workshop-merge-summary dl div {
  background: #0b1e2c;
  border: 1px solid #294b60;
  border-radius: 0;
  gap: 4px;
  padding: 8px;
  display: grid;
}

.workshop-merge-summary dt {
  color: #83bfd2;
  letter-spacing: .08em;
  font: 800 .59rem / 1 ui-monospace, monospace;
}

.workshop-merge-summary dd {
  color: #e5edf0;
  margin: 0;
  font-size: .74rem;
  font-weight: 800;
}

.workshop-result-claim {
  z-index: 4;
  box-sizing: border-box;
  border: 1px solid var(--workshop-rarity-effect);
  color: #e9f1f3;
  width: min(100% - 20px, 340px);
  box-shadow: inset 0 1px #d9f5ff1f,
    0 0 18px color-mix(in srgb, var(--workshop-rarity-effect) 30%, transparent),
    0 8px 18px #000b;
  background: linear-gradient(135deg, #07131ff7, #0c2432f5);
  grid-template-columns: minmax(0, 1fr) minmax(122px, .72fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  animation: .22s ease-out both workshop-claim-arrive;
  display: grid;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.workshop-result-claim > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.workshop-result-claim span {
  color: #9fc4d2;
  letter-spacing: .1em;
  font: 800 .58rem / 1 ui-monospace, monospace;
}

.workshop-result-claim strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .79rem;
  overflow: hidden;
}

.workshop-result-claim small {
  letter-spacing: .05em;
  font: 900 .62rem / 1.1 ui-monospace, monospace;
}

.workshop-result-claim button {
  color: #04140b;
  cursor: pointer;
  background: linear-gradient(135deg, #8be7a8, #3aa968);
  border: 1px solid #83e2a2;
  border-radius: 0;
  min-height: 44px;
  font-weight: 900;
  box-shadow: inset 0 1px #d8ffe466, 0 0 14px #45c57838;
}

.workshop-result-claim button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #eaffef;
}

@keyframes workshop-claim-arrive {
  from {
    opacity: 0;
    translate: 0 8px;
  }

  to {
    opacity: 1;
    translate: 0;
  }
}

.workshop-item-info {
  z-index: 8;
  color: #e3edf0;
  background: #07131ff5;
  border: 1px solid #79b7ca;
  border-radius: 12px;
  gap: 9px;
  padding: 14px;
  display: grid;
  position: absolute;
  inset: auto 12px 12px;
  box-shadow: 0 12px 30px #000c;
}

.workshop-item-info p {
  color: #b9cbd2;
  margin: 0;
  font-size: .78rem;
  line-height: 1.45;
}

.workshop-item-info button {
  color: #dce9ed;
  background: #123245;
  border: 1px solid #517f91;
  border-radius: 8px;
  min-height: 40px;
  font-weight: 800;
}

.workshop-part-info-button {
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  padding: 0;
  display: grid;
}

.workshop-part-info-button:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #a8d8e8;
}

@media (max-width: 520px) {
  .workshop-radial {
    min-height: 340px;
  }

  .workshop-radial-node {
    --workshop-node-diameter: 56px;
  }

  .workshop-radial-node strong {
    font-size: .61rem;
  }

  .workshop-radial-node__visual .workshop-rarity-numeral {
    min-width: 17px;
    height: 17px;
    font-size: .58rem;
    bottom: 7px;
    right: 5px;
  }

  .workshop-radial-result {
    width: 112px;
    height: 112px;
  }

  .workshop-radial-result__visual {
    width: 108px;
    height: 108px;
  }

  .workshop-radial-result__visual .workshop-rarity-numeral {
    min-width: 24px;
    height: 21px;
    top: 12px;
    right: 14px;
  }

  .workshop-merge-summary dl {
    grid-template-columns: 1fr;
  }

  .workshop-merge-summary dl div {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
  }

  .workshop-merge-summary dd {
    text-align: right;
  }
}

@media (max-width: 360px) {
  .workshop-radial {
    min-height: 320px;
  }

  .workshop-radial-node {
    --workshop-node-diameter: 50px;
  }

  .workshop-radial-result {
    width: 100px;
    height: 100px;
  }

  .workshop-radial-result__visual {
    width: 96px;
    height: 96px;
  }

  .workshop-radial-result__visual .workshop-rarity-numeral {
    top: 11px;
    right: 12px;
  }
}

@media (max-width: 520px) {
  .workshop-surface .workshop-parts-card .workshop-part-visual {
    width: 96px;
    height: 96px;
  }

  .workshop-part-radial {
    min-height: 300px;
  }

  .workshop-part-radial__source {
    grid-template-rows: 88px 20px;
    left: 28%;
    transform: translate(-50%, -44px);
  }

  .workshop-part-radial__result {
    left: 72%;
    transform: translate(-50%, -44px);
  }

  .workshop-part-radial__node .workshop-radial-node__visual, .workshop-part-radial__node .workshop-radial-result__visual {
    width: 88px;
    height: 88px;
  }

  .workshop-part-radial__node .workshop-rarity-numeral, .workshop-part-radial__result .workshop-rarity-numeral {
    top: 9px;
    right: 9px;
  }
}

@media (max-width: 360px) {
  .workshop-surface .workshop-parts-card .workshop-part-visual {
    width: 88px;
    height: 88px;
  }

  .workshop-part-radial {
    min-height: 280px;
  }

  .workshop-part-radial__source {
    grid-template-rows: 76px 20px;
    left: 28%;
    transform: translate(-50%, -38px);
  }

  .workshop-part-radial__result {
    left: 72%;
    transform: translate(-50%, -38px);
  }

  .workshop-part-radial__node .workshop-radial-node__visual, .workshop-part-radial__node .workshop-radial-result__visual {
    width: 76px;
    height: 76px;
  }

  .workshop-part-radial__node > strong {
    font-size: .64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.game-shell, .gameplay-surface--store, .store-dialog) :is(button, [role="button"]):not(:disabled):not([aria-disabled="true"]) {
    transition: filter .01ms;
  }

  :is(.game-shell, .gameplay-surface--store, .store-dialog) :is(button, [role="button"]):not(:disabled):not([aria-disabled="true"]):active {
    translate: none;
    scale: none;
  }

  .workshop-sheet, .workshop-result-claim, .workshop-radial.is-revealing, .workshop-radial.is-revealing .workshop-assembly-lock, .workshop-radial.is-revealing .workshop-assembly-lock__frame, .workshop-radial.is-revealing .workshop-assembly-lock__bolts, .workshop-radial.is-revealing .workshop-assembly-lock__jaws, .workshop-radial.is-revealing .workshop-assembly-lock__pressure, .workshop-radial.is-revealing .workshop-assembly-seam, .workshop-radial.is-revealing .workshop-radial__connections line, .workshop-radial.is-revealing .workshop-radial-node, .workshop-part-radial.is-revealing .workshop-part-radial__source, .workshop-radial.is-revealing .workshop-radial-result__visual {
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}

.gameplay-surface--workshop .gameplay-store__controls-frame:before, .gameplay-surface--workshop .gameplay-store__controls-frame:after {
  content: none;
}

.gameplay-surface--workshop.is-crafting .gameplay-store__filters-frame, .gameplay-surface--workshop.is-crafting .gameplay-store__filter-divider {
  display: none;
}

.gameplay-surface--workshop.is-crafting .gameplay-store__catalog-scroll {
  inset: 16px 16px calc(var(--store-nav-height) + 6.5%);
}

.workshop-screen__hero-art {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.03) saturate(.96);
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.gameplay-surface--workshop .workshop-surface, .gameplay-surface--workshop .workshop-catalogue {
  width: 100%;
  max-width: none;
  margin: 0;
}

.gameplay-surface--workshop .workshop-surface {
  display: block;
}

.gameplay-surface--workshop .gameplay-state {
  border-radius: 0;
}

.gameplay-surface--workshop .workshop-tabs {
  background: none;
  border: 0;
  border-radius: 0;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}

.gameplay-surface--workshop .workshop-tabs button {
  color: #9eb2ba;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(#0d2431, #050d14);
  border: 1px solid #244d60;
  border-radius: 0;
  min-height: 44px;
  padding: 0 10px;
  font-size: 11px;
}

.gameplay-surface--workshop .workshop-tabs button[aria-selected="true"] {
  color: #ffe7a6;
  background: linear-gradient(#43311a, #171007);
  border-color: #d9a13e;
  box-shadow: inset 0 0 10px #e7a83b22, 0 0 8px #d69d3824;
}

.gameplay-surface--workshop .workshop-catalogue {
  box-sizing: border-box;
  gap: 10px;
  padding: 0 2px 16px;
  display: grid;
}

.gameplay-surface--workshop .workshop-catalogue__controls {
  z-index: 5;
  background: linear-gradient(#06131d 0 86%, #0000);
  gap: 8px;
  padding-bottom: 8px;
  display: grid;
  position: sticky;
  top: 0;
}

.gameplay-surface--workshop .workshop-search {
  margin: 0;
}

.gameplay-surface--workshop .workshop-search:before {
  content: none;
}

.gameplay-surface--workshop .workshop-search input {
  color: #e8f1f3;
  background: linear-gradient(#0e2837, #06121a);
  border-color: #315b76;
  border-radius: 0;
  min-height: 44px;
  padding-inline: 12px 42px;
}

.gameplay-surface--workshop .workshop-search input::placeholder {
  color: #8da4ad;
  opacity: 1;
}

.gameplay-surface--workshop .workshop-toolbar {
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 44%);
  gap: 8px;
  min-height: 44px;
  padding: 0;
  display: grid;
}

.gameplay-surface--workshop .workshop-toolbar label {
  background: #07131bd9;
  border: 1px solid #315b76;
  min-height: 44px;
  padding: 0 8px;
  line-height: 1.2;
}

.gameplay-surface--workshop .workshop-toolbar input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.gameplay-surface--workshop .workshop-sort, .gameplay-surface--workshop .workshop-sort__trigger {
  width: 100%;
}

.gameplay-surface--workshop .workshop-sort__trigger {
  background: linear-gradient(#153c50, #091a25);
  border: 1px solid #397b90;
  border-radius: 0;
  min-height: 44px;
}

.gameplay-surface--workshop .workshop-sort__menu {
  background: #06131d;
  border-color: #397b90;
  border-radius: 0;
  gap: 0;
  padding: 0;
}

.gameplay-surface--workshop .workshop-sort__menu button {
  border-radius: 0;
  min-height: 44px;
}

.gameplay-surface--workshop .workshop-cards, .gameplay-surface--workshop .workshop-part-groups {
  gap: 10px;
  display: grid;
}

.gameplay-surface--workshop .workshop-part-group {
  gap: 8px;
  display: grid;
}

.gameplay-surface--workshop .workshop-part-group > h2 {
  color: #e9f4f6;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid #2b5364;
  margin: 0;
  padding: 8px 2px 6px;
  font-size: 13px;
}

.gameplay-surface--workshop .workshop-catalogue-card {
  background: linear-gradient(90deg, #45d7ed08 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#45d7ed08 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(145deg, #102333, #071018);
  border-color: #315b76;
  border-radius: 0;
  box-shadow: inset 0 1px #dceeff12, 0 8px 18px #0006;
}

.gameplay-surface--workshop :is(.workshop-miner-slot, .workshop-part-visual, .workshop-part-art), .gameplay-surface--workshop .workshop-status-pill {
  border-radius: 0;
}

.gameplay-surface--workshop .workshop-filter-empty {
  background: #07131bd9;
  border-radius: 0;
}

.gameplay-surface--workshop .workshop-filter-empty button, .gameplay-surface--workshop .workshop-pagination button {
  border-radius: 0;
  min-height: 44px;
}

@media (max-height: 600px) and (orientation: landscape) {
  .gameplay-surface--workshop {
    --store-filter-height: 44px;
  }
}

.inventory-toast-viewport {
  z-index: 120;
  top: calc(env(safe-area-inset-top) + clamp(92px, 14vh, 132px));
  right: calc(env(safe-area-inset-right) + 14px);
  width: clamp(148px, 22vw, 188px);
  max-width: calc(100vw - env(safe-area-inset-right) - 28px);
  pointer-events: none;
  position: fixed;
}

.inventory-toast {
  box-sizing: border-box;
  color: #e7f1f4;
  white-space: normal;
  overflow-wrap: anywhere;
  background: linear-gradient(135deg, #10293aee, #07131ff5);
  border: 1px solid #5e91a6;
  border-left: 3px solid #78d0e6;
  border-radius: 0;
  align-items: center;
  min-height: 92px;
  padding: 11px 13px;
  font: 800 .76rem / 1.4 ui-monospace, monospace;
  animation: .18s ease-out both inventory-toast-in;
  display: grid;
  box-shadow: 0 10px 28px #000a, inset 0 0 0 1px #78d0e60d;
}

.inventory-toast--with-image {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
}

.inventory-toast > img {
  object-fit: contain;
  width: 42px;
  height: 42px;
}

.inventory-toast__copy {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.inventory-toast__copy > strong {
  font: inherit;
}

.inventory-toast__copy > small {
  text-transform: uppercase;
  font-size: .68rem;
  line-height: 1.2;
}

@keyframes inventory-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .inventory-toast-viewport {
    top: calc(env(safe-area-inset-top) + clamp(96px, 16vh, 136px));
    right: calc(env(safe-area-inset-right) + 12px);
    width: clamp(140px, 43vw, 168px);
    max-width: calc(100vw - env(safe-area-inset-right) - 24px);
  }

  .inventory-toast {
    min-height: 88px;
    padding: 10px 12px;
    font-size: .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inventory-toast {
    animation-duration: .01ms;
  }
}

.profile-screen {
  gap: 16px;
  width: min(100%, 760px);
  margin-inline: auto;
}

.profile-screen > header {
  align-items: flex-start;
}

.profile-header__actions {
  align-items: center;
  gap: 8px;
  margin-right: 48px;
  display: flex;
}

.profile-language-switcher {
  border: 1px solid var(--cs-blue-border);
  background: #07131eb8;
  border-radius: 9px;
  gap: 4px;
  padding: 3px;
  display: flex;
}

.profile-language-switcher button {
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  place-items: center;
  width: 34px;
  min-height: 30px;
  padding: 2px;
  font-size: 1.15rem;
  line-height: 1;
  display: grid;
}

.profile-language-switcher button:hover, .profile-language-switcher button:focus-visible, .profile-language-switcher button.is-active {
  border-color: var(--cs-cyan);
  background: #2a769a47;
  outline: none;
}

.profile-subtitle {
  max-width: 520px;
  color: var(--cs-steel-muted);
  margin: 6px 0 0;
  line-height: 1.45;
}

.profile-panel {
  margin: 0;
}

.profile-audio-options {
  gap: 8px;
  display: grid;
}

.profile-audio-options button {
  border: 1px solid var(--cs-blue-border);
  min-height: 54px;
  color: var(--cs-steel);
  text-align: left;
  cursor: pointer;
  background: #07131e9e;
  border-radius: 0;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  display: grid;
}

.profile-audio-options button.is-enabled {
  border-color: color-mix(in srgb, var(--cs-cyan) 72%, var(--cs-blue-border));
  background: #0c2a39b8;
}

.profile-audio-options button:hover, .profile-audio-options button:focus-visible {
  border-color: var(--cs-cyan);
  outline: 2px solid color-mix(in srgb, var(--cs-cyan) 30%, transparent);
  outline-offset: 1px;
}

.profile-audio-option__icon {
  border: 1px solid var(--cs-blue-border);
  width: 38px;
  height: 38px;
  color: var(--cs-cyan);
  background: #0c1d2b;
  place-items: center;
  font: 800 .72rem / 1 ui-monospace, monospace;
  display: grid;
}

.profile-audio-options button > span:nth-child(2) {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.profile-audio-options strong {
  font-size: .85rem;
}

.profile-audio-options small {
  color: var(--cs-steel-muted);
  font-size: .7rem;
  line-height: 1.35;
}

.profile-audio-option__state {
  border: 1px solid var(--cs-steel-muted);
  min-width: 48px;
  color: var(--cs-steel-muted);
  text-align: center;
  padding: 5px 7px;
  font: 800 .7rem / 1 ui-monospace, monospace;
}

.profile-audio-options button.is-enabled .profile-audio-option__state {
  border-color: var(--cs-cyan);
  color: var(--cs-cyan);
}

.profile-language-panel__intro {
  color: var(--cs-steel-muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.profile-language-options {
  border: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  display: grid;
}

.profile-language-option {
  border: 1px solid var(--cs-blue-border);
  min-height: 44px;
  color: var(--cs-steel);
  cursor: pointer;
  background: #07131e80;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: flex;
}

.profile-language-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--cs-cyan);
  flex: none;
  margin: 0;
}

.profile-language-option:focus-within {
  border-color: var(--cs-cyan);
  outline: 2px solid color-mix(in srgb, var(--cs-cyan) 30%, transparent);
  outline-offset: 1px;
}

.visually-hidden {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.profile-card__identity {
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 14px;
  display: flex;
}

.profile-card__avatar {
  border: 1px solid var(--cs-cyan);
  width: 48px;
  height: 48px;
  color: var(--cs-cyan);
  background: #102638;
  border-radius: 50%;
  flex: 0 0 48px;
  place-items: center;
  display: grid;
  overflow: hidden;
}

.profile-card__avatar img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.profile-card__avatar .gameplay-icon {
  width: 26px;
  height: 26px;
}

.profile-card__username {
  color: var(--cs-steel);
  margin: 0;
  font-weight: 750;
}

.profile-card__hint {
  color: var(--cs-steel-muted);
  margin: 3px 0 0;
  font-size: .74rem;
}

.profile-card__details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  display: grid;
}

.profile-card__details div {
  border: 1px solid var(--cs-blue-border);
  background: #07131e80;
  min-width: 0;
  padding: 10px 12px;
}

.profile-card__details dt {
  color: var(--cs-steel-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .72rem;
}

.profile-card__details dd {
  overflow-wrap: anywhere;
  color: var(--cs-steel);
  margin: 4px 0 0;
  font-weight: 700;
}

.profile-training-reactivate {
  color: #fff1ba;
  letter-spacing: .04em;
  cursor: pointer;
  background: linear-gradient(#60451c, #25190a);
  border: 1px solid #b9934e;
  border-radius: 0;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  font-weight: 800;
}

.profile-training-reactivate:hover, .profile-training-reactivate:focus-visible {
  outline-offset: 1px;
  border-color: #edc14f;
  outline: 2px solid #edc14f55;
}

.profile-promo-panel form {
  gap: 10px;
  display: grid;
}

.profile-promo-panel label {
  color: var(--cs-steel-muted);
  font-size: .78rem;
  font-weight: 700;
}

.profile-promo-panel__intro {
  color: var(--cs-steel-muted);
  margin: 0 0 2px;
  line-height: 1.45;
}

.profile-promo-card__row {
  gap: 10px;
  display: flex;
}

.profile-promo-panel input {
  border: 1px solid var(--cs-blue-border);
  min-width: 0;
  color: var(--cs-steel);
  letter-spacing: .04em;
  background: #0c1d2b;
  flex: 1;
  padding: 10px 12px;
  font: 800 .95rem / 1.2 ui-monospace, monospace;
}

.profile-promo-panel input:focus-visible {
  border-color: var(--cs-cyan);
  outline: 2px solid color-mix(in srgb, var(--cs-cyan) 30%, transparent);
  outline-offset: 1px;
}

.profile-promo-panel button {
  border: 1px solid var(--cs-blue-border);
  min-height: 34px;
  color: var(--cs-steel-muted);
  cursor: pointer;
  background: #0c1d2b;
  flex: none;
  padding: 7px 10px;
  font-weight: 750;
}

.profile-promo-panel button:disabled {
  cursor: wait;
  opacity: .65;
}

.profile-promo-panel small {
  color: var(--cs-steel-muted);
  line-height: 1.45;
}

.profile-promo-card__result {
  margin: 2px 0 0;
  padding: 10px 12px;
  font-weight: 700;
}

.profile-promo-card__result--success {
  color: #9cddb1;
  background: #1e5c4547;
  border: 1px solid #55c1788c;
}

.profile-promo-card__result--error {
  color: #ffc3bd;
  background: #66222a5c;
  border: 1px solid #e071719e;
}

@media (max-width: 520px) {
  .profile-card__details {
    grid-template-columns: 1fr;
  }

  .profile-promo-card__row {
    grid-template-columns: minmax(0, 1fr);
    display: grid;
  }

  .profile-promo-panel button {
    min-height: 44px;
  }
}

.gameplay-surface--profile.profile-screen {
  gap: 0;
  width: 100%;
  margin: 0;
}

.gameplay-surface--profile .gameplay-store__controls-frame:before, .gameplay-surface--profile .gameplay-store__controls-frame:after {
  content: none;
}

.profile-hero {
  z-index: 1;
  position: absolute;
  inset: 0;
}

.profile-hero__art {
  object-fit: contain;
  object-position: center;
  filter: brightness(1.03) saturate(.96);
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.gameplay-surface--profile .gameplay-store__filters-frame, .gameplay-surface--profile .gameplay-store__filter-divider {
  display: none;
}

.gameplay-surface--profile .gameplay-store__catalog-scroll {
  inset: 31px 19px calc(var(--store-nav-height) + 6.5%);
  padding: 0;
}

.profile-content {
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 100%;
  display: flex;
}

.profile-module {
  background: linear-gradient(90deg, #45d7ed07 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#45d7ed07 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#0b202cf0, #061019f2);
  border: 1px solid #294e5d;
  border-radius: 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px #8be8f51c;
}

.profile-module:before, .profile-audio-button:before {
  content: "";
  background: #72d8ed;
  width: 48px;
  height: 2px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 7px #72d8ed80;
}

.profile-module__head {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 7px 9px 4px;
  display: flex;
}

.profile-module__head h2 {
  color: #c6d7dc;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  font-size: 10px;
  font-weight: 900;
}

.profile-module__head small {
  color: #72d8ed;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 800;
  overflow: hidden;
}

.profile-identity-module {
  flex: 0 0 94px;
}

.profile-identity {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 9px 7px;
  display: grid;
}

.profile-identity__avatar {
  color: #d7f8ff;
  background: #071820;
  border: 1px solid #68d8eb;
  border-radius: 50%;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
  overflow: hidden;
  box-shadow: inset 0 0 18px #61d9ef26, 0 0 9px #61d9ef26;
}

.profile-identity__avatar img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.profile-identity__avatar .gameplay-icon {
  width: 26px;
  height: 26px;
}

.profile-identity__copy {
  min-width: 0;
}

.profile-identity__copy :is(strong, span, small) {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.profile-identity__copy strong {
  color: #f4f8f9;
  font-size: 15px;
  line-height: 18px;
}

.profile-identity__copy span {
  color: #71d6e9;
  margin-top: 2px;
  font-size: 10px;
}

.profile-identity__copy small {
  color: #829aa3;
  margin-top: 5px;
  font: 700 9px / 12px ui-monospace, monospace;
}

.profile-identity__status {
  justify-items: end;
  gap: 4px;
  min-width: 62px;
  display: grid;
}

.profile-identity__status b {
  color: #74df9a;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 9px;
}

.profile-identity__status span {
  color: #718891;
  font-size: 8px;
}

.profile-language-module {
  flex: 0 0 130px;
}

.profile-language-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 0 9px 8px;
  display: grid;
}

.profile-language-button {
  cursor: pointer;
  background: #07151e;
  border: 1px solid #2b4f5f;
  border-radius: 0;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 4px 7px;
  transition: filter 90ms, transform 90ms;
  display: grid;
}

.profile-language-button.is-active {
  background: linear-gradient(#273125, #101b1d);
  border-color: #e2b748;
  box-shadow: inset 0 0 12px #edc14f20;
}

.profile-language-button:disabled {
  cursor: not-allowed;
  filter: grayscale(.38) brightness(.62);
  opacity: .64;
}

.profile-language-button:not(:disabled):hover {
  filter: brightness(1.12);
}

.profile-language-button:not(:disabled):active {
  filter: brightness(.88);
  transform: translateY(1px) scale(.97);
}

.profile-language-button:focus-visible, .profile-audio-button:focus-visible, .profile-training-module button:focus-visible, .profile-promo-module :is(input, button):focus-visible {
  outline-offset: 1px;
  outline: 2px solid #72d8ed99;
}

.profile-language-button svg {
  border: 1px solid #91a4aa55;
  width: 34px;
  height: 23px;
  box-shadow: 0 2px 5px #0008;
}

.profile-audio-grid {
  flex: 0 0 76px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.profile-audio-button {
  cursor: pointer;
  background: linear-gradient(90deg, #45d7ed07 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#0b202cf0, #061019f2);
  border: 1px solid #315869;
  border-radius: 0;
  place-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 7px 12px;
  transition: filter 90ms, transform 90ms;
  display: grid;
  position: relative;
  box-shadow: inset 0 1px #8be8f51c;
}

.profile-audio-button:before {
  width: 42px;
}

.profile-audio-button:hover {
  filter: brightness(1.12);
}

.profile-audio-button:active {
  filter: brightness(.86);
  transform: translateY(1px) scale(.985);
}

.profile-audio-button img {
  object-fit: contain;
  opacity: .94;
  width: 40px;
  height: 40px;
}

.profile-audio-button__led {
  background: #d85b5b;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  position: absolute;
  top: 8px;
  right: 9px;
  box-shadow: 0 0 7px #d85b5bb0;
}

.profile-audio-button.is-enabled .profile-audio-button__led {
  background: #53d781;
  box-shadow: 0 0 7px #53d781b0;
}

.profile-training-module {
  flex: 0 0 50px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 3px 8px 3px 10px;
  display: grid;
}

.profile-training-module__copy {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.profile-training-module__copy strong {
  color: #d7e2e6;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10px;
}

.profile-training-module__copy small {
  color: #708892;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  overflow: hidden;
}

.profile-training-module button, .profile-promo-module button {
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: 0;
  min-height: 44px;
  font-size: 9px;
  font-weight: 900;
  transition: filter 90ms, transform 90ms;
}

.profile-training-module button {
  color: #e8d39b;
  background: linear-gradient(#2b2415, #141109);
  border: 1px solid #7c6336;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  display: grid;
}

.profile-training-module button:hover, .profile-promo-module button:hover {
  filter: brightness(1.12);
}

.profile-training-module button:active, .profile-promo-module button:active {
  filter: brightness(.86);
  transform: translateY(1px) scale(.98);
}

.profile-promo-module {
  flex: none;
  min-height: 92px;
}

.profile-promo-module__row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 0 9px 7px;
  display: grid;
}

.profile-promo-module input {
  color: #dce9ec;
  letter-spacing: .05em;
  background: #06131c;
  border: 1px solid #315464;
  border-radius: 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  font: 800 11px / 1 ui-monospace, monospace;
}

.profile-promo-module button {
  color: #fff2bb;
  background: linear-gradient(#6c4d16, #2d1d08);
  border: 1px solid #bc8c32;
  padding: 0 11px;
}

.profile-promo-module button:disabled {
  cursor: wait;
  opacity: .65;
}

.gameplay-surface--profile .profile-promo-card__result {
  margin: 0 9px 8px;
  padding: 7px 9px;
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 360px) {
  .gameplay-surface--profile .gameplay-store__catalog-scroll {
    inset-inline: 17px;
  }

  .profile-identity {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .profile-identity__status {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 1280px) {
  .gameplay-surface--profile .gameplay-store__catalog-scroll {
    left: clamp(32px, 5vw, 54px);
    right: clamp(32px, 5vw, 54px);
  }

  .profile-language-module {
    flex-basis: 80px;
  }

  .profile-language-grid {
    grid-template-columns: repeat(9, minmax(44px, 1fr));
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .gameplay-surface--profile .gameplay-store__catalog-scroll {
    inset: 24px 16px calc(var(--store-nav-height) + 6.5%);
  }

  .profile-content {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-language-button, .profile-audio-button, .profile-training-module button, .profile-promo-module button {
    transition: none;
  }
}

body .gameplay-surface.gameplay-surface--expeditions {
  --expedition-shell-width: min(430px,
    calc(100vw - 12px - var(--cs-safe-left, 0px) - var(--cs-safe-right, 0px)));
  --expedition-shell-top: calc(var(--cs-safe-top, 0px) + 18px);
  --expedition-header-height: clamp(132px,
    calc(var(--expedition-shell-width) * .36),
    148px);
  --expedition-shell-overlap: 12px;
  isolation: isolate;
  background: linear-gradient(#01060a40, #010508b3), url("/images/cryptoshelter-blueprint-wall-v1.png") center / 100% 100% no-repeat;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
}

body .gameplay-surface.gameplay-surface--expeditions:before {
  z-index: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 50% 22%, #5bb2c514, #0000 34%), linear-gradient(#0105081f, #01050894);
  width: auto;
  height: auto;
  margin: 0;
  position: fixed;
  inset: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

body .gameplay-surface.gameplay-surface--expeditions:after {
  z-index: 0;
  opacity: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #00000052, #0000 22% 78%, #00000052);
  animation: none;
  position: fixed;
  inset: 0;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.gameplay-expedition__header-frame, .gameplay-expedition__terminal-frame {
  width: var(--expedition-shell-width);
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

.gameplay-expedition__header-frame {
  top: var(--expedition-shell-top);
  z-index: 15;
  height: var(--expedition-header-height);
  isolation: isolate;
  overflow: hidden;
}

.gameplay-expedition__header-frame:before {
  z-index: 3;
  content: "";
  pointer-events: none;
  background: url("/game/ui/store-controls-shell-frame-v2.png") center / 100% 100% no-repeat;
  position: absolute;
  inset: 0;
}

.gameplay-expedition__header-frame:after {
  z-index: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #56cde10d 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#56cde10d 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(100deg, #06141e 0%, #0b1a21 58%, #030a10 100%);
  position: absolute;
  inset: 14px 17px 12px;
  box-shadow: inset 0 0 28px #000000b8;
}

.gameplay-expedition__header {
  z-index: 2;
  box-sizing: border-box;
  width: auto;
  height: 100%;
  min-height: 0;
  box-shadow: none;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 25px 25px 20px 29px;
  display: flex;
  position: relative;
}

.gameplay-expedition__header:before {
  content: none;
}

.gameplay-expedition__header > div {
  min-width: 0;
}

.gameplay-expedition__header .eyebrow {
  color: #a9c3cb;
  letter-spacing: .08em;
  margin: 0 0 4px;
  font: 750 clamp(.65rem, 2.2vw, .75rem) / 1 Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-expedition__header h1 {
  color: #f1f5f2;
  letter-spacing: .025em;
  text-shadow: 0 2px 4px #000;
  text-transform: uppercase;
  margin: 0;
  font: 900 clamp(1.7rem, 8vw, 2.35rem) / .95 Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-expedition__header .gameplay-surface__back {
  color: #d9edf1;
  background: linear-gradient(#102733, #06121a);
  border: 1px solid #306b7d;
  border-radius: 0;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 1.4rem;
  display: grid;
  position: static;
  box-shadow: inset 0 0 0 2px #02090e, inset 0 1px #adecf82e;
}

.gameplay-expedition__terminal-frame {
  top: calc(var(--expedition-shell-top) + var(--expedition-header-height) -
      var(--expedition-shell-overlap));
  z-index: 14;
  isolation: isolate;
  bottom: 0;
  overflow: hidden;
}

.gameplay-expedition__terminal-frame:before {
  z-index: 3;
  content: "";
  pointer-events: none;
  background: url("/game/ui/store-catalog-shell-frame-v2.png") center / 100% 100% no-repeat;
  position: absolute;
  inset: 0;
}

.gameplay-expedition__terminal-frame:after {
  z-index: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #45d7ed0a 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#45d7ed0a 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#05111af7, #02080dfa);
  position: absolute;
  inset: 15px 13px 18px;
}

.gameplay-expedition__scroll {
  z-index: 1;
  overscroll-behavior-y: none;
  scrollbar-color: #47778d #030a11;
  scrollbar-width: thin;
  touch-action: pan-y;
  padding: 3px 2px 20px;
  position: absolute;
  inset: 31px 17px 28px;
  overflow: hidden auto;
}

.gameplay-expedition__scroll:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #72d8ed9e;
}

.gameplay-surface--expeditions .expedition-console {
  gap: 10px;
  display: grid;
}

.gameplay-surface--expeditions .gameplay-state {
  background: #040e15eb;
  border-color: #5cafc275;
  margin: 0;
}

.gameplay-surface--expeditions .expedition-panel {
  color: #e8f2f3;
  background: linear-gradient(#0b1e28f0, #030c13f7);
  border: 1px solid #608e9e75;
  padding: 12px;
  box-shadow: inset 0 1px #daf4f912, 0 8px 20px #00000038;
}

.gameplay-surface--expeditions .expedition-panel:before {
  background: linear-gradient(90deg, #0000, #5fd7e794, #0000);
  left: 16px;
  right: 16px;
}

.gameplay-surface--expeditions .expedition-panel__heading h2 {
  color: #edf5f4;
  letter-spacing: .035em;
  text-transform: uppercase;
  font: 850 .95rem / 1.1 Arial Narrow, Roboto Condensed, sans-serif;
}

.gameplay-surface--expeditions .expedition-panel__heading .eyebrow {
  color: #7fa7b1;
  font-size: .62rem;
}

.gameplay-surface--expeditions .expedition-runs {
  padding-block: 10px;
}

.gameplay-surface--expeditions .expedition-run {
  grid-template-columns: minmax(0, 1fr) minmax(125px, .9fr);
  align-items: center;
  gap: 8px 10px;
  padding: 10px 0;
  display: grid;
}

.gameplay-surface--expeditions .expedition-run__portrait {
  border-color: #5eadbf7a;
  border-radius: 0;
  width: 50px;
  height: 58px;
}

.gameplay-surface--expeditions .expedition-run__progress {
  align-self: center;
}

.gameplay-surface--expeditions .expedition-progress {
  background: #02090d;
  border-color: #709ca975;
  height: 27px;
}

.gameplay-surface--expeditions .expedition-progress__fill {
  background: linear-gradient(90deg, #7b5416, #d18f21 72%, #f4bf51);
  box-shadow: 0 0 8px #eca8322e;
}

.expedition-terminal {
  padding-bottom: 11px;
}

.expedition-map {
  background: #031019;
  border: 1px solid #4392a4a8;
  min-height: 390px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px #01070b, inset 0 0 30px #000000d1;
}

.expedition-map:after {
  z-index: 1;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(#0000 0 3px, #7edceb07 4px);
  position: absolute;
  inset: 0;
}

.expedition-map__drawing {
  color: #58abbe1f;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.expedition-map__water {
  fill: url("#expedition-water");
  stroke: #40b0c673;
  stroke-width: 5px;
}

.expedition-map__river {
  fill: none;
  stroke: #32899e8c;
  stroke-width: 8px;
}

.expedition-map__contours, .expedition-map__infrastructure, .expedition-map__power {
  fill: none;
  stroke: #6aaab838;
  stroke-width: 3px;
}

.expedition-map__contours {
  stroke-width: 2px;
}

.expedition-map__infrastructure {
  stroke: #8e9c9b5c;
  stroke-dasharray: 12 7;
}

.expedition-map__power {
  stroke: #be5b3d73;
  stroke-dasharray: 18 9 2 9;
}

.expedition-map__selected-route {
  fill: none;
  stroke: #e5a62e;
  stroke-width: 7px;
  stroke-linecap: round;
  stroke-dasharray: 1350;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px #eeae3499);
  animation: .65s ease-out both expedition-route-draw;
}

@keyframes expedition-route-draw {
  from {
    stroke-dashoffset: 1350px;
  }
}

.expedition-map__shelter {
  z-index: 3;
  color: #fff1c8;
  background: #20170a;
  border: 2px solid #e5a62e;
  place-items: center;
  width: 46px;
  height: 46px;
  display: grid;
  position: absolute;
  bottom: 8%;
  left: 12%;
  transform: translate(-50%, 50%) rotate(45deg);
  box-shadow: 0 0 12px #eeae3440;
}

.expedition-map__shelter > span {
  font-size: 1.2rem;
  transform: rotate(-45deg);
}

.expedition-map__node {
  z-index: 4;
  color: #dff5f7;
  text-align: left;
  background: #041119f0;
  border: 1px solid #5ac1d6ad;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: min(128px, 35%);
  min-height: 46px;
  padding: 5px 7px 5px 5px;
  display: grid;
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 1px #01070b, 0 4px 12px #00000080;
}

.expedition-map__node-number {
  color: #e9fbff;
  background: #09212d;
  border: 1px solid #68d2e6;
  place-items: center;
  width: 32px;
  height: 32px;
  font: 900 .9rem / 1 ui-monospace, monospace;
  display: grid;
}

.expedition-map__node-name {
  text-overflow: ellipsis;
  font: 750 .63rem / 1.1 Arial Narrow, Roboto Condensed, sans-serif;
  overflow: hidden;
}

.expedition-map__node:is(:hover, :focus-visible) {
  border-color: #9ee9f3;
  outline: none;
  box-shadow: inset 0 0 0 1px #01070b, 0 0 0 2px #5ccce033, 0 5px 14px #000;
}

.expedition-map__node.is-selected {
  color: #fff2d2;
  background: #211505;
  border-color: #f0b343;
  animation: 2.2s ease-in-out infinite expedition-node-pulse;
  box-shadow: inset 0 0 0 1px #050200, 0 0 0 2px #eca83238, 0 0 16px #eca83257;
}

.expedition-map__node.is-selected .expedition-map__node-number {
  color: #201300;
  background: #efb33f;
  border-color: #f0b343;
}

@keyframes expedition-node-pulse {
  50% {
    box-shadow: inset 0 0 0 1px #050200, 0 0 0 3px #eca8321f, 0 0 22px #eca83266;
  }
}

.expedition-map__legend {
  z-index: 3;
  color: #74949d;
  background: #02090ed9;
  border: 1px solid #4c86956b;
  gap: 4px;
  padding: 6px 8px;
  font-size: .55rem;
  display: grid;
  position: absolute;
  bottom: 7px;
  right: 8px;
}

.expedition-map__legend span {
  align-items: center;
  gap: 5px;
  display: flex;
}

.expedition-map__legend i {
  background: #58a5b5;
  width: 13px;
  height: 2px;
}

.expedition-map__legend span:last-child i {
  background: #c5812d;
}

.expedition-map-selection {
  background: linear-gradient(90deg, #281b07e6, #050f15f0);
  border: 1px solid #d191276b;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 9px 10px;
  display: grid;
}

.expedition-map-selection > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.expedition-map-selection small {
  color: #a68c62;
  text-transform: uppercase;
  font-size: .58rem;
}

.expedition-map-selection strong {
  color: #f6e6bd;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.expedition-map-selection span {
  color: #9fb3b7;
  font-size: .68rem;
}

.expedition-map-selection button, .expedition-dossier__primary {
  color: #171006;
  text-transform: uppercase;
  background: linear-gradient(#f0bd54, #b96d12);
  border: 1px solid #d99420;
  width: 100%;
  min-height: 46px;
  padding: 9px 13px;
  font: 850 .72rem / 1 Arial Narrow, Roboto Condensed, sans-serif;
  box-shadow: inset 0 1px #fff4bb, inset 0 -2px #4b260273;
}

.expedition-dossier, .expedition-route-detail {
  gap: 11px;
  display: grid;
}

.expedition-back-button {
  color: #c8dce0;
  background: #071722;
  border: 1px solid #4b899885;
  width: fit-content;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 750;
}

.expedition-dossier__visual {
  background: #02080c;
  border: 1px solid #56a3b57a;
  min-height: 174px;
  position: relative;
  overflow: hidden;
}

.expedition-dossier__visual img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 174px;
}

.expedition-dossier__visual:after {
  content: "";
  pointer-events: none;
  background: linear-gradient(#0000 45%, #01070bd6);
  position: absolute;
  inset: 0;
}

.expedition-dossier__scan {
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(#0000 0 3px, #81deed08 4px);
  position: absolute;
  inset: 0;
}

.expedition-dossier__body {
  gap: 10px;
  display: grid;
}

.expedition-dossier__body h2 {
  color: #f2f4ee;
  margin: 0;
  font: 900 1.35rem / 1 Arial Narrow, Roboto Condensed, sans-serif;
}

.expedition-dossier__body > p {
  margin: 0;
}

.expedition-dossier__metrics {
  background: #486f7a42;
  border: 1px solid #53829161;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  display: grid;
}

.expedition-dossier__metrics > span, .expedition-dossier__metrics > .expedition-difficulty {
  background: #06131c;
  align-content: center;
  gap: 5px;
  min-height: 60px;
  padding: 8px;
  display: grid;
}

.expedition-dossier__metrics small {
  color: #7999a1;
  text-transform: uppercase;
  font-size: .58rem;
}

.expedition-dossier__metrics strong {
  color: #eff6f3;
}

.expedition-dossier__metrics .expedition-difficulty__segments {
  grid-template-columns: repeat(5, 1fr);
}

.expedition-dossier__metrics .expedition-difficulty__segments > span:nth-child(n+6) {
  display: none;
}

.expedition-dossier__requirements {
  color: #8ca9af;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .72rem;
  display: flex;
}

.expedition-dossier__requirements span {
  background: #06121a;
  border: 1px solid #4a7d8b61;
  padding: 5px 8px;
}

.expedition-dossier__requirements b {
  color: #e9f3f2;
}

.expedition-dossier__primary {
  width: 100%;
  min-height: 50px;
  font-size: .9rem;
}

.expedition-raider-route-summary {
  background: #06131c;
  border: 1px solid #5593a275;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 78px;
  display: grid;
  overflow: hidden;
}

.expedition-raider-route-summary img {
  object-fit: cover;
  width: 92px;
  height: 100%;
}

.expedition-raider-route-summary > div {
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  display: grid;
}

.expedition-raider-route-summary small {
  color: #73949c;
  text-transform: uppercase;
  font-size: .58rem;
}

.expedition-raider-route-summary strong {
  color: #f2f6f3;
}

.expedition-raider-route-summary span {
  color: #a4b7ba;
  font-size: .68rem;
}

.gameplay-surface--expeditions .expedition-character {
  background: linear-gradient(145deg, #0c1f2af5, #030c12fa);
  border-color: #568b9970;
}

.gameplay-surface--expeditions .expedition-character__portrait {
  background: #02090e;
  border-color: #5fa6b875;
  border-radius: 0;
  width: 82px;
  height: 112px;
}

.gameplay-surface--expeditions .expedition-character__portrait img {
  object-fit: cover;
  object-position: top center;
}

.gameplay-surface--expeditions .expedition-deploy-button {
  color: #161006;
  background: linear-gradient(#e8b552, #a85f10);
  border: 1px solid #c27d1d;
  min-height: 48px;
  font-weight: 850;
}

.gameplay-surface--expeditions .expedition-deploy-button:disabled {
  color: #6f858b;
  background: #071218;
  border-color: #54707873;
}

.expedition-history {
  background: #030c12eb;
  border: 1px solid #4f828f6b;
}

.expedition-history > summary {
  box-sizing: border-box;
  color: #bdcfd2;
  cursor: pointer;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 12px;
  font: 800 .78rem / 1 Arial Narrow, Roboto Condensed, sans-serif;
  list-style: none;
  display: flex;
}

.expedition-history > summary::-webkit-details-marker {
  display: none;
}

.expedition-history > summary strong {
  color: #e2a641;
}

.expedition-history__counts {
  color: #91a9ad;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  display: flex;
}

.expedition-history__counts > span {
  white-space: nowrap;
  align-items: baseline;
  gap: 4px;
  display: inline-flex;
}

.expedition-history[open] > summary {
  border-bottom: 1px solid #4f828f4d;
}

.expedition-history .expedition-runs {
  box-shadow: none;
  border: 0;
}

@media (min-width: 680px) {
  body .gameplay-surface.gameplay-surface--expeditions {
    --expedition-shell-width: calc(100vw - var(--cs-safe-left, 0px) - var(--cs-safe-right, 0px));
    --expedition-header-height: clamp(250px,
      calc(var(--expedition-shell-width) * .3333 + 27px),
      460px);
  }

  .gameplay-expedition__scroll {
    inset: 20px 22px 24px;
  }

  .gameplay-surface--expeditions .expedition-console {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gameplay-surface--expeditions .expedition-console > :is(.gameplay-state, .expedition-terminal, .expedition-dossier, .expedition-route-detail, .expedition-history) {
    grid-column: 1 / -1;
  }

  .gameplay-surface--expeditions .expedition-runs {
    min-width: 0;
  }

  .expedition-map {
    min-height: 420px;
  }

  .expedition-character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expedition-dossier {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  }

  .expedition-dossier > .expedition-back-button {
    grid-column: 1 / -1;
  }

  .expedition-dossier__visual, .expedition-dossier__visual img {
    min-height: 330px;
  }
}

.hall-edit-mode {
  --editor-blue-base: #0b1d2a;
  --editor-structural-border: var(--cs-blue-border);
  --editor-black-grid: var(--cs-blueprint-grid);
  --editor-blue-grid: var(--cs-blueprint-grid);
  color: var(--cs-steel);
  background-color: #07111d;
  background-image: var(--cs-blueprint-grid),
    radial-gradient(ellipse at 50% 0, #183a55 0, #07111d 54%, #03080e 100%);
  background-size: 18px 18px, 18px 18px, auto;
}

.hall-edit-mode :is(.hall-edit-mode__header, .hall-edit-mode__segments, .hall-edit-layout, .hall-edit-drawer, .hall-edit-position, .hall-edit-equipment, .hall-edit-slot, .hall-edit-miner-stats div, .hall-interior-state, .hall-interior-library, .hall-interior-choice, .hall-interior-library__preview, button) {
  border-radius: 0;
}

.hall-edit-mode__header {
  box-sizing: border-box;
  border: 1px solid var(--cs-blue-border);
  background: linear-gradient(90deg, #78d0e609 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#102638, #07111d);
  min-height: 64px;
  padding: 10px 12px;
  box-shadow: inset 0 1px #dceeff12;
}

.hall-edit-mode__header :is(.eyebrow, h1), .hall-edit-drawer :is(.eyebrow, h2, h3), .hall-interior-library :is(.eyebrow, h2) {
  color: var(--cs-steel);
  font-family: Arial Narrow, Roboto Condensed, sans-serif;
}

.hall-edit-mode__header .eyebrow, .hall-edit-drawer > .eyebrow, .hall-interior-library__intro .eyebrow {
  color: var(--cs-cyan);
  letter-spacing: .08em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hall-edit-mode__done, .hall-edit-mode .hall-edit-equipment button, .hall-interior-library__actions .task-wall__primary {
  color: #fff1ba;
  background: linear-gradient(#6b4c1d, #2a1c0a);
  border-color: #d59b3d;
  min-height: 44px;
  box-shadow: inset 0 1px #ffe9aa40;
}

.hall-edit-mode__sections .mining-hall-sections__number {
  border: 1px solid var(--cs-blue-border);
  color: var(--cs-steel-muted);
  background: linear-gradient(#102638, #07111d);
  border-radius: 0;
}

.hall-edit-mode__sections .mining-hall-sections__number.is-active {
  color: #fff1ba;
  background: linear-gradient(#63471e, #211407);
  border-color: #d59b3d;
}

.hall-edit-mode .hall-edit-layout, .hall-edit-mode .hall-edit-drawer {
  border-color: var(--cs-blue-border);
  background-color: #07111d;
  background-image: var(--cs-blueprint-grid);
  background-size: 18px 18px;
  box-shadow: inset 0 1px #dceeff0d, 0 12px 28px #0006;
}

.hall-edit-mode .hall-edit-position.is-occupied, .hall-edit-mode .hall-edit-slot {
  border-color: var(--cs-blue-border);
  color: var(--cs-steel);
  background-color: var(--editor-blue-base);
  background-image: var(--cs-blueprint-grid);
  background-size: 16px 16px;
}

.hall-edit-mode .hall-edit-position.is-empty {
  color: var(--cs-steel-muted);
  background: #06111a;
  border-color: #315b76;
}

.hall-edit-mode .hall-edit-position.is-selected, .hall-edit-mode .hall-edit-slot.is-selected {
  background-color: #142130;
  border-color: #d59b3d;
  box-shadow: inset 0 0 0 1px #d59b3d55, 0 0 14px #d59b3d1f;
}

.hall-edit-mode .hall-edit-position__number, .hall-edit-mode .hall-edit-slot > span {
  color: var(--cs-cyan);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hall-edit-mode .hall-edit-equipment, .hall-edit-mode .hall-edit-miner-stats div {
  background: var(--cs-blueprint-grid), linear-gradient(145deg, #102638, #07111d);
  background-size: 18px 18px, auto;
  border-color: #315b76;
}

.hall-edit-mode :is(.hall-edit-mode__hint, .hall-edit-position__empty, .hall-edit-drawer__empty, .hall-edit-rack-heading p, .hall-edit-slot-drawer p, .hall-edit-equipment small, .hall-edit-miner-stats dt) {
  color: var(--cs-steel-muted);
}

.hall-edit-mode .hall-edit-miner-stats dd, .hall-edit-mode .hall-edit-slot strong {
  color: var(--cs-steel);
}

.hall-edit-rack-actions button {
  min-height: 44px;
}

.hall-edit-mode .hall-edit-sort > button, .hall-edit-sort-menu, .hall-edit-sort-menu button, .hall-interior-library__default, .hall-interior-library__actions .task-wall__secondary {
  border-radius: 0;
}

.hall-edit-mode .hall-edit-sort > button, .hall-interior-library__default, .hall-interior-library__actions .task-wall__secondary {
  min-height: 44px;
  color: var(--cs-steel);
  background: linear-gradient(#17364b, #091724);
  border-color: #47778d;
}

.hall-edit-sort-menu {
  color: var(--cs-steel);
  background-color: #07111d;
  background-image: var(--cs-blueprint-grid);
  border-color: #47778d;
}

.hall-edit-sort-menu button[aria-checked="true"] {
  color: #fff1ba;
  background: #2a1c0a;
  border-color: #d59b3d;
}

.hall-interior-library {
  border-color: var(--cs-blue-border);
  background: var(--cs-blueprint-grid), linear-gradient(145deg, #0b1d2a, #040b11);
  background-size: 18px 18px, auto;
}

.hall-interior-choice {
  border-color: var(--cs-blue-border);
  color: var(--cs-steel);
  background: #091721;
}

.hall-interior-choice[aria-pressed="true"] {
  background: #142130;
  border-color: #d59b3d;
  box-shadow: inset 0 0 0 1px #d59b3d55;
}

.hall-interior-choice__copy :is(strong, small) {
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: normal;
  overflow: visible;
}

.hall-interior-choice__copy small {
  font-size: .62rem;
}

.hall-interior-library__preview {
  background: #03080e;
  border-color: #47778d;
}

.hall-interior-library__preview-copy {
  background: #07131dcc;
  border-bottom-color: #315b76;
}

.sheet-backdrop, .equipment-storage-backdrop {
  -webkit-backdrop-filter: blur(3px);
  background: #02070bd9;
}

.equipment-storage-backdrop {
  justify-content: center;
}

.rack-sheet, .equipment-storage {
  box-sizing: border-box;
  color: var(--cs-steel);
  background: var(--cs-blueprint-grid), linear-gradient(145deg, #102638, #06111b 72%);
  background-size: 18px 18px, auto;
  border-color: #47778d;
  border-radius: 0;
  box-shadow: inset 0 1px #dceeff12, 0 20px 55px #000c;
}

.equipment-storage {
  width: min(100%, 720px);
}

.sheet-close {
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  color: var(--cs-cyan);
  background: #071722;
  border: 1px solid #47778d;
  border-radius: 0;
  place-items: center;
  padding: 0;
  line-height: 1;
  display: grid;
}

.equipment-storage__header {
  border-bottom-color: #315b76;
}

.equipment-storage__header :is(.eyebrow, h2), .rack-sheet :is(.eyebrow, h2, h3) {
  color: var(--cs-steel);
}

.equipment-storage__header .eyebrow, .rack-sheet > .eyebrow, .miner-details > .eyebrow {
  color: var(--cs-cyan);
}

.equipment-storage__card, .rack-inspection-miner, .rack-static-stats div, .rack-management__position, .rack-management__confirmation, .miner-details__close, .rack-management-actions button, .slot-row__actions button {
  border-radius: 0;
}

.equipment-storage__card, .rack-inspection-miner, .rack-static-stats div {
  color: var(--cs-steel);
  background: var(--cs-blueprint-grid), #091721;
  background-size: 18px 18px;
  border-color: #315b76;
}

.equipment-storage__card button, .miner-details__close, .rack-management-actions button, .slot-row__actions button {
  min-height: 44px;
  color: var(--cs-steel);
  background: linear-gradient(#17364b, #091724);
  border: 1px solid #47778d;
}

.rack-management-actions button:last-child, .slot-row__actions button:last-child {
  color: #ffd5c7;
  background: #421d1c;
  border-color: #a85a53;
}

.rack-static-stats dt, .slot-row, .miner-details__facts dt, .rack-sheet > p:not(.eyebrow), .equipment-storage__card span, .equipment-storage__empty {
  color: var(--cs-steel-muted);
}

.rack-static-stats dd, .slot-row strong, .slot-row__miner-info, .miner-details__facts dd {
  color: var(--cs-steel);
}

.slot-list, .slot-row, .miner-details__facts, .miner-details__facts div, .rack-management-actions {
  border-color: #315b76;
}

.slot-row__miner-info:hover, .slot-row__miner-info:focus-visible {
  color: var(--cs-cyan);
}

.rack-management-backdrop {
  padding: max(16px, var(--cs-safe-top)) max(12px, var(--cs-safe-right))
    max(16px, var(--cs-safe-bottom)) max(12px, var(--cs-safe-left));
  align-items: center;
}

.rack-sheet.rack-management {
  width: min(100%, 620px);
  max-height: calc(100dvh - 32px);
  padding: 14px;
}

.rack-management > .eyebrow, .rack-management__header > div:first-child {
  top: 0;
}

.rack-management__header {
  margin: 8px 0 12px;
}

.rack-management .rack-management__icon {
  color: var(--cs-cyan);
  background: #071722;
  border-color: #47778d;
  border-radius: 0;
}

.rack-sheet.rack-management .rack-management__position {
  background-color: #07111d;
  background-image: var(--cs-blueprint-grid);
  background-size: 16px 16px;
  border-color: #315b76;
  border-radius: 0;
}

.rack-management__stats {
  color: #f0c36f;
}

.rack-management__confirmation {
  background: #07131d;
  border-color: #47778d;
}

.rack-management__confirmation .rack-management__cancel {
  color: var(--cs-steel);
  background: #102638;
  border-color: #47778d;
  border-radius: 0;
}

.rack-management__confirmation .rack-management__destructive {
  color: #ffd5c7;
  background: #421d1c;
  border-color: #b86c62;
  border-radius: 0;
}

:is(.hall-edit-mode, .rack-sheet, .equipment-storage) :is(button, [role="button"]):focus-visible {
  outline: 2px solid var(--cs-cyan);
  outline-offset: 2px;
}

:is(.hall-edit-mode, .rack-sheet, .equipment-storage) :is(button, [role="button"]):disabled {
  cursor: default;
  filter: saturate(.45);
  opacity: .48;
}

@media (max-width: 430px) {
  .hall-edit-mode {
    gap: 12px;
    padding-inline: 10px;
  }

  .hall-edit-mode__header {
    align-items: flex-start;
    padding: 9px 10px;
  }

  .hall-edit-mode__header h1 {
    font-size: 1.08rem;
  }

  .hall-edit-drawer {
    padding: 10px;
  }

  .hall-edit-equipment {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .hall-edit-equipment > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rack-sheet, .equipment-storage {
    padding-inline: 12px;
  }

  .rack-sheet.rack-management {
    padding: 12px 10px;
  }
}

@media (max-width: 370px) {
  .hall-edit-mode__header {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
  }

  .hall-edit-mode__done {
    padding-inline: 10px;
  }

  .rack-management__miner {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  body .gameplay-surface.gameplay-surface--expeditions {
    --expedition-shell-top: calc(var(--cs-safe-top, 0px) + 4px);
    --expedition-header-height: 76px;
    --expedition-shell-width: min(790px,
      calc(100vw - 24px - var(--cs-safe-left, 0px) - var(--cs-safe-right, 0px)));
  }

  .gameplay-expedition__header {
    padding: 16px 24px 12px;
  }

  .gameplay-expedition__header .eyebrow {
    display: none;
  }

  .gameplay-expedition__header h1 {
    font-size: 1.45rem;
  }

  .gameplay-expedition__header .gameplay-surface__back {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .gameplay-expedition__terminal-frame:before {
    background-image: none;
  }

  .gameplay-expedition__scroll {
    inset: 15px 18px 18px;
  }

  .expedition-map {
    min-height: 310px;
  }
}

@media (max-width: 430px) {
  .gameplay-expedition__scroll {
    inset-inline: 15px;
  }

  .gameplay-surface--expeditions .expedition-run {
    grid-template-columns: 1fr;
  }

  .gameplay-surface--expeditions .expedition-run__progress {
    margin-left: 60px;
  }

  .expedition-map {
    min-height: 374px;
  }

  .expedition-map__node {
    grid-template-columns: 30px minmax(0, 1fr);
    width: min(108px, 34%);
    padding-right: 5px;
  }

  .expedition-map__node-number {
    width: 29px;
    height: 29px;
  }

  .expedition-map__node-name {
    font-size: .58rem;
  }

  .expedition-map-selection {
    grid-template-columns: 1fr;
  }

  .expedition-map-selection button {
    width: 100%;
  }

  .expedition-dossier__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .expedition-dossier__metrics > :last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expedition-map__selected-route, .expedition-map__node.is-selected {
    animation: none;
  }
}

body .gameplay-surface.gameplay-surface--expeditions {
  --expedition-shell-width: min(940px,
    calc(100vw - 8px - var(--cs-safe-left, 0px) - var(--cs-safe-right, 0px)));
  --expedition-shell-top: calc(var(--cs-safe-top, 0px) + 8px);
  --expedition-header-height: 126px;
  background: linear-gradient(#01050859, #010508c7), url("/images/cryptoshelter-blueprint-wall-v1.png") center / cover no-repeat;
}

.gameplay-expedition__shell {
  --terminal-frame-inner-gutter: 0px;
  --terminal-frame-content-side: calc(var(--terminal-frame-side) + var(--terminal-frame-inner-gutter));
  --terminal-frame-content-top: calc(var(--terminal-frame-top) + var(--terminal-frame-inner-gutter));
  z-index: 14;
  top: var(--expedition-shell-top);
  bottom: max(4px, var(--cs-safe-bottom, 0px));
  width: var(--expedition-shell-width);
  box-sizing: border-box;
  background: linear-gradient(90deg, #4ad3e809 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#4ad3e809 1px, #0000 1px) 0 0 / 18px 18px, linear-gradient(#07141d 0%, #02090e 100%);
  position: fixed;
  left: 50%;
  overflow: hidden;
  transform: translateX(-50%);
  box-shadow: 0 14px 36px #000000ad;
}

.gameplay-expedition__header-frame {
  z-index: 5;
  height: var(--expedition-header-height);
  background: linear-gradient(#101d24 0%, #07131b 100%);
  border: 1px solid #60727a;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px #010609, inset 0 1px #daeff029, 0 5px 12px #00000073;
}

.gameplay-expedition__header-frame:before {
  z-index: 3;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #db941b 0 7px, #0000 7px) 9px 9px / 28px 2px no-repeat, linear-gradient(#db941b 0 7px, #0000 7px) 9px 9px / 2px 28px no-repeat;
  border: 1px solid #3b7b8ba8;
  position: absolute;
  inset: 5px;
}

.gameplay-expedition__header-frame:after {
  z-index: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #4bb8cc0b 1px, #0000 1px) 0 0 / 16px 16px, linear-gradient(#4bb8cc0b 1px, #0000 1px) 0 0 / 16px 16px, linear-gradient(105deg, #0b1b23, #061018 72%, #02080d);
  position: absolute;
  inset: 6px;
}

.gameplay-expedition__header {
  gap: 10px;
  height: 100%;
  padding: 18px 16px 16px 20px;
}

.gameplay-expedition__header-copy {
  flex: 1;
  gap: 4px;
  min-width: 0;
  display: grid;
}

.gameplay-expedition__header .eyebrow {
  color: #c6d2d2;
  padding-left: 12px;
  font-size: .64rem;
}

.gameplay-expedition__header .eyebrow:before {
  content: "";
  background: #f0a928;
  width: 5px;
  height: 5px;
  margin: 0 7px 1px -12px;
  display: inline-block;
  box-shadow: 0 0 7px #efa928bf;
}

.gameplay-expedition__header h1 {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: clamp(1.2rem, 5.8vw, 1.8rem);
  line-height: 1;
  display: -webkit-box;
  overflow: hidden;
}

.gameplay-expedition__header[data-expedition-navigation="exit"] h1 {
  font-size: clamp(1.65rem, 8vw, 2.05rem);
}

.gameplay-expedition__header-intro {
  color: #9db2b7;
  letter-spacing: .015em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 31rem;
  margin: 0;
  font: 650 clamp(.62rem, 2.25vw, .72rem) / 1.3 Arial Narrow, Roboto Condensed, sans-serif;
  display: -webkit-box;
  overflow: hidden;
}

.gameplay-expedition__header-actions {
  flex: none;
  gap: 7px;
  display: flex;
}

.gameplay-expedition__header :is(.gameplay-surface__back, .gameplay-expedition__help) {
  color: #d9edf1;
  background: linear-gradient(#112832, #06131b);
  border-color: #547883;
  border-radius: 0;
  place-items: center;
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  font-size: 1.42rem;
  display: grid;
  position: static;
  box-shadow: inset 0 0 0 2px #02080c, inset 0 1px #caecf026;
}

.gameplay-expedition__header .gameplay-expedition__help {
  color: #f1bd59;
}

.gameplay-expedition__header :is(.gameplay-surface__back, .gameplay-expedition__help):focus-visible {
  outline-offset: 2px;
  outline: 2px solid #f1bd59;
}

.gameplay-expedition__scroll {
  z-index: 2;
  padding: 0 1px 18px;
}

.gameplay-surface--expeditions .expedition-console {
  gap: 8px;
}

.gameplay-surface--expeditions .expedition-panel, .gameplay-surface--expeditions .expedition-history {
  background: linear-gradient(#091a23fa, #020a0ffa);
  border: 1px solid #56666d;
  padding: 9px;
  box-shadow: inset 0 0 0 2px #010609, inset 0 1px #c6e5e81a;
}

.gameplay-surface--expeditions .expedition-panel__heading {
  background: linear-gradient(90deg, #102630, #07131a 78%);
  border-bottom: 1px solid #3a6873;
  min-height: 30px;
  margin: -3px -3px 7px;
  padding: 5px 8px 5px 13px;
}

.gameplay-surface--expeditions .expedition-panel__heading:before {
  content: "";
  background: #e7a42c;
  width: 3px;
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 5px;
  box-shadow: 0 0 7px #e7a42c73;
}

.gameplay-surface--expeditions .expedition-panel__heading h2 {
  font-size: .82rem;
}

.gameplay-surface--expeditions .expedition-runs {
  padding: 8px;
}

.gameplay-surface--expeditions .expedition-live-runs {
  gap: 0;
  display: grid;
}

.gameplay-surface--expeditions .expedition-live-runs > .expedition-runs {
  box-shadow: none;
  clip-path: none;
  background: none;
  border: 0;
  padding: 2px 7px;
}

.gameplay-surface--expeditions .expedition-live-runs > .expedition-runs + .expedition-runs {
  border-top: 1px solid #46778373;
}

.gameplay-surface--expeditions .expedition-live-runs > .expedition-runs > .expedition-panel__heading, .gameplay-surface--expeditions .expedition-live-runs > .expedition-runs > .expedition-panel__heading:before {
  display: none;
}

.gameplay-surface--expeditions .expedition-live-runs > .expedition-runs > .expedition-panel__heading h2 {
  color: #a9bec2;
  font-size: .63rem;
}

.gameplay-surface--expeditions .expedition-run {
  grid-template-columns: minmax(0, 1fr) minmax(118px, .8fr);
  padding: 5px 0;
}

.gameplay-surface--expeditions .expedition-run:first-of-type {
  margin-top: 0;
}

.expedition-map {
  background: linear-gradient(#00080d0f, #00080d3d), url("/game/ui/salvage-runs-tactical-map-v1.png") center / cover no-repeat, #020e15;
  border-color: #32798a;
  min-height: 390px;
  margin-top: 6px;
  box-shadow: inset 0 0 0 3px #010609, inset 0 0 34px #000000db;
}

.expedition-map__drawing {
  color: #4dadc22b;
}

.expedition-map__drawing > rect, .expedition-map__water, .expedition-map__river, .expedition-map__contours, .expedition-map__infrastructure, .expedition-map__power {
  opacity: 0;
}

.expedition-map__node {
  background: #030f16f5;
  border-color: #59bed2b8;
  grid-template-columns: 31px minmax(0, 1fr);
  width: min(116px, 34%);
  min-height: 43px;
  padding: 4px 6px 4px 4px;
}

.expedition-map__node-number {
  width: 30px;
  height: 30px;
}

.expedition-map__node-name {
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  font-size: .61rem;
  display: -webkit-box;
  overflow: hidden;
}

.expedition-map__legend {
  display: none;
}

.expedition-map-selection {
  border-color: #d594258c;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 8px;
}

.expedition-map-selection button {
  min-height: 40px;
  padding-block: 7px;
}

.expedition-map-selection button, .expedition-dossier__primary, .gameplay-surface--expeditions .expedition-deploy-button {
  color: #181005;
  background: linear-gradient(#ffc64f, #d9850f 72%, #a85d08);
  border: 1px solid #f1ad2c;
  min-height: 48px;
  box-shadow: inset 0 1px #fff1ad, inset 0 -2px #562a007a, 0 0 10px #eb9c1821;
}

.expedition-dossier__visual, .expedition-raider-route-summary, .gameplay-surface--expeditions .expedition-character {
  background: linear-gradient(160deg, #0b202a, #030c12);
  border-color: #52656d;
  box-shadow: inset 0 0 0 2px #010609;
}

.expedition-dossier__mini-map {
  background: linear-gradient(#00080d0d, #00080d38), url("/game/ui/salvage-runs-tactical-map-v1.png") center / cover no-repeat, #020e15;
  border: 1px solid #3c7582;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px #010609, inset 0 0 25px #000000bf;
}

.expedition-dossier__mini-map > svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.expedition-dossier__mini-shelter, .expedition-dossier__mini-node {
  z-index: 2;
  color: #211400;
  background: #efb33f;
  border: 2px solid #f0ad2a;
  place-items: center;
  font: 900 .75rem / 1 ui-monospace, monospace;
  display: grid;
  position: absolute;
  box-shadow: 0 0 12px #efae3285;
}

.expedition-dossier__mini-shelter {
  width: 30px;
  height: 30px;
  bottom: 7%;
  left: 12%;
  transform: translate(-50%, 50%) rotate(45deg);
}

.expedition-dossier__mini-shelter:first-letter {
  transform: rotate(-45deg);
}

.expedition-dossier__mini-node {
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
}

.expedition-dossier__heading {
  background: linear-gradient(90deg, #10242d, #061219);
  border: 1px solid #405e67;
  gap: 2px;
  padding: 7px 10px;
  display: grid;
}

.expedition-dossier__heading .eyebrow {
  color: #7ea2aa;
  margin: 0;
  font-size: .58rem;
}

.expedition-dossier__heading h2 {
  color: #f1f5f3;
  margin: 0;
  font: 900 1rem / 1.05 Arial Narrow, Roboto Condensed, sans-serif;
}

.expedition-dossier__body h2 {
  font-size: 1.22rem;
}

.gameplay-surface--expeditions .expedition-character-grid {
  gap: 8px;
}

.gameplay-surface--expeditions .expedition-character {
  padding: 9px;
}

.gameplay-surface--expeditions .expedition-character__portrait {
  width: 78px;
  height: 108px;
}

@media (min-width: 680px) {
  body .gameplay-surface.gameplay-surface--expeditions {
    --expedition-shell-width: min(940px,
      calc(100vw - 20px - var(--cs-safe-left, 0px) - var(--cs-safe-right, 0px)));
    --expedition-header-height: 126px;
  }

  .gameplay-expedition__shell {
    --terminal-frame-inner-gutter: clamp(16px, 2.53vw, 23px);
  }

  .gameplay-surface--expeditions .expedition-console {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gameplay-surface--expeditions .expedition-live-runs {
    grid-column: 1 / -1;
  }

  .expedition-map {
    min-height: 450px;
  }
}

.gameplay-surface--expeditions .expedition-run--result {
  background: linear-gradient(145deg, #0a1b23, #020a0f 76%);
  border: 1px solid #566d75;
  margin-block: 5px;
  padding: 9px;
  position: relative;
  box-shadow: inset 0 0 0 2px #010609, inset 0 1px #cfe6e81a, 0 4px 12px #00000047;
}

.gameplay-surface--expeditions .expedition-run--result:before {
  content: "";
  background: #4fb4c5;
  width: 38px;
  height: 2px;
  position: absolute;
  top: -1px;
  left: 11px;
}

.gameplay-surface--expeditions .expedition-run__identity small {
  white-space: normal;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 5px;
  display: flex;
}

.gameplay-surface--expeditions .expedition-run__result, .gameplay-surface--expeditions .expedition-run__xp {
  letter-spacing: .035em;
  text-transform: uppercase;
  font-weight: 800;
}

.gameplay-surface--expeditions .expedition-run__result:before, .gameplay-surface--expeditions .expedition-run__xp:before {
  color: #62777e;
  content: "·";
  margin-right: 5px;
}

.gameplay-surface--expeditions .expedition-run__result--failure {
  color: #ff6b6b;
}

.gameplay-surface--expeditions .expedition-run__result--success {
  color: var(--cs-success);
}

.gameplay-surface--expeditions .expedition-run__xp {
  color: #d7b665;
}

.gameplay-surface--expeditions .expedition-run__rewards {
  border-top: 1px solid #4fbed24d;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 5px;
  width: 100%;
  padding: 8px 0 0;
  display: grid;
}

.gameplay-surface--expeditions .expedition-run__rewards-owner {
  color: #8da8ae;
  letter-spacing: .06em;
  text-transform: uppercase;
  grid-column: 1 / -1;
  align-items: center;
  gap: 7px;
  font: 800 .56rem / 1 ui-monospace, monospace;
  display: flex;
}

.gameplay-surface--expeditions .expedition-run__rewards-owner:after {
  content: "";
  background: #4fbed247;
  flex: 1;
  height: 1px;
}

.gameplay-surface--expeditions .expedition-reward-drop {
  color: #edf5f4;
  background: linear-gradient(145deg, #0a1d26, #030c12 72%);
  border: 1px solid #52656d;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 50px;
  display: grid;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px #010609, inset 0 1px #c6e5e817;
}

.gameplay-surface--expeditions .expedition-reward-drop__visual {
  background: linear-gradient(90deg, #4fbed20a 1px, #0000 1px) 0 0 / 11px 11px, linear-gradient(#4fbed20a 1px, #0000 1px) 0 0 / 11px 11px, #041018;
  border-right: 1px solid #5797a56b;
  place-items: center;
  width: 48px;
  height: 48px;
  display: grid;
  position: relative;
}

.gameplay-surface--expeditions .expedition-reward-drop__visual img {
  object-fit: contain;
  filter: drop-shadow(0 3px 4px #000000a8);
  width: 70%;
  height: 70%;
}

.gameplay-surface--expeditions .expedition-reward-drop__quantity {
  color: #fff0c2;
  text-align: center;
  background: #02080ce6;
  border: 1px solid #cde0e047;
  min-width: 18px;
  padding: 2px 3px;
  font: 900 .55rem / 1 ui-monospace, monospace;
  position: absolute;
  bottom: 3px;
  right: 4px;
}

.gameplay-surface--expeditions .expedition-reward-drop__copy {
  gap: 3px;
  min-width: 0;
  padding: 6px 8px;
  display: grid;
}

.gameplay-surface--expeditions .expedition-reward-drop__copy > strong {
  letter-spacing: .01em;
  text-overflow: ellipsis;
  font: 700 .68rem / 1.15 Arial Narrow, Roboto Condensed, sans-serif;
  overflow: hidden;
}

.gameplay-surface--expeditions .expedition-reward-drop__rarity {
  letter-spacing: .05em;
  text-transform: uppercase;
  font: 800 .58rem / 1 ui-monospace, monospace;
}

.gameplay-surface--expeditions .expedition-reward-drop__fallback {
  color: #8fd7e4;
  letter-spacing: .08em;
  font: 900 .62rem / 1 ui-monospace, monospace;
}

@media (max-height: 520px) and (orientation: landscape) {
  body .gameplay-surface.gameplay-surface--expeditions {
    --expedition-shell-width: min(790px,
      calc(100vw - 16px - var(--cs-safe-left, 0px) - var(--cs-safe-right, 0px)));
    --expedition-header-height: 70px;
  }

  .gameplay-expedition__header {
    padding-block: 11px 9px;
  }

  .gameplay-expedition__header :is(.eyebrow, .gameplay-expedition__header-intro) {
    display: none;
  }

  .gameplay-expedition__header :is(.gameplay-surface__back, .gameplay-expedition__help) {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .expedition-map {
    min-height: 320px;
  }
}

.expedition-help-dialog {
  color: #edf5f4;
  background: #06131b;
  border: 1px solid #5a747d;
  border-radius: 0;
  width: min(560px, 100vw - 24px);
  max-width: none;
  max-height: min(760px, 100dvh - 24px);
  margin: auto;
  padding: 0;
  position: fixed;
  inset: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px #010609, 0 18px 60px #000000d1;
}

.expedition-help-dialog::backdrop {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #000508d1;
}

.expedition-help-dialog__panel {
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(760px, 100dvh - 24px);
  display: grid;
}

.expedition-help-dialog__panel > header {
  background: linear-gradient(90deg, #102831, #07131a 76%);
  border-bottom: 1px solid #3d7581;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 13px 14px 12px 18px;
  display: flex;
}

.expedition-help-dialog__panel > header .eyebrow {
  color: #d7a84b;
  letter-spacing: .09em;
  margin: 0 0 4px;
  font: 800 .62rem / 1 ui-monospace, monospace;
}

.expedition-help-dialog__panel > header h2 {
  letter-spacing: .025em;
  text-transform: uppercase;
  margin: 0;
  font: 900 clamp(1.12rem, 5vw, 1.55rem) / 1 Arial Narrow, Roboto Condensed, sans-serif;
}

.expedition-help-dialog__panel > header button {
  color: #d9edf1;
  background: linear-gradient(#112832, #06131b);
  border: 1px solid #547883;
  border-radius: 0;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  font-size: 1.45rem;
  display: grid;
  box-shadow: inset 0 0 0 2px #02080c;
}

.expedition-help-dialog__panel > header button:focus-visible, .expedition-help-dialog summary:focus-visible {
  outline-offset: -3px;
  outline: 2px solid #f1bd59;
}

.expedition-help-dialog__scroll {
  overscroll-behavior: none;
  scrollbar-color: #47778d #030a11;
  scrollbar-width: thin;
  min-height: 0;
  padding: 15px 17px 20px;
  overflow-y: auto;
}

.expedition-help-dialog__intro {
  color: #c7d6d7;
  background: #102831b8;
  border-left: 3px solid #d99a2c;
  margin: 0 0 12px;
  padding: 11px 12px;
  font-size: .82rem;
  line-height: 1.45;
}

.expedition-help-dialog__sections {
  border-top: 1px solid #5185916b;
}

.expedition-help-dialog__sections details {
  border-bottom: 1px solid #5185916b;
}

.expedition-help-dialog__sections summary {
  color: #edf5f4;
  letter-spacing: .025em;
  cursor: pointer;
  min-height: 48px;
  padding: 14px 28px 12px 2px;
  font: 800 .78rem / 1.2 Arial Narrow, Roboto Condensed, sans-serif;
}

.expedition-help-dialog__sections p {
  color: #9fb5ba;
  max-width: 68ch;
  margin: -2px 0 14px;
  font-size: .76rem;
  line-height: 1.5;
}

@media (max-width: 430px) {
  .gameplay-surface--expeditions .expedition-run {
    grid-template-columns: minmax(0, 1fr) minmax(112px, .86fr);
    align-items: center;
    gap: 5px 8px;
  }

  .gameplay-surface--expeditions .expedition-run__identity {
    grid-row: 1 / span 2;
  }

  .gameplay-surface--expeditions .expedition-run__portrait {
    flex-basis: 46px;
    width: 46px;
    height: 56px;
  }

  .gameplay-surface--expeditions .expedition-run__identity {
    gap: 7px;
  }

  .gameplay-surface--expeditions .expedition-run__identity strong {
    font-size: .78rem;
  }

  .gameplay-surface--expeditions .expedition-run__identity small {
    font-size: .57rem;
  }

  .gameplay-surface--expeditions .expedition-run__progress {
    grid-column: 2;
    gap: 3px;
    margin-left: 0;
  }

  .gameplay-surface--expeditions .expedition-progress {
    height: 24px;
  }

  .gameplay-surface--expeditions .expedition-resolve-button {
    grid-column: 2;
    width: 100%;
    min-height: 34px;
    padding: 6px;
    font-size: .65rem;
  }

  .expedition-map {
    min-height: 388px;
  }
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-character-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-character {
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 7px;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-character__identity {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-character__portrait {
  aspect-ratio: 4 / 5;
  border-color: #58727b;
  width: 100%;
  height: auto;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-character__topline {
  gap: 5px;
  display: grid;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-character__topline > div {
  min-width: 0;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-character__topline strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  overflow: hidden;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-character__topline small {
  font-size: .58rem;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-status {
  text-align: center;
  justify-self: stretch;
  padding: 4px 5px;
  font-size: .58rem;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-character > .expedition-muted {
  display: none;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  font-size: .59rem;
  display: grid;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-stats span {
  background: #06151d;
  border: 1px solid #53767f6b;
  place-items: center;
  min-height: 30px;
  display: grid;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-skills {
  gap: 3px;
  font-size: .58rem;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-skills b {
  font-size: .52rem;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-recovery {
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 6px;
  font-size: .55rem;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-recovery > time {
  grid-column: auto;
  font-size: .52rem;
}

.gameplay-surface--expeditions .expedition-route-detail .expedition-deploy-button {
  min-height: 42px;
  padding: 7px 5px;
  font-size: .63rem;
}

@media (min-width: 680px) {
  .gameplay-surface--expeditions .expedition-route-detail .expedition-character-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .gameplay-surface--expeditions .expedition-route-detail .expedition-character__portrait {
    max-height: 220px;
  }

  .expedition-dossier {
    grid-template-columns: minmax(0, 1fr);
  }

  .expedition-dossier__visual, .expedition-dossier__visual img {
    min-height: 260px;
  }
}

/* [project]/apps/web/src/app/adaptive-terminal-frame.css [app-client] (css) */
.adaptive-terminal-frame {
  --terminal-frame-side: clamp(20px, 5.62vw, 52px);
  --terminal-frame-top: calc(var(--terminal-frame-side) * 80 / 51);
  --terminal-frame-bottom: calc(var(--terminal-frame-side) * 121 / 51);
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: var(--terminal-frame-content-top, var(--terminal-frame-top))
    var(--terminal-frame-content-side, var(--terminal-frame-side))
    var(--terminal-frame-content-bottom, var(--terminal-frame-bottom));
  isolation: isolate;
  grid-template-rows: auto minmax(0, 1fr);
  display: grid;
  overflow: hidden;
}

.adaptive-terminal-frame:before {
  z-index: 20;
  box-sizing: border-box;
  border-style: solid;
  border-width: var(--terminal-frame-top) var(--terminal-frame-side)
    var(--terminal-frame-bottom);
  content: "";
  pointer-events: none;
  border-image-source: url("/game/ui/salvage-runs-terminal-frame-v1.png");
  border-image-slice: 80 51 121 fill;
  border-image-width: 1;
  border-image-repeat: stretch;
  position: absolute;
  inset: 0;
}

.adaptive-terminal-frame:after {
  content: none;
}

.adaptive-terminal-frame__header, .adaptive-terminal-frame__scroll {
  z-index: 2;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  position: relative;
  inset: auto;
  transform: none;
}

.adaptive-terminal-frame__scroll {
  overscroll-behavior: none;
  touch-action: pan-y;
  overflow: hidden auto;
}

@media (orientation: landscape) and (max-height: 520px) {
  .adaptive-terminal-frame {
    --terminal-frame-side: clamp(18px, 4.5dvh, 24px);
  }
}

/* [project]/apps/web/src/app/equipment-visual-prototype.css [app-client] (css) */
.equipment-prototype {
  color: #f7eee0;
  background: #17130e;
  border: 1px solid #e0ab52b3;
  border-radius: 16px;
  gap: 14px;
  width: min(100% - 24px, 760px);
  margin: 0 auto 24px;
  padding: 16px;
  display: grid;
  box-shadow: 0 12px 34px #00000052;
}

.equipment-prototype h2, .equipment-prototype h3, .equipment-prototype p {
  margin: 0;
}

.equipment-prototype h2 {
  font-size: 1.08rem;
}

.equipment-prototype h3 {
  font-size: .82rem;
}

.equipment-prototype header {
  gap: 5px;
  display: grid;
}

.equipment-prototype header > p:last-child, .equipment-prototype__caption {
  color: #d3c5af;
  font-size: .75rem;
}

.equipment-prototype__section {
  background: #0608078a;
  border: 1px solid #aa8a5b6b;
  border-radius: 12px;
  gap: 9px;
  padding: 12px;
  display: grid;
}

.equipment-prototype__four-slot {
  background: radial-gradient(circle, #403226, #0d0d0c 70%);
  border-radius: 10px;
  place-items: center;
  min-height: 276px;
  display: grid;
  overflow: hidden;
}

.equipment-prototype__rack {
  aspect-ratio: 2 / 3;
  width: 172px;
  position: relative;
}

.equipment-prototype__rack > .equipment-visual {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.equipment-prototype__rack-slots {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.equipment-prototype__rack-slot {
  place-items: center;
  display: grid;
  position: absolute;
  overflow: hidden;
}

.equipment-prototype__rack-slot img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.equipment-prototype__rack-slot .equipment-visual {
  object-fit: contain;
  mix-blend-mode: screen;
  width: 100%;
  height: 100%;
}

.equipment-prototype__comparison {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.equipment-prototype__comparison > div {
  gap: 8px;
  min-width: 0;
  display: grid;
}

.equipment-prototype__hall-scale {
  background: #232822;
  border-radius: 8px;
  place-items: center;
  min-height: 142px;
  display: grid;
  overflow: hidden;
}

.equipment-prototype__hall-scale .equipment-prototype__rack {
  width: 64px;
}

.equipment-prototype__alternate-rack {
  object-fit: contain;
  width: 100%;
  max-height: 142px;
  image-rendering: pixelated;
}

.equipment-prototype__edit-scale {
  background: #14251c;
  border-radius: 8px;
  place-items: center;
  min-height: 142px;
  display: grid;
}

.equipment-prototype__edit-scale .equipment-prototype__rack {
  width: 58px;
}

.equipment-prototype__inspection-scale {
  background: #231c15;
  border-radius: 8px;
  place-items: center;
  min-height: 142px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.equipment-prototype__inspection-scale .equipment-prototype__rack-slot {
  position: relative;
  width: 88px !important;
  height: 38px !important;
  top: auto !important;
  left: auto !important;
}

@media (max-width: 500px) {
  .equipment-prototype {
    width: min(100% - 16px, 760px);
    padding: 13px;
  }

  .equipment-prototype__comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-prototype__four-slot {
    min-height: 248px;
  }

  .equipment-prototype__rack {
    width: 154px;
  }
}

.equipment-batch-1 {
  color: #f1eee7;
  background: #0e1515;
  border: 1px solid #3fe1cf8c;
  border-radius: 16px;
  gap: 14px;
  width: min(100% - 24px, 760px);
  margin: 0 auto 24px;
  padding: 16px;
  display: grid;
  box-shadow: 0 12px 34px #00000052;
}

.equipment-batch-1 h2, .equipment-batch-1 h3, .equipment-batch-1 p, .equipment-batch-1 figure {
  margin: 0;
}

.equipment-batch-1 h2 {
  font-size: 1.1rem;
}

.equipment-batch-1 h3 {
  font-size: .84rem;
}

.equipment-batch-1 header, .equipment-batch-1__section {
  gap: 8px;
  display: grid;
}

.equipment-batch-1 header > p:last-child {
  color: #b9c4bd;
  font-size: .76rem;
}

.equipment-batch-1__section {
  background: #02080873;
  border: 1px solid #749a8f66;
  border-radius: 12px;
  padding: 12px;
}

.equipment-batch-1__rack-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.equipment-batch-1 figure {
  justify-items: center;
  gap: 6px;
  min-width: 0;
  display: grid;
}

.equipment-batch-1__rack-canvas {
  aspect-ratio: 2 / 3;
  width: 100%;
  max-height: 260px;
  position: relative;
}

.equipment-batch-1__rack-canvas > img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  position: absolute;
  inset: 0;
}

.equipment-batch-1__shelf-guide {
  z-index: 1;
  pointer-events: none;
  border-top: 1px dashed #38ffe0eb;
  height: 1px;
  position: absolute;
  left: 9%;
  right: 9%;
  box-shadow: 0 0 4px #38ffe0b3;
}

.equipment-batch-1__shelf-guide--1 {
  top: 19.596%;
}

.equipment-batch-1__shelf-guide--2 {
  top: 41.862%;
}

.equipment-batch-1__shelf-guide--3 {
  top: 65.234%;
}

.equipment-batch-1__shelf-guide--4 {
  top: 86.198%;
}

.equipment-batch-1 figcaption {
  color: #cfd6cf;
  text-align: center;
  font-size: .71rem;
  line-height: 1.2;
}

.equipment-batch-1__miner-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.equipment-batch-1__shelf-rack {
  aspect-ratio: 2 / 3;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.equipment-batch-1__rack-frame, .equipment-batch-1__rack-lips {
  object-fit: contain;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  position: absolute;
  inset: 0;
}

.equipment-batch-1__miner {
  object-fit: contain;
  image-rendering: pixelated;
  position: absolute;
}

.equipment-batch-1__rack-lips {
  pointer-events: none;
}

@media (max-width: 500px) {
  .equipment-batch-1 {
    width: min(100% - 16px, 760px);
    padding: 13px;
  }

  .equipment-batch-1__rack-grid {
    gap: 6px;
  }

  .equipment-batch-1__rack-grid img {
    max-height: 170px;
  }

  .equipment-batch-1__miner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .equipment-batch-1__shelf-rack {
    width: min(100%, 150px);
  }
}

/* [project]/apps/web/src/app/mining-hall-normal.css [app-client] (css) */
.game-shell[data-hall-mode="normal"] {
  --hall-brass: #50798d;
  --hall-steel-border: #45494a;
  --hall-text: #e8e9e5;
  --hall-muted: #b1b5b1;
  --hall-metal: linear-gradient(175deg, #ffffff04, transparent 38%, #00000024),
    linear-gradient(105deg, #222426, #151718 62%, #1b1c1e);
  isolation: isolate;
  background-color: #050505;
  background-image: radial-gradient(at 50% 8%, #30303066 0, #0000 42%), radial-gradient(at 18% 28%, #7777771c 0, #0000 34%), radial-gradient(at 82% 48%, #2c2c2c14 0, #0000 38%), linear-gradient(#111 0, #090909 48%, #050505 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
}

.game-shell[data-hall-mode="normal"] > .topbar, .game-shell[data-hall-mode="normal"] > .upper-hud__league, .game-shell[data-hall-mode="normal"] > .hall-discovery {
  z-index: 2;
  position: relative;
}

.game-shell[data-hall-mode="normal"] > .hall-discovery {
  margin-top: 0;
  margin-bottom: 2px;
}

.game-shell[data-hall-mode="normal"] > .hall-discovery .hall-discovery__card {
  min-height: clamp(84px, 13.5vw, 112px);
}

.game-shell[data-hall-mode="normal"] > .hall-card {
  overflow: visible;
}

.game-shell[data-hall-mode="normal"] > .topbar .player-hud > button, .game-shell[data-hall-mode="normal"] > .league-status-card, .game-shell[data-hall-mode="normal"] > .hall-card {
  border-color: var(--hall-brass);
  color: var(--hall-text);
  background: var(--hall-metal);
  box-shadow: inset 0 1px #ffffff08, 0 3px 12px #0006;
}

.game-shell[data-hall-mode="normal"] .mining-hall-viewport__edit {
  color: #e8f4fa;
  background-color: #123247;
  background-image: linear-gradient(#72d5ed14 1px, #0000 1px), linear-gradient(90deg, #72d5ed14 1px, #0000 1px);
  background-size: 8px 8px;
  border-color: #4f91ad;
}

.game-shell[data-hall-mode="normal"] > .topbar .player-hud__balance {
  border-left-color: var(--hall-steel-border) !important;
}

.game-shell[data-hall-mode="normal"] > .topbar .player-hud__balance small {
  color: var(--hall-muted) !important;
}

.game-shell[data-hall-mode="normal"] > .topbar .player-hud > button .gameplay-icon, .game-shell[data-hall-mode="normal"] > .gameplay-nav .gameplay-icon {
  color: var(--hall-text);
}

.game-shell[data-hall-mode="normal"] > .league-status-card .league-status-card__badge {
  border-color: var(--hall-steel-border);
  color: var(--hall-text);
  background: linear-gradient(145deg, #29292c, #141517);
}

.game-shell[data-hall-mode="normal"] > .league-status-card .league-status-card__progress > span {
  background: #101213;
}

.game-shell[data-hall-mode="normal"] > .league-status-card .league-status-card__progress i {
  background: linear-gradient(90deg, var(--hall-steel-border), #799aa8);
}

.game-shell[data-hall-mode="normal"] > .league-status-card .league-status-card__placeholder-line {
  background: linear-gradient(90deg, #45494a55, #b1b1b533);
}

.game-shell[data-hall-mode="normal"] > .league-status-card > b, .game-shell[data-hall-mode="normal"] > .hall-discovery .hall-discovery__glyph, .game-shell[data-hall-mode="normal"] > .hall-discovery .hall-discovery__card > b {
  color: var(--hall-muted);
  border-color: var(--hall-steel-border);
}

.game-shell[data-hall-mode="normal"] > .hall-discovery .hall-discovery__card em, .game-shell[data-hall-mode="normal"] > .hall-discovery .hall-discovery__card small {
  color: var(--hall-muted);
}

.game-shell[data-hall-mode="normal"] > .topbar .player-hud > button:focus-visible, .game-shell[data-hall-mode="normal"] > .league-status-card:focus-visible, .game-shell[data-hall-mode="normal"] .mining-hall-viewport__edit:focus-visible {
  border-color: var(--hall-brass);
  color: var(--hall-text);
  outline-color: var(--hall-brass);
}

.game-shell[data-hall-mode="normal"] .mining-hall-viewport__tools-icon {
  stroke: var(--hall-text);
}

body .game-shell[data-hall-mode="normal"] > .gameplay-nav {
  left: calc(var(--cs-hud-left) + 1px);
  right: calc(var(--cs-hud-right) + 1px);
  width: min(calc(100% - var(--cs-hud-left) - var(--cs-hud-right) - 2px),
    640px);
}

.game-shell[data-hall-mode="normal"] {
  padding-top: var(--cs-hud-top);
  padding-right: var(--cs-hud-right);
  padding-left: var(--cs-hud-left);
}

.game-shell[data-hall-mode="normal"] > .topbar {
  width: min(100%, 620px);
  margin-bottom: 6px;
}

.game-shell[data-hall-mode="normal"] > .topbar .player-hud {
  grid-template-columns: 42px minmax(0, 1fr) minmax(72px, auto) 42px;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 620px;
}

.game-shell[data-hall-mode="normal"] > .topbar .player-hud__wallet {
  width: 42px;
  min-height: 42px;
}

.game-shell[data-hall-mode="normal"] .player-hud__token {
  object-fit: contain;
  width: 22px;
  height: 22px;
}

.game-shell[data-hall-mode="normal"] > .upper-hud__league {
  width: min(100%, 620px);
  margin: 0 auto 8px;
}

.game-shell[data-hall-mode="normal"] > .upper-hud__league .hall-league-control, .game-shell[data-hall-mode="normal"] > .upper-hud__league .hall-league-trigger {
  width: 100%;
}

.game-shell[data-hall-mode="normal"] > .upper-hud__league .hall-league-trigger {
  min-height: 48px;
}

@media (max-width: 420px) {
  .game-shell[data-hall-mode="normal"] > .topbar .player-hud {
    grid-template-columns: 40px minmax(0, 1fr) 64px 40px;
    gap: 4px;
  }

  .game-shell[data-hall-mode="normal"] > .topbar .player-hud__wallet, .game-shell[data-hall-mode="normal"] > .topbar .player-hud__avatar {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 721px) {
  .game-shell[data-hall-mode="normal"] > .topbar .player-hud {
    display: grid;
  }

  .game-shell[data-hall-mode="normal"] > .topbar {
    margin-inline: auto;
  }
}

.game-shell[data-hall-mode="normal"] > .league-status-card .league-status-card__summary small, .game-shell[data-hall-mode="normal"] > .league-status-card .league-status-card__summary em, .game-shell[data-hall-mode="normal"] > .league-status-card .league-status-card__progress small {
  color: var(--hall-muted);
}

.game-shell[data-hall-mode="normal"] > .gameplay-menu-backdrop .gameplay-menu, .game-shell[data-hall-mode="normal"] > .topbar .player-menu {
  border-color: var(--hall-brass);
  background: var(--hall-metal);
  color: var(--hall-text);
}

.game-shell[data-hall-mode="normal"] > .gameplay-menu-backdrop .gameplay-menu header, .game-shell[data-hall-mode="normal"] > .topbar .player-menu header, .game-shell[data-hall-mode="normal"] > .gameplay-menu-backdrop .gameplay-menu button, .game-shell[data-hall-mode="normal"] > .topbar .player-menu button {
  border-color: var(--hall-steel-border);
  color: var(--hall-text);
  background: #1b1c1e;
}

.game-shell[data-hall-mode="normal"] > .gameplay-menu-backdrop .gameplay-menu :is(.gameplay-icon, b, small), .game-shell[data-hall-mode="normal"] > .topbar .player-menu :is(.gameplay-icon, b, small) {
  color: var(--hall-muted);
}

.game-shell[data-hall-mode="normal"] > .gameplay-menu-backdrop .eyebrow, .game-shell[data-hall-mode="normal"] > .topbar .eyebrow {
  color: var(--hall-muted) !important;
}

.gameplay-surface, .storage-screen, .mining-status-screen {
  isolation: isolate;
  background-color: #050809;
  background-image: radial-gradient(at 50% 8%, #27352f66 0, #0000 42%), radial-gradient(at 18% 28%, #9a71301c 0, #0000 34%), radial-gradient(at 82% 48%, #3c292014 0, #0000 38%), linear-gradient(#0d1514 0, #070c0c 48%, #040707 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
}

.gameplay-surface:not(.gameplay-surface--store):before, .storage-screen:before, .mining-status-screen:before {
  content: "";
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to right, #e6eff20f 1px, #0000 1px) 0 0 / 20px 20px, linear-gradient(#e6eff20f 1px, #0000 1px) 0 0 / 20px 20px, linear-gradient(to right, #edf5f51f 1px, #0000 1px) 0 0 / 80px 80px, linear-gradient(#edf5f51f 1px, #0000 1px) 0 0 / 80px 80px, radial-gradient(at 22% 18%, #d4a65b1c 0, #0000 42%), radial-gradient(at 78% 72%, #8d795014 0, #0000 44%);
  width: auto;
  height: auto;
  margin: 0;
  display: block;
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(#000 0 46%, #0000 86%);
  mask-image: radial-gradient(#000 0 46%, #0000 86%);
}

.game-shell[data-hall-mode="normal"] {
  width: 100%;
  height: 100svh;
  min-height: 0;
  padding: var(--player-shell-top, calc(var(--cs-safe-top, 0px) + 18px)) 6px 0;
  background: linear-gradient(#02070a20, #02070a36), url("/images/cryptoshelter-blueprint-wall-v1.png") center / 100% 100% no-repeat;
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.game-shell[data-hall-mode="normal"] > .topbar {
  display: none;
}

.game-shell[data-hall-mode="normal"] > .upper-hud__league, .game-shell[data-hall-mode="normal"] > .hall-discovery, .game-shell[data-hall-mode="normal"] > .hall-card {
  width: min(100%, 760px);
  max-width: none;
}

.game-shell[data-hall-mode="normal"] > .upper-hud__league {
  z-index: 5;
  flex: none;
  margin: 0 auto -10px;
}

.game-shell[data-hall-mode="normal"] > .hall-discovery {
  z-index: 3;
  aspect-ratio: 2131 / 382;
  flex: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: -6px auto 0;
}

.game-shell[data-hall-mode="normal"] > .hall-discovery .hall-discovery__card {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(8px, 2vw, 14px) clamp(18px, 4vw, 28px);
}

.game-shell[data-hall-mode="normal"] > .hall-discovery .hall-discovery__card--events .hall-discovery__copy {
  align-self: center;
}

.game-shell[data-hall-mode="normal"] > .hall-card {
  --hall-nav-bottom: var(--player-nav-bottom, 6.5%);
  z-index: 2;
  aspect-ratio: 3 / 4;
  isolation: isolate;
  min-height: 0;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  flex: none;
  margin: -6px auto 0;
  position: relative;
  overflow: hidden;
}

.game-shell[data-hall-mode="normal"] > .hall-card > .hall-scene {
  z-index: 0;
  width: auto;
  height: auto;
  min-height: 0;
  position: absolute;
  inset: 4.1% 3.9% 7.8% 4.1%;
  overflow: hidden;
}

.game-shell[data-hall-mode="normal"] > .hall-card :is(.mining-hall-sections, .mining-hall-sections__viewport, .mining-hall-sections__track, .mining-hall-sections__panel, .mining-hall-viewport) {
  height: 100%;
  min-height: 0;
}

.game-shell[data-hall-mode="normal"] > .hall-card .mining-hall-viewport {
  width: 100%;
  box-shadow: none;
  margin: 0;
  overflow: hidden;
}

.game-shell[data-hall-mode="normal"] > .hall-card .mining-room-composition {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

.hall-card__frame {
  z-index: 3;
  object-fit: fill;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.game-shell[data-hall-mode="normal"] > .hall-card .mining-hall-viewport__edit {
  z-index: 2;
  letter-spacing: 1px;
  min-width: 46px;
  min-height: 28px;
  padding: 3px 7px;
  font: 800 11.52px / 1 Inter, ui-sans-serif, system-ui, sans-serif;
  top: 29px;
  left: 27px;
}

.game-shell[data-hall-mode="normal"] > .hall-card > .hall-card__edit-overlay {
  z-index: 2;
  width: 64px;
  height: 30px;
  min-height: 30px;
  padding: 3px;
  top: 31px;
  left: 30px;
}

.game-shell[data-hall-mode="normal"] > .hall-card > .hall-card__power-overlay {
  z-index: 2;
  top: 31px;
  right: 30px;
}

.game-shell[data-hall-mode="normal"] > .hall-card .mining-hall-sections__switcher {
  z-index: 2;
  bottom: var(--player-nav-height);
  gap: 4px;
  padding: 0;
}

.game-shell[data-hall-mode="normal"] > .hall-card .mining-hall-sections__number {
  color: #a8c7d1;
  background: #06121acc;
  border-radius: 2px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

body .game-shell[data-hall-mode="normal"] > .hall-card > .gameplay-nav {
  z-index: 2;
  width: auto;
  max-width: none;
  height: var(--player-nav-height);
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  transition: height .4s ease-in-out;
  position: absolute;
  overflow: hidden;
  transform: none;
  top: auto !important;
  right: 16px !important;
  bottom: var(--hall-nav-bottom) !important;
  left: 16px !important;
}

body .game-shell[data-hall-mode="normal"] > .hall-card > .gameplay-nav:has(.gameplay-nav__grid.is-expanded) {
  height: calc(3 * var(--player-nav-height) + 6px);
}

body .game-shell[data-hall-mode="normal"] > .hall-card > .gameplay-nav .gameplay-nav__grid {
  grid-template-rows: 0 0 var(--player-nav-height);
  gap: 0;
  width: 100%;
  padding: 0;
  transition: grid-template-rows .4s ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

body .game-shell[data-hall-mode="normal"] > .hall-card > .gameplay-nav .gameplay-nav__grid.is-expanded {
  grid-template-rows: repeat(3, var(--player-nav-height));
  gap: 3px;
}

body .game-shell[data-hall-mode="normal"] > .hall-card > .gameplay-nav .gameplay-nav__grid:not(.is-expanded) > .gameplay-nav__cell:nth-child(n+6) {
  transition: opacity .4s ease-in-out, transform .4s ease-in-out, visibility 0s linear .4s, filter .12s;
}

body .game-shell[data-hall-mode="normal"] > .hall-card > .gameplay-nav .gameplay-nav__grid.is-expanded > .gameplay-nav__cell:nth-child(n+6) {
  transition: opacity .4s ease-in-out, transform .4s ease-in-out, visibility linear, filter .12s;
}

@media (min-width: 600px) and (orientation: landscape) {
  .game-shell[data-hall-mode="normal"] {
    grid-template-rows: auto 1fr;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    gap: 2px;
    display: grid;
  }

  .game-shell[data-hall-mode="normal"] > .upper-hud__league, .game-shell[data-hall-mode="normal"] > .hall-discovery {
    grid-column: 1;
    width: 100%;
  }

  .game-shell[data-hall-mode="normal"] > .upper-hud__league {
    grid-row: 1;
  }

  .game-shell[data-hall-mode="normal"] > .hall-discovery {
    grid-row: 2;
    align-self: start;
  }

  .game-shell[data-hall-mode="normal"] > .hall-card {
    width: min(100%, calc((100svh - var(--cs-safe-top, 0px) - 18px) * .75));
    grid-area: 1 / 2 / -1;
    align-self: center;
    margin: 0 auto;
  }
}

@media (max-width: 599px), (orientation: portrait) {
  .game-shell[data-hall-mode="normal"] > .hall-discovery {
    gap: 0;
    margin-top: 0;
    display: flex;
  }

  .game-shell[data-hall-mode="normal"] > .hall-discovery .hall-discovery__card {
    flex: 0 0 calc(50% + 5px);
    width: auto;
  }

  .game-shell[data-hall-mode="normal"] > .hall-discovery .hall-discovery__card + .hall-discovery__card {
    margin-left: -10px;
  }

  .game-shell[data-hall-mode="normal"] > .hall-card {
    --hall-nav-bottom: calc(var(--player-nav-bottom) + 1px);
    aspect-ratio: auto;
    flex: 1 1 0;
    width: min(100%, 760px);
    height: auto;
    margin: 4px auto 0;
    position: relative;
    inset: auto;
  }

  .game-shell[data-hall-mode="normal"] > .hall-card .mining-hall-sections__viewport {
    overscroll-behavior-y: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    overflow: hidden auto;
  }

  .game-shell[data-hall-mode="normal"] > .hall-card .mining-hall-sections__viewport::-webkit-scrollbar {
    display: none;
  }

  .game-shell[data-hall-mode="normal"] > .hall-card :is(.mining-hall-sections__track, .mining-hall-sections__panel, .mining-hall-viewport) {
    height: auto;
    min-height: 100%;
  }

  .game-shell[data-hall-mode="normal"] > .hall-card .mining-room-composition {
    min-height: 0;
  }
}

@media (min-width: 600px) and (orientation: portrait) {
  .game-shell[data-hall-mode="normal"] > .hall-card {
    --hall-nav-bottom: calc(var(--player-nav-bottom) + 3px);
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .game-shell[data-hall-mode="normal"] > .hall-card .mining-hall-sections__switcher {
    bottom: calc(var(--player-nav-height) + 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body .game-shell[data-hall-mode="normal"] > .hall-card > .gameplay-nav, body .game-shell[data-hall-mode="normal"] > .hall-card > .gameplay-nav .gameplay-nav__grid {
    transition: none;
  }
}

/* [project]/apps/web/src/app/hall-league-control.css [app-client] (css) */
.game-shell[data-hall-mode="normal"] .player-hud[data-has-league="true"] {
  grid-template-columns: 36px max-content minmax(0, 1fr) 36px;
  position: relative;
}

.game-shell[data-hall-mode="normal"] .player-hud[data-has-league="true"] > .player-hud__balance {
  max-width: 100%;
}

.game-shell[data-hall-mode="normal"] .player-hud[data-has-league="true"] > .player-hud__avatar {
  grid-column: 4;
}

.hall-league-control {
  grid-column: 3;
  min-width: 0;
  position: relative;
}

.player-hud .hall-league-trigger {
  color: #e8e9e5;
  width: 100%;
  min-height: 48px;
  box-shadow: none;
  text-align: left;
  background: linear-gradient(150deg, #24272a, #151719);
  border: 1px solid #595e61;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.2;
  display: flex;
}

.hall-league-badge {
  border: 1px solid #595e61;
  border-radius: 5px 5px 9px 9px;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 34px;
  font-size: 17px;
  display: grid;
  overflow: hidden;
}

.hall-league-badge img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}

.hall-league-badge--large {
  flex-basis: 64px;
  width: 64px;
  height: 70px;
}

.hall-league-trigger__copy {
  flex: 1;
  gap: 2px;
  min-width: 0;
  display: grid;
}

.hall-league-trigger__copy strong, .hall-league-trigger__copy small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.hall-league-trigger__copy small {
  color: #b1b5b1;
  font-size: 10px;
}

.hall-league-trigger__copy i, .hall-league-progress i {
  background: #0e1112;
  border-radius: 999px;
  height: 4px;
  display: block;
  overflow: hidden;
}

.hall-league-trigger__copy i b, .hall-league-progress i b {
  border-radius: inherit;
  background: #7ec8ff;
  height: 100%;
  display: block;
}

.hall-league-panel {
  z-index: 60;
  overscroll-behavior: none;
  color: #e8e9e5;
  background: linear-gradient(150deg, #24272a, #151719);
  border: 1px solid #595e61;
  border-radius: 10px;
  width: min(680px, 100vw - 24px);
  max-height: min(72dvh, 500px);
  padding: 12px;
  position: fixed;
  top: 50%;
  left: 50%;
  overflow: hidden auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px #0009;
}

.hall-league-current-next {
  text-align: center;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) minmax(0, .9fr);
  align-items: center;
  gap: 10px;
  display: grid;
}

.hall-league-current-next > div {
  justify-items: center;
  gap: 3px;
  min-width: 0;
  display: grid;
}

.hall-league-current-next small, .hall-league-current-next span {
  color: #b1b5b1;
  font-size: 10px;
}

.hall-league-current-next strong {
  overflow-wrap: anywhere;
}

.hall-league-panel .hall-league-current-next {
  background: linear-gradient(#10232c, #0a151c);
  border: 1px solid #385d6b;
  margin-bottom: 12px;
  padding: 10px 8px;
  box-shadow: inset 0 1px #8ad1f01f;
}

.hall-league-panel .hall-league-current-next > div {
  align-content: center;
  padding: 0 8px;
}

.hall-league-panel .hall-league-current-next__progress {
  border-left: 1px solid #385d6b;
  border-right: 1px solid #385d6b;
}

.hall-league-panel .hall-league-current-next__progress .hall-league-progress__track {
  width: 100%;
}

.hall-league-panel .hall-league-current-next .hall-league-badge {
  box-sizing: border-box;
  background: linear-gradient(#102630, #071117);
  border: 1px solid #60879e;
  border-radius: 0;
  width: 46px;
  height: 50px;
  padding: 3px;
  box-shadow: inset 0 0 0 1px #061015, inset 0 0 10px #6ab0d429, 0 2px 6px #0008;
}

.hall-league-panel .hall-league-current-next strong {
  font-size: 11px;
  line-height: 1.1;
}

.hall-league-panel .hall-league-current-next__progress small {
  color: #c9d2d4;
  white-space: nowrap;
  font-size: 8px;
  line-height: 1.1;
}

.hall-league-panel .hall-league-current-next__progress .hall-league-progress__heading {
  justify-content: center;
}

.hall-league-progress {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.hall-league-progress em {
  color: #d4b06a;
  font-size: 10px;
  font-style: normal;
}

.hall-league-browser {
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: stretch;
  gap: 6px;
  margin-top: 16px;
  display: grid;
}

.hall-league-browser > button {
  min-height: 44px;
}

.hall-league-browser > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  display: grid;
}

.hall-league-browser article {
  text-align: center;
  background: #151719;
  border: 1px solid #3e4447;
  border-radius: 7px;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 7px 4px;
  display: grid;
}

.hall-league-browser article img {
  object-fit: contain;
  width: 46px;
  height: 46px;
}

.hall-league-browser article.is-current {
  border-color: #6ab0d4;
  box-shadow: inset 0 0 0 1px #7ec8ff;
}

.hall-league-browser article.is-next {
  border-color: #7ec8ff;
  box-shadow: inset 0 0 0 1px #6ab0d4;
}

.hall-league-browser article.is-past {
  opacity: .72;
}

.hall-league-browser article.is-future {
  opacity: .5;
}

.hall-league-browser article.is-next {
  opacity: 1;
}

.hall-league-browser article em {
  color: #7ec8ff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.hall-league-value {
  color: #cbd8d1;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.hall-league-tab-panel > .hall-league-cta {
  color: #d4b06a;
  letter-spacing: .04em;
  text-align: center;
  margin: 28px 0 0;
  font-size: 11px;
  font-weight: 800;
}

.hall-league-help {
  color: #cbd8d1;
  border-top: 1px solid #3e4447;
  margin-top: 24px;
  padding-top: 8px;
  font-size: 11px;
}

.hall-league-help p {
  margin: 7px 0 0;
  line-height: 1.35;
}

.hall-league-help strong {
  color: #e8e9e5;
}

.hall-league-panel .league-console strong {
  overflow-wrap: anywhere;
}

.hall-league-panel .league-badge {
  color: #e8e9e5;
  box-shadow: none;
  background: #191b1e;
  border-color: #595e61;
}

.hall-league-panel .league-badge small {
  color: #b1b5b1;
}

.hall-league-panel .league-progress {
  grid-column: 1 / -1;
}

.hall-league-panel > p {
  margin: 10px 0 0;
  font-size: 12px;
}

.hall-league-panel .league-progress div {
  flex-wrap: wrap;
}

.hall-league-panel {
  background: linear-gradient(145deg, #1b2b36 0%, #101b24 58%, #09131c 100%);
  border-color: #50798d;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 18px 45px #000b, inset 0 1px #6ab0d433;
}

.hall-league-hero {
  isolation: isolate;
  background: radial-gradient(at 50% 42%, #23486052 0%, #19273033 21%, #0000 56%), radial-gradient(at 12% 100%, #27405129, #0000 44%), linear-gradient(145deg, #2d353952 0%, #17181952 47%, #0b0d0d52 100%);
  border: 1px solid #39515d;
  border-radius: 11px;
  grid-template-columns: minmax(76px, .82fr) minmax(130px, 1.35fr) minmax(76px, .82fr);
  align-items: center;
  gap: 10px;
  padding: 12px 8px 14px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px #8ad1f02e, inset 0 -16px 26px #0008, 0 7px 18px #0007;
}

.hall-league-hero__frame {
  z-index: 1;
  object-fit: fill;
  object-position: center top;
  clip-path: inset(0 0 clamp(55px, 8.58vw, 65px));
  pointer-events: none;
  width: 100%;
  height: clamp(220px, 33vw, 252px);
  display: block;
  position: absolute;
  inset: 0;
}

.hall-league-hero > :not(.hall-league-hero__frame) {
  z-index: 2;
  position: relative;
}

.hall-league-trigger--hero .hall-league-hero {
  padding-top: 4px;
  padding-bottom: 4px;
}

.hall-league-rank {
  text-align: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  display: grid;
}

.hall-league-rank--current .hall-league-badge {
  border-color: #6ab0d4;
  box-shadow: 0 0 18px #6ab0d435;
}

.hall-league-rank--next {
  opacity: .92;
}

.hall-league-rank--next .hall-league-badge {
  border-color: #60879e;
  position: relative;
  box-shadow: 0 0 14px #6ab0d424;
}

.hall-league-rank--next .hall-league-badge:after {
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #0000, #d8f7ffbb, #0000);
  width: 34%;
  animation: 4.8s ease-in-out infinite hall-league-shield-shine;
  position: absolute;
  inset: -20% 35% -20% -65%;
  transform: skewX(-18deg);
}

.hall-league-rank small, .hall-league-rank span {
  color: #c1b59d;
  letter-spacing: .04em;
  font-size: 9px;
}

.hall-league-rank strong {
  overflow-wrap: anywhere;
}

.hall-league-progress {
  gap: 7px;
  min-width: 0;
  padding: 0 2px;
  display: grid;
}

.hall-league-progress__heading {
  justify-content: space-between;
  align-items: baseline;
  gap: 5px;
  display: flex;
}

.hall-league-progress__heading small, .hall-league-progress__threshold {
  color: #c1b59d;
  font-size: 9px;
}

.hall-league-progress__heading strong {
  color: #f0d18a;
  font-size: 17px;
}

.hall-league-progress__track {
  padding: 5px 0;
}

.hall-league-progress__track i {
  background: #0b0c0d;
  border: 1px solid #375666;
  border-radius: 999px;
  height: 9px;
  display: block;
  overflow: hidden;
  box-shadow: inset 0 1px 3px #000;
}

.hall-league-progress__track i b {
  border-radius: inherit;
  background: linear-gradient(90deg, #50798d, #8ad1f0 78%, #bdf1ff);
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 12px #6ab0d499;
}

.hall-league-progress__track i b:after {
  content: "";
  background: linear-gradient(90deg, #0000, #d6f8ffaa, #0000);
  width: 35%;
  animation: 2.8s ease-in-out infinite hall-league-energy;
  position: absolute;
  inset: 0 auto 0 -35%;
}

.hall-league-progress__remaining, .hall-league-progress__threshold {
  color: #eee9dc;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.hall-league-progress em {
  color: #f0d18a;
  text-align: center;
  font-size: 10px;
  font-style: normal;
  line-height: 1.25;
}

@keyframes hall-league-energy {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(390%);
  }
}

.hall-league-value, .hall-league-cta, .hall-league-help, .hall-league-browser {
  position: relative;
}

.hall-league-block {
  background: #0e0f10d9;
  border: 1px solid #385562;
  border-radius: 8px;
  padding: 10px 11px;
  position: relative;
}

.hall-league-block header {
  color: #f0d18a;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid #385562;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  font-size: 11px;
  display: flex;
}

.hall-league-block header span {
  color: #9be8f2;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 52px;
}

.hall-league-block dl {
  background: #385562;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0 0;
  display: grid;
}

.hall-league-block dl > div {
  background: #10191e;
  min-width: 0;
  padding: 7px 8px;
}

.hall-league-block dt {
  color: #8fabb5;
  text-transform: uppercase;
  font-size: 9px;
}

.hall-league-block dd {
  color: #e8e9e5;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  font-size: 11px;
}

.hall-league-block p {
  color: #b9cbd1;
  margin: 9px 0 0;
  font-size: 11px;
}

.hall-league-value {
  background: #111314aa;
  border: 1px solid #3a3d40;
  border-radius: 8px;
  padding: 10px 11px;
}

.hall-league-help {
  background: #0e0f10bb;
  border: 1px solid #385562;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.hall-league-help > div {
  padding: 0 11px 11px;
}

.hall-league-browser > div > p {
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  grid-column: 1 / -1;
  place-items: center;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 10px;
  display: grid;
}

.hall-league-browser > button {
  color: #f0d18a;
  background: linear-gradient(#203a4a, #121d24);
  border-color: #5296b8;
  box-shadow: 0 0 10px #6ab0d42b;
}

@keyframes hall-league-shield-shine {
  0%, 62% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }

  72% {
    opacity: .85;
  }

  88%, 100% {
    opacity: 0;
    transform: translateX(470%) skewX(-18deg);
  }
}

@media (max-width: 390px) {
  .hall-league-panel {
    padding: 10px;
  }

  .hall-league-hero {
    gap: 5px;
    padding-inline: 4px;
  }

  .hall-league-badge--large {
    flex-basis: 54px;
    width: 54px;
    height: 60px;
  }

  .hall-league-progress__heading small {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-league-progress__track i b:after {
    animation: none;
    display: none;
  }

  .hall-league-rank--next .hall-league-badge:after {
    opacity: .22;
    animation: none;
    transform: none;
  }
}

.game-shell[data-hall-mode="normal"] .upper-hud__league {
  z-index: 60;
  width: min(100%, 760px);
  margin: 0 auto -9px;
  position: relative;
}

.hall-league-trigger--hero {
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  min-height: 0 !important;
  box-shadow: none !important;
  background: none !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: 0 !important;
  transition: none !important;
  display: block !important;
}

.hall-league-trigger--hero:hover, .hall-league-trigger--hero:active {
  box-shadow: none !important;
  filter: none !important;
  background: none !important;
  border: 0 !important;
  transform: none !important;
}

.hall-league-trigger--hero:focus {
  outline: none;
}

.hall-league-trigger--hero:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #8ad1f0;
}

.hall-league-trigger--hero[aria-expanded="true"] {
  border-radius: 14px 14px 0 0 !important;
}

.hall-league-trigger--hero .hall-league-hero {
  width: 100%;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: minmax(58px, .78fr) minmax(0, 1.45fr) minmax(58px, .78fr);
  gap: 6px;
  min-height: clamp(200px, 29.7vw, 227px);
  padding: 32px clamp(22px, 4vw, 32px) clamp(3px, 28px - 3.3vw, 8px);
}

.hall-league-trigger--hero .hall-league-badge--large {
  flex-basis: 54px;
  width: 54px;
  height: 58px;
}

.hall-league-trigger--hero .hall-league-rank {
  gap: 5px;
}

.hall-league-trigger--hero .hall-league-rank small, .hall-league-trigger--hero .hall-league-rank span {
  font-size: 8px;
  line-height: 1.05;
}

.hall-league-trigger--hero .hall-league-rank strong {
  font-size: 13px;
  line-height: 1.05;
}

.hall-league-trigger--hero .hall-league-progress {
  gap: 4px;
  width: 100%;
  padding: 0;
}

.hall-league-trigger--hero .hall-league-progress__heading {
  align-items: flex-end;
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.hall-league-trigger--hero .hall-league-progress__heading small {
  color: #d0c5ae;
  text-align: left;
  flex: auto;
  min-width: 0;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.05;
}

.hall-league-trigger--hero .hall-league-progress__heading strong {
  color: #f0d18a;
  text-align: right;
  flex: none;
  margin-left: auto;
  font-size: 14px;
  line-height: 1;
}

.hall-league-trigger--hero .hall-league-progress__track {
  width: 100%;
  padding: 2px 0;
}

.hall-league-trigger--hero .hall-league-progress__track i {
  height: 8px;
}

.hall-league-trigger--hero .hall-league-progress__remaining, .hall-league-trigger--hero .hall-league-progress__threshold {
  font-size: 9px;
  line-height: 1.05;
}

.hall-league-trigger--hero .hall-league-progress em {
  font-size: 8px;
}

.hall-league-panel {
  --hall-league-panel-overlap: 24px;
  z-index: 1;
  top: calc(100% - var(--hall-league-panel-overlap));
  width: 100%;
  max-height: calc(100svh - var(--cs-hud-top, 24px) - var(--cs-hud-bottom, 12px) - 24px);
  overscroll-behavior: none;
  touch-action: pan-y;
  border-color: currentColor #426571 #426571;
  border-top-style: none;
  border-top-width: 0;
  border-radius: 0 0 14px 14px;
  position: absolute;
  left: 0;
  transform: none;
  box-shadow: 0 18px 45px #000b, inset 1px 0 #91c6ce12, inset -1px 0 #91c6ce12, inset 0 -1px #6ab0d422;
}

.hall-league-panel__sticky {
  z-index: 5;
  background: linear-gradient(#142934 0%, #0a1720 100%);
  border-bottom: 1px solid #426571;
  margin: -14px -14px 20px;
  padding: 8px 14px 12px;
  position: sticky;
  top: 0;
  box-shadow: 0 8px 14px #0008;
}

.hall-league-panel__tabs button:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #8ad1f0;
}

.hall-league-panel__tabs {
  background: #385d6b;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  display: grid;
}

.hall-league-panel__tabs button {
  color: #aebdc3;
  background: #0a151c;
  border: 0;
  border-radius: 0;
  min-width: 0;
  min-height: 44px;
  padding: 7px 6px;
  font-size: 10px;
  font-weight: 700;
}

.hall-league-panel__tabs button[aria-selected="true"] {
  color: #f4d187;
  background: linear-gradient(#263221, #171d17);
  box-shadow: inset 0 -2px #d7a947;
}

.hall-league-tab-panel {
  min-width: 0;
}

.hall-league-tab-panel > .hall-league-value {
  margin-top: 12px;
}

.hall-league-tab-panel > .hall-league-browser, .hall-league-help--tab {
  margin-top: 0;
}

.hall-league-help--tab h3 {
  color: #f0d18a;
  margin: 0 0 10px;
  font-size: 13px;
}

@media (max-width: 784px) {
  .game-shell[data-hall-mode="normal"] .upper-hud__league {
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 390px) {
  .hall-league-trigger--hero .hall-league-hero {
    grid-template-columns: minmax(62px, .78fr) minmax(118px, 1.4fr) minmax(62px, .78fr);
  }
}

@media (max-width: 330px) {
  .hall-league-trigger--hero .hall-league-hero {
    min-height: 204px;
    padding-bottom: 12px;
  }
}

.hall-league-trigger--hardware .hall-league-hero {
  aspect-ratio: 3;
  background: none;
  grid-template-columns: 31% 38% 31%;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.hall-league-trigger--hardware .hall-league-hero__frame {
  z-index: 2;
  object-fit: contain;
  object-position: center;
  clip-path: none;
  height: 100%;
}

.hall-league-trigger--hardware .hall-league-hero > .hall-league-rank {
  z-index: 3;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  background: repeating-linear-gradient(0deg, #6cd4de08 0 1px, #0000 1px 4px), radial-gradient(circle at 50% 42%, #4cc2cf1c 0%, #0000 70%), linear-gradient(#0a1518 0%, #020506 100%);
  border: 0;
  align-content: center;
  justify-self: center;
  gap: 0;
  width: 66%;
  height: 44%;
  min-height: 0;
  padding: 0 2px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #020405, inset 0 6px 13px #000d, inset 0 0 12px #4cc2cf1a;
}

.hall-league-trigger--hardware .hall-league-badge--large {
  width: 74.8%;
  height: 74.8%;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  flex-basis: auto;
  overflow: visible;
}

.hall-league-trigger--hardware .hall-league-badge--large img {
  filter: drop-shadow(0 3px 6px #000);
  width: 100%;
  height: 100%;
}

.hall-league-trigger--hardware :is(.hall-league-rank--current, .hall-league-rank--next) > * {
  transform: none;
}

.hall-league-trigger--hardware .hall-league-rank--current {
  --hall-league-scan-opacity: .26;
  transform: translateX(10%);
}

.hall-league-trigger--hardware .hall-league-rank--next {
  --hall-league-scan-opacity: .42;
  transform: translateX(-10%);
}

.hall-league-trigger--hardware .hall-league-rank--next .hall-league-badge:after {
  content: none;
  animation: none;
  display: none;
}

.hall-league-trigger--hardware .hall-league-hero > .hall-league-progress {
  --hall-league-scan-opacity: .16;
  z-index: 3;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  text-shadow: 0 2px 3px #000;
  background: repeating-linear-gradient(0deg, #6cd4de08 0 1px, #0000 1px 4px), radial-gradient(circle at 50% 38%, #4cc2cf21 0%, #0000 72%), linear-gradient(#0c191d 0%, #020506 100%);
  border: 0;
  border-radius: 0;
  grid-template-columns: 1fr;
  align-content: center;
  place-self: center;
  gap: 1px;
  width: 75.2%;
  height: 26.6%;
  min-height: 0;
  margin-top: 0;
  padding: 3px 4px;
  position: relative;
  overflow: hidden;
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px #020405, inset 0 6px 14px #000d, inset 0 0 14px #4cc2cf1c;
}

.hall-league-trigger--hardware :is(.hall-league-rank, .hall-league-progress):before {
  z-index: 4;
  content: "";
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  background: linear-gradient(#0000 46%, #50bcc91a 48%, #a9f4fadb 50%, #50bcc92e 52%, #0000 54%);
  animation: 8s linear infinite hall-league-screen-scan;
  position: absolute;
  inset: -65% 0;
  transform: translateY(-60%);
}

@keyframes hall-league-screen-scan {
  from {
    opacity: var(--hall-league-scan-opacity);
    transform: translateY(-60%);
  }

  to {
    opacity: var(--hall-league-scan-opacity);
    transform: translateY(60%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-league-trigger--hardware :is(.hall-league-rank, .hall-league-progress):before {
    animation: none;
    display: none;
  }
}

.hall-league-trigger--hardware .hall-league-progress__heading {
  grid-column: 1 / -1;
  justify-content: center;
  align-items: center;
  min-width: 0;
  display: flex;
}

.hall-league-trigger--hardware .hall-league-progress__heading strong {
  color: #e9bd65;
  text-align: center;
  text-shadow: 0 2px 3px #000;
  margin-left: 0;
  font-size: 10px;
  line-height: 1;
}

.hall-league-trigger--hardware .hall-league-progress__track {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.hall-league-trigger--hardware .hall-league-progress__track i {
  background: #050708;
  border-color: #58676b;
  border-radius: 2px;
  height: 5px;
}

.hall-league-trigger--hardware .hall-league-progress__track i b {
  background: linear-gradient(100deg, #0000 0 22%, #dffaffc7 38%, #fff 48% 52%, #dffaffc7 62%, #0000 78% 100%) -80% 0 / 45% 100% no-repeat, linear-gradient(90deg, #3c7f8b, #79cbd3 78%, #d8a951);
  animation: 2.2s linear infinite hall-league-hardware-progress-shine;
  box-shadow: 0 0 6px #5cc8d267;
}

.hall-league-trigger--hardware .hall-league-progress__track i b:after {
  content: none;
  animation: none;
  display: none;
}

@keyframes hall-league-hardware-progress-shine {
  from {
    filter: brightness(.95);
    background-position: -80% 0, 0 0;
  }

  50% {
    filter: brightness(1.9);
  }

  to {
    filter: brightness(.95);
    background-position: 180% 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-league-trigger--hardware .hall-league-progress__track i b {
    animation: none;
  }
}

.hall-league-trigger--hardware .hall-league-progress__power {
  color: #c9d2d4;
  text-align: center;
  white-space: nowrap;
  grid-column: 1 / -1;
  min-width: 0;
  font-size: 5px;
  line-height: 1.1;
}

@media (max-width: 390px) {
  .hall-league-trigger--hardware .hall-league-hero {
    grid-template-columns: 31% 38% 31%;
  }
}

@media (max-width: 599px), (orientation: portrait) {
  .game-shell[data-hall-mode="normal"] .upper-hud__league {
    margin-bottom: -10px;
  }

  .game-shell[data-hall-mode="normal"] .hall-league-trigger--hardware .hall-league-hero {
    height: var(--player-hero-height);
    aspect-ratio: auto;
  }
}

@media (min-width: 600px) and (max-width: 1100px) and (orientation: landscape) {
  .hall-league-trigger--hardware .hall-league-progress {
    gap: 1px 2px;
    padding: 2px 3px;
  }

  .hall-league-trigger--hardware .hall-league-progress__heading strong {
    font-size: 9px;
  }

  .hall-league-trigger--hardware .hall-league-progress__track i {
    height: 5px;
  }

  .hall-league-trigger--hardware .hall-league-progress__power {
    font-size: 3.5px;
  }
}

/* [project]/apps/web/src/app/particle-background.css [app-client] (css) */
.gameplay-background-shell {
  isolation: isolate;
  background: #03080e;
  min-height: 100svh;
  position: relative;
}

.gameplay-background-shell:before, .gameplay-background-shell:after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.gameplay-background-shell:before {
  z-index: -2;
  filter: brightness(1.06) saturate(1.08);
  background: url("/images/cryptoshelter-blueprint-wall-v1.png") center / 100% 100% no-repeat;
}

.gameplay-background-shell:after {
  z-index: -1;
  background: linear-gradient(#02070b33 0%, #02070b70 24%, #02070b91 82%, #02070b40 100%);
}

.game-shell[data-hall-mode="normal"], .game-shell[data-hall-mode="edit"], .game-shell[data-hall-mode="edit"] > .hall-card, .game-shell[data-hall-mode="edit"] > .hall-card > .hall-edit-mode, .gameplay-surface, .storage-screen, .mining-status-screen {
  background-color: #0000;
  background-image: none;
}

.game-shell[data-hall-mode="edit"] {
  padding-top: calc(var(--cs-hud-top) + 15px);
}

.game-shell[data-hall-mode="normal"]:before, .game-shell[data-hall-mode="normal"]:after, .gameplay-surface:before, .gameplay-surface:after, .storage-screen:before, .storage-screen:after, .mining-status-screen:before, .mining-status-screen:after {
  content: none;
  animation: none;
}

.particle-background {
  width: 100%;
  height: var(--cs-stable-background-height, 100vh);
  z-index: -1;
  pointer-events: none;
  position: fixed;
  inset: 0 0 auto;
}

.particle-background--embedded {
  z-index: 0;
  opacity: .44;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* [project]/apps/web/src/app/tech-frame.css [app-client] (css) */
.tech-frame {
  --tech-frame-accent: var(--cs-cyan);
  --tech-frame-border: var(--cs-blue-border);
  --tech-frame-cut: 14px;
  --tech-frame-glow: .13;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: auto;
  clip-path: polygon(var(--tech-frame-cut) 0,
    calc(100% - 7px) 0,
    100% 7px,
    100% calc(100% - var(--tech-frame-cut)),
    calc(100% - var(--tech-frame-cut)) 100%,
    7px 100%,
    0 calc(100% - 7px),
    0 var(--tech-frame-cut));
  background: linear-gradient(135deg,
    var(--tech-frame-accent),
    var(--tech-frame-border) 18%,
    var(--tech-frame-border) 82%,
    var(--tech-frame-accent));
  filter: drop-shadow(0 0 9px rgb(114 213 237 / var(--tech-frame-glow)));
  padding: 1px;
  position: relative;
}

.tech-frame:before {
  content: "";
  z-index: 0;
  pointer-events: none;
  clip-path: inherit;
  border: 1px solid
    color-mix(in srgb, var(--tech-frame-accent) 32%, transparent);
  position: absolute;
  inset: 4px;
}

.tech-frame__content {
  z-index: 1;
  box-sizing: border-box;
  min-width: 0;
  min-height: 100%;
  clip-path: inherit;
  background: linear-gradient(145deg, #091724f5, #050e16f0),
    var(--cs-blueprint-grid);
  padding: 18px;
  position: relative;
}

.tech-frame__corner {
  z-index: 2;
  pointer-events: none;
  border-color: var(--tech-frame-accent);
  opacity: .72;
  width: 26px;
  height: 7px;
  position: absolute;
}

.tech-frame__corner--top {
  border-top: 1px solid;
  top: 5px;
  right: 18px;
}

.tech-frame__corner--bottom {
  border-bottom: 1px solid;
  bottom: 5px;
  left: 18px;
}

.tech-frame--card {
  --tech-frame-cut: 11px;
  --tech-frame-glow: .08;
}

.tech-frame--card .tech-frame__content {
  padding: 14px;
}

.tech-frame--modal {
  --tech-frame-cut: 18px;
  --tech-frame-glow: .18;
}

.tech-frame--hud {
  --tech-frame-cut: 8px;
  --tech-frame-glow: .06;
}

@media (max-width: 420px) {
  .tech-frame__content {
    padding: 14px;
  }

  .tech-frame--card .tech-frame__content {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-frame {
    filter: none;
  }
}

/* [project]/apps/web/src/app/sci-fi-panel-frame.css [app-client] (css) */
.sci-fi-panel-frame {
  --sci-fi-frame-side: clamp(24px, 7.366cqi, 64px);
  --sci-fi-frame-edge: calc(var(--sci-fi-frame-side) * .84375);
  --sci-fi-frame-corner: calc(var(--sci-fi-frame-side) * 1.125);
  --sci-fi-frame-light-upper: calc(var(--sci-fi-frame-side) * .8125);
  --sci-fi-frame-light-lower: calc(var(--sci-fi-frame-side) * .84375);
  --sci-fi-frame-bottom-corner: calc(var(--sci-fi-frame-side) * 1.125);
  --sci-fi-frame-corner-block: min(var(--sci-fi-frame-corner), 25%);
  --sci-fi-frame-light-upper-block: min(var(--sci-fi-frame-light-upper), 18%);
  --sci-fi-frame-light-lower-block: min(var(--sci-fi-frame-light-lower), 18%);
  --sci-fi-frame-bottom-corner-block: min(var(--sci-fi-frame-bottom-corner),
    25%);
  --sci-fi-frame-center-width: calc(var(--sci-fi-frame-side) * 3.325);
  --sci-fi-panel-padding: max(24px, calc(var(--sci-fi-frame-side) * .72));
  isolation: isolate;
  min-width: 0;
  position: relative;
  container-type: inline-size;
}

.sci-fi-panel-frame__art {
  z-index: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sci-fi-panel-frame__slice {
  display: block;
  position: absolute;
  overflow: hidden;
}

.sci-fi-panel-frame__slice image {
  pointer-events: none;
}

.sci-fi-panel-frame__content {
  z-index: 1;
  box-sizing: border-box;
  min-width: 0;
  min-height: 100%;
  padding: var(--sci-fi-panel-padding);
  position: relative;
}

.sci-fi-panel-frame__top-left, .sci-fi-panel-frame__top-right, .sci-fi-panel-frame__bottom-left, .sci-fi-panel-frame__bottom-right {
  width: calc((100% - var(--sci-fi-frame-center-width)) / 2 - var(--sci-fi-frame-side));
  min-width: 0;
  height: var(--sci-fi-frame-edge);
}

.sci-fi-panel-frame__top-left, .sci-fi-panel-frame__bottom-left {
  left: var(--sci-fi-frame-side);
}

.sci-fi-panel-frame__top-right, .sci-fi-panel-frame__bottom-right {
  right: var(--sci-fi-frame-side);
}

.sci-fi-panel-frame__top-left, .sci-fi-panel-frame__top-center, .sci-fi-panel-frame__top-right {
  top: 0;
}

.sci-fi-panel-frame__bottom-left, .sci-fi-panel-frame__bottom-center, .sci-fi-panel-frame__bottom-right {
  bottom: 0;
}

.sci-fi-panel-frame__top-center, .sci-fi-panel-frame__bottom-center {
  width: var(--sci-fi-frame-center-width);
  height: var(--sci-fi-frame-edge);
  left: 50%;
  transform: translateX(-50%);
}

.sci-fi-panel-frame__left-corner-top, .sci-fi-panel-frame__left-light-upper, .sci-fi-panel-frame__left-light-lower, .sci-fi-panel-frame__left-connector, .sci-fi-panel-frame__left-corner-bottom {
  width: var(--sci-fi-frame-side);
  left: 0;
}

.sci-fi-panel-frame__right-corner-top, .sci-fi-panel-frame__right-light-upper, .sci-fi-panel-frame__right-light-lower, .sci-fi-panel-frame__right-connector, .sci-fi-panel-frame__right-corner-bottom {
  width: var(--sci-fi-frame-side);
  right: 0;
}

.sci-fi-panel-frame__left-corner-top, .sci-fi-panel-frame__right-corner-top {
  height: var(--sci-fi-frame-corner-block);
  top: 0;
}

.sci-fi-panel-frame__left-light-upper, .sci-fi-panel-frame__right-light-upper {
  top: var(--sci-fi-frame-corner-block);
  height: var(--sci-fi-frame-light-upper-block);
}

.sci-fi-panel-frame__left-light-lower, .sci-fi-panel-frame__right-light-lower {
  top: calc(var(--sci-fi-frame-corner-block) + var(--sci-fi-frame-light-upper-block));
  height: var(--sci-fi-frame-light-lower-block);
}

.sci-fi-panel-frame__left-connector, .sci-fi-panel-frame__right-connector {
  top: calc(var(--sci-fi-frame-corner-block) + var(--sci-fi-frame-light-upper-block) +
      var(--sci-fi-frame-light-lower-block) - 1px);
  bottom: calc(var(--sci-fi-frame-bottom-corner-block) - 1px);
  background-position: 50% 0;
  background-repeat: repeat-y;
  background-size: 100%;
  min-height: 0;
  position: absolute;
}

.sci-fi-panel-frame__left-connector {
  background-image: url("/game/ui/sci-fi-panel-frame-side-left.svg");
}

.sci-fi-panel-frame__right-connector {
  background-image: url("/game/ui/sci-fi-panel-frame-side-right.svg");
}

.sci-fi-panel-frame__left-corner-bottom, .sci-fi-panel-frame__right-corner-bottom {
  height: var(--sci-fi-frame-bottom-corner-block);
  bottom: 0;
}

@media (max-width: 430px) {
  .sci-fi-panel-frame {
    --sci-fi-panel-padding: max(20px, calc(var(--sci-fi-frame-side) * .72));
  }
}

/*# sourceMappingURL=apps_web_src_app_1iv_sw9pdivr5._.css.map*/