/* src/styles.css */
:root {
  --bg: #0b1322;
  --bg-2: #080c15;
  --card:
    linear-gradient(
      180deg,
      #151f33,
      #101828);
  --card-border: rgba(255, 255, 255, 0.07);
  --text: #e8edf7;
  --muted: #8593b0;
  --dim: #5e6b86;
  --amber: #ffb443;
  --amber-2: #f59e0b;
  --green: #3dd68c;
  --red: #ff8b8b;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body,
#root {
  min-height: 100%;
}
body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background:
    radial-gradient(
      1100px 560px at 50% -8%,
      #1a2742 0%,
      #080c15 62%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
.app {
  position: relative;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
}
@media (min-width: 520px) {
  .app {
    min-height: 100vh;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  background: rgba(11, 19, 34, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.topbar h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #cbb387;
  background: rgba(255, 180, 67, 0.1);
  border: 1px solid rgba(255, 180, 67, 0.22);
  border-radius: 20px;
  padding: 5px 10px;
  white-space: nowrap;
}
.chip-ico {
  font-size: 12px;
}
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 96px;
}
.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.res {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #111a2c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  padding: 9px 11px;
}
.res-ico {
  font-size: 20px;
  flex-shrink: 0;
}
.res-txt b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.res-txt s {
  display: block;
  text-decoration: none;
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.res-strip {
  display: flex;
  gap: 6px;
}
.res-chip {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(21, 31, 51, 0.95),
      rgba(14, 22, 36, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 8px 8px 10px;
  position: relative;
  overflow: hidden;
}
.res-chip::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--rc);
  opacity: 0.4;
}
.res-chip-ico {
  font-size: 16px;
  flex-shrink: 0;
}
.res-chip-txt {
  min-width: 0;
}
.res-chip-txt b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.res-chip-txt s {
  display: block;
  text-decoration: none;
  font-size: 8.5px;
  color: var(--green);
  font-weight: 600;
  line-height: 1.2;
}
.hero {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background:
    linear-gradient(
      145deg,
      #1b2742 0%,
      #141d33 55%,
      #2a2033 100%);
  border: 1px solid rgba(255, 196, 92, 0.16);
  border-radius: 18px;
  padding: 14px;
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-ico {
  font-size: 40px;
  color: #ffc55c;
  filter: drop-shadow(0 4px 12px rgba(255, 180, 67, 0.35));
}
.hero-lvl {
  flex: 1;
}
.hero-cap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #b8a580;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  padding: 5px 8px;
  font-variant-numeric: tabular-nums;
}
.muted {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.big {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}
.bar {
  height: 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 7px;
  background:
    linear-gradient(
      90deg,
      #ffc55c,
      #f59e0b);
  transition: width 0.6s ease;
}
.bar.small {
  height: 4px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.06);
}
.bar.small i {
  background:
    linear-gradient(
      90deg,
      #6ec3ff,
      #4a8cff);
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cost-inline {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cost-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #d7dff0;
  font-variant-numeric: tabular-nums;
}
.cost-mini svg {
  font-size: 13px;
}
.cost-mini.short {
  color: var(--red);
}
.btn {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background:
    linear-gradient(
      135deg,
      #ffc55c,
      #f59e0b);
  color: #231802;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn:active:not(:disabled) {
  transform: scale(0.985);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(0.6);
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px;
}
.build {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bicon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 180, 67, 0.1);
  border: 1px solid rgba(255, 180, 67, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 21px;
}
#root .bicon svg {
  font-size: 21px;
}
.idle-ico {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}
.binfo {
  flex: 1;
  min-width: 0;
}
.binfo b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.binfo span {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.build .bar.small {
  width: 100%;
  margin-top: 2px;
}
.section {
  font-size: 10px;
  font-weight: 700;
  color: #73819e;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 2px 0;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  background: #121b2d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  padding: 10px 11px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.1s ease;
}
.tile:hover {
  border-color: rgba(255, 180, 67, 0.28);
  background: #141e32;
}
.tile:active {
  transform: scale(0.985);
}
.tile-ico {
  font-size: 22px;
  flex-shrink: 0;
}
.t-txt {
  min-width: 0;
  flex: 1;
}
.t-txt b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #dbe3f1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-txt span {
  font-size: 10.5px;
  color: var(--amber);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tile-lock {
  color: #6c7893;
  font-size: 14px;
  flex-shrink: 0;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--dim);
  padding: 6px 2px 0;
}
.link {
  font-size: 10px;
  color: #8b98b4;
  text-decoration: underline;
  opacity: 0.8;
}
.link:hover {
  opacity: 1;
  color: var(--red);
}
.bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 8px;
  background: rgba(9, 14, 26, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 30;
}
.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  font-size: 8.5px;
  font-weight: 600;
  color: #66728c;
  padding: 6px 4px;
  border-radius: 12px;
  transition: color 0.15s ease;
}
.nav-ico {
  font-size: 18px;
}
.nav.active {
  color: var(--amber);
}
.nav:not(.active):hover {
  color: #93a1bc;
}
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  animation: fade 0.2s ease;
}
.sheet {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: #131c2e;
  border-radius: 24px 24px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slide-up 0.24s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@keyframes slide-up {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.sheet-title {
  flex: 1;
}
.sheet-title b {
  display: block;
  font-size: 17px;
  font-weight: 700;
}
.sheet-title span {
  font-size: 12px;
  color: var(--muted);
}
.close {
  color: #8b98b4;
  font-size: 20px;
  display: flex;
  padding: 4px;
  border-radius: 10px;
}
.close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.sheet-section {
  font-size: 10px;
  font-weight: 700;
  color: #73819e;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cost-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #111a2c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cost-chip svg {
  font-size: 17px;
  flex-shrink: 0;
}
.cost-chip em {
  font-style: normal;
  font-weight: 500;
  color: var(--dim);
  font-size: 11px;
}
.cost-chip.short em,
.cost-chip.short span {
  color: var(--red);
}
.sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-row b {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.hint {
  font-size: 11.5px;
  color: #cbb387;
  background: rgba(255, 180, 67, 0.08);
  border: 1px solid rgba(255, 180, 67, 0.16);
  border-radius: 10px;
  padding: 8px 11px;
}
.toasts {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 32;
  pointer-events: none;
  padding: 0 14px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(19, 32, 28, 0.95);
  border: 1px solid rgba(61, 214, 140, 0.3);
  color: #c9f0dd;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.22s ease;
}
.toast.warn {
  background: rgba(38, 30, 17, 0.96);
  border-color: rgba(255, 180, 67, 0.35);
  color: #f0dcbb;
}
.toast-ico {
  font-size: 16px;
  flex-shrink: 0;
}
@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.map-march-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #a9c4e8;
  background: rgba(110, 195, 255, 0.08);
  border: 1px solid rgba(110, 195, 255, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font-variant-numeric: tabular-nums;
}
.map-march-banner svg {
  font-size: 16px;
  flex-shrink: 0;
}
.map-wrap {
  background: #0e1626;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 10px;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.map-tile {
  aspect-ratio: 1;
  border-radius: 7px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-tile.clickable {
  cursor: pointer;
}
.map-tile.sel {
  box-shadow: 0 0 0 2px var(--amber), 0 0 12px rgba(255, 180, 67, 0.4);
  z-index: 2;
}
.map-tile.t-f {
  background: #1c3428;
}
.map-tile.t-h {
  background: #2a3145;
}
.map-tile.t-p {
  background: #2c381f;
}
.map-tile.t-w {
  background: #17324b;
}
.map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.map-pin.own {
  color: #ffc55c;
  filter: drop-shadow(0 2px 4px rgba(255, 180, 67, 0.5));
}
.map-pin.foe {
  color: #ff8b8b;
  filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.4));
}
.map-pin.raided {
  color: #6c7893;
  opacity: 0.65;
}
.map-legend {
  display: flex;
  gap: 12px;
  font-size: 9.5px;
  color: var(--dim);
  padding: 0 2px;
  flex-wrap: wrap;
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #6c7893;
}
.dot.own {
  background: #ffc55c;
}
.dot.foe {
  background: #ff8b8b;
}
.dot.raided {
  background: #4a5670;
}
.map-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-card .vname {
  font-size: 15px;
  font-weight: 700;
}
.map-card .vsub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.sheet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.loot-preview {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lootgrid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.loot-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #dbe3f1;
  font-variant-numeric: tabular-nums;
}
.loot-mini svg {
  font-size: 15px;
}
.map-hint {
  text-align: center;
}
.army-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.army-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.army-power {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  display: block;
}
.army-power span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.army-units {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.army-unit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #dbe3f1;
  font-variant-numeric: tabular-nums;
}
.army-unit svg {
  font-size: 18px;
}
.march {
  background:
    linear-gradient(
      180deg,
      #1b2338,
      #141d30);
  border-color: rgba(110, 195, 255, 0.2);
}
.march-ico {
  color: #6ec3ff;
  background: rgba(110, 195, 255, 0.09);
  border-color: rgba(110, 195, 255, 0.2);
}
.march-bar i {
  background:
    linear-gradient(
      90deg,
      #6ec3ff,
      #4a8cff);
}
.march-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.unit {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: #111a2c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.u-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.u-info {
  flex: 1;
  min-width: 0;
}
.u-info b {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.u-info span {
  font-size: 10px;
  color: var(--muted);
}
.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.stepper button {
  min-width: 30px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a2438;
  color: #dfe6f3;
  font-size: 10.5px;
  font-weight: 700;
  padding: 0 6px;
  transition: border-color 0.15s ease;
}
.stepper button:hover {
  border-color: rgba(255, 180, 67, 0.4);
}
.stepper .num {
  min-width: 30px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.stepper .max {
  color: #93a1bc;
}
.sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 184, 77, 0.1),
      rgba(255, 184, 77, 0.03));
  border: 1px solid rgba(255, 184, 77, 0.22);
  border-radius: 13px;
}
.sum b {
  font-size: 14px;
  font-weight: 800;
  color: #ffd08a;
  display: block;
  font-variant-numeric: tabular-nums;
}
.sum span {
  display: block;
  font-size: 9.5px;
  color: #b8a580;
  font-weight: 600;
  margin-top: 2px;
}
.sum-ico {
  font-size: 24px;
  color: #ffd08a;
  flex-shrink: 0;
}
.report-sheet {
  gap: 14px;
}
.report-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 14px;
}
.report-banner.win {
  background:
    linear-gradient(
      135deg,
      #123b2c,
      #0f2c25);
  border: 1px solid rgba(61, 214, 140, 0.3);
}
.report-banner.lose {
  background:
    linear-gradient(
      135deg,
      #3b1414,
      #2c0f0f);
  border: 1px solid rgba(255, 107, 107, 0.3);
}
.report-icon {
  font-size: 28px;
  color: #ffd08a;
  flex-shrink: 0;
}
.report-banner b {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.report-banner.win b {
  color: #6fe0ae;
}
.report-banner.lose b {
  color: #ff9b9b;
}
.report-banner span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.statgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat {
  background: #111a2c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  padding: 9px 11px;
}
.stat span {
  font-size: 9.5px;
  color: var(--muted);
  display: block;
}
.stat b {
  font-size: 14px;
  font-weight: 800;
  margin-top: 2px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat b.red {
  color: var(--red);
}
.stat b.green {
  color: var(--green);
}
.lootrow {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(61, 214, 140, 0.07);
  border: 1px solid rgba(61, 214, 140, 0.18);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #a7e9c8;
  font-variant-numeric: tabular-nums;
}
.lchip svg {
  font-size: 15px;
}
.hire-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111a2c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 9px 11px;
}
.hire-info {
  flex: 1;
  min-width: 0;
}
.hire-info b {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.hire-info > span {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}
.hire-cost {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #b8c2d4;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hire-cost svg {
  font-size: 13px;
}
.btn.ghost {
  background: #1a2438;
  color: #e3e9f4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.btn.mini {
  width: auto;
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 10px;
}
.link {
  background: none;
  border: none;
  color: #8b98b4;
  font-size: 11px;
  text-decoration: underline;
  white-space: nowrap;
}
.link:hover {
  color: var(--amber);
}
.train {
  background:
    linear-gradient(
      180deg,
      #16241f,
      #101a1d);
  border-color: rgba(61, 214, 140, 0.18);
}
.train-ico {
  color: #6fe0ae;
  background: rgba(61, 214, 140, 0.08);
  border-color: rgba(61, 214, 140, 0.2);
}
.train-bar i {
  background:
    linear-gradient(
      90deg,
      #3dd68c,
      #2bb37a);
}
.train-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(61, 214, 140, 0.06);
  border: 1px solid rgba(61, 214, 140, 0.18);
  border-radius: 12px;
}
.train-status svg {
  font-size: 20px;
  flex-shrink: 0;
}
.train-status b {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.train-status span {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.train-btns {
  display: flex;
  gap: 5px;
}
.hire-time {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.note-line {
  font-size: 10px;
  color: var(--dim);
}
.pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: #a7b2c9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.pill.easy {
  color: #6fe0ae;
  background: rgba(61, 214, 140, 0.1);
  border-color: rgba(61, 214, 140, 0.25);
}
.pill.mid {
  color: #ffd08a;
  background: rgba(255, 180, 67, 0.09);
  border-color: rgba(255, 180, 67, 0.22);
}
.pill.hard {
  color: #ff9b9b;
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.25);
}
.map-pin.unknown {
  color: #8b98b4;
  opacity: 0.55;
}
.dot.unknown {
  background: #8b98b4;
}
.map-march-banner.scout {
  color: #c9bdf0;
  background: rgba(184, 169, 240, 0.08);
  border-color: rgba(184, 169, 240, 0.2);
}
.march.scout {
  border-color: rgba(184, 169, 240, 0.22);
  background:
    linear-gradient(
      180deg,
      #1d1b30,
      #141324);
}
.scout-ico {
  color: #b8a9f0;
  background: rgba(184, 169, 240, 0.09);
  border-color: rgba(184, 169, 240, 0.2);
}
.unknown-box {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 11.5px;
  color: #9aa7c0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.45;
}
.unknown-box svg {
  font-size: 20px;
  color: #b8a9f0;
  flex-shrink: 0;
}
.intel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.intel-row b {
  font-variant-numeric: tabular-nums;
}
.actions-row {
  display: flex;
  gap: 8px;
}
.actions-row .btn {
  flex: 1;
  padding: 11px 8px;
  font-size: 12.5px;
}
.btn-ico {
  font-size: 14px;
  margin-right: 5px;
  vertical-align: -2px;
}
.army-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.army-total {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.army-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #121b2d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  padding: 10px 12px;
}
.army-row-info {
  flex: 1;
  min-width: 0;
}
.army-row-info b {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.army-row-info span {
  font-size: 10.5px;
  color: var(--muted);
}
.army-count {
  font-size: 15px;
  font-weight: 800;
  color: #ffd08a;
  font-variant-numeric: tabular-nums;
}
.scout-row {
  border-color: rgba(184, 169, 240, 0.18);
  background:
    linear-gradient(
      180deg,
      #1a1b2e,
      #131424);
}
.hire-row {
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hire-row.active {
  border-color: rgba(255, 180, 67, 0.45);
  background: #17223a;
}
.hire-arrow {
  color: #6c7893;
  font-size: 16px;
  flex-shrink: 0;
}
.army-have {
  font-style: normal;
  font-weight: 500;
  color: var(--dim);
  font-size: 10px;
  margin-left: 4px;
}
.qty-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #111a2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 12px;
}
.qty-head {
  font-size: 12px;
  font-weight: 700;
  color: #dbe3f1;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-row button {
  height: 32px;
  min-width: 38px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a2438;
  color: #dfe6f3;
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px;
}
.qty-row button:hover {
  border-color: rgba(255, 180, 67, 0.4);
}
.qty-val {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.qty-max {
  color: #93a1bc;
}
.qty-cost {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill.filter {
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.pill.filter.on {
  color: #231802;
  background:
    linear-gradient(
      135deg,
      #ffc55c,
      #f59e0b);
  border-color: transparent;
}
.report-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #121b2d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  padding: 10px 12px;
}
.report-row-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: #9fb4d9;
}
.report-row-body {
  flex: 1;
  min-width: 0;
}
.report-row-body b {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.report-row-body span {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.report-row.win {
  border-color: rgba(61, 214, 140, 0.22);
}
.report-row.win .report-row-ico {
  color: #6fe0ae;
  background: rgba(61, 214, 140, 0.08);
}
.report-row.lose {
  border-color: rgba(255, 107, 107, 0.22);
}
.report-row.lose .report-row-ico {
  color: #ff9b9b;
  background: rgba(255, 107, 107, 0.08);
}
.report-row.scout-ok {
  border-color: rgba(184, 169, 240, 0.22);
}
.report-row.scout-ok .report-row-ico {
  color: #b8a9f0;
  background: rgba(184, 169, 240, 0.08);
}
.report-row.neutral .report-row-ico {
  color: #cbb387;
  background: rgba(255, 180, 67, 0.08);
}
.small-note {
  font-size: 10px;
  line-height: 1.45;
}
.raid-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 107, 107, 0.14),
      rgba(255, 107, 107, 0.05));
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 13px;
  font-size: 12px;
  color: #ffb3b3;
}
.raid-banner svg {
  font-size: 22px;
  color: #ff8b8b;
  flex-shrink: 0;
}
.raid-banner b {
  display: block;
  font-weight: 700;
  color: #ffc2c2;
}
.raid-banner span {
  display: block;
  font-size: 10.5px;
  color: #d79a9a;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.nav-ico-wrap {
  position: relative;
  display: inline-flex;
}
.nav-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 8px;
  background: #ff5d5d;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 93, 93, 0.5);
  line-height: 1;
}
.sheet-section.with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.select-all-btns {
  display: inline-flex;
  gap: 10px;
}
.select-all-btns .link {
  font-size: 10px;
}
.defense-note {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 7px;
}
.defense-note b {
  color: #dbe3f1;
  font-variant-numeric: tabular-nums;
}
.world-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.6), 0 14px 32px rgba(0, 0, 0, 0.4);
  background: #101d16;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.world-viewport.dragging {
  cursor: grabbing;
}
.world {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform-origin: 0 0;
  will-change: transform;
  backface-visibility: hidden;
  will-change: transform;
}
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: -2px;
}
.map-tip {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}
.map-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.map-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 15, 26, 0.82);
  color: #dbe3f1;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
}
.map-btn:hover {
  border-color: rgba(255, 197, 92, 0.5);
  color: #ffd08a;
}
.map-btn:active {
  transform: scale(0.94);
}
.world-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.world-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  animation: marker-pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
}
.world-pin {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(9, 15, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -6px 10px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.world-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 34px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.45),
      transparent 70%);
  pointer-events: none;
}
.world-marker:hover .world-pin {
  transform: translateY(-2px) scale(1.05);
}
.world-pin.own {
  color: #ffc55c;
  border-color: rgba(255, 197, 92, 0.55);
  box-shadow: 0 0 20px rgba(255, 180, 67, 0.28), 0 6px 16px rgba(0, 0, 0, 0.55);
}
.world-pin.weak {
  color: #7fe3b4;
  border-color: rgba(61, 214, 140, 0.4);
}
.world-pin.mid {
  color: #ffd08a;
  border-color: rgba(255, 180, 67, 0.45);
}
.world-pin.strong {
  color: #ff8b8b;
  border-color: rgba(255, 107, 107, 0.5);
  box-shadow: 0 0 18px rgba(255, 107, 107, 0.22), 0 6px 16px rgba(0, 0, 0, 0.55);
}
.world-pin.raided {
  color: #6c7893;
  opacity: 0.75;
}
.world-level {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #dbe3f1;
  background: rgba(6, 10, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1px 5px;
  font-variant-numeric: tabular-nums;
}
.world-marker.own .world-level {
  color: #231802;
  background:
    linear-gradient(
      135deg,
      #ffc55c,
      #f59e0b);
  border-color: transparent;
}
.world-name {
  font-size: 8.5px;
  font-weight: 600;
  color: #cbd7ea;
  text-shadow: 0 1px 4px #000;
  max-width: 92px;
  line-height: 1.15;
  text-align: center;
}
.world-marker.sel .world-pin {
  box-shadow: 0 0 0 2px var(--amber), 0 0 22px rgba(255, 180, 67, 0.45);
}
.world-marker.sel .world-pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  border: 2px solid rgba(255, 180, 67, 0.65);
  animation: ring-pulse 1.8s ease-out infinite;
}
.dot.weak {
  background: #3dd68c;
}
.dot.mid {
  background: #ffb443;
}
.dot.strong {
  background: #ff6b6b;
}
@keyframes marker-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes ring-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.85);
  }
  70% {
    opacity: 0;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes danger-pulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255, 107, 107, 0);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 107, 107, 0.35);
  }
}
@keyframes badge-pop {
  0% {
    transform: scale(0.4);
  }
  60% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes float-soft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.content {
  animation: fade-in-up 0.3s ease;
}
.raid-banner {
  animation: danger-pulse 2.4s ease-in-out infinite;
}
.nav-badge {
  animation: badge-pop 0.35s ease;
}
.hero-ico {
  animation: float-soft 5s ease-in-out infinite;
}
.map-card {
  animation: fade-in-up 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.castle-scene {
  position: relative;
  width: calc(100% + 28px);
  margin: 0 -14px;
  aspect-ratio: 1 / 1.12;
  border-radius: 20px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55), 0 14px 32px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(
      circle at 50% 40%,
      #1a2a20,
      #0a1210 75%);
  animation: fade-in-up 0.35s ease;
}
.scene-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background 1s ease;
}
.castle-scene.morning .scene-tint {
  background:
    linear-gradient(
      180deg,
      rgba(255, 205, 140, 0.14),
      rgba(255, 170, 110, 0.03) 55%);
}
.castle-scene.day .scene-tint {
  background:
    linear-gradient(
      180deg,
      rgba(120, 180, 255, 0.05),
      transparent 40%);
}
.castle-scene.evening .scene-tint {
  background:
    linear-gradient(
      180deg,
      rgba(255, 110, 60, 0.16),
      rgba(70, 30, 80, 0.16));
}
.castle-scene.night .scene-tint {
  background:
    linear-gradient(
      180deg,
      rgba(24, 40, 90, 0.42),
      rgba(8, 12, 32, 0.5));
}
.castle-scene.night .scene-tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      2px 2px at 12% 16%,
      rgba(255, 255, 255, 0.85),
      transparent 60%),
    radial-gradient(
      1.5px 1.5px at 28% 8%,
      rgba(255, 255, 255, 0.7),
      transparent 60%),
    radial-gradient(
      2px 2px at 46% 20%,
      rgba(255, 255, 255, 0.8),
      transparent 60%),
    radial-gradient(
      1.5px 1.5px at 63% 12%,
      rgba(255, 255, 255, 0.65),
      transparent 60%),
    radial-gradient(
      2px 2px at 78% 22%,
      rgba(255, 255, 255, 0.8),
      transparent 60%),
    radial-gradient(
      1.5px 1.5px at 90% 10%,
      rgba(255, 255, 255, 0.7),
      transparent 60%),
    radial-gradient(
      1.5px 1.5px at 36% 30%,
      rgba(255, 255, 255, 0.5),
      transparent 60%);
  animation: stars-twinkle 4s ease-in-out infinite alternate;
}
@keyframes stars-twinkle {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
.castle-bg .smoke {
  fill: #cfd8e3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: smoke-rise 4.2s ease-out infinite;
}
.castle-bg .smoke.s2 {
  animation-delay: 1.4s;
}
.castle-bg .smoke.s3 {
  animation-delay: 2.8s;
}
@keyframes smoke-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
    transform: translateY(-28px) scale(1.7);
  }
}
.castle-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.castle-building {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  animation: marker-pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
}
.cb-plate {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(9, 15, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  position: relative;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.castle-building:hover .cb-plate {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(255, 180, 67, 0.5);
}
.cb-level {
  min-width: 16px;
  font-size: 9px;
  font-weight: 800;
  color: #231802;
  background:
    linear-gradient(
      135deg,
      #ffc55c,
      #f59e0b);
  border-radius: 8px;
  padding: 0 5px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.cb-name {
  font-size: 8px;
  font-weight: 600;
  color: #cbd7ea;
  text-shadow: 0 1px 4px #000;
  white-space: nowrap;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.castle-building.maxed .cb-plate {
  border-color: rgba(255, 180, 67, 0.45);
  box-shadow: 0 0 18px rgba(255, 180, 67, 0.2), 0 8px 18px rgba(0, 0, 0, 0.5);
}
.castle-building.busy .cb-plate {
  animation: busy-glow 1.8s ease-in-out infinite;
}
.castle-keep {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.castle-keep:hover {
  transform: translate(-50%, -50%) scale(1.06);
}
.castle-keep:disabled {
  cursor: default;
  opacity: 0.75;
}
.keep-badge {
  font-size: 10px;
  font-weight: 800;
  color: #231802;
  background:
    linear-gradient(
      135deg,
      #ffc55c,
      #f59e0b);
  border-radius: 9px;
  padding: 2px 7px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}
.castle-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background:
    linear-gradient(
      180deg,
      #151f33,
      #101828);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 11px 13px;
}
.castle-hud-info b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.castle-hud-info span {
  font-size: 10px;
  color: var(--muted);
}
.btn.castle-up {
  width: auto;
  padding: 10px 16px;
  font-size: 12.5px;
  border-radius: 11px;
  flex-shrink: 0;
}
.castle-bar {
  height: 5px;
  margin-top: -2px;
}
@keyframes busy-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(61, 214, 140, 0.25), 0 8px 18px rgba(0, 0, 0, 0.5);
    border-color: rgba(61, 214, 140, 0.35);
  }
  50% {
    box-shadow: 0 0 22px rgba(61, 214, 140, 0.55), 0 8px 18px rgba(0, 0, 0, 0.5);
    border-color: rgba(61, 214, 140, 0.7);
  }
}
.castle-bg .flag {
  transform-box: fill-box;
  transform-origin: left center;
  animation: flag-wave 2.4s ease-in-out infinite alternate;
}
@keyframes flag-wave {
  from {
    transform: skewY(0deg) scaleX(1);
  }
  to {
    transform: skewY(-7deg) scaleX(0.9);
  }
}
.castle-bg .water-glint {
  animation: water-glint 3.6s ease-in-out infinite;
}
@keyframes water-glint {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.55;
  }
}
.weather-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}
.particle {
  position: absolute;
  top: -10%;
}
.snowflake {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  animation-name: snow-fall, snow-sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: normal, alternate;
}
@keyframes snow-fall {
  from {
    top: -10%;
  }
  to {
    top: 110%;
  }
}
@keyframes snow-sway {
  from {
    margin-left: -7px;
  }
  to {
    margin-left: 7px;
  }
}
.raindrop {
  width: 1.5px;
  border-radius: 1px;
  background:
    linear-gradient(
      180deg,
      rgba(160, 200, 255, 0),
      rgba(170, 210, 255, 0.8));
  animation-name: rain-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes rain-fall {
  from {
    top: -12%;
  }
  to {
    top: 115%;
  }
}
.leaf {
  width: 12px;
  height: 8px;
  border-radius: 2px 10px 2px 10px;
  opacity: 0.95;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  animation-name: leaf-fall, leaf-sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: normal, alternate;
}
@keyframes leaf-fall {
  from {
    top: -10%;
  }
  to {
    top: 110%;
  }
}
@keyframes leaf-sway {
  from {
    margin-left: -14px;
    transform: rotate(-20deg);
  }
  to {
    margin-left: 14px;
    transform: rotate(25deg);
  }
}
.firefly {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe9a3;
  box-shadow: 0 0 8px 2px rgba(255, 220, 120, 0.65);
  animation-name: firefly-float, firefly-flicker;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: alternate, normal;
}
@keyframes firefly-float {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(var(--fx, 20px), var(--fy, -24px));
  }
}
@keyframes firefly-flicker {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
.walker {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.guard-a {
  animation-name: guard-vert;
  animation-duration: 20s;
}
@keyframes guard-vert {
  0%, 10% {
    transform: translate(0, 0);
  }
  46%, 56% {
    transform: translate(0, -78px);
  }
  92%, 100% {
    transform: translate(0, 0);
  }
}
.guard-b {
  animation-name: guard-horiz;
  animation-duration: 24s;
}
@keyframes guard-horiz {
  0%, 10% {
    transform: translate(0, 0);
  }
  48%, 56% {
    transform: translate(56px, 0);
  }
  92%, 100% {
    transform: translate(0, 0);
  }
}
.walker.cart {
  animation-name: cart-move;
  animation-duration: 30s;
}
@keyframes cart-move {
  0%, 6% {
    transform: translate(0, 0);
  }
  46%, 54% {
    transform: translate(52px, -52px);
  }
  94%, 100% {
    transform: translate(0, 0);
  }
}
.bird {
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.bird-a {
  animation-name: bird-a;
  animation-duration: 26s;
}
@keyframes bird-a {
  from {
    transform: translate(-120px, 0);
  }
  to {
    transform: translate(220px, -18px);
  }
}
.bird-b {
  animation-name: bird-b;
  animation-duration: 34s;
}
@keyframes bird-b {
  from {
    transform: translate(240px, 10px);
  }
  to {
    transform: translate(-120px, -10px);
  }
}
.caravan {
  animation: caravan-move 44s linear infinite;
}
@keyframes caravan-move {
  0% {
    transform: translate(-8px, -6px);
  }
  46%, 54% {
    transform: translate(258px, 158px);
  }
  96%, 100% {
    transform: translate(-8px, -6px);
  }
}
.lantern {
  animation: lantern-flicker 2s ease-in-out infinite;
}
@keyframes lantern-flicker {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
.world .scene-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.world.morning .scene-tint {
  background:
    linear-gradient(
      180deg,
      rgba(255, 205, 140, 0.12),
      rgba(255, 170, 110, 0.03) 55%);
}
.world.day .scene-tint {
  background:
    linear-gradient(
      180deg,
      rgba(120, 180, 255, 0.04),
      transparent 40%);
}
.world.evening .scene-tint {
  background:
    linear-gradient(
      180deg,
      rgba(255, 110, 60, 0.14),
      rgba(70, 30, 80, 0.16));
}
.world.night .scene-tint {
  background:
    linear-gradient(
      180deg,
      rgba(24, 40, 90, 0.4),
      rgba(8, 12, 32, 0.48));
}
.world.night .scene-tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      2px 2px at 14% 18%,
      rgba(255, 255, 255, 0.8),
      transparent 60%),
    radial-gradient(
      1.5px 1.5px at 32% 9%,
      rgba(255, 255, 255, 0.7),
      transparent 60%),
    radial-gradient(
      2px 2px at 51% 22%,
      rgba(255, 255, 255, 0.75),
      transparent 60%),
    radial-gradient(
      1.5px 1.5px at 68% 13%,
      rgba(255, 255, 255, 0.6),
      transparent 60%),
    radial-gradient(
      2px 2px at 82% 24%,
      rgba(255, 255, 255, 0.75),
      transparent 60%);
  animation: stars-twinkle 4s ease-in-out infinite alternate;
}
.world-marker {
  z-index: 3;
}
.castle-keep {
  z-index: 4;
}
.effects-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
  border-radius: inherit;
}
.spark {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd77a;
  box-shadow: 0 0 12px 3px rgba(255, 200, 90, 0.85);
  animation: spark-burst var(--dur, 1.4s) ease-out var(--delay, 0s) infinite;
}
@keyframes spark-burst {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(0.15);
    opacity: 0;
  }
}
.fx-fire::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 92%,
      rgba(255, 90, 20, 0.3),
      transparent 62%);
  animation: fire-glow 1.2s ease-in-out infinite alternate;
}
@keyframes fire-glow {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
.flame {
  position: absolute;
  bottom: 5%;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(
      circle at 50% 78%,
      #ffd166 0%,
      #ff8a3c 44%,
      rgba(200, 40, 0, 0) 76%);
  filter: blur(2px);
  opacity: 0.9;
  animation: flame-dance 1.6s ease-in-out infinite alternate;
}
@keyframes flame-dance {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.75;
  }
  to {
    transform: translateY(-12px) scale(1.18);
    opacity: 1;
  }
}
.smoke-puff {
  position: absolute;
  bottom: 25%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(58, 58, 58, 0.55);
  filter: blur(6px);
  animation: raid-smoke 3s ease-out infinite;
}
@keyframes raid-smoke {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-70px) scale(1.7);
    opacity: 0;
  }
}
.ember {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 8px 2px rgba(255, 140, 40, 0.6);
  animation: ember-rise 2.2s ease-out infinite;
}
@keyframes ember-rise {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-90px) scale(0.3);
    opacity: 0;
  }
}
.world-pin.node-pin {
  width: 30px;
  height: 30px;
  font-size: 16px;
  background: rgba(9, 15, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.world-marker.node {
  z-index: 3;
}
.world-marker.node.owned .world-pin.node-pin {
  border-color: rgba(255, 197, 92, 0.85);
  box-shadow: 0 0 12px rgba(255, 197, 92, 0.5);
}
.world-marker.node .node-bonus {
  font-size: 8px;
  padding: 0 4px;
  background: rgba(9, 15, 26, 0.85);
  color: #cbd7ea;
  border-radius: 6px;
}
.world-marker.node.owned .node-bonus {
  color: #ffd08a;
}
.world-marker.node .node-name {
  display: none;
}
.dot.node {
  background: #8bd17d;
}
.nodes-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.nodes-strip::-webkit-scrollbar {
  display: none;
}
.node-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #cbd7ea;
  background: rgba(21, 31, 51, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 5px 8px;
}
.nodes-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      rgba(21, 31, 51, 0.92),
      rgba(14, 22, 36, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.nodes-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nodes-summary-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #e6edf8;
  white-space: nowrap;
}
.nodes-summary-title svg {
  font-size: 15px;
  color: #d8a96a;
}
.nodes-summary-count {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.nodes-summary-total {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nodes-summary-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nodes-summary-stats::-webkit-scrollbar {
  display: none;
}
.node-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.node-stat svg {
  font-size: 13px;
  align-self: center;
}
.node-stat b {
  font-size: 11.5px;
  font-weight: 700;
  color: #dbe3f1;
}
.node-stat em {
  font-style: normal;
  font-size: 9px;
  color: var(--muted);
}
.troop-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.troop-line {
  display: grid;
  grid-template-columns: 18px 1fr 42px 54px 54px;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  padding: 5px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.troop-line.troop-head {
  background: none;
  color: var(--muted);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
}
.troop-ico {
  font-size: 15px;
}
.troop-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.troop-sent,
.troop-lost,
.troop-surv {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.troop-head .troop-lost,
.troop-head .troop-sent,
.troop-head .troop-surv {
  font-weight: 600;
}
.troop-lost.red {
  color: #ff8b8b;
}
.troop-surv.green {
  color: var(--green);
}
.node-bonus-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: rgba(61, 214, 140, 0.08);
  border: 1px solid rgba(61, 214, 140, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
}
.node-chip.node-count {
  color: var(--muted);
  font-weight: 600;
}
.rating-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}
.rating-note {
  font-size: 10px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.rating-row.me {
  background: rgba(255, 197, 92, 0.1);
  border: 1px solid rgba(255, 197, 92, 0.35);
}
.rating-place {
  width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.rating-place.place-1 {
  color: #ffd166;
}
.rating-place.place-2 {
  color: #cfd8e3;
}
.rating-place.place-3 {
  color: #d89a6a;
}
.rating-name {
  flex: 1;
  min-width: 0;
}
.rating-name b {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rating-name span {
  font-size: 10px;
  color: var(--muted);
}
.rating-score {
  font-weight: 800;
  font-size: 13px;
  color: #ffc55c;
  font-variant-numeric: tabular-nums;
}
.world-bg .cloud-a {
  animation: cloud-drift 55s ease-in-out infinite alternate;
}
.world-bg .cloud-b {
  animation: cloud-drift 72s ease-in-out infinite alternate-reverse;
}
@keyframes cloud-drift {
  from {
    transform: translateX(-40px);
  }
  to {
    transform: translateX(60px);
  }
}
.world-bg .cloud-shadow {
  animation: cloud-shadow-drift 85s linear infinite;
}
@keyframes cloud-shadow-drift {
  from {
    transform: translate(24px, 0);
  }
  to {
    transform: translate(-44px, 16px);
  }
}
.qty-note {
  font-size: 10.5px;
  color: var(--muted);
  margin: 2px 0 8px;
}
.train-queue-list {
  margin: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.train-queue-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.train-queue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.train-queue-row > svg {
  font-size: 17px;
}
.train-queue-info {
  flex: 1;
  min-width: 0;
}
.train-queue-info b {
  display: block;
  font-size: 12px;
}
.train-queue-info span {
  font-size: 10px;
  color: var(--muted);
}
.build-queue {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: -2px 0 4px;
}
.build-queue-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.build-queue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.build-queue-row > svg {
  font-size: 17px;
}
.build-queue-info {
  flex: 1;
  min-width: 0;
}
.build-queue-info b {
  display: block;
  font-size: 12px;
}
.build-queue-info span {
  font-size: 10px;
  color: var(--muted);
}
.foot-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(
      circle at 50% 0%,
      #17263f,
      #0a121f 65%);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background:
    linear-gradient(
      180deg,
      rgba(21, 31, 51, 0.96),
      rgba(13, 20, 33, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.auth-splash {
  text-align: center;
}
.auth-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #ffc55c;
  background: rgba(255, 197, 92, 0.1);
  border: 1px solid rgba(255, 197, 92, 0.3);
  margin-bottom: 14px;
}
.auth-splash .auth-logo {
  margin: 0 auto 14px;
}
.auth-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
}
.auth-sub {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  padding: 3px;
  margin-bottom: 14px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
  border-radius: 9px;
  cursor: pointer;
}
.auth-tab.on {
  background: rgba(255, 197, 92, 0.14);
  color: #ffd08a;
}
.auth-field {
  display: block;
  margin-bottom: 10px;
}
.auth-field span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.auth-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 12, 22, 0.7);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.auth-field input:focus {
  border-color: rgba(255, 197, 92, 0.55);
}
.auth-error {
  font-size: 11.5px;
  color: #ff8b8b;
  margin: 2px 0 8px;
  line-height: 1.35;
}
.auth-submit {
  width: 100%;
  margin-top: 4px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10.5px;
  margin: 14px 0 10px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.auth-guest {
  width: 100%;
}
.auth-note {
  margin-top: 10px;
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
}
.user-chip {
  cursor: pointer;
  font: inherit;
  max-width: 170px;
}
.user-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #0a1424 inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-out;
}
.admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.message-sheet {
  max-width: 420px;
}
.message-body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0 12px;
}
.card.tutorial {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-color: rgba(155, 209, 255, 0.25);
  background:
    linear-gradient(
      180deg,
      rgba(22, 40, 66, 0.95),
      rgba(14, 24, 40, 0.95));
}
.tutorial-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #9bd1ff;
  background: rgba(155, 209, 255, 0.12);
  border: 1px solid rgba(155, 209, 255, 0.25);
  flex-shrink: 0;
}
.tutorial-ico.done-ico {
  color: var(--green);
  background: rgba(61, 214, 140, 0.12);
  border-color: rgba(61, 214, 140, 0.3);
}
.tutorial-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tutorial-info b {
  font-size: 12.5px;
}
.tutorial-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.tutorial-head b {
  color: #9bd1ff;
}
.tutorial-head span {
  font-size: 12px;
  font-weight: 700;
}
.tutorial-info > span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.tutorial-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  flex-shrink: 0;
}
.card.tutorial.done {
  border-color: rgba(61, 214, 140, 0.25);
}
.welcome-sheet .welcome-list {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.welcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}
.welcome-list li svg {
  font-size: 17px;
  color: #ffc55c;
  flex-shrink: 0;
  margin-top: 1px;
}
.world-marker.other-player {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.world-pin.player-pin {
  color: #9bd1ff;
  border-color: rgba(155, 209, 255, 0.45);
  background:
    radial-gradient(
      circle at 35% 30%,
      #1c3352,
      #0e1b2e 70%);
}
.world-marker.other-player .world-level {
  color: #9bd1ff;
}
.world-castle {
  display: block;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}
.world-castle .castle3d {
  display: block;
}
.world-marker.own .castle3d {
  animation: castle-float 5.5s ease-in-out infinite;
}
.world-marker.other-player .castle3d {
  animation: castle-float 6.5s ease-in-out infinite;
}
@keyframes castle-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
.world-marker.own .world-level {
  color: #ffd08a;
}
.world-marker.other-player .world-name {
  font-size: 10px;
}
.map-tap-sheet .map-tap-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.map-tap-sheet .small-note {
  font-size: 10.5px;
  align-self: center;
}
.map-tap-sheet .btn.primary {
  background:
    linear-gradient(
      135deg,
      #ffc55c,
      #f59e0b);
  color: #231802;
  border: none;
}
.world {
  animation: map-fade-in 0.45s ease both;
}
@keyframes map-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.world-bg-minimal {
  filter: saturate(0.95);
}
.river-flow {
  animation: river-dash 7s linear infinite;
}
@keyframes river-dash {
  to {
    stroke-dashoffset: -140;
  }
}
.world-clouds {
  animation: cloud-drift 40s ease-in-out infinite alternate;
}
@keyframes cloud-drift {
  from {
    transform: translateX(-18px);
  }
  to {
    transform: translateX(18px);
  }
}
.world-marker {
  animation: marker-in 0.38s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  transition: transform 0.16s ease, filter 0.16s ease;
}
@keyframes marker-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.world-marker:hover {
  z-index: 6;
  filter: brightness(1.15);
}
.world-pin {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 17px;
}
.world-marker .world-pin.node-pin {
  width: 24px;
  height: 24px;
  font-size: 14px;
  border-radius: 8px;
}
.world-level {
  font-size: 8.5px;
  padding: 1px 5px;
}
.world-name {
  font-size: 9px;
  max-width: 92px;
}
.world-marker.own .world-castle {
  filter: drop-shadow(0 0 14px rgba(255, 197, 92, 0.35)) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}
.world-marker.own::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 197, 92, 0.35);
  animation: own-ring 3s ease-out infinite;
  pointer-events: none;
}
@keyframes own-ring {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.55);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.25);
  }
}
.world-name,
.world-level {
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.world:not(.show-labels) .world-marker:not(.own) .world-name {
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
}
.world:not(.show-labels) .world-marker:not(.own):hover .world-name,
.world:not(.show-labels) .world-marker:not(.own):hover .world-level {
  opacity: 1;
  transform: none;
}
.world:not(.show-labels) .world-marker.node .world-level {
  opacity: 0;
}
.world:not(.show-labels) .world-marker.node:hover .world-level,
.world:not(.show-node-labels) .world-marker.node .world-name {
  opacity: 0;
}
.world:not(.show-node-labels) .world-marker.node:hover .world-name {
  opacity: 1;
}
.world-marker.own .world-name,
.world-marker.own .world-level {
  opacity: 1 !important;
  transform: none !important;
}
.map-layers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 2px 2px 0;
}
.layer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  transition: all 0.16s ease;
}
.layer-chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
.layer-chip.on {
  background: rgba(255, 197, 92, 0.12);
  border-color: rgba(255, 197, 92, 0.35);
  color: #ffd08a;
}
.layer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.layer-dot.camp {
  background: #e2624b;
}
.layer-dot.node {
  background: #7fe3b4;
}
.layer-dot.player {
  background: #9bd1ff;
}
.layer-hint {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--muted-2, #6c7893);
}
.world-marker {
  transform: translate(-50%, -50%) scale(var(--inv, 1));
}
@keyframes marker-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(calc(var(--inv, 1) * 0.82));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--inv, 1));
  }
}
.seo-about {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}
.seo-about h2 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text);
}
.seo-about p {
  margin: 0 0 6px;
}
.seo-about p:last-child {
  margin-bottom: 0;
}
.seo-disclaimer {
  opacity: 0.65;
  font-size: 9.5px;
}
/*# sourceMappingURL=bundle.css.map */
