.battle-shell.dlrz-tutorial-host {
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #050708;
}

.battle-shell.dlrz-tutorial-host > [hidden],
.dlrz-tutorial-root [hidden] {
  display: none !important;
}

.dlrz-tutorial-root {
  --dlrz-accent: #67c6da;
  --dlrz-accent-soft: rgb(76 182 205 / 18%);
  --dlrz-gold: #e8bd68;
  --dlrz-ember: #d96943;
  --dlrz-panel: #101517;
  --dlrz-panel-raised: #171d20;
  --dlrz-border: rgb(227 204 154 / 18%);
  --dlrz-text: #f2ead8;
  --dlrz-muted: #a9aaa3;
  --dlrz-dim: #777c79;
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  overflow: hidden;
  color: var(--dlrz-text);
  background: #060809;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color-scheme: dark;
}

.dlrz-tutorial-root[data-race="undead"] {
  --dlrz-accent: #b58ae5;
  --dlrz-accent-soft: rgb(159 103 213 / 19%);
}

.dlrz-tutorial-root *,
.dlrz-tutorial-root *::before,
.dlrz-tutorial-root *::after {
  box-sizing: border-box;
}

.dlrz-tutorial-root button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--dlrz-border);
  border-radius: 4px;
  color: var(--dlrz-text);
  background: #1a2022;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
}

.dlrz-tutorial-root button:hover:not(:disabled) {
  border-color: rgb(232 189 104 / 55%);
  background: #222a2d;
}

.dlrz-tutorial-root button:focus-visible {
  outline: 3px solid var(--dlrz-accent);
  outline-offset: 2px;
}

.dlrz-tutorial-root button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.65);
  opacity: 0.43;
}

.dlrz-battle-hud {
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem 0.65rem;
  padding: 0.45rem max(0.55rem, env(safe-area-inset-right)) 0.5rem
    max(0.55rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--dlrz-border);
  background:
    linear-gradient(180deg, rgb(19 25 27 / 98%), rgb(9 13 14 / 96%)),
    #0c1011;
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
}

.dlrz-authority-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #cdbf9e;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.dlrz-authority-label__light {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--dlrz-gold);
  box-shadow: 0 0 10px rgb(232 189 104 / 72%);
}

.dlrz-health {
  min-width: 0;
}

.dlrz-health > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  color: var(--dlrz-muted);
  font-size: 0.64rem;
}

.dlrz-health > div:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dlrz-health > div:first-child strong {
  color: #d8e9d8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dlrz-health__track {
  height: 0.5rem;
  overflow: hidden;
  border: 1px solid rgb(109 184 134 / 42%);
  border-radius: 99px;
  background: #050707;
}

.dlrz-health__track i {
  display: block;
  width: var(--dlrz-health, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #397a50, #78c88a);
  box-shadow: 0 0 9px rgb(100 199 126 / 36%);
  transition: width 180ms linear;
}

.dlrz-health--enemy > div:first-child {
  flex-direction: row-reverse;
}

.dlrz-health--enemy > div:first-child strong {
  color: #f1c1ad;
}

.dlrz-health--enemy .dlrz-health__track {
  border-color: rgb(217 105 73 / 45%);
  transform: scaleX(-1);
}

.dlrz-health--enemy .dlrz-health__track i {
  background: linear-gradient(90deg, #8f3226, #e66f4f);
  box-shadow: 0 0 9px rgb(231 101 70 / 36%);
}

.dlrz-wave-status {
  min-width: 5.8rem;
  text-align: center;
}

.dlrz-wave-status span,
.dlrz-wave-status small {
  display: block;
  color: var(--dlrz-dim);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.dlrz-wave-status strong {
  display: block;
  margin: 0.08rem 0;
  color: var(--dlrz-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.1;
}

.dlrz-resource-strip {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: clamp(0.7rem, 5vw, 2rem);
  min-width: 0;
}

.dlrz-resource-strip > span {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 0.28rem;
  color: var(--dlrz-gold);
}

.dlrz-resource-strip b {
  grid-row: 1 / 3;
  color: var(--dlrz-gold);
  font-size: 0.68rem;
}

.dlrz-resource-strip strong {
  color: var(--dlrz-text);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.dlrz-resource-strip small {
  color: var(--dlrz-dim);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dlrz-hud-controls {
  position: absolute;
  top: 1.65rem;
  right: max(0.45rem, env(safe-area-inset-right));
  z-index: 3;
  display: flex;
  gap: 0.25rem;
}

.dlrz-hud-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0.25rem 0.45rem;
  color: var(--dlrz-muted);
  background: rgb(8 11 12 / 76%);
  font-size: 0.6rem;
}

.dlrz-hud-controls button[aria-pressed="true"] {
  border-color: rgb(232 189 104 / 55%);
  color: var(--dlrz-gold);
}

.dlrz-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #030405;
  touch-action: manipulation;
}

.dlrz-stage canvas,
.dlrz-socket-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dlrz-stage canvas {
  display: block;
}

.dlrz-socket-layer {
  z-index: 3;
  pointer-events: none;
}

.dlrz-socket {
  position: absolute;
  width: clamp(46px, 7vw, 62px);
  min-width: 46px !important;
  height: clamp(46px, 7vw, 62px);
  min-height: 46px !important;
  padding: 0;
  border: 2px solid rgb(255 218 138 / 78%) !important;
  border-radius: 50% !important;
  color: #ffe9b1 !important;
  background: rgb(8 11 12 / 42%) !important;
  box-shadow:
    0 0 0 6px rgb(232 189 104 / 8%),
    0 0 24px rgb(232 189 104 / 27%);
  font-family: Georgia, serif !important;
  font-size: 1.45rem !important;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  animation: dlrz-socket-breathe 2.4s ease-in-out infinite;
}

.dlrz-socket.is-occupied {
  width: 48px;
  height: 48px;
  border-color: rgb(103 198 218 / 38%) !important;
  color: transparent !important;
  background: transparent !important;
  box-shadow: none;
  font-size: 0 !important;
  animation: none;
}

.dlrz-socket.is-occupied::after {
  position: absolute;
  right: -0.15rem;
  bottom: -0.15rem;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border: 1px solid var(--dlrz-accent);
  border-radius: 50%;
  color: var(--dlrz-text);
  background: #101719;
  content: attr(aria-label);
  font-size: 0;
}

.dlrz-socket.is-selected {
  border-color: #fff0bd !important;
  box-shadow:
    0 0 0 5px rgb(255 225 149 / 18%),
    0 0 30px rgb(255 210 112 / 52%);
}

.dlrz-socket.is-dimmed {
  border-style: dashed !important;
  border-color: rgb(180 180 170 / 24%) !important;
  color: rgb(210 210 198 / 42%) !important;
  box-shadow: none;
  animation: none;
  opacity: 0.32;
}

@keyframes dlrz-socket-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 5px rgb(232 189 104 / 7%),
      0 0 18px rgb(232 189 104 / 20%);
  }
  50% {
    box-shadow:
      0 0 0 9px rgb(232 189 104 / 12%),
      0 0 30px rgb(232 189 104 / 38%);
  }
}

.dlrz-stage-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  padding: 0.25rem 0.4rem;
  border: 1px solid rgb(255 255 255 / 12%);
  color: rgb(255 236 202 / 55%);
  background: rgb(5 7 8 / 58%);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-50%);
  pointer-events: none;
}

.dlrz-stage-label--enemy {
  left: 0.35rem;
  border-color: rgb(220 91 62 / 28%);
}

.dlrz-stage-label--citadel {
  right: 0.35rem;
  border-color: rgb(78 190 213 / 28%);
}

.dlrz-battle-banner {
  position: absolute;
  z-index: 6;
  top: 0.7rem;
  left: 50%;
  max-width: min(88%, 34rem);
  padding: 0.55rem 1rem;
  border: 1px solid rgb(232 189 104 / 46%);
  border-radius: 3px;
  color: #ffe7ad;
  background: rgb(10 13 14 / 92%);
  box-shadow: 0 10px 28px rgb(0 0 0 / 48%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.76rem, 2.7vw, 1rem);
  text-align: center;
  transform: translateX(-50%);
  animation: dlrz-banner-in 260ms ease-out both;
  pointer-events: none;
}

.dlrz-battle-banner[data-tone="danger"] {
  border-color: rgb(230 94 66 / 68%);
  color: #ffc0aa;
}

.dlrz-battle-banner[data-tone="success"] {
  border-color: rgb(102 199 139 / 60%);
  color: #bde9ca;
}

@keyframes dlrz-banner-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
}

.dlrz-briefing,
.dlrz-outcome,
.dlrz-confirm,
.dlrz-error {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  width: min(90%, 34rem);
  max-height: calc(100% - 1.2rem);
  overflow-y: auto;
  padding: clamp(1rem, 4vw, 1.55rem);
  border: 1px solid rgb(232 189 104 / 48%);
  border-radius: 5px;
  color: var(--dlrz-text);
  background:
    linear-gradient(145deg, rgb(24 30 32 / 98%), rgb(8 11 12 / 98%)),
    #0c1011;
  box-shadow:
    0 0 0 100vmax rgb(0 0 0 / 62%),
    0 24px 70px rgb(0 0 0 / 70%);
  text-align: center;
  transform: translate(-50%, -50%);
  animation: dlrz-dialog-in 260ms ease-out both;
}

@keyframes dlrz-dialog-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px)) scale(0.98);
  }
}

.dlrz-kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--dlrz-gold);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dlrz-briefing h1,
.dlrz-outcome h2,
.dlrz-confirm h2,
.dlrz-error h2 {
  margin: 0;
  color: #fff1c9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 6vw, 2.2rem);
  font-weight: 500;
}

.dlrz-briefing p,
.dlrz-outcome p,
.dlrz-confirm p,
.dlrz-error p {
  max-width: 29rem;
  margin: 0.65rem auto 1rem;
  color: var(--dlrz-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.dlrz-briefing__facts {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dlrz-briefing__facts span {
  min-width: 5.25rem;
  padding: 0.45rem;
  border: 1px solid var(--dlrz-border);
  color: var(--dlrz-dim);
  background: rgb(255 255 255 / 2%);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.dlrz-briefing__facts strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--dlrz-gold);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.dlrz-primary-action {
  padding: 0.65rem 1.4rem !important;
  border-color: rgb(232 189 104 / 70%) !important;
  color: #17130c !important;
  background: linear-gradient(180deg, #f2cf86, #c99343) !important;
  box-shadow: 0 8px 24px rgb(201 147 67 / 24%);
}

.dlrz-danger-action {
  border-color: rgb(229 104 78 / 62%) !important;
  color: #ffc5b2 !important;
  background: rgb(106 35 27 / 72%) !important;
}

.dlrz-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.dlrz-command-deck {
  z-index: 7;
  max-height: 39dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.6rem max(0.65rem, env(safe-area-inset-right))
    max(0.6rem, env(safe-area-inset-bottom))
    max(0.65rem, env(safe-area-inset-left));
  border-top: 1px solid var(--dlrz-border);
  background:
    linear-gradient(180deg, rgb(18 24 26 / 99%), rgb(10 13 14 / 100%)),
    var(--dlrz-panel);
  box-shadow: 0 -9px 28px rgb(0 0 0 / 32%);
}

.dlrz-current-objective {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid rgb(232 189 104 / 30%);
  border-left: 3px solid var(--dlrz-gold);
  background:
    linear-gradient(90deg, rgb(232 189 104 / 8%), transparent 50%),
    rgb(255 255 255 / 2%);
}

.dlrz-current-objective > span {
  color: var(--dlrz-gold);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dlrz-current-objective strong,
.dlrz-current-objective p {
  display: block;
  margin: 0;
}

.dlrz-current-objective strong {
  font-family: Georgia, serif;
  font-size: 0.82rem;
}

.dlrz-current-objective p {
  overflow: hidden;
  color: var(--dlrz-muted);
  font-size: 0.62rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dlrz-current-objective i {
  color: var(--dlrz-dim);
  font-size: 0.62rem;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.dlrz-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.dlrz-tabs button {
  min-width: 0;
  padding: 0.35rem 0.3rem;
  border-radius: 3px;
  color: var(--dlrz-muted);
  background: #111719;
  font-size: 0.67rem;
}

.dlrz-tabs button[aria-selected="true"] {
  border-color: var(--dlrz-accent);
  color: #f7f3e8;
  background: var(--dlrz-accent-soft);
  box-shadow: inset 0 -2px var(--dlrz-accent);
}

.dlrz-panels {
  min-height: 5.5rem;
}

.dlrz-panels > [role="tabpanel"] {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.12rem 0.12rem 0.45rem;
  scroll-padding-inline: 0.12rem;
  scroll-snap-type: x proximity;
}

.dlrz-action-card {
  display: grid;
  min-width: min(82vw, 300px);
  max-width: 330px;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  padding: 0.62rem;
  border: 1px solid var(--dlrz-border);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 3%), transparent),
    var(--dlrz-panel-raised);
  scroll-snap-align: start;
}

.dlrz-action-card.is-recommended {
  border-color: rgb(232 189 104 / 53%);
  box-shadow: inset 3px 0 var(--dlrz-gold);
}

.dlrz-action-card__copy {
  min-width: 0;
}

.dlrz-action-card__eyebrow {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--dlrz-gold);
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dlrz-action-card h3,
.dlrz-action-card p,
.dlrz-action-card small {
  display: block;
  margin: 0;
}

.dlrz-action-card h3 {
  color: #f3ead2;
  font-family: Georgia, serif;
  font-size: 0.86rem;
}

.dlrz-action-card p {
  margin-top: 0.15rem;
  color: var(--dlrz-muted);
  font-size: 0.61rem;
  line-height: 1.35;
}

.dlrz-action-card small {
  margin-top: 0.3rem;
  color: var(--dlrz-dim);
  font-size: 0.56rem;
}

.dlrz-action-button {
  width: 100%;
  padding-inline: 0.6rem;
  border-color: rgb(103 198 218 / 35%) !important;
  background: rgb(60 116 127 / 22%) !important;
}

.dlrz-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dlrz-card-actions .dlrz-action-button {
  width: auto;
  flex: 1 1 5.6rem;
}

.dlrz-empty-state {
  width: 100%;
  margin: 0;
  padding: 0.8rem;
  border: 1px dashed var(--dlrz-border);
  color: var(--dlrz-muted);
  background: rgb(255 255 255 / 2%);
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: center;
}

.dlrz-production-queue {
  display: grid;
  min-width: min(78vw, 260px);
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid var(--dlrz-border);
  background: #121719;
  scroll-snap-align: start;
}

.dlrz-production-queue > div {
  display: grid;
  gap: 0.25rem;
}

.dlrz-production-queue strong {
  font-size: 0.64rem;
}

.dlrz-production-queue [role="progressbar"] {
  height: 0.35rem;
  overflow: hidden;
  border-radius: 9px;
  background: #050707;
}

.dlrz-production-queue [role="progressbar"]::after {
  display: block;
  width: var(--dlrz-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--dlrz-accent);
  content: "";
}

.dlrz-selected-structure {
  display: grid;
  min-width: 12rem;
  align-content: center;
  padding: 0.6rem;
  border: 1px solid rgb(103 198 218 / 30%);
  background: var(--dlrz-accent-soft);
}

.dlrz-selected-structure strong {
  font-family: Georgia, serif;
  font-size: 0.88rem;
}

.dlrz-selected-structure span {
  margin-top: 0.2rem;
  color: var(--dlrz-muted);
  font-size: 0.62rem;
  text-transform: capitalize;
}

#dlrz-panel-guide {
  flex-direction: column;
  overflow-x: hidden;
}

.dlrz-objective-list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dlrz-objective-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  gap: 0.45rem;
  padding: 0.5rem;
  border: 1px solid var(--dlrz-border);
  color: var(--dlrz-muted);
  background: #121719;
}

.dlrz-objective-list li > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--dlrz-border);
  border-radius: 50%;
  color: var(--dlrz-dim);
  font-family: Georgia, serif;
}

.dlrz-objective-list li.is-current {
  border-color: rgb(232 189 104 / 48%);
  color: var(--dlrz-text);
  box-shadow: inset 3px 0 var(--dlrz-gold);
}

.dlrz-objective-list li.is-complete > span {
  border-color: rgb(100 196 133 / 55%);
  color: #a9dfb9;
  background: rgb(66 139 90 / 18%);
}

.dlrz-objective-list strong {
  display: block;
  color: inherit;
  font-size: 0.7rem;
}

.dlrz-objective-list p {
  margin: 0.15rem 0 0;
  color: var(--dlrz-dim);
  font-size: 0.6rem;
  line-height: 1.35;
}

.dlrz-preview-note {
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-left: 2px solid var(--dlrz-gold);
  color: var(--dlrz-dim);
  background: rgb(232 189 104 / 5%);
  font-size: 0.6rem;
  line-height: 1.45;
}

.dlrz-command-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgb(255 255 255 / 5%);
  padding-top: 0.45rem;
}

.dlrz-command-footer > span {
  overflow: hidden;
  color: var(--dlrz-muted);
  font-size: 0.62rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dlrz-command-footer > span[data-tone="warning"] {
  color: #efc27a;
}

.dlrz-command-footer > span[data-tone="success"] {
  color: #9ed8af;
}

.dlrz-command-footer > div {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.dlrz-command-footer button {
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  color: var(--dlrz-muted);
  font-size: 0.62rem;
}

.dlrz-sr-live {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (min-width: 760px) {
  .dlrz-battle-hud {
    padding-inline: 1.2rem;
  }

  .dlrz-health > div:first-child {
    font-size: 0.7rem;
  }

  .dlrz-resource-strip {
    position: absolute;
    bottom: 0.55rem;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
  }

  .dlrz-command-deck {
    padding-inline: 1rem;
  }

  .dlrz-action-card {
    min-width: 285px;
  }
}

@media (max-width: 480px) {
  .dlrz-tutorial-root {
    grid-template-rows: auto minmax(245px, 1fr) auto;
  }

  .dlrz-authority-label {
    padding-right: 8.6rem;
    justify-content: flex-start;
    font-size: 0.49rem;
  }

  .dlrz-health > div:first-child strong {
    display: none;
  }

  .dlrz-resource-strip {
    gap: 0.75rem;
  }

  .dlrz-stage-label {
    display: none;
  }

  .dlrz-current-objective > span {
    display: none;
  }

  .dlrz-current-objective {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dlrz-command-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .dlrz-command-footer > div button {
    flex: 1;
  }
}

@media (orientation: landscape) and (max-height: 650px) {
  .dlrz-tutorial-root {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 39vw);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .dlrz-battle-hud {
    grid-column: 1;
    grid-row: 1;
  }

  .dlrz-stage {
    grid-column: 1;
    grid-row: 2;
  }

  .dlrz-command-deck {
    grid-column: 2;
    grid-row: 1 / 3;
    max-height: none;
    border-top: 0;
    border-left: 1px solid var(--dlrz-border);
  }

  .dlrz-panels > [role="tabpanel"] {
    display: grid;
    overflow-x: hidden;
  }

  .dlrz-action-card,
  .dlrz-production-queue {
    min-width: 0;
  }

  .dlrz-command-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dlrz-tutorial-root *,
  .dlrz-tutorial-root *::before,
  .dlrz-tutorial-root *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dlrz-socket {
    animation: none;
  }
}
