:root {
  color-scheme: dark;
  --shell-bg: #0b0d12;
  --shell-panel: #11141b;
  --shell-panel-2: #151923;
  --shell-line: rgba(255, 255, 255, .09);
  --shell-text: rgba(245, 247, 255, .92);
  --shell-muted: rgba(245, 247, 255, .58);
  --shell-active: #8f6bff;
  --header-h: 56px;
  --header-h-m: 52px;
  --sidebar-w: 240px;
  --bottomnav-h: 56px;
  --ratio-desktop: 1.7777778;
  --ratio-mobile: .4620853;
  --game-gold: #f4bf52;
  --game-purple: #7a35ff;
  --game-red: #dd3f46;
  --game-green: #69db64;
  --aim-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f4bf52' stroke-width='1.6' stroke-linecap='round' opacity='.95'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='1.4' fill='%23f4bf52'/%3E%3C/svg%3E") 12 12, crosshair;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--shell-bg);
  color: var(--shell-text);
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
}

.shell {
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--header-h) 1fr;
  grid-template-areas:
    "header header"
    "sidebar content";
  background: var(--shell-bg);
}

.shell__header {
  grid-area: header;
  min-width: 0;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--shell-line);
  background: rgba(17, 20, 27, .96);
}

.shell__brand,
.shell__title,
.shell__actions {
  min-width: 0;
  display: flex;
  align-items: center;
}

.shell__brand {
  height: 100%;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid var(--shell-line);
  color: var(--shell-text);
  font-weight: 800;
}

.shell__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(143, 107, 255, .18);
  color: #b9a2ff;
  border: 1px solid rgba(143, 107, 255, .35);
}

.shell__title {
  gap: 10px;
  padding: 0 18px;
  color: var(--shell-muted);
  font-size: 13px;
}

.shell__title strong {
  color: var(--shell-text);
  font-size: 14px;
}

.shell__actions {
  gap: 10px;
  padding: 0 16px;
}

.shell__userchip {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--shell-line);
  background: rgba(255, 255, 255, .04);
  color: var(--shell-muted);
  font-size: 12px;
  font-weight: 700;
}

.icon-button {
  height: 30px;
  min-width: 44px;
  border: 1px solid var(--shell-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  color: var(--shell-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.icon-button.is-muted {
  color: var(--game-red);
  border-color: rgba(221, 63, 70, .45);
}

.shell__sidebar {
  grid-area: sidebar;
  min-width: 0;
  border-right: 1px solid var(--shell-line);
  background: var(--shell-panel);
  padding: 14px;
}

.shell__nav {
  display: grid;
  gap: 6px;
}

.shell__nav-item {
  height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--shell-muted);
  text-align: left;
  cursor: pointer;
}

.shell__nav-item.is-active {
  color: var(--shell-text);
  border-color: rgba(143, 107, 255, .34);
  background: rgba(143, 107, 255, .14);
}

.shell__content {
  grid-area: content;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2vw, 32px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 34%),
    #080a0f;
  container-type: size;
}

.shell__stage {
  width: min(100%, calc(100cqh * var(--ratio-desktop)));
  height: min(100%, calc(100cqw / var(--ratio-desktop)));
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #040407;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #030306;
  cursor: var(--aim-cursor);
}

.stage__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.stage__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 55%, transparent 45%, rgba(0, 0, 0, .28));
}

.stage[data-mobile-composite="true"] .stage__vignette {
  display: none;
}

.stage__flash {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: rgba(255, 240, 190, .8);
  opacity: 0;
}

.stage__hud {
  position: absolute;
  left: 50%;
  top: 2.8%;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(148, 81, 255, .35);
  border-radius: 8px;
  background: rgba(4, 4, 9, .62);
  color: var(--game-gold);
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 800;
  letter-spacing: .04em;
  text-shadow: 0 0 10px rgba(244, 191, 82, .35);
}

.stage__hud,
.shell-counter {
  display: none !important;
}

.hit-layer,
.toolbox-slots,
.modal-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.shell:not([data-screen="stage"]) .hit-layer {
  display: none;
}

.hit-zone {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: var(--aim-cursor);
}

.hit-zone:focus-visible {
  outline: 2px solid var(--game-gold);
  outline-offset: 2px;
  background: rgba(244, 191, 82, .08);
}

.hit-zone--dealer-target {
  left: 43.8%;
  top: 49.4%;
  width: 13.2%;
  height: 6.2%;
}

.hit-zone--self-target {
  left: 39%;
  top: 83%;
  width: 18.8%;
  height: 8.2%;
}

.hit-zone--dealer-toolbox {
  left: 26.4%;
  top: 23.4%;
  width: 15.4%;
  height: 26%;
}

.hit-zone--player-toolbox {
  left: 63.4%;
  top: 66%;
  width: 20.4%;
  height: 26%;
}

.target-reticle {
  position: absolute;
  z-index: 6;
  width: 12%;
  aspect-ratio: 1;
  border: 2px solid rgba(244, 191, 82, .75);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(244, 191, 82, .4), inset 0 0 20px rgba(244, 191, 82, .16);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.target-reticle::before,
.target-reticle::after {
  content: "";
  position: absolute;
  background: rgba(244, 191, 82, .75);
}

.target-reticle::before {
  left: 50%;
  top: 12%;
  width: 2px;
  height: 76%;
}

.target-reticle::after {
  left: 12%;
  top: 50%;
  width: 76%;
  height: 2px;
}

.toolbox-slots {
  pointer-events: none;
}

.slot-button {
  position: absolute;
  width: 3.8%;
  height: 7.5%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.slot-button:not(.is-empty):hover,
.slot-button:not(.is-empty):focus-visible {
  background: rgba(244, 191, 82, .1);
  box-shadow: 0 0 18px rgba(244, 191, 82, .38);
  outline: none;
}

.slot-button.is-empty {
  cursor: default;
}

.slot-button.is-disabled {
  opacity: .45;
}

.slot-count {
  display: none;
}

.shell-counter {
  position: absolute;
  right: 14.6%;
  top: 57.2%;
  z-index: 5;
  display: flex;
  gap: 16px;
  color: rgba(255, 234, 176, .76);
  font-size: clamp(10px, 1vw, 15px);
  font-weight: 900;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, .8);
}

.shell-counter span:first-child {
  color: #ff4a48;
}

.stage-tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 7;
  display: flex;
  gap: 6px;
  opacity: .18;
  transition: opacity .15s ease;
  display: none;
}

.shell[data-debug="true"] .stage-tools {
  display: flex;
}

.shell[data-debug="true"] .stage-tools:hover,
.shell[data-debug="true"] .stage-tools:focus-within {
  opacity: 1;
}

.stage-tools button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background: rgba(0, 0, 0, .58);
  color: rgba(255, 248, 223, .76);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.modal-layer {
  z-index: 8;
  pointer-events: none;
}

.modal-layer.is-active {
  pointer-events: auto;
}

.modal-layer.is-terminal-screen,
.modal-layer.is-stage-callout,
.modal-layer.is-image-actions,
.modal-layer.is-item-effect {
  pointer-events: none;
}

.modal-layer.is-terminal-screen .terminal-panel,
.modal-layer.is-stage-callout .result-plate,
.modal-layer.is-image-actions .image-action,
.modal-layer.is-item-effect .item-effect-panel {
  pointer-events: auto;
}

.overlay-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .08);
}

.overlay-card-wrap {
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: min(31%, 430px);
  max-height: 54%;
}

.overlay-card {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(244, 191, 82, .32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(50, 24, 73, .92), rgba(8, 6, 13, .96)),
    #08060d;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .05);
}

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

.overlay-card h2 {
  color: var(--game-gold);
  font-size: clamp(18px, 1.45vw, 26px);
  letter-spacing: .02em;
}

.overlay-card p {
  color: rgba(255, 248, 223, .76);
  line-height: 1.55;
}

.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(244, 191, 82, .4);
  border-radius: 7px;
  background: rgba(244, 191, 82, .12);
  color: var(--game-gold);
  cursor: pointer;
  font-weight: 900;
}

.game-button.secondary {
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 248, 223, .78);
  background: rgba(255, 255, 255, .06);
}

.game-button.danger {
  border-color: rgba(221, 63, 70, .46);
  color: #ff7b7b;
  background: rgba(221, 63, 70, .13);
}

.terminal-panel {
  position: absolute;
  right: 3%;
  bottom: 4%;
  z-index: 9;
  width: min(28%, 390px);
  max-height: 48%;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(244, 191, 82, .34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 10, 18, .94), rgba(4, 4, 8, .98)),
    #06050a;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .74), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.terminal-panel h2,
.terminal-panel p {
  margin: 0;
}

.terminal-panel h2 {
  color: var(--game-gold);
  font-size: clamp(20px, 1.55vw, 30px);
  line-height: 1;
}

.terminal-panel p {
  color: rgba(255, 248, 223, .74);
  font-size: 13px;
  line-height: 1.45;
}

.terminal-kicker {
  color: #9d63ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.item-effect-panel {
  position: absolute;
  right: 3%;
  top: 7%;
  z-index: 10;
  width: min(25%, 360px);
  overflow: hidden;
  display: grid;
  border: 1px solid rgba(244, 191, 82, .38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(9, 7, 12, .88), rgba(3, 3, 6, .96)),
    #050507;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72), inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.item-effect-panel__media {
  height: clamp(150px, 18vw, 230px);
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 191, 82, .22);
  background: #020203;
}

.item-effect-panel__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 70%;
  filter: saturate(1.05) contrast(1.05);
}

.item-effect-panel__body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.item-effect-panel h2,
.item-effect-panel p,
.item-effect-panel span {
  margin: 0;
}

.item-effect-panel h2 {
  color: var(--game-gold);
  font-size: clamp(20px, 1.6vw, 30px);
  line-height: 1;
}

.item-effect-panel span {
  color: rgba(255, 248, 223, .76);
  font-size: 13px;
  line-height: 1.45;
}

.rank-tabs {
  display: flex;
  gap: 8px;
}

.rank-tabs span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  color: rgba(255, 248, 223, .6);
  font-size: 12px;
  font-weight: 900;
}

.rank-tabs .is-active {
  border-color: rgba(157, 99, 255, .68);
  color: #d9c6ff;
  background: rgba(122, 53, 255, .18);
}

.rank-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(244, 191, 82, .18);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
}

.rank-list b {
  color: #9d63ff;
  font-size: 20px;
}

.rank-list strong {
  color: var(--game-gold);
}

.loader-cylinder {
  width: 96px;
  aspect-ratio: 1;
  margin: 0;
  display: grid;
  place-items: center;
  border: 2px solid rgba(157, 99, 255, .7);
  border-radius: 50%;
  box-shadow: 0 0 36px rgba(122, 53, 255, .42), inset 0 0 26px rgba(122, 53, 255, .22);
  animation: spin 1.4s linear infinite;
}

.loader-cylinder span {
  grid-area: 1 / 1;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(244, 191, 82, .45);
  background: rgba(244, 191, 82, .18);
}

.loader-cylinder span:nth-child(1) { transform: translateY(-29px); }
.loader-cylinder span:nth-child(2) { transform: translateX(29px); }
.loader-cylinder span:nth-child(3) { transform: translateY(29px); }
.loader-cylinder span:nth-child(4) { transform: translateX(-29px); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result-plate {
  position: absolute;
  right: 4%;
  top: 8%;
  z-index: 9;
  width: min(24%, 330px);
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(244, 191, 82, .36);
  border-radius: 8px;
  background: rgba(5, 5, 9, .86);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .7);
}

.result-plate p,
.result-plate h2,
.result-plate span {
  margin: 0;
}

.result-plate p {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.result-plate h2 {
  font-size: clamp(26px, 2.4vw, 44px);
  line-height: 1;
}

.reload-notice {
  position: absolute;
  right: 4%;
  top: 8%;
  z-index: 9;
  width: min(24%, 330px);
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(244, 191, 82, .34);
  border-radius: 8px;
  background: rgba(5, 5, 9, .82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .62);
  pointer-events: none;
}

.reload-notice .loader-cylinder {
  width: 42px;
}

.reload-notice .loader-cylinder span {
  width: 14px;
}

.reload-notice .loader-cylinder span:nth-child(1) { transform: translateY(-13px); }
.reload-notice .loader-cylinder span:nth-child(2) { transform: translateX(13px); }
.reload-notice .loader-cylinder span:nth-child(3) { transform: translateY(13px); }
.reload-notice .loader-cylinder span:nth-child(4) { transform: translateX(-13px); }

.reload-notice p,
.reload-notice span {
  margin: 0;
}

.reload-notice p {
  color: var(--game-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.reload-notice span {
  color: rgba(247, 232, 195, .74);
  font-size: 12px;
}

.result-plate.is-live h2,
.result-plate.is-live p {
  color: var(--game-red);
}

.result-plate.is-blank h2,
.result-plate.is-blank p {
  color: #d9c6ff;
}

.settlement-score {
  color: var(--game-green);
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 900;
}

.settlement-score.is-loss {
  color: var(--game-red);
}

.image-action {
  position: absolute;
  z-index: 12;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.image-action:focus-visible {
  outline: 2px solid var(--game-gold);
  outline-offset: 3px;
  background: rgba(244, 191, 82, .08);
}

.image-action--leaderboard-back { left: 0; top: 0; width: 22%; height: 9%; }
.image-action--bank { left: 20%; top: 51%; width: 28%; height: 10%; }
.image-action--double { left: 51%; top: 51%; width: 30%; height: 10%; }
.image-action--win-continue { left: 14%; top: 88%; width: 34%; height: 8%; }
.image-action--win-home { left: 52%; top: 88%; width: 34%; height: 8%; }
.image-action--death-retry { left: 14%; top: 87%; width: 34%; height: 8%; }
.image-action--death-home { left: 52%; top: 87%; width: 34%; height: 8%; }

.mode-grid {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: block;
}

.mode-card {
  position: absolute;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: transparent;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.hub-label-mask {
  position: absolute;
  left: 46%;
  top: 12.7%;
  width: 46%;
  height: 7.5%;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #020207;
  color: #9d63ff;
  font-size: clamp(14px, 1.3vw, 22px);
  font-weight: 900;
  letter-spacing: .14em;
  pointer-events: none;
  box-shadow: 0 0 22px #020207;
}

.mode-card--arcade {
  left: 11%;
  top: 18%;
  width: 30%;
  height: 63%;
}

.mode-card--pve {
  left: 42%;
  top: 18%;
  width: 25%;
  height: 63%;
}

.mode-card--pvp {
  left: 68%;
  top: 18%;
  width: 23%;
  height: 63%;
}

.mode-card--resume,
.mode-card--leaderboard {
  display: none;
}

.mode-card strong,
.mode-card span {
  opacity: 0;
}

.mode-card.is-locked {
  opacity: 1;
}

.mode-card:focus-visible {
  outline: 2px solid var(--game-gold);
  outline-offset: 3px;
  background: rgba(244, 191, 82, .08);
}

.devbar {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 20;
  display: flex;
  gap: 4px;
  opacity: .08;
  transition: opacity .15s ease;
  display: none;
}

.shell[data-debug="true"] .devbar {
  display: flex;
}

.shell[data-debug="true"] .devbar:hover,
.shell[data-debug="true"] .devbar:focus-within {
  opacity: 1;
}

.devbar button {
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 5px;
  background: rgba(0, 0, 0, .62);
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  font-size: 11px;
}

.shell__bottomnav {
  display: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 899px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows:
      calc(var(--header-h-m) + env(safe-area-inset-top))
      1fr
      calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
    grid-template-areas:
      "header"
      "content"
      "bottomnav";
  }

  .shell__header {
    grid-template-columns: 1fr auto;
    padding-top: env(safe-area-inset-top);
  }

  .shell__brand {
    border-right: 0;
    padding: 0 12px;
  }

  .shell__title {
    display: none;
  }

  .shell__actions {
    padding: 0 10px;
  }

  .shell__sidebar {
    display: none;
  }

  .shell__content {
    padding: 8px;
  }

  .shell__stage {
    width: min(100%, calc(100cqh * var(--ratio-mobile)));
    height: min(100%, calc(100cqw / var(--ratio-mobile)));
    aspect-ratio: 390 / 844;
  }

  .shell__bottomnav {
    grid-area: bottomnav;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--shell-line);
    background: rgba(17, 20, 27, .98);
  }

  .shell__bottomnav button {
    height: 42px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--shell-muted);
    font-size: 12px;
    font-weight: 800;
  }

  .shell__bottomnav button.is-active {
    background: rgba(143, 107, 255, .16);
    color: var(--shell-text);
  }

  .mode-grid {
    inset: 0;
  }

  .mode-card {
    min-height: 0;
  }

  .mode-card--arcade {
    left: 7%;
    top: 7%;
    width: 86%;
    height: 36%;
  }

  .mode-card--pve {
    left: 7%;
    top: 45%;
    width: 86%;
    height: 21%;
  }

  .mode-card--pvp {
    left: 7%;
    top: 67%;
    width: 86%;
    height: 25%;
  }

  .hub-label-mask {
    display: none;
  }

  .stage__hud {
    top: 1.8%;
    font-size: 10px;
    padding: 4px 8px;
  }

  .hit-zone--dealer-target {
    left: 40%;
    top: 30.8%;
    width: 30%;
    height: 6.4%;
  }

  .hit-zone--self-target {
    left: 31%;
    top: 88.6%;
    width: 38%;
    height: 7%;
  }

  .hit-zone--dealer-toolbox {
    left: 3.5%;
    top: 37%;
    width: 39%;
    height: 17%;
  }

  .hit-zone--player-toolbox {
    left: 60%;
    top: 67.5%;
    width: 39%;
    height: 18%;
  }

  .slot-button {
    width: 11.3%;
    height: 5.4%;
    border-radius: 4px;
  }

  .shell-counter {
    right: 8%;
    top: 51.5%;
    gap: 8px;
    font-size: 10px;
  }

  .overlay-card-wrap {
    right: 5%;
    bottom: 5%;
    width: 86%;
    max-height: 48%;
  }

  .overlay-card {
    padding: 14px;
  }

  .terminal-panel {
    right: 5%;
    bottom: 5%;
    width: 64%;
    max-height: 34%;
    gap: 8px;
    padding: 10px;
  }

  .item-effect-panel {
    right: 5%;
    top: auto;
    bottom: 5%;
    width: 58%;
  }

  .item-effect-panel__media {
    height: 118px;
  }

  .item-effect-panel__body {
    gap: 6px;
    padding: 9px;
  }

  .item-effect-panel h2 {
    font-size: 18px;
  }

  .item-effect-panel span {
    font-size: 11px;
  }

  .reload-notice {
    right: 5%;
    top: 9%;
    width: 58%;
    grid-template-columns: 38px 1fr;
    gap: 9px;
    padding: 10px;
  }

  .reload-notice .loader-cylinder {
    width: 34px;
  }

  .terminal-panel h2 {
    font-size: 18px;
  }

  .terminal-panel p {
    font-size: 11px;
  }

  .settlement-score {
    font-size: 24px;
  }

  .loader-cylinder {
    width: 58px;
  }

  .loader-cylinder span {
    width: 22px;
  }

  .loader-cylinder span:nth-child(1) { transform: translateY(-18px); }
  .loader-cylinder span:nth-child(2) { transform: translateX(18px); }
  .loader-cylinder span:nth-child(3) { transform: translateY(18px); }
  .loader-cylinder span:nth-child(4) { transform: translateX(-18px); }
  
  .result-plate {
    right: 5%;
    top: 9%;
    width: 52%;
    padding: 12px;
  }

  .overlay-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .game-button {
    min-height: 34px;
  }

  .devbar {
    left: 6px;
    bottom: 6px;
    max-width: 95%;
    overflow: auto;
  }
}

.shell:not([data-screen="stage"]):not([data-screen="shellReveal"]) .toolbox-slots {
  display: none;
}

.shell:not([data-screen="stage"]) .hit-layer {
  display: none;
}
