@media (max-width: 1280px) and (max-height: 620px) and (orientation: landscape) {
  body {
    overflow: hidden;
  }

  .game {
    height: 100dvh;
    min-width: 0;
    min-height: 0;
    padding: 3px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 116px;
    grid-template-rows: minmax(0, 1fr) 96px;
    gap: 3px;
  }

  .left-rail {
    position: absolute;
    z-index: 32;
    left: 4px;
    right: 8px;
    top: 4px;
    display: grid;
    grid-template-columns: 142px 1fr 142px;
    grid-template-rows: 66px;
    gap: 6px;
    pointer-events: none;
  }

  .hud-panel {
    position: static;
    width: auto;
    min-height: 0;
    height: 66px;
    padding: 6px 7px;
    pointer-events: auto;
  }

  .hud-panel.enemy {
    grid-column: 1;
  }

  .hud-panel.player {
    grid-column: 3;
  }

  .hud-title {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 6px;
    height: 27px;
  }

  .hud-avatar {
    width: 31px;
    height: 31px;
  }

  .hud-avatar::before {
    inset: 5px 7px 7px;
  }

  .hud-avatar-core::before,
  .hud-avatar-core::after {
    top: 15px;
    width: 6px;
    height: 2px;
  }

  .hud-avatar-core::before {
    left: 12px;
  }

  .hud-avatar-core::after {
    right: 12px;
  }

  .faction-mark {
    right: -4px;
    bottom: -4px;
    width: 17px;
    height: 17px;
    font-size: 0.52rem;
  }

  .hud-name {
    font-size: 0.82rem;
  }

  .hud-reactor {
    min-width: 22px;
    width: 22px;
    height: 22px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hud-reactor-label {
    display: none;
  }

  .hud-reactor .reactor-compact {
    width: 20px;
  }

  .stats {
    grid-template-columns: minmax(36px, 0.8fr) minmax(52px, 1.2fr);
    gap: 3px;
    margin-top: 4px;
  }

  .stat {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 2px;
    min-height: 21px;
    padding: 2px 4px;
  }

  .stat-label {
    display: inline-flex;
    font-size: 0.44rem;
    line-height: 1;
  }

  .stat-word {
    display: none;
  }

  .stat-icon {
    display: inline;
  }

  .stat-value {
    margin-top: 0;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
  }

  .hull-stat .stat-value {
    min-width: 0;
  }

  .hud-reactor-bar {
    min-height: 12px;
    margin-top: 3px;
    gap: 2px;
    padding: 1px;
  }

  .reactor-charge-cell {
    height: 10px;
  }

  .effects {
    display: none;
  }

  .mini-pill {
    padding: 2px 5px;
    font-size: 0.58rem;
  }

  .hint-panel {
    display: none;
  }

  .center-stage {
    grid-column: 1 / 3;
    grid-row: 1;
    gap: 4px;
    padding-left: 0;
    padding-right: 0;
    grid-template-rows: 38px minmax(0, 1fr);
  }

  .turn-banner {
    width: min(344px, 92%);
    min-height: 0;
    padding: 4px 32px;
  }

  .turn-title {
    font-size: 1rem;
  }

  .turn-subtitle {
    margin-top: 1px;
    font-size: 0.68rem;
  }

  .battlefield {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 6px;
    padding: 0 8px 2px;
  }

  .ship-zone {
    --engineering-cell-size: clamp(26px, 7vh, 32px);
    --engineering-cell-gap: 3px;
    --landscape-engineering-stern-offset: clamp(210px, 33vw, 250px);
    min-width: 0;
    padding: 3px 34px;
    overflow: visible;
  }

  .ship-zone.enemy-zone {
    grid-column: 1;
    grid-row: 1;
  }

  .ship-zone.player-zone {
    grid-column: 2;
    grid-row: 1;
  }

  .action-callout {
    width: min(260px, 76%);
    padding: 7px 10px;
  }

  .action-callout-title {
    font-size: 0.82rem;
  }

  .action-callout-target {
    font-size: 0.66rem;
  }

  .ship-art,
  .ship-zone.enemy-zone .ship-art,
  .ship-zone.player-zone .ship-art {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: min(340px, 98%);
    max-height: 76px;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
    opacity: 0.84;
  }

  .ship-normal-shield,
  .ship-zone.enemy-zone .ship-normal-shield,
  .ship-zone.player-zone .ship-normal-shield {
    top: 50%;
    bottom: auto;
    width: 16px;
    height: min(250px, 68%);
    transform: translateY(-50%);
  }

  .ship-zone.enemy-zone .ship-normal-shield {
    left: auto;
    right: 15%;
  }

  .ship-zone.player-zone .ship-normal-shield {
    left: 15%;
    right: auto;
  }

  .ship-normal-shield-fill {
    inset: auto 3px 3px;
    width: auto;
    height: var(--ship-shield-fill, 100%);
    background: linear-gradient(0deg, rgba(43, 185, 255, 0.95), rgba(121, 244, 255, 0.74));
  }

  .ship-normal-shield-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.56rem;
  }

  .ship-engineering-bay,
  .ship-zone.enemy-zone .ship-engineering-bay,
  .ship-zone.player-zone .ship-engineering-bay {
    top: 50%;
    bottom: auto;
    left: auto;
    right: auto;
    max-width: none;
    max-height: calc(100% - 8px);
    flex-direction: column;
    flex-wrap: nowrap;
    transform: translateY(-50%);
  }

  .ship-zone.enemy-zone .ship-engineering-bay {
    left: auto;
    right: var(--landscape-engineering-stern-offset);
  }

  .ship-zone.player-zone .ship-engineering-bay {
    right: auto;
    left: var(--landscape-engineering-stern-offset);
  }

  .engineering-cell {
    padding: 5px 5px;
  }

  .engineering-cell-icon {
    font-size: 0.78rem;
  }

  .engineering-cell-value {
    min-width: 16px;
    max-width: calc(100% + 8px);
    padding: 2px 3px;
    font-size: 0.54rem;
  }

  .engineering-cell-label {
    display: none;
  }

  .slot-row {
    width: min(176px, 30%);
    max-height: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 5px;
    align-self: center;
  }

  .slot-wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0;
    padding-top: 0;
    overflow: visible;
  }

  .slot-status-row {
    position: absolute;
    top: 50%;
    width: max-content;
    max-width: none;
    height: 14px;
    min-height: 14px;
    gap: 2px;
    transform: translateY(-50%);
    pointer-events: auto;
  }

  .enemy-zone .slot-wrap {
    grid-template-rows: auto;
  }

  .enemy-zone .slot-status-row {
    left: calc(100% - 10px);
    right: auto;
    grid-row: 1;
    justify-content: flex-start;
  }

  .player-zone .slot-status-row {
    left: auto;
    right: calc(100% - 10px);
    grid-row: 1;
    justify-content: flex-end;
  }

  .enemy-zone .slot-button,
  .player-zone .slot-button {
    grid-row: 1;
  }

  .slot-status-badge {
    flex: 0 0 auto;
    width: auto;
    min-width: 18px;
    height: 13px;
    padding: 0 4px;
    font-size: 0;
    border-radius: 0;
    clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 5px 100%, 0 50%);
    box-shadow: 0 0 8px rgba(196, 92, 255, 0.42);
  }

  .slot-status-badge::before {
    content: attr(data-short);
    color: currentColor;
    font-size: 0.5rem;
    line-height: 1;
    font-weight: 1000;
  }

  .slot-button {
    height: clamp(38px, 13.2vh, 48px);
    padding: 3px 5px;
    gap: 2px;
  }

  .slot-layers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 2px;
  }

  .layer {
    width: min(34px, 100%);
    min-width: 24px;
    min-height: 22px;
    grid-template-areas: "stack";
    gap: 2px;
    padding: 2px;
    font-size: 0.55rem;
    line-height: 1.05;
  }

  .layer-icon {
    width: auto;
    height: auto;
    font-size: 0.72rem;
  }

  .layer-value {
    min-width: 15px;
    padding: 1px 3px;
    font-size: 0.44rem;
  }

  .layer.shield-bay .layer-value {
    padding-inline: 3px;
    font-size: 0.44rem;
  }

  .layer-marker {
    width: 15px;
    height: 15px;
    font-size: 0.5rem;
  }

  .focus-badge,
  .slot-fx-label,
  .global-fx-chip {
    font-size: 0.56rem;
  }

}
