@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,500&family=Syne:wght@600;700;800&display=swap");

:root {
  --em-ink: #e8f0ea;
  --em-muted: #8aa090;
  --em-accent: #7dffb0;
  --em-amber: #ffb84a;
  --em-warn: #ff7a5c;
  --em-panel: rgba(10, 18, 14, 0.82);
  --em-panel-border: rgba(125, 255, 176, 0.18);
  --em-glass: rgba(14, 24, 18, 0.72);
  --em-radius: 14px;
  --em-font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --em-display: "Syne", "DM Sans", system-ui, sans-serif;
}

.empire-stage {
  position: relative;
  width: 100%;
  height: min(62vh, 640px);
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, #2a4a32 0%, transparent 50%),
    linear-gradient(160deg, #1a2e22 0%, #0c1410 100%);
  border: 1px solid rgba(125, 255, 176, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 18px 48px rgba(0, 0, 0, 0.45);
  touch-action: none;
  font-family: var(--em-font);
}

.empire-practice-cta {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20, 40, 28, 0.35), transparent 55%),
    rgba(6, 12, 10, 0.62);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.empire-practice-cta p {
  margin: 0;
  font-family: var(--em-display);
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4fff8;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.empire-practice-cta .empire-cta-sub {
  font-family: var(--em-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--em-muted);
  max-width: 320px;
  text-align: center;
  text-shadow: none;
}

.empire-practice-cta .empire-btn-primary {
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(125, 255, 176, 0.28);
}

.empire-canvas-wrap {
  width: 100%;
  height: 100%;
}

.empire-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.empire-iso-hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 240, 234, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  font-family: var(--em-font);
}

.empire-webgl-fail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 28px;
  text-align: center;
  color: var(--em-ink);
  font-family: var(--em-display);
  font-size: 15px;
  font-weight: 700;
  background: #0e1612;
}

.empire-minimap {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(125, 255, 176, 0.35);
  border-radius: 12px;
  cursor: crosshair;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background: #0a1210;
  overflow: hidden;
}

.empire-box-select {
  display: none;
  position: absolute;
  border: 1px solid rgba(125, 255, 176, 0.85);
  background: rgba(125, 255, 176, 0.12);
  pointer-events: none;
  z-index: 5;
  border-radius: 2px;
}

.empire-play-shell {
  max-height: calc(100dvh - 52px);
  overflow: hidden;
  font-family: var(--em-font);
  color: var(--em-ink);
  background:
    radial-gradient(ellipse at 10% -10%, rgba(40, 80, 55, 0.35), transparent 45%),
    linear-gradient(180deg, #0c1410 0%, #080c0a 100%);
}

.empire-play-shell:fullscreen,
.empire-play-shell:-webkit-full-screen {
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  padding: 12px;
  background: #080c0a;
  overflow: auto;
}

.empire-play-shell:fullscreen .empire-stage,
.empire-play-shell:-webkit-full-screen .empire-stage {
  height: min(72vh, 780px);
}

/* Lobby */
.empire-map-lead {
  margin: 8px 0 0;
  color: var(--em-muted);
  font-size: 13px;
  line-height: 1.4;
}

.empire-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.empire-map-card {
  display: block;
  text-align: left;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.empire-map-card.on {
  border-color: #7dffb0;
  box-shadow: 0 0 0 1px #7dffb0;
}

.empire-map-card canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 6px;
  display: block;
  image-rendering: auto;
  background: #1a3a22;
}

.empire-map-card strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #f4fff8;
}

.empire-map-card span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--em-muted);
}

.empire-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 10, 8, 0.82);
  overflow: auto;
  padding: 24px 16px 40px;
}

.empire-map-overlay .empire-map-grid {
  max-height: none;
}

.empire-lobby {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 16px 36px;
  font-family: var(--em-font);
  color: var(--em-ink);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(50, 120, 80, 0.28), transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(255, 184, 74, 0.12), transparent 40%),
    linear-gradient(180deg, #101814 0%, #080c0a 100%);
  min-height: calc(100dvh - 56px);
}

.empire-lobby h1 {
  font-family: var(--em-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4fff8;
  margin: 10px 0 6px;
}

.empire-lobby > p {
  color: var(--em-muted);
  font-size: 15px;
  line-height: 1.45;
  max-width: 540px;
}

.empire-panel {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--em-panel-border);
  border-radius: var(--em-radius);
  background: var(--em-glass);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.empire-panel h2 {
  font-family: var(--em-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f4fff8;
  margin: 0 0 6px;
}

.empire-btn {
  border: 1px solid rgba(232, 240, 234, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--em-ink);
  font-family: var(--em-font);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.empire-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 255, 176, 0.35);
}

.empire-btn-primary {
  background: linear-gradient(135deg, #7dffb0 0%, #3ecf8a 55%, #2aa86e 100%);
  border-color: transparent;
  color: #06140c;
}

.empire-btn-primary:hover {
  filter: brightness(1.06);
  background: linear-gradient(135deg, #8fffc0 0%, #48d998 55%, #32b878 100%);
}

.empire-btn-danger {
  background: rgba(255, 122, 92, 0.14);
  border-color: rgba(255, 122, 92, 0.4);
  color: #ffc8ba;
}

.empire-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.empire-input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(125, 255, 176, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--em-ink);
  padding: 10px 14px;
  font-family: var(--em-font);
  outline: none;
}

.empire-input:focus {
  border-color: rgba(125, 255, 176, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 255, 176, 0.12);
}

.empire-cmd-bar {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--em-panel-border);
  border-radius: var(--em-radius);
  background: var(--em-panel);
  backdrop-filter: blur(10px);
}

.empire-portrait {
  border: 1px solid rgba(125, 255, 176, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  min-height: 92px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--em-muted);
}

.empire-portrait strong {
  font-family: var(--em-display);
  color: #f4fff8;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
}

.empire-strength {
  color: #3dff7a;
  font-weight: 700;
}

.empire-strength-track {
  display: block;
  margin-top: 4px;
  height: 8px;
  width: 100%;
  max-width: 140px;
  border-radius: 99px;
  background: #14301c;
  overflow: hidden;
}

.empire-strength-track > span {
  display: block;
  height: 100%;
  background: #3dff7a;
  border-radius: 99px;
}

.empire-cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 7px;
}

.empire-cmd-cell {
  aspect-ratio: 1;
  border: 1px solid rgba(232, 240, 234, 0.12);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(40, 60, 48, 0.55), rgba(12, 18, 14, 0.9));
  color: var(--em-ink);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--em-font);
  cursor: pointer;
  padding: 6px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.12s ease, transform 0.1s ease;
}

.empire-cmd-cell:hover:not(:disabled) {
  border-color: rgba(125, 255, 176, 0.55);
  transform: translateY(-1px);
}

.empire-cmd-cell:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.empire-cmd-cell.active {
  border-color: var(--em-accent);
  box-shadow: 0 0 0 1px rgba(125, 255, 176, 0.35) inset;
}

.empire-cmd-cell.empire-delete {
  aspect-ratio: auto;
  min-height: 64px;
  grid-column: span 2;
  background: linear-gradient(160deg, #8a2430, #4a1218);
  color: #fff;
  border-color: #ff8a96;
}

.empire-toast {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 10px 18px;
  border: 1px solid rgba(125, 255, 176, 0.35);
  border-radius: 999px;
  background: rgba(8, 16, 12, 0.92);
  color: #f4fff8;
  font-family: var(--em-font);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.empire-chrono-banner {
  margin: 8px 0;
  padding: 10px 14px;
  border: 1px solid rgba(126, 200, 227, 0.45);
  border-radius: 12px;
  background: rgba(20, 40, 50, 0.75);
  color: #c8f0ff;
  font-family: var(--em-font);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.empire-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--em-panel);
  border: 1px solid var(--em-panel-border);
  backdrop-filter: blur(10px);
}

.empire-topbar a {
  color: var(--em-accent);
  font-weight: 700;
  text-decoration: none;
}

.empire-topbar a:hover {
  text-decoration: underline;
}

.empire-score {
  display: flex;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 8px;
  background: #100e0c;
  color: #f6f0e4;
  border: 2px solid #c6a15a;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.empire-score-age {
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  letter-spacing: 0.04em;
  background: #1a2744;
  color: #f4e7c4;
  border-right: 2px solid #c6a15a;
}

.empire-score-col {
  min-width: 78px;
  padding: 6px 12px 5px;
  text-align: center;
  border-right: 1px solid rgba(198, 161, 90, 0.4);
}

.empire-score-col:last-child {
  border-right: none;
}

.empire-score-ico {
  display: flex;
  justify-content: center;
  color: #f0d9a0;
}

.empire-score-ico svg {
  width: 22px;
  height: 22px;
}

.empire-score-col b {
  display: block;
  margin-top: 1px;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.empire-score-job {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px solid rgba(198, 161, 90, 0.35);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #e7dcc4;
}

.empire-score-job svg {
  width: 14px;
  height: 14px;
}

.empire-res {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  font-weight: 700;
}

.empire-res-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--em-ink);
}

.empire-res-chip .em-ico {
  opacity: 0.9;
  font-size: 11px;
}

.empire-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(125, 255, 176, 0.12);
  border: 1px solid rgba(125, 255, 176, 0.28);
  color: var(--em-accent);
}

.empire-pill-muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--em-muted);
}

.empire-meta {
  color: var(--em-muted);
  font-size: 12px;
  font-weight: 600;
}

.empire-room-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: var(--em-amber);
  letter-spacing: 0.04em;
}

.empire-gameover-modal {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 10, 8, 0.58);
  backdrop-filter: blur(8px);
}

.empire-gameover-card {
  width: min(400px, 100%);
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(125, 255, 176, 0.28);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(125, 255, 176, 0.14), transparent 55%),
    rgba(10, 18, 14, 0.95);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.empire-gameover-card h3 {
  margin: 0 0 8px;
  font-family: var(--em-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4fff8;
}

.empire-gameover-card p {
  margin: 0 0 18px;
  color: var(--em-muted);
  font-size: 14px;
  line-height: 1.4;
}

.empire-waiting-banner {
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 74, 0.3);
  background: rgba(255, 184, 74, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.empire-waiting-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--em-ink);
}

.empire-lobby-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

@media (max-width: 640px) {
  .empire-stage {
    height: auto;
    border-radius: 0;
  }
  .empire-minimap {
    width: 96px;
    height: 96px;
  }
  .empire-cmd-bar {
    right: 8px;
    flex-wrap: wrap;
  }
  .empire-topbar {
    gap: 6px;
  }
}

/* Age-of-Empires style dock: dark panels, icon grid, round minimap */
html.fit-viewport .empire-mount,
.empire-shafi-root {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.empire-play-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  background: #070c12;
}

.empire-play-shell > .empire-topbar,
.empire-play-shell > .empire-score {
  flex: 0 0 auto;
}

.empire-play-shell > .relative {
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.empire-stage {
  height: auto;
  min-height: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.empire-play-shell .empire-stage {
  flex: 1 1 0%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.empire-objective {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 8;
  padding: 4px 10px;
  background: rgba(8, 12, 18, 0.72);
  color: #f2e6c4;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  pointer-events: none;
}

.empire-attack-move {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  padding: 6px 12px;
  background: rgba(18, 28, 16, 0.88);
  color: #e7c56a;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #e7c56a;
  pointer-events: none;
}

.empire-minimap {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 4px solid #c6a15a;
  box-shadow: 0 0 0 2px #3a2a12, 0 12px 28px rgba(0, 0, 0, 0.6);
  right: 16px;
  bottom: 16px;
  overflow: hidden;
}

.empire-minimap canvas {
  border-radius: 50%;
}

.empire-cmd-bar {
  position: absolute;
  left: 8px;
  right: 196px;
  bottom: 10px;
  z-index: 12;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  pointer-events: none;
  backdrop-filter: none;
}

.empire-cmd-bar > * {
  pointer-events: auto;
}

.empire-aoe-left {
  display: grid;
  grid-template-columns: 126px 1fr;
  width: min(420px, 46vw);
  background: linear-gradient(180deg, #121c2c 0%, #0b121c 100%);
  border: 1px solid #24384e;
  color: #e7eef6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.empire-aoe-pop {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 0;
}

.empire-pop-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.empire-age-badge {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #1b3a55;
  color: #f0d78c;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid #c6a15a;
}

.empire-aoe-res {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px 8px;
}

.empire-aoe-res > div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d7e4c8;
}

.empire-aoe-res b {
  font-size: 18px;
  font-weight: 700;
  color: #f4f7fb;
  font-variant-numeric: tabular-nums;
}

.empire-aoe-res svg {
  color: #e7c56a;
}

.empire-portrait {
  border: none;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  border-left: 1px solid #24384e;
}

.empire-role {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9eb0c4;
}

.empire-aoe-card {
  display: flex;
  align-items: stretch;
  background: #0c1622;
  border: 1px solid #1d3348;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  max-width: min(640px, 52vw);
}

.empire-aoe-tabs {
  display: flex;
  flex-direction: column;
  background: #0a121c;
  border-right: 1px solid #1d3348;
}

.empire-aoe-tabs button {
  width: 46px;
  height: 46px;
  background: #122033;
  color: #d5e6f4;
  border: none;
  border-bottom: 1px solid #1d3348;
  cursor: pointer;
}

.empire-aoe-tabs button.on,
.empire-aoe-tabs button.walls.on {
  background: #147a86;
  color: #f3fffd;
  box-shadow: inset 0 0 0 1px #9ff6f0;
}

.empire-row-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 6px 4px;
  color: #8ea4ba;
  font-size: 10px;
  letter-spacing: 0.06em;
  min-width: 32px;
}

.empire-cmd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 62px;
  gap: 4px;
  padding: 6px;
  width: 268px;
  max-width: 100%;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}

.empire-cmd-cell {
  position: relative;
  width: 100%;
  height: 62px;
  min-width: 0;
  aspect-ratio: auto;
  border-radius: 2px;
  border: 1px solid #2a4d6a;
  background: linear-gradient(180deg, #1a334c, #102033);
  color: #d7e6f4;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 2px 2px;
  gap: 2px;
  flex-direction: column;
  white-space: normal;
  overflow: hidden;
}

.empire-cmd-cell .hk {
  position: absolute;
  top: 2px;
  right: 3px;
  font-style: normal;
  font-size: 9px;
  color: #f0d78c;
}

.empire-cmd-cell svg {
  color: #f0d9a0;
}

.empire-cmd-cell.active {
  background: #147a86;
  border-color: #9ff6f0;
  box-shadow: inset 0 0 0 1px rgba(159, 246, 240, 0.45);
}

.empire-cmd-cell:hover:not(:disabled) {
  border-color: #7ee0e0;
  transform: none;
}

.empire-chat-dock {
  position: absolute;
  top: auto;
  right: 16px;
  bottom: 194px;
  width: 200px;
  z-index: 13;
  max-height: 168px;
  margin: 0;
  opacity: 0.94;
}

.empire-iso-hint {
  right: 12px;
  left: auto;
  max-width: 46vw;
  bottom: auto;
  top: 10px;
  text-align: right;
}
