:root {
  --navy: #081a3a;
  --deep: #030712;
  --gold: #d4af37;
  --gold-soft: #f2d675;
  --silver: #b8bec9;
  --blue: #4a90ff;
  --green: #30c46c;
  --red: #c94040;
  --panel: rgba(5, 12, 26, 0.86);
  --border: rgba(212, 175, 55, 0.35);
  --world-map-width: 3000px;
  --world-map-aspect: 1536 / 1024;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #f5f7fa;
  background: var(--deep);
  min-height: 100vh;
  overflow: hidden;
}

body.property-modal-open,
body.estate-detail-open,
body.odin-panel-open {
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,7,18,0.2), rgba(3,7,18,0.9)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2200&q=80");
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) contrast(1.05);
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(212,175,55,0.14), transparent 35%),
    linear-gradient(90deg, rgba(3,7,18,0.92), rgba(8,26,58,0.68), rgba(3,7,18,0.92));
  z-index: -1;
}

/* Desktop app shell */
.app-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.layout {
  width: 100%;
  margin: 0;
}

/* Sidebar */
.app-sidebar {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 16px;
  border-right: 1px solid rgba(242,214,117,0.24);
  background:
    linear-gradient(180deg, rgba(5,12,26,0.92), rgba(8,20,38,0.86)),
    radial-gradient(circle at 25% 0%, rgba(242,214,117,0.12), transparent 34%);
  box-shadow:
    18px 0 52px rgba(0,0,0,0.28),
    inset -1px 0 0 rgba(255,255,255,0.04);
  scrollbar-color: rgba(212,175,55,0.42) rgba(5,12,26,0.74);
}

.topbar {
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 24px rgba(212,175,55,0.25);
}

.brand h1, .brand p { margin: 0; }

.brand h1 {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 24px;
}

.brand p {
  color: var(--silver);
  font-size: 14px;
}

.gold-btn {
  border: 1px solid rgba(242,214,117,0.75);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1b1203;
  padding: 13px 22px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.gold-btn:hover { transform: translateY(-1px); }

.gold-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

#connectWalletBtn {
  position: static;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow:
    0 8px 20px rgba(0,0,0,0.26),
    0 0 18px rgba(242,214,117,0.14);
}

.full { width: 100%; }

.hero-card {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(5,12,26,0.95), rgba(8,26,58,0.78));
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.legacy-intro {
  display: none;
}

.eyebrow {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 10px;
}

.hero-card h2, .map-header h2 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  margin: 0 0 14px;
}

.hero-card p {
  max-width: 760px;
  color: #dce4f2;
  font-size: 18px;
  line-height: 1.55;
}

.status-box {
  margin-top: 22px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(74,144,255,0.45);
  background: rgba(74,144,255,0.1);
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.dashboard .panel:nth-child(1) {
  order: 1;
  align-self: start;
}

.dashboard .panel:nth-child(2) {
  order: 2;
}

.dashboard .panel:nth-child(3) {
  order: 3;
  border-color: rgba(242,214,117,0.26);
  background:
    linear-gradient(145deg, rgba(242,214,117,0.06), rgba(5,12,26,0.86));
}

.wallet-panel {
  padding: 14px;
}

.wallet-panel p {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.wallet-panel .gold-btn {
  padding: 10px 14px;
}

.worms-panel {
  max-height: 270px;
  overflow: visible;
}

.selected-estate-panel {
  flex: 1 1 auto;
}

.estate-compact-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
}

.estate-compact-summary span {
  color: rgba(216,226,241,0.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.estate-compact-summary strong {
  color: #f8e9aa;
  font-size: 12px;
  text-align: right;
}

.estate-ranking-panel {
  border: 1px solid rgba(184,190,201,0.18);
  border-radius: 22px;
  background: rgba(5,12,26,0.82);
  margin: 12px 0 0;
  padding: 20px;
  order: initial;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.26),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.estate-ranking-panel[hidden] {
  display: none;
}

.estate-ranking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.estate-ranking-header h2 {
  margin: 0;
  color: #fff7d3;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.estate-ranking-header > span {
  flex: 0 0 auto;
  border: 1px solid rgba(242,214,117,0.3);
  border-radius: 999px;
  background: rgba(242,214,117,0.1);
  color: #f8e9aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.estate-ranking-list {
  display: grid;
  gap: 8px;
}

.estate-ranking-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  color: #f5f7fa;
  cursor: pointer;
  padding: 10px;
  text-align: left;
  transition: 0.18s ease;
}

.estate-ranking-row:hover,
.estate-ranking-row.is-selected {
  border-color: rgba(242,214,117,0.44);
  background: rgba(242,214,117,0.1);
  box-shadow: 0 0 18px rgba(242,214,117,0.12);
}

.ranking-position {
  color: #f8e9aa;
  font-size: 16px;
  font-weight: 900;
}

.ranking-estate,
.ranking-estate strong,
.ranking-estate small {
  display: block;
  min-width: 0;
}

.ranking-estate strong {
  color: #fff7d3;
  font-size: 14px;
}

.ranking-estate small {
  margin-top: 3px;
  color: rgba(216,226,241,0.68);
  font-size: 11px;
  font-weight: 800;
}

.ranking-house {
  grid-column: 2;
  color: rgba(247,250,255,0.86);
  font-size: 12px;
  font-weight: 800;
}

.ranking-monument {
  grid-column: 2;
  color: rgba(242,214,117,0.82);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ranking-score {
  grid-column: 2;
  justify-self: end;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #f8e9aa;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 9px;
}

.panel {
  min-width: 0;
  border: 1px solid rgba(184,190,201,0.18);
  background: var(--panel);
  border-radius: 18px;
  padding: 14px;
}

.dashboard .panel:nth-child(1) {
  padding: 14px;
}

.dashboard .panel:nth-child(1) p {
  margin-bottom: 12px;
  font-size: 13px;
}

.panel h3 {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 17px;
}

.panel p {
  color: #dce4f2;
  overflow-wrap: anywhere;
}

.plot-info-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.plot-info-summary {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #f5df99;
  font-weight: 800;
}

.estate-identity-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(242,214,117,0.22);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(242,214,117,0.08), rgba(255,255,255,0.045));
  padding: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 12px 28px rgba(0,0,0,0.16);
}

.estate-identity-card[hidden] {
  display: none;
}

.estate-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.estate-label {
  display: block;
  color: rgba(216,226,241,0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.estate-banner h4 {
  margin: 4px 0 0;
  color: #fff7d3;
  font-size: 18px;
  line-height: 1.1;
}

.estate-rank-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(242,214,117,0.48);
  border-radius: 999px;
  background: rgba(242,214,117,0.14);
  color: #f8e9aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 7px 9px;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(242,214,117,0.12);
}

.estate-identity-card[data-rank="settler"] .estate-rank-badge {
  border-color: rgba(186,220,255,0.48);
  background: rgba(142,198,255,0.12);
}

.estate-identity-card[data-rank="landholder"] .estate-rank-badge {
  border-color: rgba(190,236,190,0.5);
  background: rgba(48,196,108,0.12);
}

.estate-identity-card[data-rank="baron"] .estate-rank-badge {
  border-color: rgba(222,190,255,0.5);
  background: rgba(160,112,220,0.14);
}

.estate-identity-card[data-rank="high-lord"] .estate-rank-badge {
  border-color: rgba(255,244,194,0.72);
  background: rgba(242,214,117,0.2);
  box-shadow: 0 0 20px rgba(242,214,117,0.22);
}

.estate-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.estate-identity-grid div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  padding: 9px 10px;
}

.estate-identity-grid dt {
  margin: 0 0 5px;
  color: rgba(216,226,241,0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.estate-identity-grid dd {
  margin: 0;
  color: #f7faff;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.rename-estate-btn {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  color: #f5df99;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 12px;
  transition: 0.18s ease;
  width: 100%;
}

.rename-estate-btn:hover {
  border-color: rgba(242,214,117,0.48);
  background: rgba(242,214,117,0.1);
}

.plot-info-sections {
  display: grid;
  gap: 10px;
}

.plot-info-section {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  padding: 10px;
  backdrop-filter: blur(8px);
}

.plot-info-section h4 {
  margin: 0 0 9px;
  color: rgba(242,214,117,0.9);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.plot-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.plot-info-grid div,
.plot-future-grid span {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  padding: 9px 10px;
}

.plot-info-grid dt {
  margin: 0 0 5px;
  color: rgba(216,226,241,0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.plot-info-grid dd {
  margin: 0;
  color: #f7faff;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.plot-future-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.property-management-btn,
.upgrade-house-btn {
  min-width: 0;
  border: 1px solid rgba(242,214,117,0.72);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,236,164,0.96), rgba(212,175,55,0.92));
  color: #1b1203;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.2;
  padding: 10px 12px;
  transition: 0.18s ease;
  width: 100%;
}

.property-management-btn {
  margin-top: 10px;
}

.property-management-btn[hidden] {
  display: none;
}

.property-management-btn:hover,
.upgrade-house-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.24),
    0 0 18px rgba(242,214,117,0.24);
}

.upgrade-house-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.property-management-modal[hidden] {
  display: none;
}

.estate-detail-modal[hidden] {
  display: none;
}

.estate-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  place-items: center;
  padding: 22px;
}

.estate-detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(74,144,255,0.12), transparent 34%),
    rgba(3,7,18,0.7);
  backdrop-filter: blur(8px);
}

.estate-detail-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(86vh, 840px);
  overflow: auto;
  border: 1px solid rgba(242,214,117,0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(5,12,26,0.96), rgba(8,26,58,0.9));
  box-shadow:
    0 30px 90px rgba(0,0,0,0.48),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  padding: 22px;
}

.estate-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.estate-detail-header h2 {
  margin: 0 0 8px;
  color: #fff7d3;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.estate-detail-header p:not(.eyebrow) {
  margin: 0;
  color: rgba(216,226,241,0.76);
}

.estate-detail-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin-bottom: 14px;
}

.estate-detail-art {
  position: relative;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(242,214,117,0.12), transparent 42%),
    rgba(255,255,255,0.045);
  min-height: 112px;
  display: grid;
  place-items: center;
}

.estate-detail-visuals .estate-detail-art {
  margin-bottom: 0;
}

.estate-visual-label {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border: 1px solid rgba(242,214,117,0.3);
  border-radius: 999px;
  background: rgba(3,8,20,0.78);
  color: #fff1b7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 6px 8px;
  text-transform: uppercase;
}

.estate-detail-marker {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(242,214,117,0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(242,214,117,0.12), transparent 52%),
    rgba(5,12,26,0.72);
  padding: 36px 12px 14px;
}

.estate-detail-marker[hidden] {
  display: none;
}

.estate-marker-preview {
  width: min(160px, 90%);
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.45));
}

.estate-detail-marker strong {
  color: #fff7d3;
  font-size: 12px;
  text-align: center;
}

.estate-art-placeholder {
  width: min(100%, 640px);
  height: clamp(220px, 32vh, 360px);
  border: 1px solid rgba(242,214,117,0.32);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,244,194,0.12), rgba(5,12,26,0.18));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow:
    0 16px 32px rgba(0,0,0,0.24),
    0 0 24px rgba(242,214,117,0.14);
}

.estate-art-level-1 { border-color: rgba(242,214,117,0.42); }
.estate-art-level-2 { border-color: rgba(186,220,255,0.56); }
.estate-art-level-3 { border-color: rgba(190,236,190,0.56); }
.estate-art-level-4 { border-color: rgba(222,190,255,0.62); }
.estate-art-level-5 {
  border-color: rgba(255,244,194,0.9);
  box-shadow:
    0 18px 36px rgba(0,0,0,0.26),
    0 0 30px rgba(242,214,117,0.32);
}

.estate-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.estate-detail-grid div,
.valhalla-summary div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  padding: 10px;
}

.estate-detail-grid dt,
.valhalla-summary dt {
  margin: 0 0 5px;
  color: rgba(216,226,241,0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.estate-detail-grid dd,
.valhalla-summary dd {
  margin: 0;
  color: #f7faff;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.estate-upgrade-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  border: 1px solid rgba(242,214,117,0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 50%, rgba(242,214,117,0.08), transparent 46%),
    rgba(4,12,28,0.5);
  box-shadow: 0 0 16px rgba(212,175,55,0.07);
  padding: 8px;
}

.estate-upgrade-status img {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(242,214,117,0.3);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  object-fit: contain;
  padding: 5px;
}

.estate-upgrade-status span,
.estate-upgrade-status strong,
.estate-upgrade-status small {
  display: block;
}

.estate-upgrade-status small {
  margin-top: 5px;
  color: rgba(242,214,117,0.78);
  font-size: 11px;
}

.estate-upgrade-status.is-locked {
  min-height: 46px;
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.025);
  box-shadow: none;
  color: rgba(216,226,241,0.54);
}

.estate-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.valhalla-gate-marker {
  position: absolute;
  left: 50%;
  top: 82px;
  z-index: 32;
  transform: translateX(-50%);
  border: 1px solid rgba(255,244,194,0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.82), transparent 34%),
    linear-gradient(145deg, rgba(255,255,244,0.92), rgba(242,214,117,0.52));
  color: #251804;
  cursor: pointer;
  padding: 13px 18px;
  box-shadow:
    0 14px 34px rgba(92,62,42,0.22),
    0 0 34px rgba(242,214,117,0.42),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}

.valhalla-gate-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 4px);
  width: 42px;
  height: 28px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,244,194,0.84);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(255,255,244,0.72);
}

.valhalla-gate-marker strong,
.valhalla-gate-marker span {
  display: block;
}

.valhalla-gate-marker strong {
  font-size: 13px;
  font-weight: 900;
}

.valhalla-gate-marker span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.valhalla-top-three {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.valhalla-estate-row {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #f7faff;
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.valhalla-estate-row strong,
.valhalla-estate-row span {
  display: block;
}

.valhalla-estate-row span {
  margin-top: 4px;
  color: rgba(216,226,241,0.72);
  font-size: 12px;
  font-weight: 800;
}

.property-management-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.property-management-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(242,214,117,0.12), transparent 30%),
    rgba(3,7,18,0.72);
  backdrop-filter: blur(8px);
}

.property-management-panel {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  border: 1px solid rgba(242,214,117,0.32);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(5,12,26,0.96), rgba(8,26,58,0.9)),
    rgba(255,255,255,0.08);
  box-shadow:
    0 30px 90px rgba(0,0,0,0.48),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  padding: 22px;
}

.property-management-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.property-management-header h2 {
  margin: 0 0 8px;
  color: #fff7d3;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.property-management-header p:not(.eyebrow) {
  margin: 0;
  color: rgba(216,226,241,0.78);
}

.property-close-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #f5f7fa;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 12px;
}

.property-close-btn:hover {
  border-color: rgba(242,214,117,0.5);
  background: rgba(242,214,117,0.12);
}

.property-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.property-management-section {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  padding: 14px;
  backdrop-filter: blur(10px);
}

.property-management-section[hidden] {
  display: none;
}

.property-unlock-section {
  grid-column: 1 / -1;
}

.property-house-section {
  border-color: rgba(242,214,117,0.26);
  background:
    linear-gradient(145deg, rgba(242,214,117,0.08), rgba(255,255,255,0.045));
}

.property-management-section h3 {
  margin: 0 0 12px;
  color: rgba(242,214,117,0.94);
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.estate-unlock-state {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  padding: 10px;
}

.estate-unlock-state strong,
.estate-unlock-state span {
  display: block;
}

.estate-unlock-state strong {
  color: #fff7d3;
  font-size: 13px;
}

.estate-unlock-state span {
  color: rgba(216,226,241,0.74);
  font-size: 12px;
  font-weight: 800;
}

.estate-unlock-state.is-locked {
  border-color: rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.035);
  opacity: 0.72;
}

.future-upgrade-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.future-upgrade-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.052);
  padding: 10px;
}

.future-upgrade-card > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.future-upgrade-card strong,
.future-upgrade-card span {
  display: block;
}

.future-upgrade-card strong {
  color: #f7faff;
  font-size: 13px;
}

.future-upgrade-card span {
  color: rgba(242,214,117,0.76);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.future-upgrade-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.future-upgrade-card dl div {
  min-width: 0;
  border-radius: 9px;
  background: rgba(255,255,255,0.045);
  padding: 7px;
}

.future-upgrade-card dt {
  margin: 0 0 4px;
  color: rgba(216,226,241,0.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.future-upgrade-card dd {
  margin: 0;
  color: #f7faff;
  font-size: 11px;
  font-weight: 800;
}

.future-upgrade-card button {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  color: #f5df99;
  cursor: pointer;
  font-weight: 900;
  padding: 9px 10px;
}

.future-upgrade-card button:hover {
  border-color: rgba(242,214,117,0.48);
  background: rgba(242,214,117,0.1);
}

.future-upgrade-card.is-locked {
  opacity: 0.68;
}

.management-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.management-data-grid div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  padding: 9px 10px;
}

.management-data-grid dt {
  margin: 0 0 5px;
  color: rgba(216,226,241,0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.management-data-grid dd {
  margin: 0;
  color: #f7faff;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.management-note,
.database-note {
  margin: 0;
  color: rgba(216,226,241,0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.database-note {
  margin-top: 8px;
}

.plot-future-grid span {
  color: rgba(216,226,241,0.8);
  font-size: 12px;
  font-weight: 800;
}

.plot-future-grid strong {
  display: block;
  margin-top: 4px;
  color: rgba(242,214,117,0.82);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.worm-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-color: rgba(212,175,55,0.42) rgba(5,12,26,0.32);
}

.worm-card {
  border: 1px solid rgba(184,190,201,0.22);
  background: rgba(255,255,255,0.06);
  color: white;
  border-radius: 14px;
  padding: 11px 12px;
  cursor: pointer;
  min-width: 0;
  text-align: left;
}

.worm-card strong, .worm-card span { display: block; }

.worm-card span {
  margin-top: 4px;
  color: var(--silver);
  font-size: 13px;
}

.worm-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
}

.empty-message {
  margin: 0;
  color: var(--silver);
  line-height: 1.45;
}

/* Main world area */
.world-main {
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-section {
  border: 1px solid var(--border);
  background: rgba(8, 24, 35, 0.5);
  border-radius: 0;
  padding: 16px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.map-header h2 {
  font-size: clamp(28px, 3.2vw, 46px);
}

.map-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #dce4f2;
  font-size: 14px;
}

.legend i {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: -2px;
}

.legend .available {
  border: 1px solid rgba(242,214,117,0.7);
  background: transparent;
}
.legend .claimed { background: rgba(242,214,117,0.2); }
.legend .yours { background: var(--gold); }
.legend .selected { background: var(--blue); }

.map-toggle-btn {
  border: 1px solid rgba(242,214,117,0.56);
  border-radius: 999px;
  background: rgba(5,12,26,0.58);
  color: #f7e6a5;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 16px;
  box-shadow: inset 0 0 18px rgba(212,175,55,0.08);
  transition: 0.18s ease;
}

.map-toggle-btn:hover,
.map-toggle-btn.is-active {
  border-color: rgba(242,214,117,0.92);
  background: rgba(212,175,55,0.16);
  box-shadow:
    inset 0 0 18px rgba(212,175,55,0.14),
    0 0 16px rgba(212,175,55,0.18);
}

.world-navigation {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(10px) saturate(1.12);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 12px 30px rgba(0,0,0,0.14);
  scrollbar-color: rgba(242,214,117,0.44) rgba(255,255,255,0.08);
  flex: 0 0 auto;
}

.world-nav-item {
  flex: 0 0 auto;
  min-width: 150px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  color: rgba(246,249,255,0.92);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  transition: 0.18s ease;
}

.world-nav-item strong,
.world-nav-item span {
  display: block;
}

.world-nav-item strong {
  font-size: 12px;
  line-height: 1.15;
}

.world-nav-item span {
  margin-top: 4px;
  color: rgba(226,235,248,0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.world-nav-item small {
  display: block;
  max-width: 180px;
  margin-top: 5px;
  color: rgba(226,235,248,0.66);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.world-nav-item:hover,
.world-nav-item.is-active {
  border-color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.22);
  color: #ffffff;
  box-shadow:
    0 0 18px rgba(255,255,255,0.14),
    inset 0 0 16px rgba(255,255,255,0.1);
}

.world-nav-item.is-active span {
  color: rgba(255,232,142,0.9);
}

.world-nav-item.is-locked {
  border-color: rgba(150,160,176,0.22);
  background: rgba(21,29,42,0.34);
  color: rgba(223,229,238,0.58);
}

.world-nav-item.is-locked::after {
  content: "LOCKED";
  display: inline-block;
  margin-top: 7px;
  border: 1px solid rgba(214,221,232,0.18);
  border-radius: 999px;
  padding: 3px 6px;
  color: rgba(226,233,242,0.62);
  font-size: 8px;
  font-weight: 900;
}

.world-nav-item.is-locked:hover,
.world-nav-item.is-locked.is-active {
  border-color: rgba(242,214,117,0.34);
  background: rgba(30,37,50,0.48);
}

.kingdom-map {
  position: relative;
}

.map-viewport {
  height: 100%;
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 1px solid rgba(242,214,117,0.44);
  border-radius: 20px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(81, 152, 178, 0.34), rgba(16, 64, 91, 0.38));
  box-shadow:
    inset 0 0 38px rgba(255,255,255,0.08),
    0 22px 60px rgba(0,0,0,0.24);
  scrollbar-color: rgba(212,175,55,0.58) rgba(5,12,26,0.72);
}

.world-map {
  width: var(--world-map-width);
  height: auto;
  aspect-ratio: var(--world-map-aspect);
  overflow: visible;
  background: #173b42;
  box-shadow:
    inset 0 0 120px rgba(23,62,60,0.32),
    inset 0 0 0 1px rgba(242,214,117,0.28);
}

.map-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.world-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 56%, rgba(5,12,26,0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

.world-map::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(61, 35, 13, 0.42);
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px rgba(242,214,117,0.08);
  pointer-events: none;
  z-index: 1;
}

.blueprint-view .map-viewport {
  background: #f7f9fb;
  box-shadow:
    inset 0 0 0 1px rgba(12,24,42,0.08),
    0 22px 60px rgba(0,0,0,0.18);
  scrollbar-color: rgba(62, 92, 128, 0.48) rgba(229, 235, 242, 0.9);
}

.blueprint-view .world-map {
  width: 4278px;
  height: 9658px;
  aspect-ratio: auto;
  background: transparent;
  filter: none;
  mix-blend-mode: normal;
  background-blend-mode: normal;
  box-shadow: none;
}

.blueprint-view .map-background,
.blueprint-view .founder-lands {
  display: none;
}

.blueprint-view .world-map::before {
  inset: 0;
  background-image: url("images/world-root-network.png");
  background-color: transparent;
  background-size: 863px auto;
  background-position: top center;
  background-repeat: repeat;
  opacity: 0.82;
  filter: none;
  transform: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mix-blend-mode: normal;
  background-blend-mode: normal;
  box-shadow: none;
}

.blueprint-view .world-map::after {
  content: none;
  display: none;
}

.master-blueprint-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  color: #253246;
  pointer-events: none;
}

.master-blueprint-canvas *,
.blueprint-zone,
.blueprint-cluster,
.master-blueprint-plot {
  pointer-events: none;
}

.blueprint-view .master-blueprint-canvas {
  display: block;
}

.master-plot-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  pointer-events: none;
}

.blueprint-view .master-plot-overlay {
  display: block;
}

.master-plot-overlay .plot {
  z-index: 31;
  cursor: pointer;
  pointer-events: auto;
}

.blueprint-view .master-plot-overlay .plot {
  width: 50px;
  height: 58px;
  border-color: rgba(255,255,255,0.86);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.68), rgba(232,240,250,0.44));
  backdrop-filter: blur(4px) saturate(1.18);
  color: rgba(37,48,62,0.8);
  font-size: 11px;
  box-shadow:
    0 5px 16px rgba(68,92,122,0.14),
    0 0 14px rgba(255,255,255,0.58),
    inset 0 0 13px rgba(255,255,255,0.5);
  opacity: 0.78;
}

.blueprint-view .master-plot-overlay .plot.available {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.68), rgba(232,240,250,0.44));
  opacity: 0.76;
}

.blueprint-view .master-plot-overlay .plot.claimed {
  border-color: rgba(255,218,190,0.78);
  background:
    linear-gradient(145deg, rgba(255,238,226,0.66), rgba(194,91,72,0.34));
  opacity: 0.86;
}

.blueprint-view .master-plot-overlay .plot.claimed::before {
  top: 9px;
  font-size: 22px;
  color: rgba(255,244,210,0.96);
  text-shadow:
    0 1px 3px rgba(65,35,24,0.72),
    0 0 8px rgba(255,220,160,0.38);
}

.blueprint-view .master-plot-overlay .plot.claimed::after {
  bottom: 7px;
  font-size: 10px;
  color: rgba(42,33,30,0.78);
  opacity: 0.78;
}

.blueprint-view .master-plot-overlay .plot.yours {
  border-color: rgba(255,244,194,0.98);
  background:
    linear-gradient(145deg, rgba(255,255,244,0.82), rgba(231,194,73,0.48));
  box-shadow:
    0 7px 20px rgba(158,122,20,0.18),
    0 0 22px rgba(242,214,117,0.62),
    inset 0 0 15px rgba(255,255,255,0.58);
  opacity: 0.96;
}

.blueprint-view .master-plot-overlay .plot.selected {
  border-color: rgba(190,224,255,1);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(112,176,255,0.44));
  box-shadow:
    0 0 28px rgba(74,144,255,0.78),
    0 0 0 7px rgba(74,144,255,0.14),
    inset 0 0 15px rgba(255,255,255,0.62);
  opacity: 1;
}

.plot.has-house-map-art,
.plot.has-house,
.blueprint-view .master-plot-overlay .plot.has-house,
.blueprint-view .master-plot-overlay .plot.has-house-map-art,
.plot.has-house-map-art.claimed,
.plot.has-house.claimed,
.blueprint-view .master-plot-overlay .plot.has-house-map-art.claimed,
.blueprint-view .master-plot-overlay .plot.has-house.claimed,
.plot.has-house-map-art.yours,
.plot.has-house.yours,
.blueprint-view .master-plot-overlay .plot.has-house-map-art.yours,
.blueprint-view .master-plot-overlay .plot.has-house.yours,
.plot.has-house-map-art.selected,
.plot.has-house.selected,
.blueprint-view .master-plot-overlay .plot.has-house-map-art.selected {
  width: var(--house-hit-width, 80px);
  height: var(--house-hit-height, 80px);
  border-color: transparent;
  background: transparent;
  color: transparent;
  box-shadow: none;
  clip-path: none;
  opacity: 1;
  overflow: visible;
  backdrop-filter: none;
}

.plot.has-house-map-art > span,
.plot.has-house > span,
.plot.has-house-map-art::before,
.plot.has-house::before,
.plot.has-house-map-art::after,
.plot.has-house::after {
  opacity: 0;
  visibility: hidden;
}

.plot.house-map-level-1 { --house-hit-width: 46px; --house-hit-height: 46px; }
.plot.house-map-level-2 { --house-hit-width: 58px; --house-hit-height: 54px; }
.plot.house-map-level-3 { --house-hit-width: 72px; --house-hit-height: 66px; }
.plot.house-map-level-4 { --house-hit-width: 90px; --house-hit-height: 78px; }
.plot.house-map-level-5 { --house-hit-width: 112px; --house-hit-height: 96px; }

.plot.has-house-map-art:hover,
.plot.has-house:hover {
  outline: 0;
}

.map-section.available-only-view .plot.claimed:not(.selected) {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.map-section.available-only-view .plot.claimed.selected {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.map-section.available-only-view .plot.has-house:not(.selected) {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.map-section.available-only-view .plot.has-house.selected,
.map-section.available-only-view .plot.has-house-map-art {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.map-section.available-only-view .plot.available {
  border-color: rgba(255,244,194,0.95);
  opacity: 0.92;
  box-shadow:
    0 0 18px rgba(242,214,117,0.28),
    inset 0 0 14px rgba(255,255,255,0.5);
}

.map-section.available-only-view .plot.is-demo-house.has-house,
.map-section.available-only-view .plot.is-demo-house.has-house-map-art {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.blueprint-title {
  position: absolute;
  left: 50%;
  top: 42px;
  transform: translateX(-50%);
  display: grid;
  gap: 4px;
  min-width: 420px;
  padding: 16px 24px;
  border: 1px solid rgba(86,111,143,0.22);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 18px 45px rgba(60,84,112,0.12);
  text-align: center;
}

.blueprint-title strong {
  font-size: 22px;
  color: #19283b;
}

.blueprint-title span,
.blueprint-landmark {
  color: #637188;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.blueprint-landmark {
  position: absolute;
  left: 50%;
  top: 210px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border: 1px dashed rgba(88,111,139,0.38);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
}

.founder-lands {
  position: absolute;
  left: 1120px;
  top: 690px;
  width: 760px;
  height: 620px;
  z-index: 3;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.founder-lands::before {
  display: none;
}

.map-terrain,
.landmark,
.district {
  display: none;
}

.map-terrain {
  position: absolute;
  pointer-events: none;
}

.terrain-forest {
  left: -5%;
  top: -7%;
  width: 48%;
  height: 52%;
  border-radius: 44% 56% 62% 38%;
  background:
    radial-gradient(circle at 24% 28%, rgba(16,88,48,0.85) 0 6px, transparent 7px),
    radial-gradient(circle at 44% 44%, rgba(26,115,60,0.82) 0 7px, transparent 8px),
    radial-gradient(circle at 66% 24%, rgba(10,69,43,0.9) 0 8px, transparent 9px),
    radial-gradient(circle at 58% 68%, rgba(31,125,66,0.76) 0 6px, transparent 7px),
    rgba(18,82,51,0.56);
  background-size: 42px 42px, 56px 56px, 52px 52px, 46px 46px, auto;
  box-shadow: 0 0 70px rgba(9,59,33,0.68);
}

.terrain-mountains {
  right: -6%;
  top: -8%;
  width: 58%;
  height: 40%;
  background:
    linear-gradient(135deg, transparent 42%, rgba(225,230,224,0.55) 43% 47%, transparent 48%),
    linear-gradient(45deg, transparent 40%, rgba(77,83,88,0.88) 41% 58%, transparent 59%),
    linear-gradient(135deg, transparent 44%, rgba(102,108,112,0.9) 45% 61%, transparent 62%);
  background-size: 78px 78px, 118px 118px, 150px 150px;
  opacity: 0.92;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.32));
}

.terrain-village {
  left: 33%;
  top: 36%;
  width: 34%;
  height: 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(217,172,92,0.38), transparent 44%),
    repeating-conic-gradient(from 10deg, rgba(91,58,26,0.34) 0 9deg, transparent 9deg 24deg);
  box-shadow: 0 0 56px rgba(212,175,55,0.22);
}

.terrain-water {
  left: -3%;
  right: -3%;
  bottom: -5%;
  height: 32%;
  background:
    repeating-linear-gradient(170deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 28px),
    linear-gradient(180deg, rgba(34,113,132,0.84), rgba(12,63,96,0.95));
  border-radius: 58% 42% 0 0;
  box-shadow: inset 0 26px 40px rgba(255,255,255,0.08);
}

.terrain-coast {
  left: 4%;
  right: 4%;
  bottom: 25%;
  height: 44px;
  border-radius: 50%;
  background: rgba(220,179,95,0.3);
  filter: blur(8px);
}

.landmark {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  color: var(--gold-soft);
  text-align: center;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.42));
}

.landmark-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  transform: translateX(-50%);
  min-width: 112px;
  padding: 4px 7px;
  border: 1px solid rgba(212,175,55,0.34);
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.72);
  color: #f5df99;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.landmark-great-hall {
  left: 50%;
  top: 50%;
  width: 96px;
  height: 76px;
  transform: translate(-50%, -50%) scale(var(--house-map-scale, 1));
}

.hall-roof {
  position: absolute;
  left: 8px;
  top: 2px;
  width: 80px;
  height: 34px;
  background: linear-gradient(135deg, #6f2d1d, #2b1110 70%);
  clip-path: polygon(50% 0, 100% 80%, 82% 100%, 50% 52%, 18% 100%, 0 80%);
  border-bottom: 3px solid rgba(212,175,55,0.72);
}

.hall-body {
  position: absolute;
  left: 17px;
  top: 31px;
  width: 62px;
  height: 38px;
  border: 2px solid rgba(212,175,55,0.54);
  border-radius: 8px 8px 5px 5px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(212,175,55,0.48) 46% 54%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(94,55,25,0.94) 0 9px, rgba(54,31,18,0.94) 9px 18px);
  box-shadow: inset 0 -10px 16px rgba(0,0,0,0.34), 0 0 24px rgba(212,175,55,0.18);
}

.landmark-docks {
  left: 51%;
  bottom: 13%;
  width: 170px;
  height: 86px;
  transform: translateX(-50%);
}

.dock-pier {
  position: absolute;
  background: repeating-linear-gradient(90deg, #6b4423 0 8px, #3d2919 8px 14px);
  border: 1px solid rgba(242,214,117,0.22);
  box-shadow: 0 8px 12px rgba(0,0,0,0.26);
}

.pier-main {
  left: 72px;
  top: 8px;
  width: 20px;
  height: 66px;
}

.pier-left {
  left: 22px;
  top: 44px;
  width: 62px;
  height: 14px;
}

.pier-right {
  left: 84px;
  top: 44px;
  width: 62px;
  height: 14px;
}

.ship-mark {
  position: absolute;
  right: 8px;
  bottom: 9px;
  width: 50px;
  height: 25px;
  border-bottom: 9px solid rgba(48, 24, 18, 0.95);
  border-radius: 0 0 50px 50px;
}

.ship-mark::before {
  content: "";
  position: absolute;
  left: 23px;
  bottom: 8px;
  width: 2px;
  height: 32px;
  background: rgba(242,214,117,0.76);
}

.ship-mark::after {
  content: "";
  position: absolute;
  left: 25px;
  bottom: 17px;
  width: 22px;
  height: 22px;
  background: rgba(225,213,177,0.72);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.landmark-rune {
  left: 24%;
  top: 25%;
  width: 64px;
  height: 86px;
  transform: translate(-50%, -50%);
}

.rune-stone {
  position: absolute;
  left: 16px;
  top: 6px;
  width: 32px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(176,190,177,0.42);
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(145deg, #7f8a7f, #2d3834 72%);
  color: #f2d675;
  font-size: 21px;
  font-weight: 900;
  box-shadow: inset -6px -10px 16px rgba(0,0,0,0.32);
}

.rune-glow {
  position: absolute;
  left: 2px;
  top: 0;
  width: 60px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.28), transparent 64%);
}

.landmark-mine {
  right: 21%;
  top: 23%;
  width: 92px;
  height: 78px;
  transform: translate(50%, -50%);
}

.mine-mouth {
  position: absolute;
  left: 20px;
  top: 10px;
  width: 52px;
  height: 44px;
  border: 5px solid rgba(93,91,84,0.9);
  border-bottom: 0;
  border-radius: 28px 28px 4px 4px;
  background:
    radial-gradient(circle at 50% 100%, rgba(0,0,0,0.96), rgba(18,20,21,0.96) 58%, transparent 60%),
    linear-gradient(145deg, rgba(120,124,119,0.68), rgba(38,42,43,0.78));
}

.mine-track {
  position: absolute;
  left: 11px;
  top: 51px;
  width: 70px;
  height: 20px;
  border-top: 3px solid rgba(155,118,68,0.76);
  border-bottom: 3px solid rgba(155,118,68,0.76);
  transform: perspective(80px) rotateX(28deg);
}

.mine-track::before,
.mine-track::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 3px;
  height: 24px;
  background: rgba(155,118,68,0.74);
}

.mine-track::before { left: 18px; }
.mine-track::after { right: 18px; }

.plot-overlay,
.building-layer,
.blueprint-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.plot-overlay {
  z-index: 6;
}

.blueprint-overlay {
  z-index: 5;
  display: none;
}

.blueprint-view .blueprint-overlay {
  display: block;
}

.building-layer {
  z-index: 7;
}

.plot-overlay .plot {
  pointer-events: auto;
}

.plot {
  position: absolute;
  left: var(--plot-x);
  top: var(--plot-y);
  width: 42px;
  height: 48px;
  min-height: 0;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  color: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
  z-index: 3;
  font-size: 0;
  line-height: 1;
  clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
  box-shadow: none;
  opacity: 0;
}

.plot > span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  display: block;
  min-width: 52px;
  transform: translateX(-50%) translateY(4px);
  border: 1px solid rgba(242,214,117,0.55);
  border-radius: 999px;
  background: rgba(5,12,26,0.86);
  color: #f8e9aa;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  padding: 5px 7px;
  pointer-events: none;
  text-transform: uppercase;
  transition: 0.18s ease;
  white-space: nowrap;
}

.plot::after {
  content: attr(data-plot-number);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  min-width: 36px;
  transform: translateX(-50%) translateY(4px);
  border: 1px solid rgba(242,214,117,0.55);
  border-radius: 999px;
  background: rgba(5,12,26,0.86);
  color: #f8e9aa;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  padding: 5px 7px;
  pointer-events: none;
  transition: 0.18s ease;
  white-space: nowrap;
}

.plot:hover {
  transform: translate(-50%, -50%);
  border-color: rgba(242,214,117,0.72);
  z-index: 8;
  opacity: 1;
  box-shadow: 0 0 10px rgba(212,175,55,0.24);
}

.map-section.land-view .plot.available:hover::after,
.map-section.claim-view .plot.available:hover::after,
.plot.selected::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.plot small {
  display: none;
}

.plot.available {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.plot.claimed {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  opacity: 1;
  cursor: pointer;
}

.plot.yours {
  border-color: rgba(255,232,142,0.88);
  background: rgba(212,175,55,0.42);
  opacity: 1;
  box-shadow:
    0 0 18px rgba(212,175,55,0.48),
    inset 0 0 12px rgba(255,232,142,0.2);
}

.plot.selected {
  border-color: rgba(142,198,255,0.96);
  outline: 2px solid rgba(74,144,255,0.82);
  outline-offset: 4px;
  background: rgba(74,144,255,0.22);
  opacity: 1;
  box-shadow:
    0 0 24px rgba(74,144,255,0.86),
    0 0 0 8px rgba(74,144,255,0.14),
    inset 0 0 12px rgba(142,198,255,0.22);
}

.map-section.land-view .plot.available {
  border-color: rgba(242,214,117,0.64);
  opacity: 0.18;
}

.map-section.land-view .plot.available:hover {
  border-color: rgba(242,214,117,0.95);
  background: rgba(212,175,55,0.06);
  opacity: 0.82;
  box-shadow: 0 0 16px rgba(212,175,55,0.3);
}

.map-section.claim-view .plot.available {
  border-color: rgba(242,214,117,0.78);
  opacity: 0.5;
}

.map-section.claim-view .plot.available:hover {
  border-color: rgba(255,237,166,1);
  background: rgba(212,175,55,0.1);
  opacity: 1;
  box-shadow:
    0 0 18px rgba(212,175,55,0.42),
    0 0 0 5px rgba(212,175,55,0.1);
}

.map-section.claim-view .plot.claimed:not(.yours) {
  filter: brightness(0.55) saturate(0.65);
  opacity: 0.42;
}

.plot {
  opacity: 1;
}

.plot > span {
  display: none;
}

.plot::after {
  inset: auto;
  left: 50%;
  top: 50%;
  bottom: auto;
  display: grid;
  min-width: 0;
  width: 100%;
  height: 100%;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,244,194,0.82);
  font-size: 10px;
  opacity: 0;
  padding: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.plot.available {
  border-color: rgba(255,255,255,0.86);
  background: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(220,231,244,0.42));
  opacity: 0.62;
  box-shadow:
    0 4px 14px rgba(80,104,135,0.14),
    inset 0 0 12px rgba(255,255,255,0.44);
}

.plot.available::after {
  opacity: 1;
}

.plot.available:hover {
  border-color: rgba(255,237,166,1);
  background: linear-gradient(145deg, rgba(255,255,255,0.86), rgba(236,244,255,0.62));
  opacity: 0.95;
  box-shadow:
    0 0 18px rgba(255,255,255,0.52),
    0 0 12px rgba(142,198,255,0.22),
    inset 0 0 12px rgba(255,255,255,0.42);
}

.plot.claimed {
  border-color: rgba(255,218,150,0.62);
  background: rgba(119,67,38,0.62);
  opacity: 0.82;
  cursor: pointer;
}

.plot.claimed::before {
  content: "\2302";
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff0b8;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.62),
    0 0 9px rgba(212,175,55,0.36);
}

.plot.claimed.house-level-1 {
  border-color: rgba(255,218,150,0.62);
  background: rgba(119,67,38,0.62);
}

.plot.claimed.house-level-1::before {
  font-size: 14px;
}

.plot.claimed.house-level-2 {
  border-color: rgba(255,226,166,0.72);
  background:
    linear-gradient(145deg, rgba(155,90,48,0.68), rgba(101,58,36,0.56));
  box-shadow:
    0 0 14px rgba(255,202,126,0.18),
    inset 0 0 10px rgba(255,231,182,0.16);
}

.plot.claimed.house-level-2::before {
  content: "\2302\00B7";
  font-size: 15px;
}

.plot.claimed.house-level-3 {
  border-color: rgba(255,235,188,0.82);
  background:
    linear-gradient(145deg, rgba(175,104,58,0.72), rgba(122,68,42,0.62));
  box-shadow:
    0 0 18px rgba(255,213,143,0.26),
    inset 0 0 13px rgba(255,237,196,0.2);
}

.plot.claimed.house-level-3::before {
  content: "\2302\25B2";
  font-size: 15px;
  color: #fff4c8;
}

.plot.claimed.house-level-4 {
  border-color: rgba(255,244,204,0.9);
  background:
    linear-gradient(145deg, rgba(198,126,69,0.78), rgba(132,72,45,0.66));
  box-shadow:
    0 0 22px rgba(255,226,166,0.34),
    0 0 0 4px rgba(255,232,142,0.08),
    inset 0 0 15px rgba(255,244,212,0.24);
}

.plot.claimed.house-level-4::before {
  content: "\2302\25C6";
  font-size: 16px;
  color: #fff8dc;
}

.plot.claimed.house-level-5 {
  border-color: rgba(255,250,224,1);
  background:
    linear-gradient(145deg, rgba(224,165,84,0.84), rgba(151,83,48,0.72));
  box-shadow:
    0 0 28px rgba(255,236,174,0.48),
    0 0 0 5px rgba(255,244,194,0.12),
    inset 0 0 18px rgba(255,255,235,0.3);
}

.plot.claimed.house-level-5::before {
  content: "\2726\2302";
  font-size: 16px;
  color: #fffbe8;
}

.blueprint-view .master-plot-overlay .plot.claimed.house-level-1 {
  border-color: rgba(255,218,190,0.78);
  background:
    linear-gradient(145deg, rgba(255,238,226,0.66), rgba(194,91,72,0.34));
}

.blueprint-view .master-plot-overlay .plot.claimed.house-level-2 {
  border-color: rgba(255,226,166,0.78);
  background:
    linear-gradient(145deg, rgba(255,239,218,0.7), rgba(188,112,64,0.4));
  box-shadow:
    0 5px 16px rgba(92,62,42,0.15),
    0 0 15px rgba(255,214,154,0.28),
    inset 0 0 13px rgba(255,244,218,0.42);
}

.blueprint-view .master-plot-overlay .plot.claimed.house-level-3 {
  border-color: rgba(255,235,188,0.88);
  background:
    linear-gradient(145deg, rgba(255,244,224,0.76), rgba(202,130,76,0.46));
  box-shadow:
    0 6px 18px rgba(92,62,42,0.16),
    0 0 18px rgba(255,224,168,0.36),
    inset 0 0 14px rgba(255,248,230,0.48);
}

.blueprint-view .master-plot-overlay .plot.claimed.house-level-4 {
  border-color: rgba(255,244,204,0.96);
  background:
    linear-gradient(145deg, rgba(255,250,236,0.82), rgba(215,151,88,0.52));
  box-shadow:
    0 7px 20px rgba(92,62,42,0.18),
    0 0 22px rgba(255,232,176,0.46),
    0 0 0 4px rgba(255,232,142,0.08),
    inset 0 0 15px rgba(255,255,238,0.54);
}

.blueprint-view .master-plot-overlay .plot.claimed.house-level-5 {
  border-color: rgba(255,250,224,1);
  background:
    linear-gradient(145deg, rgba(255,255,244,0.9), rgba(229,170,86,0.6));
  box-shadow:
    0 8px 22px rgba(92,62,42,0.2),
    0 0 26px rgba(255,240,190,0.6),
    0 0 0 5px rgba(255,244,194,0.12),
    inset 0 0 17px rgba(255,255,244,0.62);
}

.blueprint-view .master-plot-overlay .plot.claimed.house-level-2::before,
.blueprint-view .master-plot-overlay .plot.claimed.house-level-3::before {
  font-size: 21px;
}

.blueprint-view .master-plot-overlay .plot.claimed.house-level-4::before,
.blueprint-view .master-plot-overlay .plot.claimed.house-level-5::before {
  font-size: 22px;
  color: rgba(255,252,226,0.98);
}

.house-map-art {
  position: absolute;
  left: 50%;
  top: 60%;
  width: var(--house-map-width, 64px);
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: contain;
  z-index: 5;
  user-select: none;
  filter:
    drop-shadow(0 8px 12px rgba(32,22,12,0.34))
    drop-shadow(0 0 8px rgba(255,238,188,0.24));
}

.house-level-1-map { --house-map-width: 42px; }
.house-level-2-map { --house-map-width: 56px; }
.house-level-3-map { --house-map-width: 74px; }
.house-level-4-map { --house-map-width: 96px; }
.house-level-5-map { --house-map-width: 125px; }

.plot.has-house.yours .house-map-art,
.plot.has-house-map-art.yours .house-map-art {
  filter:
    drop-shadow(0 8px 12px rgba(32,22,12,0.34))
    drop-shadow(0 0 13px rgba(242,214,117,0.76))
    drop-shadow(0 0 24px rgba(242,214,117,0.34));
}

.plot.has-house.selected .house-map-art,
.plot.has-house-map-art.selected .house-map-art {
  filter:
    drop-shadow(0 8px 12px rgba(32,22,12,0.34))
    drop-shadow(0 0 14px rgba(74,144,255,0.92))
    drop-shadow(0 0 28px rgba(242,214,117,0.48));
}

.plot.has-house.yours.selected .house-map-art,
.plot.has-house-map-art.yours.selected .house-map-art {
  filter:
    drop-shadow(0 8px 12px rgba(32,22,12,0.34))
    drop-shadow(0 0 16px rgba(242,214,117,0.92))
    drop-shadow(0 0 28px rgba(74,144,255,0.72));
}

.plot.claimed::after {
  top: auto;
  bottom: 5px;
  height: auto;
  transform: translateX(-50%);
  opacity: 0.74;
}

.plot.yours {
  border-color: rgba(255,232,142,0.95);
  background: rgba(212,175,55,0.72);
  opacity: 1;
  box-shadow:
    0 0 26px rgba(212,175,55,0.66),
    0 0 0 5px rgba(212,175,55,0.12),
    inset 0 0 14px rgba(255,232,142,0.26);
}

.plot.selected {
  border-color: rgba(142,198,255,1);
  background: rgba(74,144,255,0.5);
  opacity: 1;
  box-shadow:
    0 0 26px rgba(74,144,255,0.9),
    0 0 0 8px rgba(74,144,255,0.16),
    inset 0 0 14px rgba(142,198,255,0.28);
}

.plot.has-house,
.plot.has-house.yours,
.plot.has-house.selected,
.plot.has-house.yours.selected,
.blueprint-view .master-plot-overlay .plot.has-house,
.blueprint-view .master-plot-overlay .plot.has-house.yours,
.blueprint-view .master-plot-overlay .plot.has-house.selected,
.blueprint-view .master-plot-overlay .plot.has-house.yours.selected {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: transparent;
  clip-path: none;
  opacity: 1;
  overflow: visible;
  z-index: 32;
}

.plot.has-house.selected,
.plot.has-house.yours.selected,
.blueprint-view .master-plot-overlay .plot.has-house.selected,
.blueprint-view .master-plot-overlay .plot.has-house.yours.selected {
  z-index: 40;
}

.plot.has-house:hover,
.blueprint-view .master-plot-overlay .plot.has-house:hover {
  outline: 0;
}

.plot.has-house:hover .house-map-art,
.blueprint-view .master-plot-overlay .plot.has-house:hover .house-map-art {
  filter:
    drop-shadow(0 8px 12px rgba(32,22,12,0.34))
    drop-shadow(0 0 10px rgba(242,214,117,0.42));
}

.map-section.land-view .plot.available,
.map-section.claim-view .plot.available {
  opacity: 0.62;
}

.map-section.land-view .plot.available:hover,
.map-section.claim-view .plot.available:hover {
  opacity: 0.95;
}

.blueprint-cluster {
  position: absolute;
  left: var(--cluster-x);
  top: var(--cluster-y);
  width: var(--cluster-w);
  height: var(--cluster-h);
  min-width: 96px;
  min-height: 82px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(var(--cluster-color), 0.72);
  border-radius: 50%;
  background: rgba(var(--cluster-color), 0.12);
  box-shadow:
    0 0 28px rgba(var(--cluster-color), 0.28),
    inset 0 0 28px rgba(var(--cluster-color), 0.12);
  color: #fff8d8;
  text-align: center;
}

.blueprint-cluster strong,
.blueprint-cluster span {
  position: relative;
  z-index: 1;
  display: block;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

.blueprint-cluster strong {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.blueprint-cluster span {
  max-width: 92px;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.15;
}

.blueprint-plot {
  position: absolute;
  left: var(--plot-x);
  top: var(--plot-y);
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 50%;
  background: rgba(255,255,255,0.58);
  box-shadow: 0 0 8px rgba(255,255,255,0.26);
}

.blueprint-plot::after {
  content: attr(data-plot-number);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  color: rgba(255,255,255,0.86);
  font-size: 8px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.blueprint-view .blueprint-plot::after {
  opacity: 0.78;
}

.blueprint-free {
  background: rgba(132, 219, 151, 0.72);
}

.blueprint-roads {
  background: rgba(242, 214, 117, 0.78);
}

.blueprint-buildings,
.blueprint-water {
  background: rgba(201, 64, 64, 0.8);
}

.blueprint-zone {
  position: absolute;
  left: var(--zone-x);
  top: var(--zone-y);
  width: 1173px;
  height: 966px;
  --zone-tint: 198,218,241;
  --zone-border: 79,103,134;
  --zone-glow: 120,145,175;
  --zone-label: 29,42,61;
  border: 2px solid rgba(139,105,55,0.68);
  border-radius: 10px;
  background: rgba(17,24,27,0.08);
  backdrop-filter: none;
  box-shadow:
    inset 0 0 0 1px rgba(219,181,96,0.28),
    inset 0 0 22px rgba(5,10,13,0.38),
    0 0 18px rgba(0,0,0,0.45),
    0 0 22px rgba(180,140,70,0.18);
}

.blueprint-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid rgba(207,166,82,0.34);
  border-radius: inherit;
  background: none;
  box-shadow:
    inset 0 0 28px rgba(0,0,0,0.55),
    inset 0 0 0 2px rgba(44,31,18,0.22);
  pointer-events: none;
}

.blueprint-zone.is-locked {
  filter: grayscale(0.58) saturate(0.58) brightness(0.72);
  opacity: 0.42;
}

.zone-lock-notice {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: inherit;
  background: rgba(9,16,25,0.22);
  color: #f5f7fb;
  text-align: center;
  pointer-events: none;
}

.zone-lock-notice::before {
  content: "\1F512";
  font-size: 30px;
  filter: grayscale(1);
}

.zone-lock-notice strong {
  font-size: 22px;
}

.zone-lock-notice span {
  max-width: 360px;
  color: rgba(245,247,251,0.84);
  font-size: 12px;
  font-weight: 800;
}

.master-plot-overlay .plot.is-zone-locked {
  cursor: not-allowed;
  filter: grayscale(0.75) brightness(0.7);
  opacity: 0.4;
}

.master-plot-overlay .plot.is-zone-locked:hover {
  filter: grayscale(0.62) brightness(0.78);
  box-shadow: none;
}

.blueprint-zone-founder_lands {
  --zone-tint: 242,214,117;
  --zone-border: 207,178,92;
  --zone-glow: 212,175,55;
  --zone-label: 72,55,24;
  isolation: isolate;
  overflow: hidden;
}

.blueprint-zone-founder_lands::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("images/map-terrain/terrain-founder-lands.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.blueprint-zone-harbor_district {
  --zone-tint: 112,176,255;
  --zone-border: 72,132,194;
  --zone-glow: 82,150,220;
  --zone-label: 28,67,110;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.blueprint-zone-harbor_district::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("images/map-terrain/harbor-district-terrain.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.blueprint-zone-harbor_district.is-locked {
  filter: none;
  opacity: 1;
}

.blueprint-zone-harbor_district .zone-lock-notice {
  inset: auto 20px 20px auto;
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(218,184,86,0.42);
  border-radius: 6px;
  background: rgba(7,18,27,0.74);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.blueprint-zone-elderroot_wilds {
  --zone-tint: 94,188,124;
  --zone-border: 70,138,88;
  --zone-glow: 70,150,98;
  --zone-label: 34,83,50;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.blueprint-zone-elderroot_wilds::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("images/map-terrain/elderroot-wilds-terrain.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.blueprint-zone-elderroot_wilds.is-locked {
  filter: none;
  opacity: 1;
}

.blueprint-zone-elderroot_wilds .zone-lock-notice {
  inset: auto 20px 20px auto;
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(218,184,86,0.42);
  border-radius: 6px;
  background: rgba(7,18,27,0.74);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.blueprint-zone-skullpeak_range {
  --zone-tint: 154,163,176;
  --zone-border: 112,124,140;
  --zone-glow: 118,130,148;
  --zone-label: 55,64,78;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.blueprint-zone-skullpeak_range::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("images/map-terrain/skullpeak.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.blueprint-zone-skullpeak_range.is-locked {
  filter: none;
  opacity: 1;
}

.blueprint-zone-skullpeak_range .zone-lock-notice {
  inset: auto 20px 20px auto;
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(218,184,86,0.42);
  border-radius: 6px;
  background: rgba(7,18,27,0.74);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.blueprint-zone-ravenfjord {
  --zone-tint: 166,218,245;
  --zone-border: 105,161,194;
  --zone-glow: 122,188,225;
  --zone-label: 39,84,114;
  isolation: isolate;
  overflow: hidden;
  background: #071d2b;
}

.blueprint-zone-ravenfjord::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("images/map-terrain/Ravenfjord.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.blueprint-zone-ravenfjord.is-locked {
  filter: none;
  opacity: 1;
}

.blueprint-zone-ravenfjord .zone-lock-notice {
  inset: auto 20px 20px auto;
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(218,184,86,0.42);
  border-radius: 6px;
  background: rgba(7,18,27,0.74);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.blueprint-zone-ashenholm {
  --zone-tint: 178,139,104;
  --zone-border: 138,102,74;
  --zone-glow: 160,118,86;
  --zone-label: 84,58,40;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.blueprint-zone-ashenholm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("images/map-terrain/ashenholm.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.blueprint-zone-ashenholm.is-locked {
  filter: none;
  opacity: 1;
}

.blueprint-zone-ashenholm .zone-lock-notice {
  inset: auto 20px 20px auto;
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(218,184,86,0.42);
  border-radius: 6px;
  background: rgba(7,18,27,0.74);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.blueprint-zone-runeblood_valley {
  --zone-tint: 152,52,66;
  --zone-border: 128,48,58;
  --zone-glow: 142,46,58;
  --zone-label: 92,31,40;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.blueprint-zone-runeblood_valley::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("images/map-terrain/runeblood.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.blueprint-zone-runeblood_valley.is-locked {
  filter: none;
  opacity: 1;
}

.blueprint-zone-runeblood_valley .zone-lock-notice {
  inset: auto 20px 20px auto;
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(218,184,86,0.42);
  border-radius: 6px;
  background: rgba(7,18,27,0.74);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.blueprint-zone-blackwater_reach {
  --zone-tint: 54,104,82;
  --zone-border: 45,89,70;
  --zone-glow: 50,96,76;
  --zone-label: 31,68,52;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.blueprint-zone-blackwater_reach::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("images/map-terrain/blackwater.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.blueprint-zone-blackwater_reach.is-locked {
  filter: none;
  opacity: 1;
}

.blueprint-zone-blackwater_reach .zone-lock-notice {
  inset: auto 20px 20px auto;
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(218,184,86,0.42);
  border-radius: 6px;
  background: rgba(7,18,27,0.74);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.blueprint-zone-ghostwater_isles {
  --zone-tint: 166,204,221;
  --zone-border: 104,147,168;
  --zone-glow: 126,174,198;
  --zone-label: 48,86,105;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.blueprint-zone-ghostwater_isles::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("images/map-terrain/ghostwater.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.blueprint-zone-ghostwater_isles.is-locked {
  filter: none;
  opacity: 1;
}

.blueprint-zone-ghostwater_isles .zone-lock-notice {
  inset: auto 20px 20px auto;
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(218,184,86,0.42);
  border-radius: 6px;
  background: rgba(7,18,27,0.74);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.blueprint-zone-kingsreach {
  --zone-tint: 201,168,230;
  --zone-border: 166,129,202;
  --zone-glow: 196,154,230;
  --zone-label: 75,49,112;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.blueprint-zone-kingsreach::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("images/map-terrain/kingsreach.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.blueprint-zone-kingsreach.is-locked {
  filter: none;
  opacity: 1;
}

.blueprint-zone-kingsreach .zone-lock-notice {
  inset: auto 20px 20px auto;
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(218,184,86,0.42);
  border-radius: 6px;
  background: rgba(7,18,27,0.74);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.blueprint-zone header {
  position: absolute;
  left: 22px;
  top: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(219,187,94,0.72);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(37,43,45,0.94), rgba(16,23,27,0.9));
  color: rgba(255,237,176,0.96);
  box-shadow:
    0 8px 18px rgba(4,8,10,0.34),
    0 0 14px rgba(var(--zone-glow),0.16),
    inset 0 0 0 1px rgba(255,255,255,0.09);
}

.blueprint-zone header strong {
  font-size: 16px;
  letter-spacing: 0.2px;
}

.blueprint-zone header span {
  color: rgba(238,220,164,0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.blueprint-zone .blueprint-cluster {
  min-width: 0;
  min-height: 0;
  border-width: 1px;
  border-style: dashed;
  border-color: rgba(var(--zone-border),0.3);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(var(--zone-tint),0.08));
  opacity: 0.52;
  z-index: 1;
  box-shadow:
    0 0 20px rgba(var(--zone-glow),0.11),
    inset 0 0 22px rgba(255,255,255,0.28);
}

.blueprint-zone .blueprint-cluster span {
  max-width: none;
  color: rgba(var(--zone-label),0.74);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-shadow: none;
}

.master-blueprint-plot {
  position: absolute;
  left: var(--plot-x);
  top: var(--plot-y);
  width: 34px;
  height: 39px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.78);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.56), rgba(232,240,250,0.38));
  backdrop-filter: blur(4px) saturate(1.18);
  color: rgba(37,48,62,0.78);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
  box-shadow:
    0 5px 16px rgba(68,92,122,0.13),
    0 0 13px rgba(255,255,255,0.52),
    inset 0 0 13px rgba(255,255,255,0.46),
    inset 0 1px 0 rgba(255,255,255,0.62);
  opacity: 0.76;
}

.master-blueprint-plot::after {
  content: attr(data-plot-number);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 1px 5px rgba(94,112,135,0.18);
}

.master-blueprint-plot:not(.locked) {
  border-color: rgba(255,255,255,0.94);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.66), rgba(237,244,253,0.5));
  color: rgba(24,36,52,0.88);
  box-shadow:
    0 6px 18px rgba(68,92,122,0.16),
    0 0 17px rgba(255,255,255,0.68),
    0 0 8px rgba(198,222,255,0.24),
    inset 0 0 14px rgba(255,255,255,0.56),
    inset 0 1px 0 rgba(255,255,255,0.76);
  opacity: 0.88;
}

.master-blueprint-plot.locked {
  border-color: rgba(255,255,255,0.58);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.44), rgba(226,235,246,0.3));
  color: rgba(60,72,88,0.54);
  box-shadow:
    0 4px 12px rgba(68,92,122,0.09),
    0 0 9px rgba(255,255,255,0.38),
    inset 0 0 10px rgba(255,255,255,0.34);
  opacity: 0.54;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: rgba(5,12,26,0.96);
  border: 1px solid var(--border);
  color: white;
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  .app-sidebar {
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(242,214,117,0.24);
  }

  .world-main {
    width: 100%;
    height: 78vh;
    min-height: 620px;
  }

  .topbar, .map-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .dashboard .panel:nth-child(1) { order: 3; }
  .dashboard .panel:nth-child(2) { order: 1; }
  .dashboard .panel:nth-child(3) { order: 2; }

  .map-viewport {
    height: 100%;
    min-height: 0;
  }

  .world-navigation {
    margin-top: 0;
    padding: 8px;
  }

  .world-nav-item {
    min-width: 132px;
    padding: 9px 10px;
  }

  .world-map {
    --world-map-width: 2200px;
  }

  .founder-lands {
    left: 780px;
    top: 470px;
    width: 640px;
    height: 520px;
  }

}

/* Hall of Estate Ascension */
.estate-detail-panel,
.property-management-panel {
  border: 1px solid rgba(190,139,56,0.72);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 0%, rgba(209,159,65,0.11), transparent 28%),
    linear-gradient(145deg, rgba(8,22,34,0.99), rgba(3,9,17,0.99));
  box-shadow:
    inset 0 0 0 3px rgba(2,7,12,0.72),
    inset 0 0 0 4px rgba(223,189,103,0.08),
    0 30px 90px rgba(0,0,0,0.66);
}

.estate-detail-header,
.property-management-header {
  position: relative;
  border-bottom: 1px solid rgba(223,189,103,0.26);
  padding-bottom: 14px;
}

.estate-detail-header::after,
.property-management-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 180px;
  height: 3px;
  background: linear-gradient(90deg, #9d6d2f, #ffe5a0, transparent);
  opacity: 0.66;
}

.estate-detail-header h2,
.property-management-header h2 {
  color: #ffe6a3;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.6px;
}

.estate-detail-visuals {
  gap: 12px;
}

.estate-detail-art,
.estate-detail-marker,
.ascension-visual-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(185,132,50,0.55);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 25%, rgba(223,189,103,0.12), transparent 42%),
    rgba(4,13,22,0.82);
  box-shadow:
    inset 0 0 28px rgba(0,0,0,0.45),
    0 10px 25px rgba(0,0,0,0.26);
}

.estate-detail-art::after,
.estate-detail-marker::after,
.ascension-visual-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(223,189,103,0.1);
  pointer-events: none;
}

.estate-detail-art > p,
.estate-detail-marker > p {
  position: relative;
  z-index: 2;
  margin: 3px 0 8px;
  color: rgba(217,224,231,0.56);
  font-size: 10px;
}

.estate-visual-label {
  position: relative;
  z-index: 2;
  color: #f1d58c;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.5px;
}

.estate-detail-grid > div,
.estate-prestige-breakdown > div,
.management-data-grid > div {
  border-color: rgba(173,123,47,0.3);
  border-radius: 4px;
  background: rgba(4,13,22,0.66);
}

.estate-detail-development,
.estate-detail-extras,
.estate-owned-collection,
.property-management-section {
  border-color: rgba(173,123,47,0.38);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(14,32,43,0.7), rgba(4,12,21,0.82));
}

.estate-detail-development h3,
.estate-detail-extras h3,
.estate-owned-collection h3,
.property-management-section h3 {
  color: #efd28a;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.4px;
}

.ascension-hero {
  display: grid;
  grid-template-columns: 180px minmax(190px, 1fr) minmax(190px, 1fr) 170px;
  gap: 10px;
  margin-bottom: 12px;
}

.ascension-identity,
.ascension-glory,
.ascension-visual-card {
  min-width: 0;
  min-height: 152px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border: 1px solid rgba(185,132,50,0.5);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 15%, rgba(223,189,103,0.1), transparent 42%),
    rgba(4,13,22,0.78);
  padding: 12px;
  text-align: center;
}

.ascension-identity > span,
.ascension-glory > span,
.ascension-visual-card > span {
  color: rgba(222,213,184,0.6);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ascension-identity > strong,
.ascension-glory > strong {
  color: #ffe6a3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.ascension-identity > small,
.ascension-glory > small {
  color: rgba(218,228,236,0.68);
  font-size: 9px;
}

.ascension-visual-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.5));
}

.ascension-visual-card strong {
  position: relative;
  z-index: 1;
  color: #f2d78f;
  font-size: 10px;
}

.ascension-visual-card.is-marker img {
  width: 110px;
}

.estate-progression-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(173,123,47,0.42);
  border-radius: 5px;
  background: rgba(3,11,19,0.78);
  list-style: none;
}

.estate-progression-timeline::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 31px;
  height: 2px;
  background: linear-gradient(90deg, #76501e, #dfbd67 50%, #76501e);
  opacity: 0.44;
}

.estate-progression-timeline li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: rgba(205,213,221,0.44);
  text-align: center;
}

.estate-progression-timeline li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(157,109,47,0.48);
  border-radius: 50%;
  background: #07131f;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.estate-progression-timeline li > strong {
  font-size: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.estate-progression-timeline li.is-complete {
  color: rgba(226,198,126,0.78);
}

.estate-progression-timeline li.is-current {
  color: #ffe6a3;
}

.estate-progression-timeline li.is-current > span {
  border-color: #f0cd72;
  background: radial-gradient(circle, rgba(223,189,103,0.28), #081521 68%);
  box-shadow:
    0 0 0 4px rgba(223,189,103,0.08),
    0 0 18px rgba(223,189,103,0.34);
}

.ascension-next-unlocks {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  border-left: 3px solid #b98534;
  background: rgba(185,133,52,0.08);
  padding: 9px 11px;
}

.ascension-next-unlocks > span {
  color: rgba(222,213,184,0.6);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ascension-next-unlocks > strong {
  color: #f4d98f;
  font-size: 11px;
}

.ascension-next-unlocks > p {
  margin: 0;
  color: rgba(219,226,233,0.68);
  font-size: 9px;
  line-height: 1.45;
}

.property-house-section {
  grid-column: 1 / -1;
}

.property-house-section .management-data-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.house-upgrade-comparison {
  border: 1px solid rgba(173,123,47,0.38);
  border-radius: 5px;
  background: rgba(3,11,19,0.72);
  padding: 12px;
}

.house-comparison-card {
  border-color: rgba(185,132,50,0.5);
  border-radius: 5px;
  background: rgba(7,20,31,0.86);
}

.house-comparison-card.is-next {
  border-color: rgba(231,194,105,0.72);
  box-shadow: 0 0 20px rgba(223,189,103,0.12);
}

.estate-owned-item {
  border-color: rgba(173,123,47,0.34);
  border-radius: 5px;
  background: rgba(5,15,24,0.72);
}

@media (max-width: 980px) {
  .ascension-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ascension-hero {
    grid-template-columns: 1fr;
  }

  .estate-progression-timeline {
    grid-template-columns: 1fr;
  }

  .estate-progression-timeline::before {
    left: 30px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 2px;
    height: auto;
  }

  .estate-progression-timeline li {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .property-house-section .management-data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar,
  .app-sidebar {
    width: 100%;
  }

  .topbar {
    gap: 14px;
    padding: 16px 0;
  }

  .brand h1 {
    font-size: 20px;
  }

  .brand p {
    font-size: 12px;
  }

  .hero-card,
  .map-section,
  .panel {
    border-radius: 18px;
    padding: 16px;
  }

  .hero-card h2,
  .map-header h2 {
    font-size: 30px;
  }

  .hero-card p {
    font-size: 15px;
  }

  .dashboard {
    gap: 12px;
    margin: 14px 0;
  }

  .estate-ranking-panel {
    border-radius: 18px;
    margin-bottom: 14px;
    padding: 14px;
  }

  .estate-ranking-header {
    flex-direction: column;
    gap: 10px;
  }

  .estate-ranking-header > span {
    width: 100%;
    text-align: center;
  }

  .estate-ranking-row {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .ranking-house,
  .ranking-score {
    grid-column: 2;
    justify-self: start;
  }

  .plot-info-card {
    gap: 10px;
  }

  .plot-info-summary {
    padding: 9px 10px;
  }

  .plot-info-section {
    padding: 9px;
  }

  .estate-banner {
    flex-direction: column;
  }

  .estate-rank-badge {
    width: 100%;
    text-align: center;
  }

  .estate-identity-grid,
  .plot-info-grid {
    grid-template-columns: 1fr;
  }

  .estate-identity-grid div,
  .plot-info-grid div,
  .plot-future-grid span {
    padding: 8px 9px;
  }

  .property-management-btn,
  .upgrade-house-btn {
    padding: 10px;
    white-space: normal;
  }

  .property-management-modal {
    align-items: stretch;
    padding: 10px;
  }

  .estate-detail-modal {
    align-items: stretch;
    padding: 10px;
  }

  .estate-detail-panel {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
    padding: 14px;
  }

  .estate-detail-header {
    flex-direction: column;
    gap: 12px;
  }

  .estate-detail-grid,
  .estate-detail-actions {
    grid-template-columns: 1fr;
  }

  .valhalla-gate-marker {
    top: 64px;
    padding: 8px 10px;
  }

  .property-management-panel {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
    padding: 14px;
  }

  .property-management-header {
    flex-direction: column;
    gap: 12px;
  }

  .property-close-btn {
    width: 100%;
  }

  .property-management-grid,
  .management-data-grid {
    grid-template-columns: 1fr;
  }

  .future-upgrade-card > div:first-child {
    flex-direction: column;
    gap: 4px;
  }

  .future-upgrade-card dl {
    grid-template-columns: 1fr;
  }

  .property-management-section {
    padding: 11px;
  }

  .management-note,
  .database-note {
    font-size: 10px;
  }

  .world-navigation {
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px;
  }

  .world-nav-item {
    min-width: 124px;
    border-radius: 12px;
    padding: 8px 9px;
  }

  .world-nav-item strong {
    font-size: 11px;
  }

  .world-nav-item span {
    font-size: 10px;
  }

  .legend {
    gap: 9px 12px;
    font-size: 12px;
  }

  .gold-btn,
  .map-toggle-btn {
    width: 100%;
    padding: 12px 14px;
    white-space: normal;
  }

  #connectWalletBtn {
    width: auto;
    max-width: 176px;
    padding: 9px 13px;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .map-section { padding: 14px; }

  .plot-info-grid {
    grid-template-columns: 1fr;
  }

  .map-viewport {
    height: 100%;
    min-height: 0;
  }
}
/* FORCE DESKTOP APP LAYOUT — Wormguard fullscreen shell */

@media (min-width: 1024px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body {
    min-height: 100vh;
  }

  .layout {
    width: 100vw !important;
    max-width: none !important;
    height: calc(100vh - 98px) !important;
    margin: 0 !important;
    padding: 0 18px 18px !important;
    display: grid !important;
    grid-template-columns: 360px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
  }

  .hero-card {
    display: none !important;
  }

  .dashboard {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
  }

  .dashboard .panel {
    width: 100% !important;
    min-height: auto !important;
    padding: 16px !important;
  }

  .dashboard .panel:has(#selectedPlot),
  .dashboard .panel.selected-estate-panel {
    flex: 1 1 auto !important;
    min-height: 360px !important;
  }

  .wallet-panel,
  .dashboard .panel:has(#walletAddress) {
    flex: 0 0 auto !important;
  }

  .worm-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .worm-card {
    min-width: 0 !important;
    padding: 12px !important;
  }

  .map-section {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .map-header {
    flex: 0 0 auto !important;
    margin-bottom: 14px !important;
  }

  .map-viewport {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
  }
}
@media (min-width: 1024px) {
  .topbar {
    position: static;
    width: 100%;
    max-width: none;
    padding: 0 0 14px;
    z-index: auto;
    pointer-events: auto;
  }

  .topbar .brand,
  .topbar #connectWalletBtn {
    pointer-events: auto;
  }

  #connectWalletBtn {
    position: fixed;
    top: 12px;
    right: 24px;
    z-index: 9999;
    width: auto !important;
    max-width: 180px !important;
    padding: 10px 16px !important;
  }

}
.estate-ranking-panel {
  position: fixed !important;
  top: 80px !important;
  right: 32px !important;
  bottom: 32px !important;
  width: min(460px, calc(100vw - 48px)) !important;
  max-height: calc(100vh - 112px) !important;
  overflow-y: auto !important;
  z-index: 90 !important;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}

@media (min-width: 1024px) {
  .app-sidebar {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px;
  }

  .topbar {
    flex: 0 0 auto;
    padding-bottom: 10px;
  }

  .dashboard {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    gap: 9px !important;
    overflow: hidden !important;
  }

  .dashboard .panel {
    flex: 0 0 auto;
    min-height: 0 !important;
    padding: 11px !important;
  }

  .dashboard .panel.selected-estate-panel {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  .wallet-panel {
    padding: 10px !important;
  }

  .wallet-panel p {
    margin: 0 0 8px;
  }

  .worms-panel {
    max-height: 250px;
    overflow: visible;
  }

  .worm-list {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    max-height: 196px;
    overflow-y: auto;
  }

  .worm-card {
    padding: 8px 9px !important;
  }

  .plot-info-card {
    gap: 9px;
    margin-bottom: 9px;
  }

  .property-management-btn,
  #claimPlotBtn {
    padding: 9px 11px;
  }

  #connectWalletBtn {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    padding: 9px 12px !important;
  }
}

.estate-ranking-panel.is-hidden,
.estate-ranking-panel[hidden] {
  display: none !important;
}

/* Founder Lands house visuals: houses replace claimed hex markers. */
.plot.has-house,
.plot.claimed.has-house,
.plot.yours.has-house,
.plot.selected.has-house,
.blueprint-view .master-plot-overlay .plot.has-house,
.blueprint-view .master-plot-overlay .plot.claimed.has-house,
.blueprint-view .master-plot-overlay .plot.yours.has-house,
.blueprint-view .master-plot-overlay .plot.selected.has-house {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: transparent !important;
  clip-path: none !important;
}

.plot.has-house::before,
.plot.has-house::after,
.plot.has-house .plot-number,
.plot.has-house .plot-label,
.plot.has-house .hex-label {
  display: none !important;
}

.plot.has-house .house-map-art {
  z-index: 5;
  pointer-events: none;
}

.plot.has-house.yours .house-map-art {
  filter:
    drop-shadow(0 5px 8px rgba(32,22,12,0.3))
    drop-shadow(0 0 10px rgba(245,210,90,0.72));
}

.plot.has-house.selected .house-map-art {
  filter:
    drop-shadow(0 5px 8px rgba(32,22,12,0.3))
    drop-shadow(0 0 8px rgba(80,150,255,0.9))
    drop-shadow(0 0 18px rgba(245,210,90,0.45));
}

.plot.has-house.yours.selected .house-map-art {
  filter:
    drop-shadow(0 5px 8px rgba(32,22,12,0.3))
    drop-shadow(0 0 10px rgba(80,150,255,0.85))
    drop-shadow(0 0 16px rgba(245,210,90,0.68));
}

/* Map visual cleanup: real Supabase plots replace planning overlays. */
.blueprint-cluster,
.blueprint-zone .blueprint-cluster,
.master-blueprint-plot {
  display: none !important;
}

.blueprint-zone-founder_lands::before {
  opacity: 1;
}

/* House plots keep their button hit area but display only the house artwork. */
.plot.has-house,
.plot.has-house-map-art,
.plot.claimed.has-house,
.plot.claimed.has-house-map-art,
.plot.yours.has-house,
.plot.yours.has-house-map-art,
.plot.selected.has-house,
.plot.selected.has-house-map-art,
.blueprint-view .master-plot-overlay .plot.has-house,
.blueprint-view .master-plot-overlay .plot.has-house-map-art {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  clip-path: none !important;
  backdrop-filter: none !important;
  opacity: 1;
  overflow: visible;
}

.plot.has-house::before,
.plot.has-house::after,
.plot.has-house-map-art::before,
.plot.has-house-map-art::after,
.plot.has-house > span,
.plot.has-house-map-art > span,
.plot.has-house .plot-number,
.plot.has-house-map-art .plot-number,
.plot.has-house .plot-label,
.plot.has-house-map-art .plot-label,
.plot.has-house .hex-label,
.plot.has-house-map-art .hex-label {
  display: none !important;
}

.plot.has-house .house-map-art,
.plot.has-house-map-art .house-map-art {
  display: block !important;
  z-index: 5;
  pointer-events: none;
}

/* Terrain-readable estate plots */
.blueprint-view .master-plot-overlay .plot.available:not(.has-house):not(.has-house-map-art) {
  border: 2px solid rgba(255,255,255,0.8) !important;
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  box-shadow:
    0 0 9px rgba(255,255,255,0.2),
    inset 0 0 8px rgba(255,255,255,0.05) !important;
  backdrop-filter: none !important;
  opacity: 1;
  text-shadow:
    0 1px 2px rgba(18,28,42,0.95),
    0 0 5px rgba(18,28,42,0.58);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.blueprint-view .master-plot-overlay .plot.available:not(.has-house):not(.has-house-map-art) .plot-label {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.blueprint-view .master-plot-overlay .plot.available:not(.has-house):not(.has-house-map-art):hover {
  border-color: #e0c15a !important;
  background: rgba(224,193,90,0.18) !important;
  box-shadow:
    0 0 12px rgba(224,193,90,0.52),
    0 0 22px rgba(224,193,90,0.2),
    inset 0 0 8px rgba(255,244,194,0.1) !important;
}

.blueprint-view .master-plot-overlay .plot.available.selected:not(.has-house):not(.has-house-map-art) {
  border-color: #e0c15a !important;
  background: rgba(224,193,90,0.22) !important;
  box-shadow:
    0 0 15px rgba(224,193,90,0.78),
    0 0 30px rgba(224,193,90,0.34),
    inset 0 0 10px rgba(255,244,194,0.14) !important;
}

/* Claimed estates use their house artwork as the complete map marker. */
.blueprint-view .master-plot-overlay .plot.claimed {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  clip-path: none !important;
  backdrop-filter: none !important;
}

.blueprint-view .master-plot-overlay .plot.claimed .plot-label,
.blueprint-view .master-plot-overlay .plot.claimed::before,
.blueprint-view .master-plot-overlay .plot.claimed::after {
  display: none !important;
}

.plot.has-house.selected .house-map-art,
.plot.has-house-map-art.selected .house-map-art,
.plot.has-house.yours.selected .house-map-art,
.plot.has-house-map-art.yours.selected .house-map-art {
  filter:
    drop-shadow(0 6px 9px rgba(32,22,12,0.32))
    drop-shadow(0 0 10px rgba(224,193,90,0.92))
    drop-shadow(0 0 20px rgba(224,193,90,0.48)) !important;
}

/* Estate interaction polish */
.plot.has-house .house-map-art,
.plot.has-house-map-art .house-map-art {
  transform: translate(-50%, -50%) scale(1);
  transform-origin: 50% 70%;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.plot.has-house:not(.selected):hover .house-map-art,
.plot.has-house-map-art:not(.selected):hover .house-map-art {
  transform: translate(-50%, -50%) scale(1.05);
  filter:
    drop-shadow(0 6px 9px rgba(32,22,12,0.32))
    drop-shadow(0 0 12px rgba(224,193,90,0.62)) !important;
}

.estate-detail-panel {
  width: min(900px, 100%);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(224,193,90,0.1), transparent 34%),
    linear-gradient(145deg, rgba(5,12,26,0.98), rgba(10,27,52,0.96));
}

.estate-detail-art[hidden] {
  display: none;
}

.estate-detail-art {
  overflow: hidden;
}

.estate-art-placeholder {
  width: 100%;
  max-width: none;
  background-size: cover;
  background-position: center;
}

.estate-showcase-image {
  box-sizing: border-box;
  width: 100%;
  height: clamp(220px, 32vh, 360px);
  display: block;
  border: 1px solid rgba(242,214,117,0.48);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 44%, rgba(242,214,117,0.12), transparent 48%),
    rgba(5,12,26,0.72);
  object-fit: contain;
  object-position: center;
  box-shadow:
    0 16px 32px rgba(0,0,0,0.28),
    0 0 24px rgba(242,214,117,0.16);
}

.estate-showcase-image.is-available-preview {
  opacity: 0.78;
  filter: saturate(0.72) brightness(0.82);
}

.estate-detail-availability {
  margin: 0 0 14px;
  border: 1px solid rgba(224,193,90,0.32);
  border-radius: 14px;
  background: rgba(224,193,90,0.09);
  color: #f8e9aa;
  font-weight: 800;
  padding: 14px;
  text-align: center;
}

.estate-detail-availability[hidden] {
  display: none;
}

.estate-detail-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estate-detail-actions > button {
  width: 100%;
  min-height: 42px;
  margin: 0;
}

.estate-secondary-btn {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  color: #f7faff;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 12px;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.estate-secondary-btn:hover:not(:disabled) {
  border-color: rgba(224,193,90,0.62);
  background: rgba(224,193,90,0.12);
}

.estate-secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

@media (min-width: 1024px) {
  .selected-estate-panel .plot-info-card {
    gap: 7px;
  }

  .selected-estate-panel .estate-compact-summary {
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .estate-detail-actions {
    grid-template-columns: 1fr;
  }

  .estate-art-placeholder {
    height: clamp(190px, 30vh, 300px);
  }

  .estate-showcase-image {
    height: clamp(190px, 30vh, 300px);
  }

  .worm-list {
    grid-template-columns: 1fr;
    max-height: 240px;
  }
}

.compact-dialog {
  width: min(520px, 100%);
}

.rename-estate-form {
  display: grid;
  gap: 10px;
}

.rename-estate-form label {
  color: rgba(242,214,117,0.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.rename-estate-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  outline: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: inherit;
  padding: 12px;
}

.rename-estate-form input:focus {
  border-color: rgba(224,193,90,0.78);
  box-shadow: 0 0 0 3px rgba(224,193,90,0.12);
}

.form-error {
  margin: 0;
  color: #ffb1b1;
  font-size: 12px;
  font-weight: 800;
}

.form-error[hidden] {
  display: none;
}

.system-placeholder-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.system-placeholder-details:empty {
  display: none;
}

.system-placeholder-details div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  padding: 10px;
}

.system-placeholder-details span,
.system-placeholder-details strong {
  display: block;
}

.system-placeholder-details span {
  color: rgba(216,226,241,0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.system-placeholder-details strong {
  margin-top: 5px;
  color: #fff7d3;
  font-size: 13px;
}

.system-placeholder-badge {
  margin: 0;
  border: 1px solid rgba(224,193,90,0.34);
  border-radius: 12px;
  background: rgba(224,193,90,0.1);
  color: #f8e9aa;
  font-weight: 900;
  padding: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  .system-placeholder-details {
    grid-template-columns: 1fr;
  }
}

/* Property Management internal views */
.property-modal-view[hidden] {
  display: none !important;
}

.property-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.property-back-btn {
  border: 1px solid rgba(224,193,90,0.44);
  border-radius: 12px;
  background: rgba(224,193,90,0.1);
  color: #f8e9aa;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 12px;
}

.property-back-btn:hover {
  border-color: rgba(224,193,90,0.76);
  background: rgba(224,193,90,0.16);
}

.property-back-btn[hidden] {
  display: none;
}

.property-management-subview {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.house-upgrade-comparison {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.house-upgrade-comparison[hidden] {
  display: none;
}

.house-comparison-card {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  padding: 10px;
}

.house-comparison-card.is-next {
  border-color: rgba(242,214,117,0.32);
  background: rgba(242,214,117,0.07);
}

.house-comparison-card > span {
  color: rgba(216,226,241,0.62);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.house-comparison-card h4 {
  margin: 8px 0;
  color: #fff7d3;
  font-size: 13px;
}

.house-comparison-media {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 7px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  padding: 8px;
}

.house-comparison-media img {
  display: block;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.house-comparison-media strong {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  color: rgba(248,233,170,0.72);
  font-size: 0;
}

.house-comparison-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.house-comparison-card dl div {
  min-width: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  padding: 6px;
}

.house-comparison-card dt {
  color: rgba(216,226,241,0.58);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.house-comparison-card dd {
  margin: 3px 0 0;
  color: #f7faff;
  font-size: 10px;
  font-weight: 900;
}

.house-comparison-arrow {
  color: #f2d675;
  font-size: 22px;
  font-weight: 900;
}

.house-upgrade-rewards {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid rgba(242,214,117,0.18);
  padding-top: 16px;
}

.house-upgrade-rewards[hidden] {
  display: none;
}

.house-upgrade-rewards header {
  margin-bottom: 10px;
}

.house-upgrade-rewards h4 {
  margin: 3px 0 5px;
  color: #fff7d3;
  font-size: 18px;
}

.house-upgrade-rewards header > p:last-child {
  margin: 0;
  color: rgba(216,226,241,0.7);
  font-size: 12px;
}

.house-upgrade-rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.house-upgrade-reward-card {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 30%, rgba(212,175,55,0.08), transparent 48%),
    rgba(5,14,31,0.82);
  padding: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.house-upgrade-reward-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242,214,117,0.38);
  box-shadow: 0 0 18px rgba(212,175,55,0.12);
}

.house-upgrade-reward-media {
  appearance: none;
  width: 100%;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 11px;
  background: rgba(255,255,255,0.03);
  color: rgba(248,233,170,0.74);
  cursor: zoom-in;
  padding: 7px;
}

.house-upgrade-reward-media img {
  display: block;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.house-upgrade-reward-media span {
  display: none !important;
}

.house-upgrade-reward-card.uses-reward-placeholder .house-upgrade-reward-media span {
  display: block !important;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
}

.house-upgrade-reward-card > div {
  margin-top: 8px;
}

.house-upgrade-reward-card strong,
.house-upgrade-reward-card span {
  display: block;
}

.house-upgrade-reward-card > div strong {
  color: #f7faff;
  font-size: 13px;
}

.house-upgrade-reward-card > div span {
  margin-top: 3px;
  color: rgba(242,214,117,0.72);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.house-upgrade-reward-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 8px 0 0;
}

.house-upgrade-reward-card dl div {
  min-width: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  padding: 6px;
}

.house-upgrade-reward-card dt {
  color: rgba(216,226,241,0.56);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.house-upgrade-reward-card dd {
  margin: 3px 0 0;
  color: #fff7d3;
  font-size: 10px;
  font-weight: 900;
}

.upgrade-detail-media {
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(224,193,90,0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(224,193,90,0.12), transparent 42%),
    rgba(255,255,255,0.045);
}

.upgrade-detail-media[hidden] {
  display: none !important;
}

.upgrade-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upgrade-detail-media span {
  max-width: 180px;
  color: rgba(248,233,170,0.84);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.upgrade-detail-media.has-image span {
  display: none;
}

.property-subview-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.property-subview-content h3 {
  margin: 0 0 10px;
  color: #fff7d3;
  font-size: clamp(26px, 4vw, 40px);
}

.property-subview-content .management-data-grid {
  margin: 16px 0;
}

.property-future-upgrades-section {
  display: none;
}

/* Upgrade cards with resilient image slots */
.future-upgrade-card {
  position: relative;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
  min-height: 250px;
  border-color: rgba(180,190,210,0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 35%, rgba(212,175,55,0.08), transparent 42%),
    linear-gradient(155deg, rgba(13,25,47,0.96), rgba(4,10,24,0.96));
  padding: 12px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.future-upgrade-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,175,55,0.5);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.24),
    0 0 18px rgba(212,175,55,0.16);
}

.future-upgrade-card:focus-visible {
  outline: 2px solid rgba(242,214,117,0.86);
  outline-offset: 2px;
}

.future-upgrade-card .upgrade-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.upgrade-card-title {
  min-width: 0;
}

.upgrade-card-status {
  align-self: start;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  padding: 5px 7px;
  color: rgba(231,237,247,0.78) !important;
  font-size: 8px !important;
  line-height: 1.1;
  text-align: center;
}

.upgrade-card-status.is-unlocked {
  border-color: rgba(151,220,172,0.34);
  background: rgba(83,166,111,0.12);
  color: #bfe8c9 !important;
}

.upgrade-card-status.is-locked {
  border-color: rgba(212,175,55,0.28);
  color: #ead89a !important;
}

.upgrade-card-media {
  appearance: none;
  grid-column: 1 / -1;
  box-sizing: border-box;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  padding: 8px;
}

.upgrade-card-media:focus-visible {
  outline: 2px solid rgba(242,214,117,0.86);
  outline-offset: 2px;
}

.upgrade-card-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.future-upgrade-card:hover .upgrade-card-media img {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 8px 14px rgba(212,175,55,0.18));
}

.upgrade-card-media span {
  display: none;
  max-width: 62px;
  color: rgba(248,233,170,0.76);
  font-size: 9px;
  line-height: 1.15;
  text-align: center;
}

.future-upgrade-card.uses-upgrade-placeholder .upgrade-card-media span {
  display: block;
}

.future-upgrade-card dl,
.future-upgrade-card button {
  grid-column: 1;
}

.future-upgrade-card dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.future-upgrade-card.is-locked {
  opacity: 1;
}

.future-upgrade-card.is-locked .upgrade-card-media img {
  filter: saturate(0.7) brightness(0.76);
}

.future-upgrade-card.is-locked:hover .upgrade-card-media img {
  filter:
    saturate(0.78)
    brightness(0.82)
    drop-shadow(0 8px 14px rgba(212,175,55,0.12));
}

/* Upgrade image preview above Property Management */
.upgrade-preview-modal[hidden] {
  display: none;
}

.upgrade-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}

.upgrade-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,16,0.82);
  backdrop-filter: blur(10px);
}

.upgrade-preview-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 25%, rgba(212,175,55,0.1), transparent 38%),
    linear-gradient(145deg, rgba(8,18,38,0.99), rgba(3,8,20,0.99));
  box-shadow:
    0 34px 100px rgba(0,0,0,0.62),
    0 0 34px rgba(212,175,55,0.12);
  padding: 18px;
}

.upgrade-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.upgrade-preview-header h2 {
  margin: 0;
  color: #fff7d3;
  font-size: clamp(25px, 4vw, 40px);
}

.upgrade-preview-media {
  box-sizing: border-box;
  width: 100%;
  height: 560px;
  max-height: 70vh;
  min-height: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  padding: 24px;
}

.upgrade-preview-media img {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: 90% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
  transform: none !important;
  inset: auto !important;
}

.upgrade-preview-media span {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  color: rgba(248,233,170,0.8);
  font-size: 0;
}

.upgrade-preview-media.has-image span {
  display: none;
}

.upgrade-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.upgrade-preview-stats div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 11px;
  background: rgba(255,255,255,0.05);
  padding: 9px 10px;
}

.upgrade-preview-stats dt {
  color: rgba(216,226,241,0.62);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.upgrade-preview-stats dd {
  margin: 4px 0 0;
  color: #fff7d3;
  font-size: 13px;
  font-weight: 900;
}

/* Compact selected Worm details */
.selected-worm-details {
  display: grid;
  gap: 5px;
  margin-top: 0;
  border: 1px solid rgba(224,193,90,0.2);
  border-radius: 12px;
  background: rgba(224,193,90,0.055);
  padding: 8px;
}

.selected-worm-inline {
  margin-top: 2px;
  padding: 8px 10px;
}

.selected-worm-inline dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selected-worm-inline [hidden] {
  display: none;
}

.selected-worm-details > span {
  color: rgba(216,226,241,0.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.selected-worm-details > strong {
  color: #fff7d3;
  font-size: 13px;
}

.selected-worm-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
}

.selected-worm-details dl div {
  min-width: 0;
}

.selected-worm-details dl .worm-estate-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.selected-worm-details dl .worm-estate-field dd {
  text-align: right;
}

.selected-worm-details dt {
  color: rgba(216,226,241,0.58);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-worm-details dd {
  margin: 2px 0 0;
  color: #f7faff;
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.selected-worm-details small {
  color: rgba(242,214,117,0.72);
  font-size: 9px;
  font-weight: 800;
}

.selected-worm-actions {
  display: grid;
  gap: 5px;
}

.worm-estate-action {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(242,214,117,0.34);
  border-radius: 8px;
  background: rgba(242,214,117,0.08);
  color: #fff2bd;
  cursor: pointer;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.worm-estate-action:hover {
  border-color: rgba(242,214,117,0.7);
  background: rgba(242,214,117,0.15);
}

.worm-estate-action[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .worms-panel {
    max-height: 250px;
  }

  .worm-list {
    max-height: 196px;
  }
}

@media (max-width: 768px) {
  .property-header-actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .property-header-actions button {
    width: 100%;
  }

  .property-management-subview {
    grid-template-columns: 1fr;
  }

  .house-upgrade-comparison {
    grid-template-columns: 1fr;
  }

  .house-comparison-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .upgrade-detail-media {
    min-height: 190px;
  }

  .future-upgrade-list {
    grid-template-columns: 1fr;
  }

  .future-upgrade-card {
    min-height: 230px;
  }

  .upgrade-preview-header {
    flex-direction: column;
  }

  .upgrade-preview-header .property-close-btn {
    width: 100%;
  }

  .upgrade-preview-media {
    height: 440px;
    max-height: 58vh;
    min-height: 0;
    padding: 16px;
  }

  .upgrade-preview-stats {
    grid-template-columns: 1fr;
  }

  .house-upgrade-rewards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .future-upgrade-card {
    grid-template-columns: 1fr;
  }

  .upgrade-card-media {
    width: 100%;
    height: 140px;
  }

  .future-upgrade-card dl {
    grid-template-columns: 1fr;
  }
}

/* Owned and active Estate upgrades */
.future-upgrade-card.is-owned {
  border-color: rgba(134, 191, 225, 0.38);
  background:
    radial-gradient(circle at 50% 35%, rgba(134, 191, 225, 0.09), transparent 44%),
    linear-gradient(155deg, rgba(13, 25, 47, 0.96), rgba(4, 10, 24, 0.96));
}

.future-upgrade-card.is-active {
  border-color: rgba(242, 214, 117, 0.68);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(212, 175, 55, 0.17);
}

.upgrade-card-status.is-owned {
  border-color: rgba(134, 191, 225, 0.42);
  background: rgba(89, 148, 190, 0.14);
  color: #d4eeff !important;
}

.upgrade-card-status.is-active {
  border-color: rgba(242, 214, 117, 0.62);
  background: rgba(212, 175, 55, 0.16);
  color: #fff1b7 !important;
}

.upgrade-card-status.is-payment-blocked {
  border-color: rgba(214, 170, 71, 0.42);
  background: rgba(120, 83, 31, 0.16);
  color: #e7c66c !important;
}

.future-upgrade-card.is-payment-blocked {
  border-color: rgba(214, 170, 71, 0.24);
}

.future-upgrade-card > button:last-child:disabled {
  cursor: default;
  opacity: 0.72;
}

.future-upgrade-card.is-active > button:last-child:disabled {
  border-color: rgba(242, 214, 117, 0.4);
  background: rgba(212, 175, 55, 0.12);
  color: #fff1b7;
}

.estate-detail-development,
.estate-detail-extras,
.estate-owned-collection {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(7, 17, 34, 0.7);
  padding: 14px;
}

.estate-detail-development h3,
.estate-detail-extras h3,
.estate-owned-collection h3 {
  margin: 0 0 12px;
  color: #fff2bd;
  font-size: 13px;
  letter-spacing: 0;
}

.estate-detail-extras-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.estate-detail-extras-list > p {
  margin: 0;
  color: rgba(216,226,241,0.62);
  font-size: 11px;
}

.estate-extra-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(242,214,117,0.22);
  border-radius: 10px;
  background: rgba(242,214,117,0.055);
  color: #fff2bd;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
}

.estate-extra-chip img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.estate-active-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.estate-active-upgrade {
  min-width: 0;
  border: 1px solid rgba(242, 214, 117, 0.18);
  border-radius: 10px;
  background: rgba(242, 214, 117, 0.05);
  padding: 9px;
}

.estate-active-upgrade dt,
.estate-prestige-breakdown dt {
  color: rgba(216, 226, 241, 0.62);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.estate-active-upgrade dd {
  margin: 6px 0 0;
}

.estate-upgrade-status {
  min-height: 46px;
}

.estate-upgrade-status img {
  width: 46px;
  height: 46px;
}

.estate-upgrade-status.is-locked {
  display: flex;
  align-items: center;
  min-height: 46px;
  color: rgba(216, 226, 241, 0.54);
  font-size: 11px;
  font-weight: 800;
}

.estate-prestige-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 0;
}

.estate-prestige-breakdown div {
  min-width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 8px;
}

.estate-prestige-breakdown dd {
  margin: 3px 0 0;
  color: #f8e5a1;
  font-size: 13px;
  font-weight: 900;
}

.estate-owned-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.estate-owned-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(242, 214, 117, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  padding: 9px;
}

.estate-owned-item > img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.estate-owned-item > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.estate-owned-item strong {
  color: #fff2bd;
  font-size: 11px;
}

.estate-owned-item small {
  color: rgba(216, 226, 241, 0.68);
  font-size: 9px;
}

.estate-owned-category {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  padding: 9px;
}

.estate-owned-category header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.estate-owned-category header strong {
  color: #f4f7fb;
  font-size: 11px;
}

.estate-owned-category header span {
  color: #f2d675;
  font-size: 9px;
  font-weight: 900;
}

.estate-owned-category > div {
  display: grid;
  gap: 5px;
}

.estate-owned-category > div > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 5px;
}

.estate-owned-category > div > span.is-owned {
  background: rgba(212, 175, 55, 0.09);
}

.estate-owned-category > div > span.is-unowned {
  opacity: 0.48;
}

.estate-owned-category img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.estate-owned-category small {
  min-width: 0;
  color: #eef3fa;
  font-size: 9px;
  font-weight: 800;
}

.estate-owned-category b {
  color: rgba(216, 226, 241, 0.7);
  font-size: 8px;
}

.estate-owned-category .is-owned b {
  color: #f2d675;
}

@media (max-width: 640px) {
  .estate-active-upgrade-grid,
  .estate-owned-collection-grid {
    grid-template-columns: 1fr;
  }

  .estate-prestige-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Global connected hex grid and map-safe houses */
.blueprint-zone,
.master-plot-overlay .plot {
  --plot-size: 54px;
  --hex-height: 62px;
  --house-size-level-1: 34px;
  --house-size-level-2: 40px;
  --house-size-level-3: 44px;
  --house-size-level-4: 48px;
  --house-size-level-5: 52px;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot {
  width: var(--plot-size, 50px);
  height: var(--hex-height, 58px);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.available:not(.has-house):not(.has-house-map-art) {
  border: 2px solid rgba(255,255,255,0.85) !important;
  background: rgba(255,255,255,0.045) !important;
  color: #fff !important;
  box-shadow:
    0 0 6px rgba(255,255,255,0.16),
    inset 0 0 5px rgba(255,255,255,0.04) !important;
  opacity: 1;
  text-shadow:
    0 1px 3px rgba(10,18,25,0.95),
    0 0 4px rgba(10,18,25,0.72);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.available:not(.has-house):not(.has-house-map-art) .plot-label {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.available:not(.has-house):not(.has-house-map-art):hover {
  border-color: rgba(255,255,255,1) !important;
  background: rgba(255,255,255,0.08) !important;
  box-shadow:
    0 0 11px rgba(255,255,255,0.42),
    inset 0 0 7px rgba(255,255,255,0.08) !important;
  transform: translate(-50%, -50%) scale(1.045);
  z-index: 36;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.available.selected:not(.has-house):not(.has-house-map-art) {
  border-color: rgba(255,220,104,1) !important;
  background: rgba(224,193,90,0.14) !important;
  box-shadow:
    0 0 12px rgba(74,144,255,0.72),
    0 0 22px rgba(224,193,90,0.46) !important;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.claimed:not(.has-house):not(.has-house-map-art) {
  border: 2px solid rgba(229,191,72,0.82) !important;
  background: rgba(229,191,72,0.1) !important;
  color: #fff1b8 !important;
  box-shadow:
    0 0 11px rgba(229,191,72,0.34),
    inset 0 0 7px rgba(255,231,151,0.08) !important;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.yours:not(.has-house):not(.has-house-map-art) {
  border: 2px solid rgba(255,224,112,1) !important;
  background: rgba(255,215,77,0.16) !important;
  color: #fff6cf !important;
  box-shadow:
    0 0 13px rgba(255,215,77,0.7),
    0 0 25px rgba(255,215,77,0.3),
    inset 0 0 8px rgba(255,245,197,0.12) !important;
}

.house-level-1-map { --house-map-width: var(--house-size-level-1, 68px); }
.house-level-2-map { --house-map-width: var(--house-size-level-2, 68px); }
.house-level-3-map { --house-map-width: var(--house-size-level-3, 68px); }
.house-level-4-map { --house-map-width: var(--house-size-level-4, 68px); }
.house-level-5-map { --house-map-width: var(--house-size-level-5, 68px); }

.blueprint-view .master-plot-overlay .plot.master-world-plot.has-house,
.blueprint-view .master-plot-overlay .plot.master-world-plot.has-house-map-art {
  width: var(--plot-size, 54px);
  height: var(--hex-height, 62px);
  z-index: 32;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.has-house.selected,
.blueprint-view .master-plot-overlay .plot.master-world-plot.has-house-map-art.selected {
  z-index: 40;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.has-house .house-map-art,
.blueprint-view .master-plot-overlay .plot.master-world-plot.has-house-map-art .house-map-art {
  top: 54%;
  max-width: min(var(--house-map-width, 52px), calc(var(--plot-size, 54px) - 2px));
  max-height: calc(var(--hex-height, 62px) - 4px);
  object-fit: contain;
  pointer-events: auto;
  transform-origin: center bottom;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.has-plot-banner .plot-banner {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 50%;
  width: 68px;
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  transform: translate(-50%, 35%) scale(1.8);
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 20;
  filter: drop-shadow(0 4px 7px rgba(0,0,0,0.45));
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.has-plot-banner .plot-banner-level-1 {
  transform: translate(-50%, 35%) scale(1.8);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.has-plot-banner .plot-banner-level-2 {
  transform: translate(-50%, 35%) scale(1.9);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.has-plot-banner .plot-banner-level-3 {
  transform: translate(-50%, 35%) scale(2);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.has-plot-banner .plot-banner-level-4 {
  transform: translate(-50%, 35%) scale(2.1);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.has-plot-banner .plot-banner-level-5 {
  transform: translate(-50%, 35%) scale(2.2);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot:hover .plot-marker-level-1 {
  transform: translate(-50%, 35%) scale(1.92);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot:hover .plot-marker-level-2 {
  transform: translate(-50%, 35%) scale(2.02);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot:hover .plot-marker-level-3 {
  transform: translate(-50%, 35%) scale(2.12);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot:hover .plot-marker-level-4 {
  transform: translate(-50%, 35%) scale(2.22);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot:hover .plot-marker-level-5 {
  transform: translate(-50%, 35%) scale(2.32);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot:hover .plot-marker {
  filter:
    drop-shadow(0 5px 8px rgba(0,0,0,0.55))
    drop-shadow(0 0 8px rgba(255,210,120,0.25));
}

@media (max-width: 768px) {
  .estate-detail-visuals {
    grid-template-columns: 1fr;
  }

  .estate-detail-marker {
    min-height: 190px;
  }
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.claimed.has-plot-banner .plot-label {
  position: absolute;
  left: 50%;
  bottom: -4px;
  z-index: 30;
  display: block !important;
  width: max-content;
  color: #fff7d3 !important;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 1px 3px rgba(0,0,0,0.95),
    0 0 5px rgba(0,0,0,0.8);
  transform: translateX(-50%);
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.claimed.has-plot-banner .plot-label small {
  display: none;
}

/* Protected Odin recovery panel */
.odin-panel-trigger {
  border-color: rgba(242,214,117,0.72);
  background: rgba(94,65,18,0.32);
  color: #fff0b0;
}

.odin-panel-trigger[hidden],
.odin-preview-trigger[hidden] {
  display: none !important;
}

.estate-detail-odin-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  border: 1px solid rgba(242,214,117,0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 20%, rgba(242,214,117,0.12), transparent 42%),
    rgba(43,29,8,0.28);
  padding: 14px;
}

.estate-detail-odin-controls[hidden] {
  display: none;
}

.estate-detail-odin-controls h3,
.estate-detail-odin-controls p {
  margin: 0;
}

.estate-detail-odin-controls h3 {
  color: #fff1b7;
  font-size: 17px;
}

.estate-detail-odin-controls p:not(.eyebrow) {
  margin-top: 5px;
  color: rgba(234,226,198,0.72);
  font-size: 11px;
}

.odin-primary-btn {
  min-height: 38px;
  border: 1px solid rgba(242,214,117,0.7);
  border-radius: 10px;
  background: linear-gradient(180deg, #f2d675, #b98c25);
  color: #211604;
  cursor: pointer;
  font-weight: 900;
  padding: 9px 14px;
}

.odin-primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.odin-panel-modal[hidden] {
  display: none;
}

.odin-panel-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 18px;
}

.odin-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1,4,12,0.88);
  backdrop-filter: blur(10px);
}

.odin-panel {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  max-height: 94vh;
  overflow: auto;
  border: 1px solid rgba(242,214,117,0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 0%, rgba(180,128,34,0.13), transparent 34%),
    linear-gradient(145deg, rgba(7,15,29,0.99), rgba(3,8,18,0.99));
  box-shadow:
    0 34px 100px rgba(0,0,0,0.7),
    0 0 34px rgba(212,175,55,0.12);
  padding: 18px;
}

.odin-panel-header,
.odin-editor-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

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

.odin-panel-header h2 {
  color: #fff4c5;
  font-size: clamp(28px, 4vw, 42px);
}

.odin-panel-header > div > p:last-child {
  margin-top: 6px;
  color: rgba(224,230,240,0.68);
  font-size: 12px;
}

.odin-search-form {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) auto;
  gap: 10px;
  margin: 16px 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  padding: 12px;
}

.odin-search-form label,
.odin-field-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: rgba(222,229,239,0.7);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.odin-search-form input,
.odin-search-form select,
.odin-field-grid input,
.odin-field-grid select,
.odin-field-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px;
  outline: none;
  background: rgba(255,255,255,0.055);
  color: #f7faff;
  font: inherit;
  font-size: 12px;
  padding: 9px;
  text-transform: none;
}

.odin-search-form input:focus,
.odin-search-form select:focus,
.odin-field-grid input:focus,
.odin-field-grid select:focus,
.odin-field-grid textarea:focus {
  border-color: rgba(242,214,117,0.68);
  box-shadow: 0 0 0 2px rgba(242,214,117,0.09);
}

.odin-search-form select option,
.odin-field-grid select option {
  background: #081223;
  color: #f7faff;
}

.odin-panel-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 260px;
  gap: 12px;
}

.odin-panel-layout > aside,
.odin-correction-form,
.odin-extras-form,
.odin-audit-panel {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  padding: 12px;
}

.odin-extras-form {
  grid-column: 2;
}

.odin-audit-panel {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.odin-panel-layout h3 {
  margin: 0 0 10px;
  color: #fff0b0;
  font-size: 13px;
}

.odin-search-results,
.odin-audit-log {
  display: grid;
  gap: 7px;
  max-height: 560px;
  overflow: auto;
}

.odin-result-btn {
  width: 100%;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  color: #f7faff;
  cursor: pointer;
  padding: 9px;
  text-align: left;
}

.odin-result-btn:hover,
.odin-result-btn.is-selected {
  border-color: rgba(242,214,117,0.54);
  background: rgba(242,214,117,0.09);
}

.odin-result-btn strong {
  color: #fff0b0;
  font-size: 12px;
}

.odin-result-btn span {
  color: rgba(224,230,240,0.65);
  font-size: 10px;
}

.odin-editor-title {
  margin-bottom: 12px;
}

.odin-editor-title div {
  display: grid;
  gap: 3px;
}

.odin-editor-title span {
  color: rgba(224,230,240,0.6);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.odin-editor-title strong {
  color: #fff4c5;
  font-size: 18px;
}

.odin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.odin-field-wide {
  grid-column: 1 / -1;
}

.odin-security-note {
  margin: 12px 0;
  border-left: 3px solid rgba(242,214,117,0.64);
  background: rgba(242,214,117,0.06);
  color: rgba(238,229,198,0.75);
  font-size: 10px;
  line-height: 1.45;
  padding: 9px 10px;
}

.odin-correction-form > .odin-primary-btn {
  width: 100%;
}

.odin-extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.odin-extras-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.odin-extra-level {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 10px;
  background: rgba(4, 10, 20, 0.46);
  padding: 9px;
}

.odin-extra-level legend {
  color: #f2d675;
  font-size: 10px;
  font-weight: 900;
  padding: 0 6px;
}

.odin-extra-level .odin-extras-grid {
  grid-template-columns: 1fr;
}

.odin-extra-level-utility {
  grid-column: 1 / -1;
}

.odin-extra-level-utility .odin-extras-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.odin-extras-grid label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 9px;
  background: rgba(255,255,255,0.035);
  color: rgba(239,243,249,0.84);
  cursor: pointer;
  padding: 9px;
  font-size: 10px;
  font-weight: 800;
}

.odin-extras-grid label:has(input:checked) {
  border-color: rgba(242,214,117,0.5);
  background: rgba(242,214,117,0.1);
  color: #fff2bd;
}

.odin-extras-grid label small {
  display: block;
  margin-top: 2px;
  color: rgba(216, 226, 241, 0.52);
  font-size: 8px;
  font-weight: 700;
}

.odin-extras-grid input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #d4af37;
}

.odin-extras-text-field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: rgba(222,229,239,0.7);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.odin-extras-text-field input,
.odin-extras-text-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px;
  outline: none;
  background: rgba(255,255,255,0.055);
  color: #f7faff;
  font: inherit;
  font-size: 12px;
  padding: 9px;
  text-transform: none;
}

.odin-extras-form > .odin-primary-btn {
  width: 100%;
}

.odin-audit-entry {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  background: rgba(255,255,255,0.035);
  padding: 9px;
}

.odin-audit-entry strong,
.odin-audit-entry span,
.odin-audit-entry small {
  display: block;
}

.odin-audit-entry strong {
  color: #fff0b0;
  font-size: 11px;
}

.odin-audit-entry span {
  margin-top: 4px;
  color: rgba(238,242,248,0.82);
  font-size: 10px;
}

.odin-audit-entry small {
  margin-top: 5px;
  color: rgba(224,230,240,0.5);
  font-size: 8px;
}

@media (max-width: 980px) {
  .odin-panel-layout {
    grid-template-columns: 1fr;
  }

  .odin-extras-form,
  .odin-audit-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .odin-search-results,
  .odin-audit-log {
    max-height: 220px;
  }
}

@media (max-width: 640px) {
  .estate-detail-odin-controls,
  .odin-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .odin-search-form,
  .odin-field-grid {
    grid-template-columns: 1fr;
  }

  .odin-field-wide {
    grid-column: auto;
  }
}

/* Wormhalla premium control shell */
.app-sidebar {
  border-right: 1px solid rgba(210, 164, 70, 0.5);
  background: #07101d;
  box-shadow:
    14px 0 38px rgba(0, 0, 0, 0.42),
    inset -3px 0 0 rgba(86, 57, 25, 0.52);
}

.app-sidebar::before {
  content: "◆  ODIN  ◆  WORMHALLA  ◆";
  display: block;
  margin: -4px 0 8px;
  color: rgba(214, 174, 82, 0.58);
  font-size: 10px;
  letter-spacing: 5px;
  text-align: center;
}

.topbar {
  border-bottom: 1px solid rgba(210, 164, 70, 0.24);
  margin-bottom: 9px;
}

.brand-mark {
  border-radius: 8px;
  border-color: #c99b42;
  background: #08121f;
  box-shadow:
    inset 0 0 0 2px rgba(65, 39, 17, 0.72),
    0 0 18px rgba(212, 175, 55, 0.2);
}

.brand h1 {
  color: #fff3c4;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 2px;
}

.brand p {
  color: rgba(218, 226, 236, 0.68);
  font-size: 11px;
}

.dashboard .panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(192, 143, 55, 0.38);
  border-radius: 8px;
  background: rgba(5, 13, 24, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 166, 0.035),
    0 8px 22px rgba(0, 0, 0, 0.2);
}

.dashboard .panel::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(115, 77, 31, 0.22);
  pointer-events: none;
}

.dashboard .panel h3 {
  position: relative;
  z-index: 1;
  color: #f3d783;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.5px;
}

.wallet-panel::before {
  content: "WEB3 WALLET";
  position: absolute;
  top: 11px;
  right: 12px;
  color: rgba(120, 211, 181, 0.72);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

#walletAddress {
  position: relative;
  z-index: 1;
  border-left: 2px solid rgba(100, 207, 168, 0.62);
  color: #d9efe7;
  font-family: Consolas, monospace;
  font-size: 11px;
  padding-left: 8px;
}

.worm-card {
  border-radius: 7px;
  border-color: rgba(173, 132, 63, 0.32);
  background: rgba(13, 24, 37, 0.88);
}

.worm-card:hover,
.worm-card.active {
  border-color: rgba(235, 196, 103, 0.86);
  background: rgba(74, 55, 22, 0.34);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.14);
}

.selected-estate-panel {
  border-color: rgba(229, 185, 83, 0.54) !important;
}

.estate-compact-summary,
.selected-worm-details {
  border-radius: 6px;
  border-color: rgba(166, 125, 55, 0.26);
  background: rgba(13, 23, 35, 0.78);
}

.map-header {
  position: relative;
  border: 1px solid rgba(191, 142, 54, 0.36);
  border-radius: 8px;
  background: rgba(5, 13, 24, 0.9);
  padding: 13px 18px;
  box-shadow:
    inset 0 0 0 3px rgba(59, 38, 16, 0.28),
    0 10px 30px rgba(0, 0, 0, 0.28);
}

.map-header::before,
.map-header::after {
  content: "◆";
  color: rgba(218, 176, 79, 0.62);
  font-size: 11px;
  position: absolute;
  top: 8px;
}

.map-header::before {
  left: 8px;
}

.map-header::after {
  right: 8px;
}

.map-header h2 {
  color: #fff3c4;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.5px;
}

.map-toggle-btn,
.gold-btn,
.property-management-btn,
.worm-estate-action {
  border-radius: 6px;
  border-color: rgba(225, 184, 87, 0.68);
}

.map-toggle-btn {
  background: rgba(23, 28, 33, 0.88);
  color: #f3da91;
  box-shadow: inset 0 0 0 1px rgba(77, 47, 19, 0.48);
}

.map-toggle-btn:hover,
.map-toggle-btn.is-active,
.odin-panel-trigger {
  background: rgba(91, 63, 24, 0.46);
}

.odin-panel-trigger {
  border-color: rgba(236, 196, 93, 0.9);
  color: #fff0b4;
}

.world-navigation {
  border-color: rgba(186, 139, 57, 0.42);
  border-radius: 7px;
  background: rgba(5, 14, 24, 0.88);
}

.world-nav-item {
  border-radius: 6px;
  border-color: rgba(153, 111, 47, 0.36);
  background: rgba(19, 29, 40, 0.76);
}

.world-nav-item:hover,
.world-nav-item.is-active {
  border-color: rgba(236, 200, 112, 0.76);
  background: rgba(85, 63, 29, 0.38);
}

@media (max-width: 760px) {
  .odin-extras-levels,
  .odin-extra-level-utility .odin-extras-grid {
    grid-template-columns: 1fr;
  }

  .odin-extra-level-utility {
    grid-column: auto;
  }
}

/* Wormhalla nordic command center */
:root {
  --nordic-ink: #050b14;
  --nordic-blue: #091827;
  --nordic-blue-soft: #10283a;
  --nordic-bronze: #9d6d2f;
  --nordic-gold: #dfbd67;
  --nordic-gold-bright: #ffe5a0;
  --nordic-line: rgba(205, 157, 69, 0.48);
}

.app-sidebar {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025), transparent 9%, transparent 91%, rgba(0,0,0,0.3)),
    radial-gradient(circle at 50% 4%, rgba(185,128,39,0.17), transparent 28%),
    linear-gradient(180deg, #091625 0%, #050d17 58%, #030810 100%);
  border-right: 2px solid rgba(157,109,47,0.72);
  box-shadow:
    20px 0 58px rgba(0,0,0,0.58),
    inset -5px 0 0 rgba(31,18,8,0.8),
    inset -7px 0 0 rgba(218,176,83,0.12);
}

.app-sidebar::before {
  content: "\2726  ODIN  \2726  WORMHALLA  \2726";
  margin: -4px 0 10px;
  color: rgba(223,189,103,0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(223,189,103,0.28);
}

.topbar {
  position: relative;
  margin-bottom: 10px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid rgba(223,189,103,0.32);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #9d6d2f, #ffe5a0, #9d6d2f, transparent);
  opacity: 0.65;
}

.brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  border: 1px solid #dfbd67;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(223,189,103,0.18), transparent 52%),
    #06111d;
  color: #ffe5a0;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow:
    inset 0 0 0 4px #06111d,
    inset 0 0 0 5px rgba(157,109,47,0.62),
    0 0 22px rgba(223,189,103,0.24);
}

.brand h1 {
  font-size: 23px;
  text-shadow: 0 2px 14px rgba(223,189,103,0.2);
}

.brand p {
  color: rgba(226,218,194,0.68);
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.dashboard {
  gap: 10px;
}

.dashboard .panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(157,109,47,0.62);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(17,39,53,0.84), rgba(5,13,23,0.95) 58%),
    #07121e;
  box-shadow:
    inset 0 0 0 3px rgba(3,8,14,0.72),
    inset 0 0 0 4px rgba(223,189,103,0.09),
    0 12px 26px rgba(0,0,0,0.34);
  padding: 13px;
}

.dashboard .panel::after {
  inset: 5px;
  border: 1px solid rgba(223,189,103,0.1);
  border-radius: 2px;
}

.relic-section-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(223,189,103,0.18);
}

.relic-section-heading::after {
  content: "";
  position: absolute;
  left: 36px;
  bottom: -1px;
  width: 82px;
  height: 1px;
  background: linear-gradient(90deg, #dfbd67, transparent);
}

.relic-section-heading h3,
.relic-section-heading small {
  margin: 0;
}

.relic-section-heading h3 {
  color: #f8dda0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 1.2px;
}

.relic-section-heading small {
  display: block;
  margin-bottom: 2px;
  color: rgba(184,199,211,0.54);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.relic-sigil {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223,189,103,0.58);
  background:
    radial-gradient(circle, rgba(223,189,103,0.2), transparent 66%),
    rgba(2,8,14,0.84);
  color: #ffe5a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 900;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 14px rgba(223,189,103,0.12);
}

.relic-sigil {
  line-height: 1;
}

.wallet-panel::before {
  content: "WEB3 BOUND";
  color: rgba(112,219,182,0.74);
  letter-spacing: 1.2px;
}

#walletAddress {
  border: 1px solid rgba(92,184,154,0.24);
  border-left: 3px solid rgba(100,207,168,0.72);
  border-radius: 3px;
  background: rgba(1,9,14,0.52);
  color: #dbf5eb;
  padding: 8px 9px;
}

.worm-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 248px;
  padding: 1px 3px 2px 1px;
}

.worm-card {
  position: relative;
  min-height: 106px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(157,109,47,0.42);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(20,42,55,0.9), rgba(5,13,22,0.96));
  padding: 9px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.worm-card::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,0.035);
  pointer-events: none;
}

.worm-card:hover,
.worm-card.active {
  border-color: rgba(255,220,132,0.9);
  background:
    radial-gradient(circle at 25% 35%, rgba(223,189,103,0.17), transparent 36%),
    linear-gradient(145deg, rgba(33,49,55,0.95), rgba(11,17,23,0.98));
  box-shadow:
    0 0 17px rgba(223,189,103,0.18),
    inset 0 0 16px rgba(223,189,103,0.06);
  transform: translateY(-2px);
}

.worm-portrait {
  width: 44px;
  height: 58px;
  display: grid !important;
  place-items: center;
  align-content: center;
  margin: 0 !important;
  border: 1px solid rgba(223,189,103,0.52);
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,226,151,0.22), transparent 25%),
    linear-gradient(180deg, #183246, #08131f);
  color: #ffe5a0 !important;
  box-shadow:
    inset 0 0 12px rgba(0,0,0,0.54),
    0 0 12px rgba(223,189,103,0.13);
}

.worm-portrait span,
.worm-portrait small {
  margin: 0;
  color: inherit;
}

.worm-portrait span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 900;
}

.worm-portrait small {
  font-size: 7px;
  letter-spacing: 0.5px;
}

.worm-card-copy,
.worm-card-meta {
  min-width: 0;
  display: grid !important;
}

.worm-card-copy {
  gap: 5px;
}

.worm-card-copy > strong {
  overflow: hidden;
  color: #fff0bb;
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worm-card-meta {
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0 !important;
}

.worm-card-meta small {
  color: rgba(215,225,233,0.66);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.worm-rarity-label {
  width: fit-content;
  margin: 0 !important;
  border-left: 2px solid #dfbd67;
  color: #dfbd67 !important;
  font-size: 7px !important;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding-left: 5px;
  text-transform: uppercase;
}

.worm-rarity-founder .worm-rarity-label,
.worm-rarity-legendary .worm-rarity-label {
  color: #ffe5a0 !important;
  text-shadow: 0 0 8px rgba(255,211,106,0.45);
}

.selected-estate-panel {
  border-color: rgba(223,189,103,0.78) !important;
  box-shadow:
    inset 0 0 0 3px rgba(3,8,14,0.72),
    inset 0 0 25px rgba(223,189,103,0.055),
    0 14px 30px rgba(0,0,0,0.4) !important;
}

/* Nordic world command bar */
.map-header {
  display: grid;
  grid-template-columns: max-content minmax(560px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  margin-bottom: 9px;
  border: 1px solid rgba(157,109,47,0.72);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(15,35,49,0.98), rgba(5,14,24,0.96) 45%, rgba(11,27,39,0.98)),
    #07131f;
  box-shadow:
    inset 0 0 0 3px rgba(3,8,14,0.72),
    inset 0 0 0 4px rgba(223,189,103,0.08),
    0 12px 28px rgba(0,0,0,0.36);
  padding: 11px 16px;
}

.map-header::before,
.map-header::after {
  content: "\2726";
  top: 7px;
  color: rgba(223,189,103,0.7);
}

.world-title-lockup {
  min-width: 150px;
}

.world-title-lockup .eyebrow {
  margin-bottom: 4px;
  font-size: 7px;
  letter-spacing: 1.2px;
}

.map-header h2 {
  margin: 0;
  color: #fff1bd;
  font-size: 20px;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.kingdom-top-navigation {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
}

.kingdom-nav-btn {
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 24px minmax(0, auto);
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(157,109,47,0.38);
  border-radius: 3px;
  background: rgba(3,10,17,0.52);
  color: rgba(231,225,202,0.75);
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 7px 9px;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.kingdom-nav-btn:hover,
.kingdom-nav-btn.is-active {
  border-color: rgba(223,189,103,0.82);
  background:
    linear-gradient(180deg, rgba(157,109,47,0.24), rgba(8,17,25,0.7));
  color: #ffe5a0;
  box-shadow:
    inset 0 -2px 0 rgba(223,189,103,0.42),
    0 0 13px rgba(223,189,103,0.11);
}

.kingdom-nav-btn[hidden] {
  display: none;
}

.nav-sigil {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223,189,103,0.46);
  border-radius: 50%;
  color: #dfbd67;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  box-shadow: inset 0 0 7px rgba(223,189,103,0.1);
}

.map-header-tools {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.map-header .legend {
  justify-content: flex-end;
  gap: 8px;
  font-size: 8px;
}

.map-header .legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 3px;
}

.map-actions {
  gap: 6px;
}

.map-toggle-btn {
  min-height: 30px;
  border-radius: 3px;
  background: rgba(8,18,27,0.86);
  color: #efd489;
  font-size: 8px;
  letter-spacing: 0.45px;
  padding: 7px 10px;
  text-transform: uppercase;
}

/* Kingdom region presentation */
.blueprint-zone {
  border: 1px solid rgba(173,124,49,0.82);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 3px rgba(8,7,5,0.45),
    inset 0 0 0 4px rgba(232,190,92,0.16),
    inset 0 0 40px rgba(3,7,10,0.35),
    0 14px 28px rgba(0,0,0,0.46),
    0 0 22px rgba(var(--zone-glow),0.15);
}

.blueprint-zone::after {
  inset: 5px;
  border: 1px solid rgba(223,189,103,0.24);
  border-radius: 2px;
  box-shadow:
    inset 0 0 34px rgba(0,0,0,0.48),
    inset 0 0 0 1px rgba(0,0,0,0.4);
}

.blueprint-zone header {
  left: 24px;
  top: 22px;
  min-width: 300px;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid rgba(223,189,103,0.76);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(8,18,25,0.96), rgba(26,35,37,0.9)),
    #07131c;
  box-shadow:
    inset 0 0 0 2px rgba(2,7,11,0.66),
    0 8px 18px rgba(0,0,0,0.42),
    0 0 16px rgba(var(--zone-glow),0.16);
  padding: 9px 12px;
}

.blueprint-zone header::before {
  content: "\2726";
  position: absolute;
  left: -8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(223,189,103,0.72);
  background: #07131c;
  color: #dfbd67;
  font-size: 7px;
  transform: translateY(-50%) rotate(45deg);
}

.zone-title-lockup,
.zone-status-lockup {
  display: grid;
  gap: 2px;
}

.zone-title-lockup small {
  color: rgba(223,189,103,0.66);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.blueprint-zone header .zone-title-lockup strong {
  color: #fff0b3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: 0.5px;
}

.zone-status-lockup {
  justify-items: end;
  text-align: right;
}

.blueprint-zone header .zone-status-lockup > span {
  color: rgba(244,226,174,0.76);
  font-size: 9px;
}

.blueprint-zone header .zone-claim-status {
  color: #d9c48d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.blueprint-zone.is-unlocked header .zone-claim-status {
  color: #a9dfc5;
}

/* Estate interaction focus */
.blueprint-view .master-plot-overlay .plot.master-world-plot {
  transform-origin: center center;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot:hover {
  transform: translate(-50%, -50%) scale(1.1) !important;
  filter: brightness(1.08);
  box-shadow:
    0 5px 12px rgba(0,0,0,0.44),
    0 0 14px rgba(255,215,117,0.34) !important;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.estate-focus-pulse:not(.has-house):not(.has-house-map-art) {
  border-color: #ffe28e !important;
  box-shadow:
    0 0 0 5px rgba(255,218,115,0.14),
    0 0 18px rgba(255,218,115,0.82),
    0 0 34px rgba(74,144,255,0.44) !important;
}

.blueprint-view .master-plot-overlay .plot.master-world-plot.estate-focus-pulse .plot-marker {
  filter:
    drop-shadow(0 0 7px rgba(255,229,160,0.95))
    drop-shadow(0 0 17px rgba(74,144,255,0.64))
    drop-shadow(0 7px 9px rgba(0,0,0,0.56));
}

/* Valhalla prestige landmark */
.valhalla-gate-panel {
  width: min(780px, 100%);
  overflow: hidden;
  border-color: rgba(223,189,103,0.72);
  background:
    radial-gradient(circle at 50% 18%, rgba(76,126,177,0.2), transparent 36%),
    linear-gradient(160deg, rgba(8,22,35,0.99), rgba(3,8,16,0.99));
}

.valhalla-portal-stage {
  position: relative;
  height: min(430px, 50vh);
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid rgba(223,189,103,0.28);
  border-radius: 5px;
  background:
    radial-gradient(circle, rgba(58,126,180,0.24), transparent 48%),
    rgba(2,8,15,0.72);
  box-shadow:
    inset 0 0 48px rgba(0,0,0,0.52),
    0 0 24px rgba(223,189,103,0.08);
}

.valhalla-portal-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter:
    drop-shadow(0 18px 22px rgba(0,0,0,0.48))
    drop-shadow(0 0 16px rgba(226,190,93,0.14));
}

.valhalla-portal-aura {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 58%, rgba(2, 7, 13, 0.38)),
    radial-gradient(circle at 50% 55%, rgba(245, 204, 105, 0.12), transparent 42%);
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.42);
}

.valhalla-world-progress {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(223,189,103,0.36);
  border-radius: 4px;
  background: rgba(6,16,26,0.78);
  padding: 13px 15px;
}

.valhalla-world-progress > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.valhalla-world-progress span {
  color: rgba(226,222,207,0.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.valhalla-world-progress strong {
  color: #ffe5a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.valhalla-progress-track {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(223,189,103,0.3);
  background: rgba(0,0,0,0.36);
}

.valhalla-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6e451b, #dfbd67, #fff0ad);
  box-shadow: 0 0 12px rgba(223,189,103,0.42);
  transition: width 320ms ease;
}

.valhalla-world-progress p {
  margin: 0;
  color: rgba(219,225,232,0.6);
  font-size: 10px;
}

@media (max-width: 1240px) {
  .map-header {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .map-header-tools {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .map-header .legend {
    justify-content: flex-start;
  }

  .kingdom-top-navigation {
    justify-content: flex-end;
  }

  .kingdom-nav-btn {
    grid-template-columns: 20px minmax(0, auto);
    padding: 6px;
  }

  .nav-sigil {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 900px) {
  .map-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .kingdom-top-navigation {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .kingdom-nav-btn {
    flex: 0 0 auto;
  }

  .map-header-tools {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .app-sidebar {
    border-right: 0;
    border-bottom: 2px solid rgba(157,109,47,0.72);
  }

  .dashboard .panel:nth-child(1) { order: 1; }
  .dashboard .panel:nth-child(2) { order: 2; }
  .dashboard .panel:nth-child(3) { order: 3; }

  .worm-list {
    grid-template-columns: repeat(2, minmax(138px, 1fr));
    max-height: none;
  }

  .map-header-tools {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .map-header .legend {
    justify-content: flex-start;
  }

  .map-actions,
  .map-toggle-btn {
    width: 100%;
  }

  .blueprint-zone header {
    min-width: 270px;
  }

  .valhalla-portal-stage {
    height: 270px;
  }
}

/* Worm Relics scrolling and compact world actions */
.map-header {
  grid-template-columns: max-content minmax(0, 1fr);
}

.map-header-tools {
  width: 100%;
  grid-column: 2;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  justify-content: end;
}

.map-header .map-actions {
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .worms-panel {
    flex: 0 1 310px !important;
    min-height: 190px !important;
    max-height: 340px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
  }

  .worms-panel .relic-section-heading {
    flex: 0 0 auto;
  }

  .worms-panel .worm-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    align-content: start;
    padding: 1px 5px 24px 1px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 1240px) {
  .map-header-tools {
    grid-column: 2;
    grid-template-columns: 1fr;
    justify-items: end;
  }
}

@media (max-width: 900px) {
  .map-header-tools {
    grid-column: auto;
    justify-items: stretch;
  }

  .worms-panel,
  .worms-panel .worm-list {
    max-height: none;
    overflow: visible;
  }
}

/* Centered world actions and illustrated region navigation */
.map-header {
  grid-template-columns: max-content minmax(0, 1fr);
  min-height: 78px;
}

.map-header-tools {
  position: relative;
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  justify-items: stretch;
  width: 100%;
  gap: 12px;
}

.map-header .map-actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 7px;
}

.map-header .legend {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  justify-content: flex-end;
  white-space: nowrap;
}

.map-header .map-toggle-btn {
  position: relative;
  min-height: 34px;
  border-color: rgba(202, 154, 69, 0.62);
  background:
    linear-gradient(180deg, rgba(31, 37, 43, 0.96), rgba(7, 14, 22, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 145, 0.07),
    inset 0 -2px 0 rgba(95, 55, 20, 0.42),
    0 6px 14px rgba(0, 0, 0, 0.2);
  color: #f2d790;
}

.map-header .map-toggle-btn:hover,
.map-header .map-toggle-btn.is-active {
  border-color: rgba(242, 204, 111, 0.95);
  background:
    linear-gradient(180deg, rgba(90, 61, 25, 0.72), rgba(13, 22, 30, 0.98));
  box-shadow:
    inset 0 0 16px rgba(237, 193, 86, 0.13),
    0 0 16px rgba(223, 179, 73, 0.2);
}

.world-navigation {
  gap: 9px;
  min-height: 132px;
  margin-bottom: 10px;
  padding: 8px;
  border-color: rgba(184, 139, 60, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 25, 35, 0.9), rgba(5, 12, 20, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(239, 204, 121, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.24);
  scrollbar-width: thin;
}

.world-nav-item {
  position: relative;
  isolation: isolate;
  flex: 0 0 204px;
  width: 204px;
  aspect-ratio: 16 / 9;
  min-width: 204px;
  min-height: 115px;
  overflow: hidden;
  border: 1px solid rgba(169, 131, 67, 0.58);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 20%, rgba(155, 118, 56, 0.2), transparent 46%),
    #0b1822;
  padding: 0;
  color: #fff7df;
  box-shadow:
    inset 0 0 0 1px rgba(255, 229, 161, 0.05),
    0 7px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.world-nav-art,
.world-nav-overlay {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}

.world-nav-art {
  z-index: 0;
  background: linear-gradient(145deg, #153144, #201b17);
}

.world-nav-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
  filter: saturate(0.94) brightness(0.96);
  transform: scale(1.015);
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 260ms ease;
}

.world-nav-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 10, 18, 0.12) 16%, rgba(4, 10, 18, 0.34) 54%, rgba(4, 10, 18, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.08));
}

.world-nav-copy {
  position: absolute;
  left: 11px;
  right: 9px;
  bottom: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 8px;
  margin: 0;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.92);
}

.world-nav-item .world-nav-copy strong {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #fff5d5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-nav-item .world-nav-range {
  margin-top: 5px;
  color: #e4bd68;
  font-size: 9px;
  letter-spacing: 0.7px;
}

.world-nav-item .world-nav-copy small {
  max-width: 116px;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(240, 244, 248, 0.78);
  font-size: 8px;
  line-height: 1.1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-nav-status {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: block;
  margin: 0;
  border: 1px solid rgba(232, 193, 99, 0.48);
  border-radius: 3px;
  background: rgba(4, 10, 16, 0.78);
  color: #efd487;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.7px;
  line-height: 1;
  padding: 5px 6px;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.world-nav-item:hover {
  border-color: rgba(239, 205, 119, 0.9);
  background: #0b1822;
  box-shadow:
    inset 0 0 0 1px rgba(255, 229, 161, 0.12),
    0 0 18px rgba(222, 174, 71, 0.2),
    0 9px 18px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.world-nav-item:hover .world-nav-art img {
  opacity: 0.92;
  filter: saturate(1.08) brightness(1.03);
  transform: scale(1.055);
}

.world-nav-item.is-active {
  border-color: #e8bd5e;
  background: #0b1822;
  box-shadow:
    inset 0 0 0 2px rgba(255, 226, 141, 0.22),
    0 0 20px rgba(227, 178, 66, 0.28),
    0 9px 18px rgba(0, 0, 0, 0.34);
}

.world-nav-item.is-active .world-nav-art img {
  opacity: 0.94;
  filter: saturate(1.1) brightness(1.05);
}

.world-nav-item.is-locked {
  border-color: rgba(129, 137, 147, 0.38);
  background: #0a1118;
  color: rgba(229, 235, 242, 0.74);
}

.world-nav-item.is-locked .world-nav-art img {
  opacity: 0.58;
  filter: grayscale(0.9) brightness(0.48) saturate(0.55);
}

.world-nav-item.is-locked .world-nav-overlay {
  background:
    linear-gradient(180deg, rgba(3, 8, 13, 0.18), rgba(3, 8, 13, 0.72)),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, 0.015) 8px 9px);
}

.world-nav-item.is-locked .world-nav-status {
  border-color: rgba(203, 211, 221, 0.26);
  color: rgba(227, 233, 241, 0.72);
}

.world-nav-item.is-locked::after {
  content: none;
}

.world-nav-item.is-locked:hover,
.world-nav-item.is-locked.is-active {
  border-color: rgba(209, 177, 105, 0.56);
  background: #0a1118;
}

.world-nav-item.has-missing-art .world-nav-art {
  background:
    radial-gradient(circle at 25% 25%, rgba(190, 145, 68, 0.28), transparent 35%),
    linear-gradient(145deg, #173044, #16181b);
}

@media (max-width: 1240px) {
  .map-header-tools {
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .map-header .map-actions {
    grid-column: 1;
    justify-self: end;
  }

  .map-header .legend {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .map-header {
    grid-template-columns: 1fr;
  }

  .map-header-tools {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .map-header .map-actions {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .map-header .map-toggle-btn {
    flex: 0 0 auto;
    width: auto;
  }

  .map-header .legend {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    justify-content: flex-start;
  }

  .world-navigation {
    min-height: 124px;
  }

  .world-nav-item {
    flex-basis: 190px;
    width: 190px;
    min-width: 190px;
  }
}

/* Worm Relic selection clearance */
.worms-panel .worm-list {
  padding-top: 8px;
  padding-bottom: 20px;
}

.worm-card {
  margin-top: 2px;
}

.worm-card.active {
  outline: 1px solid rgba(255, 220, 132, 0.42);
  outline-offset: -2px;
  transform: none;
}

/* Nordic header action sigils */
.map-header .map-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(218, 177, 87, 0.72);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 205, 94, 0.15), transparent 56%),
    linear-gradient(180deg, rgba(38, 29, 17, 0.97), rgba(7, 14, 22, 0.98));
  color: #f3dc98;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 160, 0.07),
    inset 0 -2px 0 rgba(105, 63, 22, 0.45),
    0 6px 14px rgba(0, 0, 0, 0.32);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.map-header .map-toggle-btn::before {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(216, 171, 75, 0.42);
  border-radius: 50%;
  color: #d9ad4f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1;
  box-shadow:
    inset 0 0 7px rgba(236, 190, 89, 0.09),
    0 0 7px rgba(0, 0, 0, 0.35);
}

#openOdinPanelBtn::before {
  content: "\16DF";
}

#openEstateRankingBtn::before {
  content: "\16B1";
}

#openValhallaGateBtn::before {
  content: "\16C9";
}

#showAvailablePlotsBtn::before {
  content: "\16A8";
}

.map-header .map-toggle-btn:hover {
  border-color: #ffd76a;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 104, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(63, 43, 20, 0.98), rgba(9, 17, 25, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 160, 0.15),
    inset 0 -2px 0 rgba(130, 82, 28, 0.54),
    0 0 14px rgba(255, 190, 75, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.36);
  transform: translateY(-1px);
}

.map-header .map-toggle-btn.is-active,
.map-header .map-toggle-btn[aria-pressed="true"] {
  border-color: #ffe18b;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 215, 112, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(78, 53, 22, 0.98), rgba(10, 18, 25, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 183, 0.2),
    inset 0 0 16px rgba(231, 181, 75, 0.12),
    0 0 17px rgba(255, 194, 73, 0.24);
}

.map-header .map-toggle-btn:active {
  transform: translateY(0);
}

/* Estate Details visual presentation */
.estate-detail-panel {
  width: min(1040px, 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(218, 177, 87, 0.72) rgba(5, 11, 18, 0.86);
}

.estate-detail-panel::-webkit-scrollbar {
  width: 10px;
}

.estate-detail-panel::-webkit-scrollbar-track {
  border-left: 1px solid rgba(218, 177, 87, 0.16);
  background: rgba(5, 11, 18, 0.88);
}

.estate-detail-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 11, 18, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(242, 205, 111, 0.94), rgba(121, 88, 35, 0.96));
}

.estate-detail-visuals {
  grid-template-columns: minmax(0, 2.4fr) minmax(240px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.estate-detail-art,
.estate-detail-marker {
  min-height: 340px;
  border: 1px solid rgba(218, 177, 87, 0.7);
  border-radius: 10px;
}

.estate-detail-art {
  display: block;
  background: rgba(4, 11, 18, 0.88);
}

.estate-detail-art::after {
  content: none;
}

.estate-detail-art .estate-visual-label,
.estate-detail-marker .estate-visual-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  margin: 0;
  border: 1px solid rgba(226, 184, 91, 0.58);
  border-radius: 4px;
  background: rgba(3, 9, 15, 0.82);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  padding: 6px 9px;
}

.estate-showcase-image {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
}

.estate-detail-marker {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 42px 14px 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(230, 184, 82, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(15, 25, 32, 0.94), rgba(4, 10, 17, 0.98));
}

.estate-detail-marker::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(223, 189, 103, 0.09);
  border-radius: 6px;
  pointer-events: none;
}

.estate-marker-image-frame {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 238px;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(218, 177, 87, 0.2);
}

.estate-marker-preview {
  display: block;
  width: 100%;
  height: 250px;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter:
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55))
    saturate(1.05);
}

.estate-detail-marker strong,
.estate-marker-level {
  position: relative;
  z-index: 2;
  text-align: center;
}

.estate-detail-marker strong {
  margin-top: 7px;
  color: #fff1bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.estate-marker-level {
  color: rgba(222, 228, 234, 0.66);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .estate-detail-visuals {
    grid-template-columns: 1fr;
  }

  .estate-detail-art,
  .estate-detail-marker {
    min-height: 280px;
  }

  .estate-showcase-image {
    height: clamp(260px, 48vw, 340px);
  }

  .estate-marker-image-frame {
    min-height: 210px;
  }
}

/* Wormhalla Estate Chronicle */
.estate-detail-panel {
  width: min(1120px, 100%);
  max-height: min(92vh, 960px);
  border-color: rgba(202, 151, 58, 0.82);
  background:
    radial-gradient(circle at 20% 0%, rgba(176, 124, 42, 0.13), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(44, 91, 116, 0.15), transparent 28%),
    linear-gradient(145deg, rgba(7, 20, 31, 0.995), rgba(2, 8, 14, 0.995));
  padding: 24px;
}

.estate-detail-panel::before {
  content: none;
}

.estate-detail-header {
  align-items: center;
  margin-bottom: 20px;
  padding: 0 2px 16px;
}

.estate-detail-header .eyebrow {
  color: #d9ad4f;
  letter-spacing: 1.8px;
}

.estate-detail-header h2 {
  margin-bottom: 7px;
  font-size: clamp(30px, 4vw, 48px);
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.62);
}

.estate-detail-header .property-close-btn {
  min-width: 72px;
  border-color: rgba(218, 177, 87, 0.56);
  background:
    radial-gradient(circle at 50% 0%, rgba(224, 183, 84, 0.12), transparent 60%),
    rgba(7, 15, 22, 0.92);
  color: #efd38a;
  text-transform: uppercase;
}

.estate-power-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
  margin: 14px 0;
}

.estate-power-card,
.estate-glory-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(210, 161, 71, 0.54);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(226, 181, 83, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(17, 31, 40, 0.96), rgba(4, 11, 18, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 164, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.25);
  padding: 16px;
}

.estate-power-card::after,
.estate-glory-card::after,
.estate-chronicle-card::after,
.estate-guardian-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(233, 193, 102, 0.07);
  border-radius: 4px;
  pointer-events: none;
}

.estate-metric-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.estate-metric-heading span,
.estate-glory-card > span {
  color: rgba(221, 227, 232, 0.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.estate-metric-heading strong {
  color: #ffe29a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.estate-power-track {
  height: 12px;
  overflow: hidden;
  margin: 13px 0 10px;
  border: 1px solid rgba(226, 185, 91, 0.28);
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 9%, rgba(0,0,0,0.18) 9% 10%),
    rgba(1, 7, 12, 0.82);
}

.estate-power-track span {
  display: block;
  width: 0;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.2) 0 9%, rgba(109,65,15,0.2) 9% 10%),
    linear-gradient(90deg, #8d5c21, #e2b854, #ffe5a0);
  box-shadow: 0 0 14px rgba(232, 184, 74, 0.34);
  transition: width 260ms ease;
}

.estate-power-card p,
.estate-glory-card p {
  margin: 0;
  color: #f4e3ad;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.estate-glory-card {
  display: grid;
  align-content: center;
  text-align: center;
}

.estate-glory-card > strong {
  margin: 3px 0;
  color: #ffe39a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.estate-glory-stars {
  margin-top: 7px;
  color: #e0b657;
  font-size: 15px;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(224, 182, 87, 0.28);
}

.estate-detail-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.estate-detail-grid > div {
  border-color: rgba(198, 151, 67, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(16, 29, 39, 0.92), rgba(5, 13, 21, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 230, 160, 0.025);
}

.estate-detail-grid dt {
  color: rgba(211, 219, 227, 0.56);
  font-size: 8px;
  letter-spacing: 0.8px;
}

.estate-detail-grid dd {
  color: #f5dfa1;
  font-size: 11px;
}

.estate-detail-development,
.estate-detail-extras,
.estate-owned-collection {
  border-color: rgba(198, 151, 67, 0.32);
  border-radius: 7px;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 165, 69, 0.07), transparent 34%),
    rgba(5, 14, 23, 0.86);
}

.estate-detail-development h3,
.estate-detail-extras h3,
.estate-owned-collection h3 {
  color: #f0ce7a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.4px;
}

.estate-owned-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.estate-owned-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(211, 166, 76, 0.3);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(17, 31, 40, 0.94), rgba(5, 13, 21, 0.97));
  padding: 8px;
}

.estate-owned-item img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(220, 177, 84, 0.22);
  border-radius: 5px;
  background: rgba(255,255,255,0.025);
  object-fit: contain;
  padding: 3px;
}

.estate-owned-item strong,
.estate-owned-item small {
  display: block;
}

.estate-owned-item strong {
  overflow: visible;
  color: #f7e6b1;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.estate-owned-item small {
  margin-top: 4px;
  color: rgba(213, 221, 229, 0.56);
  font-size: 8px;
  line-height: 1.3;
}

.estate-lore-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
  margin-top: 16px;
}

.estate-chronicle-card,
.estate-guardian-card {
  position: relative;
  border: 1px solid rgba(201, 153, 67, 0.4);
  border-radius: 7px;
  background:
    radial-gradient(circle at 14% 0%, rgba(221, 171, 75, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(15, 29, 38, 0.96), rgba(4, 11, 18, 0.98));
  padding: 16px;
}

.estate-section-title span {
  color: rgba(215, 222, 228, 0.48);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.estate-section-title h3 {
  margin: 3px 0 13px;
  color: #f2d182;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.estate-chronicle-list {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 21px;
  list-style: none;
}

.estate-chronicle-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: linear-gradient(#e1b55a, rgba(225, 181, 90, 0.12));
}

.estate-chronicle-list li {
  position: relative;
  color: rgba(233, 237, 241, 0.82);
  font-size: 10px;
}

.estate-chronicle-list li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 3px;
  width: 9px;
  height: 9px;
  border: 1px solid #d9ad4f;
  border-radius: 50%;
  background: #101c24;
  box-shadow: 0 0 8px rgba(217, 173, 79, 0.24);
}

.estate-chronicle-future {
  margin: 13px 0 0 21px;
  color: rgba(218, 224, 230, 0.42);
  font-size: 9px;
  font-style: italic;
}

.estate-guardian-content {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.estate-guardian-sigil {
  width: 68px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 182, 83, 0.6);
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 225, 145, 0.22), transparent 25%),
    linear-gradient(180deg, #183246, #08131f);
  color: #ffe5a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  box-shadow:
    inset 0 0 18px rgba(223, 189, 103, 0.08),
    0 0 16px rgba(223, 189, 103, 0.12);
}

.estate-guardian-content strong,
.estate-guardian-content span {
  display: block;
}

.estate-guardian-content strong {
  color: #f7e7b3;
  font-size: 14px;
}

.estate-guardian-content span {
  margin-top: 6px;
  color: rgba(219, 226, 232, 0.62);
  font-size: 9px;
  font-weight: 800;
}

.estate-guardian-content.is-unassigned {
  opacity: 0.58;
}

.estate-bottom-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(210, 161, 71, 0.48);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(54, 38, 17, 0.45), rgba(5, 14, 22, 0.96) 24% 76%, rgba(54, 38, 17, 0.45));
}

.estate-bottom-summary > div {
  min-width: 0;
  padding: 12px 14px;
  text-align: center;
}

.estate-bottom-summary > div + div {
  border-left: 1px solid rgba(219, 174, 79, 0.18);
}

.estate-bottom-summary span,
.estate-bottom-summary strong {
  display: block;
}

.estate-bottom-summary span {
  color: rgba(214, 221, 228, 0.48);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.estate-bottom-summary strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #f3d995;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

@media (max-width: 900px) {
  .estate-power-grid,
  .estate-lore-grid {
    grid-template-columns: 1fr;
  }

  .estate-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estate-owned-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estate-bottom-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estate-bottom-summary > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(219, 174, 79, 0.18);
  }

  .estate-bottom-summary > div:nth-child(4) {
    border-top: 1px solid rgba(219, 174, 79, 0.18);
  }
}

@media (max-width: 560px) {
  .estate-detail-modal {
    padding: 8px;
  }

  .estate-detail-panel {
    padding: 16px 12px;
  }

  .estate-detail-header {
    align-items: flex-start;
  }

  .estate-detail-grid,
  .estate-owned-collection-grid,
  .estate-bottom-summary {
    grid-template-columns: 1fr;
  }

  .estate-bottom-summary > div + div {
    border-left: 0;
    border-top: 1px solid rgba(219, 174, 79, 0.18);
  }
}

/* Final Estate Details and Estate Ascension */
.estate-detail-panel {
  max-height: min(90vh, 900px);
}

.estate-detail-development {
  display: grid;
  gap: 11px;
  margin-top: 16px;
  padding: 0;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.estate-detail-development::before,
.estate-detail-development::after {
  content: none !important;
  display: none !important;
}

.estate-active-relics-panel,
.estate-glory-breakdown {
  margin: 0;
  border: 1px solid rgba(198, 151, 67, 0.32);
  border-radius: 7px;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 165, 69, 0.07), transparent 34%),
    rgba(5, 14, 23, 0.86);
  padding: 12px;
}

.estate-active-relics-panel h3 {
  margin: 0 0 12px;
}

.estate-active-upgrade-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.estate-active-upgrade {
  border-color: rgba(203, 156, 68, 0.28);
  border-radius: 6px;
  background:
    radial-gradient(circle at 20% 0%, rgba(221, 174, 78, 0.09), transparent 40%),
    rgba(7, 17, 25, 0.88);
}

.estate-glory-breakdown {
  margin-top: 0;
}

.estate-glory-breakdown summary {
  width: max-content;
  color: #dcb660;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35px;
}

.estate-glory-breakdown summary::marker {
  color: #9e702d;
}

.estate-prestige-breakdown {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}

.estate-prestige-breakdown div {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  border: 1px solid rgba(195, 147, 62, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  padding: 6px 8px;
}

.estate-prestige-breakdown dt {
  font-size: 7px;
}

.estate-prestige-breakdown dd {
  margin: 0;
  font-size: 10px;
}

.estate-prestige-breakdown .is-total {
  border-color: rgba(225, 181, 82, 0.48);
  background: rgba(211, 159, 61, 0.1);
}

.estate-prestige-breakdown .is-total dd {
  color: #ffe49a;
  font-size: 13px;
}

.estate-valhalla-artifact {
  --artifact-accent: #9aa6b5;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--artifact-accent) 62%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 50%, color-mix(in srgb, var(--artifact-accent) 15%, transparent), transparent 38%),
    rgba(4, 11, 19, 0.9);
  box-shadow:
    inset 0 0 24px color-mix(in srgb, var(--artifact-accent) 6%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.estate-valhalla-artifact[data-rarity="uncommon"] { --artifact-accent: #63c58c; }
.estate-valhalla-artifact[data-rarity="rare"] { --artifact-accent: #55aef1; }
.estate-valhalla-artifact[data-rarity="epic"] { --artifact-accent: #b878ee; }
.estate-valhalla-artifact[data-rarity="legendary"] { --artifact-accent: #e1b34f; }
.estate-valhalla-artifact[data-rarity="mythic"] { --artifact-accent: #ef6a91; }
.estate-valhalla-artifact[data-rarity="divine"] { --artifact-accent: #f7e69a; }
.estate-valhalla-artifact[data-rarity="locked"],
.estate-valhalla-artifact[data-rarity="unopened"] { --artifact-accent: #6f8395; }

.estate-artifact-image-frame {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--artifact-accent) 45%, transparent);
  border-radius: 7px;
  background: rgba(1, 6, 11, 0.72);
}

.estate-artifact-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.estate-artifact-image-frame span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--artifact-accent) 52%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--artifact-accent) 18%, transparent), rgba(2, 8, 14, 0.82) 68%);
  color: var(--artifact-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--artifact-accent) 48%, transparent);
}

.estate-owned-item {
  position: relative;
}

.estate-owned-item-fallback {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(218, 177, 87, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(218, 177, 87, 0.15), rgba(3, 10, 17, 0.86) 68%);
  color: #e7cb7b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 0 16px rgba(218, 177, 87, 0.07),
    0 0 12px rgba(0, 0, 0, 0.28);
}

.estate-owned-item-fallback[data-artifact-key="odins_eye"],
.estate-owned-item-fallback[data-artifact-key="odins_chosen"] {
  background: radial-gradient(circle, rgba(244, 215, 120, 0.24), rgba(3, 10, 17, 0.9) 68%);
}

.estate-owned-item-fallback[data-artifact-key="raven_feather"],
.estate-owned-item-fallback[data-artifact-key="valkyrie_crest"] {
  background: radial-gradient(circle, rgba(119, 147, 190, 0.22), rgba(3, 10, 17, 0.9) 68%);
}

.estate-owned-item-fallback[data-artifact-key="fenrir_fang"],
.estate-owned-item-fallback[data-artifact-key="world_serpent_scale"] {
  background: radial-gradient(circle, rgba(100, 191, 155, 0.2), rgba(3, 10, 17, 0.9) 68%);
}

.estate-owned-item-fallback[data-artifact-key="mimirs_wisdom"],
.estate-owned-item-fallback[data-artifact-key="bifrost_shard"] {
  background: radial-gradient(circle, rgba(85, 174, 241, 0.22), rgba(3, 10, 17, 0.9) 68%);
}

.estate-owned-item-fallback[data-artifact-key="gjallarhorn_fragment"],
.estate-owned-item-fallback[data-artifact-key="odins_crown"] {
  background: radial-gradient(circle, rgba(204, 128, 229, 0.2), rgba(3, 10, 17, 0.9) 68%);
}

.estate-owned-item[data-rarity="uncommon"] { border-color: rgba(99, 197, 140, 0.45); }
.estate-owned-item[data-rarity="rare"] { border-color: rgba(85, 174, 241, 0.5); }
.estate-owned-item[data-rarity="epic"] { border-color: rgba(184, 120, 238, 0.52); }
.estate-owned-item[data-rarity="legendary"] { border-color: rgba(225, 179, 79, 0.6); }
.estate-owned-item[data-rarity="founder"] {
  border-color: rgba(244, 206, 107, 0.72);
  background:
    radial-gradient(circle at 16% 20%, rgba(75, 162, 216, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(28, 32, 38, 0.96), rgba(7, 15, 24, 0.98));
  box-shadow:
    inset 0 0 18px rgba(244, 206, 107, 0.06),
    0 0 14px rgba(60, 157, 218, 0.08);
}
.estate-owned-item[data-rarity="mythic"] { border-color: rgba(239, 106, 145, 0.58); }
.estate-owned-item[data-rarity="divine"] {
  border-color: rgba(247, 230, 154, 0.72);
  box-shadow: inset 0 0 18px rgba(247, 230, 154, 0.07);
}

/* Compact Estate Relics with prominent, clickable artwork */
.estate-owned-collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.estate-owned-item {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 120px;
  gap: 12px;
  padding: 8px;
}

.estate-owned-item-media {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(222, 184, 92, 0.34);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 36%, rgba(77, 159, 215, 0.11), transparent 55%),
    rgba(1, 7, 13, 0.78);
  padding: 0;
  cursor: zoom-in;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.estate-owned-item-media:hover,
.estate-owned-item-media:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 218, 121, 0.82);
  box-shadow: 0 0 16px rgba(226, 184, 85, 0.18);
  outline: none;
}

.estate-owned-item-media img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center center;
  padding: 0;
}

.estate-owned-item-media .estate-owned-item-fallback {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  font-size: 18px;
}

.estate-owned-item-media img[hidden],
.estate-owned-item-media .estate-owned-item-fallback[hidden],
.estate-artifact-image-frame img[hidden],
.estate-artifact-image-frame span[hidden],
.relic-showcase-media img[hidden],
.relic-showcase-media span[hidden] {
  display: none !important;
}

.estate-owned-item > span {
  align-self: center;
}

.estate-owned-item strong {
  font-size: 13px;
}

.estate-owned-item small {
  margin-top: 5px;
  color: rgba(222, 229, 236, 0.66);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.estate-owned-item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.estate-owned-item-stats em,
.estate-owned-item-stats b {
  border: 1px solid rgba(218, 177, 87, 0.24);
  border-radius: 4px;
  background: rgba(218, 177, 87, 0.055);
  padding: 3px 6px;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.estate-owned-item-stats em {
  color: rgba(220, 228, 237, 0.68);
}

.estate-owned-item-stats b {
  color: #f4d98d;
}

.estate-artifact-image-frame {
  appearance: none;
  padding: 0;
  cursor: zoom-in;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.estate-artifact-image-frame:not(:disabled):hover,
.estate-artifact-image-frame:not(:disabled):focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--artifact-accent) 82%, white);
  box-shadow: 0 0 20px color-mix(in srgb, var(--artifact-accent) 22%, transparent);
  outline: none;
}

.estate-artifact-image-frame:disabled {
  cursor: default;
}

.estate-upgrade-status.is-previewable,
.estate-extra-chip[role="button"] {
  cursor: zoom-in;
}

.estate-upgrade-status.is-previewable:hover,
.estate-upgrade-status.is-previewable:focus-visible,
.estate-extra-chip[role="button"]:hover,
.estate-extra-chip[role="button"]:focus-visible {
  border-color: rgba(255, 218, 121, 0.66);
  box-shadow: 0 0 14px rgba(226, 184, 85, 0.12);
  outline: none;
}

/* Shared Founder Relic and Valhalla Artifact showcase */
.relic-showcase-modal[hidden] {
  display: none;
}

.relic-showcase-modal {
  --relic-accent: #ddb75c;
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 22px;
}

.relic-showcase-modal[data-rarity="rare"] { --relic-accent: #55aef1; }
.relic-showcase-modal[data-rarity="epic"] { --relic-accent: #b878ee; }
.relic-showcase-modal[data-rarity="legendary"] { --relic-accent: #e1b34f; }
.relic-showcase-modal[data-rarity="mythic"] { --relic-accent: #ef6a91; }
.relic-showcase-modal[data-rarity="divine"] { --relic-accent: #f7e69a; }
.relic-showcase-modal[data-rarity="founder"] { --relic-accent: #efcc70; }

.relic-showcase-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 12, 0.9);
  backdrop-filter: blur(12px);
}

.relic-showcase-panel {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: 94vh;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--relic-accent) 62%, transparent);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--relic-accent) 12%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(8, 19, 31, 0.99), rgba(2, 8, 15, 0.995));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.7),
    0 0 34px color-mix(in srgb, var(--relic-accent) 12%, transparent);
  padding: 16px;
}

.relic-showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.relic-showcase-header h2 {
  margin: 2px 0 0;
  color: #fff0bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.08;
}

.relic-showcase-media {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: none;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--relic-accent) 34%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--relic-accent) 10%, transparent), transparent 56%),
    rgba(0, 5, 11, 0.8);
  padding: 12px;
}

.relic-showcase-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  object-position: center center;
  margin: auto;
}

.relic-showcase-media > span {
  display: grid;
  width: min(48vw, 260px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--relic-accent) 62%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--relic-accent) 18%, transparent), rgba(2, 8, 14, 0.92) 70%);
  color: var(--relic-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 34px color-mix(in srgb, var(--relic-accent) 16%, transparent);
}

.relic-showcase-copy {
  padding: 14px 2px 2px;
}

.relic-showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relic-showcase-meta span,
.relic-showcase-meta strong {
  border: 1px solid color-mix(in srgb, var(--relic-accent) 32%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--relic-accent) 7%, rgba(2, 8, 14, 0.9));
  padding: 6px 9px;
  color: #e8dfc4;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.relic-showcase-meta strong {
  color: var(--relic-accent);
}

.relic-showcase-copy p {
  margin: 12px 0 0;
  color: rgba(228, 233, 239, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

/* Odin Blessing artifact reveal */
.odin-blessing-reveal-modal[hidden] {
  display: none;
}

body.odin-blessing-reveal-open {
  overflow: hidden;
}

.odin-blessing-reveal-modal {
  --blessing-accent: #82b8d8;
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px;
}

.odin-blessing-reveal-modal[data-rarity="uncommon"] { --blessing-accent: #63c58c; }
.odin-blessing-reveal-modal[data-rarity="rare"] { --blessing-accent: #55aef1; }
.odin-blessing-reveal-modal[data-rarity="epic"] { --blessing-accent: #b878ee; }
.odin-blessing-reveal-modal[data-rarity="legendary"] { --blessing-accent: #e1b34f; }
.odin-blessing-reveal-modal[data-rarity="mythic"] { --blessing-accent: #ef6a91; }
.odin-blessing-reveal-modal[data-rarity="divine"] { --blessing-accent: #f7e69a; }

.odin-blessing-reveal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--blessing-accent) 15%, transparent), transparent 34%),
    rgba(0, 3, 9, 0.96);
  backdrop-filter: blur(14px);
}

.odin-blessing-reveal-panel {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  min-height: min(700px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--blessing-accent) 52%, #d8ad52);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 43%, color-mix(in srgb, var(--blessing-accent) 12%, transparent), transparent 38%),
    linear-gradient(180deg, #07111d, #02060c 72%);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.72),
    0 0 42px color-mix(in srgb, var(--blessing-accent) 18%, transparent),
    0 36px 120px rgba(0, 0, 0, 0.86);
}

.odin-blessing-rune-field,
.odin-blessing-reveal-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.odin-blessing-rune-field {
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(121, 214, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 22%, rgba(232, 196, 102, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 67% 72%, rgba(121, 214, 255, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 78%, rgba(232, 196, 102, 0.52) 0 1px, transparent 2px);
  background-size: 190px 170px, 230px 210px, 260px 190px, 210px 250px;
}

.odin-blessing-seal {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(390px, 60vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  filter:
    drop-shadow(0 20px 34px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 24px rgba(91, 184, 232, 0.28));
}

.odin-blessing-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.odin-blessing-seal span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #f6d984;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 70px;
  text-shadow: 0 0 22px rgba(244, 205, 108, 0.8);
}

.odin-blessing-opening-copy {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(620px, 86%);
  transform: translateX(-50%);
  text-align: center;
}

.odin-blessing-opening-copy p {
  margin: 0 0 8px;
  color: #edcb71;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.odin-blessing-opening-copy strong {
  color: rgba(236, 241, 247, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3vw, 31px);
}

.odin-blessing-reveal-burst {
  left: 50%;
  top: 43%;
  width: 80px;
  height: 80px;
  inset: auto;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: #fff5c9;
  box-shadow:
    0 0 40px 20px color-mix(in srgb, var(--blessing-accent) 75%, #fff3bd),
    0 0 120px 70px color-mix(in srgb, var(--blessing-accent) 35%, transparent);
  opacity: 0;
}

.odin-blessing-artifact-stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 28px;
  padding: 54px;
  opacity: 0;
  transform: scale(0.9);
}

.odin-blessing-artifact-media {
  display: grid;
  min-height: 520px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blessing-accent) 42%, transparent);
  border-radius: 10px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--blessing-accent) 17%, transparent), transparent 58%),
    rgba(1, 6, 12, 0.72);
  overflow: hidden;
}

.odin-blessing-artifact-media img {
  display: block;
  width: 100%;
  max-height: 580px;
  object-fit: contain;
}

.odin-blessing-artifact-media img[hidden],
.odin-blessing-artifact-media span[hidden] {
  display: none;
}

.odin-blessing-artifact-media span {
  display: grid;
  width: min(260px, 60%);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--blessing-accent);
  border-radius: 50%;
  color: var(--blessing-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  box-shadow: 0 0 34px color-mix(in srgb, var(--blessing-accent) 28%, transparent);
}

.odin-blessing-artifact-copy {
  display: grid;
  gap: 16px;
}

.odin-blessing-artifact-copy h2 {
  margin: 0;
  color: #fff0bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.odin-blessing-artifact-copy > p:last-of-type {
  margin: 0;
  color: rgba(230, 236, 243, 0.76);
  font-size: 14px;
  line-height: 1.65;
}

.odin-blessing-artifact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.odin-blessing-artifact-meta span,
.odin-blessing-artifact-meta strong {
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--blessing-accent) 52%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--blessing-accent) 8%, rgba(1, 7, 13, 0.9));
  color: var(--blessing-accent);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.odin-blessing-artifact-copy .gold-btn {
  justify-self: start;
  min-width: 220px;
  margin-top: 8px;
}

.odin-blessing-reveal-modal.is-revealing .odin-blessing-seal {
  animation: odinSealOpen 4.1s ease-in-out forwards;
}

.odin-blessing-reveal-modal.is-revealing .odin-blessing-opening-copy {
  animation: odinOpeningCopy 3.25s ease forwards;
}

.odin-blessing-reveal-modal.is-revealing .odin-blessing-rune-field {
  animation: odinRuneField 4.1s ease-in-out forwards;
}

.odin-blessing-reveal-modal.is-revealing .odin-blessing-reveal-burst {
  animation: odinRevealBurst 1.15s 2.65s ease-out forwards;
}

.odin-blessing-reveal-modal.is-revealing .odin-blessing-artifact-stage {
  animation: odinArtifactArrival 1.35s 3.05s cubic-bezier(.16, .84, .26, 1) forwards;
}

@keyframes odinSealOpen {
  0%, 45% { transform: translate(-50%, -50%) scale(0.88); opacity: 0; }
  14%, 58% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  72% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; filter: brightness(1.35) drop-shadow(0 0 38px var(--blessing-accent)); }
  100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
}

@keyframes odinOpeningCopy {
  0%, 18% { opacity: 0; transform: translate(-50%, 12px); }
  35%, 72% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

@keyframes odinRuneField {
  0% { opacity: 0.18; transform: scale(1); }
  70% { opacity: 0.82; transform: scale(1.06); }
  100% { opacity: 0.36; transform: scale(1.12); }
}

@keyframes odinRevealBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(10); }
}

@keyframes odinArtifactArrival {
  0% { opacity: 0; transform: scale(0.86) translateY(28px); filter: brightness(2.4) blur(6px); }
  62% { opacity: 1; transform: scale(1.025) translateY(0); filter: brightness(1.35) blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: none; }
}

@media (max-width: 760px) {
  .odin-blessing-reveal-modal {
    padding: 8px;
  }

  .odin-blessing-reveal-panel {
    min-height: calc(100vh - 16px);
  }

  .odin-blessing-artifact-stage {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding: 24px 18px;
    overflow-y: auto;
  }

  .odin-blessing-artifact-media {
    min-height: 300px;
  }

  .odin-blessing-artifact-media img {
    max-height: 42vh;
  }

  .odin-blessing-artifact-copy {
    text-align: center;
  }

  .odin-blessing-artifact-meta {
    justify-content: center;
  }

  .odin-blessing-artifact-copy .gold-btn {
    width: 100%;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .odin-blessing-reveal-modal.is-revealing .odin-blessing-seal,
  .odin-blessing-reveal-modal.is-revealing .odin-blessing-opening-copy,
  .odin-blessing-reveal-modal.is-revealing .odin-blessing-rune-field,
  .odin-blessing-reveal-modal.is-revealing .odin-blessing-reveal-burst {
    display: none;
    animation: none;
  }

  .odin-blessing-reveal-modal.is-revealing .odin-blessing-artifact-stage {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Wormguard collection rarity integration */
.worm-ownership-summary {
  margin: 0.65rem 0 0;
  color: #c9b98f;
  font-size: 0.78rem;
  line-height: 1.4;
}

.worm-nft-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.worm-rarity-summary {
  display: block;
  margin-top: 0.28rem;
  color: #c9b98f;
  font-size: 0.68rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.worm-card[data-rarity-class] {
  border-color: rgba(198, 160, 78, 0.48);
}

.worm-card[data-rarity-class="worm-king"],
.selected-worm-rarity[data-rarity-class="worm-king"] {
  box-shadow: inset 0 0 0 1px rgba(255, 218, 118, 0.38), 0 0 18px rgba(214, 160, 42, 0.18);
}

.worm-card[data-rarity-class="commander"],
.selected-worm-rarity[data-rarity-class="commander"] {
  border-color: rgba(210, 179, 108, 0.72);
}

.worm-card[data-rarity-class="elite"],
.selected-worm-rarity[data-rarity-class="elite"] {
  border-color: rgba(159, 137, 196, 0.64);
}

.selected-worm-rarity {
  margin-top: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(198, 160, 78, 0.28);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(19, 27, 40, 0.92), rgba(12, 19, 30, 0.78));
}

.selected-worm-rarity h4,
.selected-worm-rarity h5 {
  margin: 0 0 0.48rem;
  color: #d5b96f;
  letter-spacing: 0.12em;
}

.selected-worm-rarity > p {
  margin: 0;
  color: #f1dfad;
  font-weight: 700;
}

.selected-worm-rarity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.7rem 0;
}

.selected-worm-rarity-grid > div {
  min-width: 0;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.selected-worm-rarity-grid dt {
  color: #93886e;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.selected-worm-rarity-grid dd {
  margin: 0.16rem 0 0;
  color: #ede8dc;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.selected-worm-traits {
  display: grid;
  gap: 0.3rem;
  max-height: 11rem;
  margin: 0;
  padding: 0.55rem 0.55rem 0.55rem 1.55rem;
  overflow-y: auto;
  color: #d9d3c5;
  font-size: 0.76rem;
}

@media (max-width: 520px) {
  .selected-worm-rarity-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .estate-owned-collection-grid {
    grid-template-columns: 1fr;
  }

  .estate-owned-item {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 112px;
  }

  .estate-owned-item-media {
    width: 96px;
    height: 96px;
  }

  .relic-showcase-modal {
    padding: 10px;
  }

  .relic-showcase-panel {
    padding: 12px;
  }

  .relic-showcase-header {
    align-items: stretch;
  }

  .relic-showcase-header .property-close-btn {
    flex: 0 0 auto;
  }

  .relic-showcase-media {
    min-height: 220px;
  }
}

.estate-artifact-copy {
  min-width: 0;
}

.estate-artifact-copy > span {
  color: rgba(225, 215, 186, 0.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.estate-artifact-copy > strong {
  display: block;
  margin-top: 4px;
  color: #f5e6b5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.estate-artifact-copy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.estate-artifact-copy em,
.estate-artifact-copy b {
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--artifact-accent) 50%, transparent);
  border-radius: 4px;
  color: var(--artifact-accent);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estate-artifact-copy p {
  margin: 9px 0 0;
  color: rgba(225, 230, 237, 0.7);
  font-size: 11px;
  line-height: 1.5;
}

.estate-owned-collection {
  margin-bottom: 0;
}

.property-management-panel {
  width: min(1180px, 100%);
  max-height: min(92vh, 980px);
  scrollbar-width: thin;
  scrollbar-color: rgba(218, 177, 87, 0.72) rgba(5, 11, 18, 0.86);
}

.property-management-panel::-webkit-scrollbar {
  width: 10px;
}

.property-management-panel::-webkit-scrollbar-track {
  border-left: 1px solid rgba(218, 177, 87, 0.16);
  background: rgba(5, 11, 18, 0.88);
}

.property-management-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 11, 18, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 205, 111, 0.94), rgba(121, 88, 35, 0.96));
}

.ascension-command-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.ascension-command-bar .ascension-identity,
.ascension-command-bar .ascension-glory {
  min-height: 92px;
  grid-template-columns: 1fr;
}

.estate-ascension-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.4fr);
  gap: 18px;
  margin-bottom: 18px;
}

.ascension-marker-showcase,
.ascension-estate-showcase {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(218, 177, 87, 0.55);
  border-radius: 12px;
  background: rgba(5, 12, 20, 0.85);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.ascension-marker-showcase > header,
.ascension-estate-showcase > header {
  padding: 14px 16px 11px;
}

.ascension-marker-showcase h3,
.ascension-estate-showcase h3 {
  margin: 0;
  color: #f1d486;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.ascension-marker-showcase p,
.ascension-estate-showcase p {
  margin: 4px 0 0;
  color: rgba(220, 226, 232, 0.58);
  font-size: 9px;
}

.ascension-hero-media {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(224, 181, 87, 0.11), transparent 46%),
    rgba(2, 8, 14, 0.74);
}

.ascension-marker-showcase img,
.ascension-estate-showcase img {
  display: block;
  width: 100%;
  height: 100%;
}

.ascension-marker-showcase img[hidden],
.ascension-estate-showcase img[hidden] {
  display: none !important;
}

.ascension-marker-showcase img {
  object-fit: contain;
  padding: 28px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
}

.ascension-estate-showcase img {
  object-fit: cover;
}

.ascension-media-fallback {
  color: rgba(222, 228, 234, 0.54);
  font-size: 10px;
  font-weight: 800;
}

.ascension-marker-showcase > strong,
.ascension-estate-showcase > strong {
  display: block;
  padding: 11px 16px 13px;
  color: #f4dda0;
  font-size: 12px;
}

.ascension-progression-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.ascension-visual-progression {
  border: 1px solid rgba(184, 133, 50, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 0%, rgba(218, 169, 72, 0.08), transparent 38%),
    rgba(4, 13, 22, 0.8);
  padding: 12px;
}

.ascension-progression-header {
  margin-bottom: 10px;
}

.ascension-progression-header .eyebrow {
  margin: 0 0 3px;
}

.ascension-progression-header h3 {
  margin: 0;
  color: #f1d486;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.ascension-progression-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.ascension-progression-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(218, 177, 87, 0.3);
  border-radius: 7px;
  background: rgba(2, 9, 15, 0.82);
}

.ascension-progression-card.is-next {
  border-color: rgba(231, 194, 105, 0.62);
  box-shadow: 0 0 16px rgba(223, 189, 103, 0.08);
}

.ascension-progression-card > span,
.ascension-progression-card > strong,
.ascension-progression-card > small {
  display: block;
  padding-right: 12px;
  padding-left: 12px;
}

.ascension-progression-card > span {
  padding-top: 10px;
  padding-bottom: 8px;
  color: rgba(220, 226, 232, 0.5);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.ascension-progression-card > strong {
  padding-top: 9px;
  padding-bottom: 3px;
  color: #f2d78f;
  font-size: 12px;
  font-weight: 800;
}

.ascension-progression-card > small {
  padding-bottom: 10px;
  color: rgba(220, 226, 232, 0.5);
  font-size: 8px;
}

.ascension-progression-media {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(224, 181, 87, 0.1), transparent 50%),
    rgba(1, 6, 11, 0.72);
}

.ascension-progression-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.ascension-progression-media img[hidden] {
  display: none !important;
}

.is-marker-progression .ascension-progression-media img {
  object-fit: contain;
  padding: 18px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.52));
}

.is-showcase-progression .ascension-progression-media img {
  object-fit: cover;
}

.ascension-progression-media .ascension-media-fallback {
  padding: 14px;
  color: rgba(222, 228, 234, 0.52);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.ascension-stage-card {
  min-width: 0;
  border: 1px solid rgba(184, 133, 50, 0.48);
  border-radius: 6px;
  background:
    radial-gradient(circle at 18% 0%, rgba(218, 169, 72, 0.1), transparent 38%),
    rgba(4, 13, 22, 0.86);
  padding: 10px;
}

.ascension-stage-card.is-next {
  border-color: rgba(231, 194, 105, 0.72);
  box-shadow:
    inset 0 0 20px rgba(223, 189, 103, 0.05),
    0 0 18px rgba(223, 189, 103, 0.1);
}

.ascension-stage-card > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ascension-stage-card > header span {
  color: rgba(220, 226, 232, 0.52);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ascension-stage-card > header strong {
  color: #f1d486;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.ascension-stage-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(130px, 0.55fr);
  gap: 8px;
}

.ascension-stage-card .ascension-visual-card {
  min-height: 182px;
  padding: 8px;
}

.ascension-stage-card .ascension-visual-card[hidden] {
  display: none;
}

.ascension-stage-media-grid:has(.ascension-visual-card[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.ascension-stage-card .ascension-visual-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 3px;
}

.ascension-stage-card .ascension-visual-card.is-marker img {
  width: 100%;
  object-fit: contain;
}

.ascension-stage-arrow {
  display: grid;
  place-items: center;
  color: #e6bf65;
  font-size: 25px;
  text-shadow: 0 0 12px rgba(226, 181, 76, 0.32);
}

.ascension-impact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(190, 140, 54, 0.42);
  border-radius: 5px;
  background: rgba(3, 11, 18, 0.82);
}

.ascension-impact-strip > div {
  min-width: 0;
  padding: 9px 12px;
  text-align: center;
}

.ascension-impact-strip > div + div {
  border-left: 1px solid rgba(218, 174, 78, 0.18);
}

.ascension-impact-strip span,
.ascension-impact-strip strong {
  display: block;
}

.ascension-impact-strip span {
  color: rgba(213, 220, 227, 0.5);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ascension-impact-strip strong {
  margin-top: 4px;
  color: #f3d78d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.estate-progression-timeline li.is-complete > span {
  border-color: rgba(225, 181, 82, 0.7);
  background: rgba(112, 76, 27, 0.42);
  box-shadow: 0 0 10px rgba(223, 189, 103, 0.12);
}

.estate-progression-timeline li.is-future {
  filter: saturate(0.55);
  opacity: 0.58;
}

.property-management-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.property-house-section,
.property-prestige-section {
  grid-column: 1 / -1;
}

.property-unlock-section {
  align-self: start;
}

.future-upgrade-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.future-upgrade-card {
  min-height: 220px;
  border-radius: 7px;
  border-color: rgba(190, 145, 62, 0.28);
  background:
    radial-gradient(circle at 50% 28%, rgba(213, 163, 65, 0.1), transparent 44%),
    linear-gradient(155deg, rgba(13, 27, 39, 0.97), rgba(3, 10, 18, 0.98));
}

.future-upgrade-card .upgrade-card-media {
  height: 128px;
  border-radius: 6px;
}

.future-upgrade-card > button:last-child {
  min-height: 32px;
  border: 1px solid rgba(212, 167, 73, 0.34);
  border-radius: 4px;
  background: rgba(193, 143, 51, 0.08);
  color: #ddc17b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.upgrade-house-btn {
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 218, 122, 0.2), transparent 58%),
    linear-gradient(180deg, #8b6125, #3f2810);
  color: #fff1bd;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .estate-ascension-hero-grid {
    grid-template-columns: 1fr;
  }

  .estate-active-upgrade-grid,
  .estate-prestige-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ascension-progression-comparison {
    grid-template-columns: 1fr;
  }

  .ascension-stage-arrow {
    transform: rotate(90deg);
  }

  .property-management-grid {
    grid-template-columns: 1fr;
  }

  .property-house-section,
  .property-prestige-section {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .ascension-command-bar,
  .ascension-stage-media-grid,
  .ascension-impact-strip,
  .future-upgrade-list {
    grid-template-columns: 1fr;
  }

  .ascension-impact-strip > div + div {
    border-left: 0;
    border-top: 1px solid rgba(218, 174, 78, 0.18);
  }

  .estate-active-upgrade-grid,
  .estate-prestige-breakdown {
    grid-template-columns: 1fr;
  }

  .estate-valhalla-artifact {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .estate-artifact-image-frame {
    width: 76px;
    height: 76px;
  }
}

/* Regional fog unlock system */
.region-fog-layer {
  position: absolute;
  inset: 0;
  z-index: 42;
  display: none;
  pointer-events: none;
}

.blueprint-view .region-fog-layer {
  display: block;
}

.region-fog-overlay {
  position: absolute;
  isolation: isolate;
  overflow: hidden;
  border-radius: 6px;
  background-color: #050a12;
  background:
    radial-gradient(circle at 50% 45%, #234557 0%, #142938 34%, #07111c 62%, #02060b 100%),
    linear-gradient(180deg, #08131e, #02050a);
  box-shadow:
    inset 0 0 150px #010408,
    inset 0 0 0 1px rgba(142, 206, 226, 0.22),
    0 0 32px rgba(74, 164, 190, 0.16);
  opacity: 1;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
}

.region-fog-overlay::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 1;
  background-image: url("images/effects/wurmhalla-mist-overlay.png");
  background-position: center;
  background-size: cover;
  opacity: 0.68;
  pointer-events: none;
  animation: mistDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.region-fog-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 22%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 18% 20%, rgba(75, 156, 195, 0.18), transparent 27%),
    radial-gradient(circle at 82% 78%, rgba(67, 135, 177, 0.16), transparent 31%);
  pointer-events: none;
}

.sealed-rune-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    radial-gradient(circle at 22% 34%, rgba(108, 210, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 62%, rgba(108, 210, 255, 0.54) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 18%, rgba(212, 175, 82, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 76%, rgba(108, 210, 255, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 31%, rgba(212, 175, 82, 0.34) 0 1px, transparent 2px);
  opacity: 0.45;
  pointer-events: none;
  animation: runePulse 3.8s ease-in-out infinite alternate;
}

.sealed-world-worm-shadow {
  position: absolute;
  inset: 11% 9%;
  z-index: 2;
  opacity: 0.2;
  filter: blur(11px);
  background:
    radial-gradient(ellipse 24% 15% at 17% 53%, transparent 55%, rgba(73, 150, 170, 0.42) 60%, transparent 72%),
    radial-gradient(ellipse 27% 17% at 39% 43%, transparent 55%, rgba(73, 150, 170, 0.34) 60%, transparent 72%),
    radial-gradient(ellipse 27% 17% at 62% 56%, transparent 55%, rgba(73, 150, 170, 0.3) 60%, transparent 72%),
    radial-gradient(ellipse 22% 14% at 82% 44%, transparent 53%, rgba(73, 150, 170, 0.26) 59%, transparent 72%);
  pointer-events: none;
  transform: rotate(-5deg);
}

.region-mist-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: grid;
  min-width: 270px;
  justify-items: center;
  gap: 5px;
  border: 1px solid rgba(232, 190, 92, 0.84);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(95, 182, 204, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(11, 25, 36, 0.96), rgba(3, 9, 16, 0.96));
  color: #f2d27a;
  padding: 13px 24px 12px;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 158, 0.12),
    inset 0 0 24px rgba(54, 126, 153, 0.12),
    0 0 26px rgba(79, 185, 210, 0.2),
    0 12px 30px rgba(0, 0, 0, 0.44);
}

.region-mist-rune {
  color: #89d7e8;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(89, 214, 236, 0.72);
  animation: sealedRuneGlow 2.8s ease-in-out infinite alternate;
}

.region-mist-seal strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 0 #3b2509, 0 0 12px rgba(232, 190, 92, 0.18);
  text-transform: uppercase;
}

.region-mist-seal small {
  color: rgba(222, 233, 239, 0.72);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

@keyframes mistDrift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1.03);
    filter: blur(0);
  }
  100% {
    transform: translate3d(1.5%, 1%, 0) scale(1.08);
    filter: blur(1.5px);
  }
}

@keyframes runePulse {
  from { opacity: 0.25; }
  to { opacity: 0.58; }
}

@keyframes sealedRuneGlow {
  from {
    opacity: 0.72;
    text-shadow: 0 0 8px rgba(89, 214, 236, 0.42);
  }
  to {
    opacity: 1;
    text-shadow: 0 0 16px rgba(89, 214, 236, 0.86);
  }
}

.blueprint-zone.is-locked {
  filter: grayscale(0.55) brightness(0.58) saturate(0.72);
  opacity: 0.74;
}

body:not(.odin-world-sight) .blueprint-zone.is-locked::before,
body:not(.odin-world-sight) .blueprint-zone.is-locked::after,
body:not(.odin-world-sight) .blueprint-zone.is-locked > header,
body:not(.odin-world-sight) .blueprint-zone.is-locked > .blueprint-cluster {
  visibility: hidden !important;
}

body:not(.odin-world-sight) .master-plot-overlay .plot.is-zone-locked {
  visibility: hidden !important;
  pointer-events: none;
}

.blueprint-zone.unlocked-recently {
  animation: regionRuneReveal 2100ms ease-out;
}

.region-fog-overlay.unlocking {
  animation: mistReveal 1600ms ease forwards;
}

@keyframes mistReveal {
  0% {
    opacity: 1;
    filter: blur(0);
  }
  60% {
    opacity: 0.35;
    filter: blur(8px);
  }
  100% {
    opacity: 0;
    filter: blur(18px);
    visibility: hidden;
  }
}

@keyframes regionRuneReveal {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 3px rgba(8, 7, 5, 0.45),
      inset 0 0 0 4px rgba(232, 190, 92, 0.16),
      0 14px 28px rgba(0, 0, 0, 0.46);
  }
  45% {
    box-shadow:
      inset 0 0 0 3px rgba(8, 7, 5, 0.45),
      inset 0 0 0 4px rgba(255, 226, 141, 0.42),
      0 0 22px rgba(255, 210, 95, 0.35),
      0 0 44px rgba(255, 170, 55, 0.18);
  }
}

.world-nav-item {
  position: relative;
}

.world-nav-item.is-locked .world-nav-status {
  z-index: 5;
}

.valhalla-gate-marker {
  z-index: 50;
}

.valhalla-gate-marker.is-mist-sealed {
  border-color: rgba(125, 181, 200, 0.58);
  background:
    url("images/effects/wurmhalla-mist-overlay.png") center / cover no-repeat,
    linear-gradient(145deg, rgba(15, 31, 44, 0.94), rgba(6, 13, 23, 0.96));
  color: #d9e7ec;
  filter: grayscale(0.28) saturate(0.72);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.36),
    0 0 26px rgba(81, 184, 207, 0.22);
}

.valhalla-gate-marker.is-mist-sealed::before {
  border-color: rgba(125, 181, 200, 0.5);
  background: rgba(19, 42, 56, 0.82);
}

.valhalla-gate-marker.is-mist-open {
  box-shadow:
    0 0 22px rgba(255, 210, 95, 0.42),
    0 0 44px rgba(255, 170, 55, 0.24);
}

.odin-world-sight .region-fog-overlay:not(.unlocking) {
  opacity: 0.58;
}

.region-fog-overlay.is-odin-preview .region-mist-seal {
  border-color: rgba(255, 210, 95, 0.88);
  background: rgba(32, 22, 8, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 237, 172, 0.14),
    0 0 28px rgba(255, 190, 62, 0.28),
    0 12px 30px rgba(0, 0, 0, 0.44);
}

.blueprint-zone.is-odin-preview::after {
  visibility: visible !important;
  border-color: rgba(255, 210, 95, 0.74);
  box-shadow:
    inset 0 0 32px rgba(255, 190, 62, 0.1),
    0 0 24px rgba(255, 190, 62, 0.24);
}

/* Separate Valhalla world event above Kingsreach */
.world-valhalla-gate {
  position: absolute;
  left: 1552.5px;
  top: 110px;
  z-index: 38;
  width: 1173px;
  height: 700px;
  overflow: hidden;
  border: 1px solid rgba(230, 191, 96, 0.7);
  border-radius: 8px;
  background: #02070d;
  color: #fff0bd;
  cursor: pointer;
  padding: 0;
  box-shadow:
    inset 0 0 0 2px rgba(4, 9, 15, 0.82),
    0 18px 40px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(223, 177, 71, 0.13);
  text-align: center;
}

.world-valhalla-gate > img,
.world-valhalla-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-valhalla-gate > img {
  z-index: 0;
  object-fit: cover;
  object-position: center;
}

.world-valhalla-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 7, 13, 0.08), transparent 38%, rgba(2, 7, 13, 0.92) 88%),
    radial-gradient(circle at 50% 45%, transparent 28%, rgba(2, 7, 13, 0.2) 74%);
}

.world-valhalla-content {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: grid;
  width: min(780px, calc(100% - 56px));
  justify-items: center;
  gap: 8px;
  transform: translateX(-50%);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.88);
}

.world-valhalla-content small {
  color: #e2b85c;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.world-valhalla-content > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.world-valhalla-content > b {
  color: #ffe39b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.world-valhalla-content > em {
  color: rgba(239, 232, 211, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: normal;
}

.world-valhalla-progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(237, 197, 103, 0.68);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.86);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.74);
}

.world-valhalla-progress > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f5220, #d9a844 46%, #ffe49a);
  box-shadow: 0 0 18px rgba(255, 204, 92, 0.48);
  transition: width 500ms ease;
}

.world-valhalla-gate:hover {
  border-color: #ffe19a;
  box-shadow:
    inset 0 0 0 2px rgba(4, 9, 15, 0.82),
    0 20px 44px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(232, 190, 92, 0.24);
}

.world-valhalla-gate[data-gate-state="awakening"] .world-valhalla-progress > i,
.world-valhalla-gate[data-gate-state="glowing"] .world-valhalla-progress > i {
  background: linear-gradient(90deg, #7f5220, #e0b14f, #8ad5e8);
}

.world-valhalla-gate[data-gate-state="active"] .world-valhalla-progress > i,
.world-valhalla-gate[data-gate-state="runes_active"] .world-valhalla-progress > i,
.world-valhalla-gate[data-gate-state="opening"] .world-valhalla-progress > i {
  background: linear-gradient(90deg, #d69b35, #82d8ed, #f3dd83);
}

.world-valhalla-gate[data-gate-state="unlocked"] .world-valhalla-progress > i,
.world-valhalla-gate[data-gate-state="open"] .world-valhalla-progress > i {
  background: linear-gradient(90deg, #ffe69a, #86ddf1, #f5a8ff, #fff1b8);
}

/* Kingsreach is always presented as Zone 10; its claim lock remains logical. */
body:not(.odin-world-sight) .blueprint-zone-kingsreach.is-world-visible::before,
body:not(.odin-world-sight) .blueprint-zone-kingsreach.is-world-visible::after,
body:not(.odin-world-sight) .blueprint-zone-kingsreach.is-world-visible > header,
body:not(.odin-world-sight) .blueprint-zone-kingsreach.is-world-visible > .blueprint-cluster {
  visibility: visible !important;
}

.blueprint-zone-kingsreach.is-world-visible {
  filter: none;
  opacity: 1;
}

/* Valhalla endgame hero */
.valhalla-gate-panel {
  position: relative;
  width: min(1120px, 100%);
  padding: 0;
  overflow: hidden;
  border-color: rgba(223, 189, 103, 0.72);
  background: #02070d;
}

.valhalla-gate-panel::before {
  content: none;
}

.valhalla-gate-panel .valhalla-portal-stage {
  height: min(720px, 82vh);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #02070d;
  box-shadow: none;
}

.valhalla-gate-panel .valhalla-portal-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.valhalla-gate-panel .valhalla-portal-aura {
  inset: 0;
  z-index: 3;
  width: auto;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 12, 0.16), transparent 28%, rgba(2, 6, 12, 0.9) 84%),
    radial-gradient(circle at 50% 46%, transparent 25%, rgba(2, 6, 12, 0.22) 74%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.46);
}

.valhalla-hero-content {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 4;
  display: grid;
  width: min(760px, calc(100% - 48px));
  justify-items: center;
  gap: 10px;
  color: #fff1bd;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.82);
  transform: translateX(-50%);
}

.valhalla-hero-content .eyebrow {
  margin: 0;
  color: #e5bd62;
  letter-spacing: 0.18em;
}

.valhalla-hero-content h2 {
  margin: 0;
  color: #fff0bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 66px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.valhalla-hero-content > strong {
  color: #ffe29a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.5vw, 30px);
}

.valhalla-gate-panel .valhalla-progress-track {
  width: 100%;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(237, 197, 103, 0.68);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.84);
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.72),
    0 0 18px rgba(235, 190, 82, 0.14);
}

.valhalla-gate-panel .valhalla-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f5220, #d9a844 46%, #ffe49a);
  box-shadow: 0 0 20px rgba(255, 204, 92, 0.5);
  transition: width 500ms ease;
}

.valhalla-hero-oath {
  margin: 2px 0 0;
  color: rgba(239, 231, 207, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 2vw, 22px);
  line-height: 1.35;
}

.valhalla-hero-content > small {
  color: rgba(140, 211, 239, 0.9);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.valhalla-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
}

.valhalla-gate-panel[data-gate-state="awakening"] .valhalla-progress-track > span {
  background: linear-gradient(90deg, #7f5220, #e0b14f, #8ad5e8);
}

.valhalla-gate-panel[data-gate-state="active"] .valhalla-progress-track > span,
.valhalla-gate-panel[data-gate-state="opening"] .valhalla-progress-track > span {
  background: linear-gradient(90deg, #d69b35, #82d8ed, #f3dd83);
  box-shadow: 0 0 26px rgba(108, 210, 255, 0.48);
}

.valhalla-gate-panel[data-gate-state="unlocked"] .valhalla-progress-track > span {
  background: linear-gradient(90deg, #ffe69a, #86ddf1, #f5a8ff, #fff1b8);
  box-shadow: 0 0 32px rgba(255, 222, 132, 0.7);
}

@media (max-width: 640px) {
  .valhalla-gate-panel .valhalla-portal-stage {
    height: min(680px, calc(100vh - 16px));
  }

  .valhalla-hero-content {
    bottom: 24px;
    width: calc(100% - 28px);
  }

  .valhalla-gate-panel .valhalla-progress-track {
    height: 14px;
  }
}

.odin-world-sight .master-plot-overlay .plot.is-zone-locked {
  filter: grayscale(0.3) brightness(0.9);
  opacity: 0.78;
}

@media (prefers-reduced-motion: reduce) {
  .region-fog-overlay::before,
  .sealed-rune-particles,
  .region-mist-rune,
  .region-fog-overlay.unlocking,
  .blueprint-zone.unlocked-recently {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}

/* Valhalla End Event */
.wallet-founder-rewards[hidden],
.valhalla-chest-panel[hidden],
.odin-valhalla-controls[hidden],
.founder-hall-modal[hidden] {
  display: none !important;
}
.wallet-founder-rewards {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(220, 176, 77, 0.42);
  border-radius: 6px;
  background: rgba(6, 13, 21, 0.72);
}

.wallet-founder-rewards span,
.wallet-founder-rewards small {
  color: rgba(226, 214, 181, 0.7);
  font-size: 10px;
}

.wallet-founder-rewards strong {
  color: #f3d782;
  font-size: 12px;
}

.valhalla-gate-panel {
  max-height: 92vh;
  overflow-y: auto;
}

.valhalla-event-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 26px 26px;
  border-top: 1px solid rgba(224, 184, 88, 0.35);
  background:
    linear-gradient(180deg, rgba(10, 19, 29, 0.98), rgba(3, 8, 14, 0.99)),
    radial-gradient(circle at 50% 0, rgba(224, 181, 77, 0.12), transparent 55%);
}

.valhalla-event-copy h3 {
  margin: 3px 0 6px;
  color: #f5dd9a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.valhalla-event-copy > p:last-child {
  margin: 0;
  color: rgba(236, 232, 219, 0.76);
}

.valhalla-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.valhalla-chest-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(210px, 0.65fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(224, 184, 88, 0.42);
  border-radius: 8px;
  background: rgba(3, 9, 16, 0.76);
  box-shadow: inset 0 0 24px rgba(219, 164, 59, 0.06);
}

.valhalla-chest-panel > div {
  display: grid;
  gap: 3px;
}

.valhalla-chest-panel span,
.valhalla-chest-panel label,
.valhalla-chest-panel small {
  color: rgba(226, 215, 186, 0.72);
  font-size: 11px;
}

.valhalla-chest-panel strong {
  color: #f6dd91;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.valhalla-chest-panel label {
  display: grid;
  gap: 5px;
}

.valhalla-chest-panel select,
.founder-hall-toolbar select,
.odin-valhalla-controls select {
  min-height: 38px;
  border: 1px solid rgba(218, 177, 87, 0.48);
  border-radius: 5px;
  background: #07111c;
  color: #f0e3be;
  padding: 7px 9px;
}

.founder-hall-panel {
  width: min(1280px, calc(100vw - 36px));
  max-height: 90vh;
  overflow: hidden;
}

.founder-hall-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 16px;
}

.founder-hall-toolbar label {
  display: grid;
  gap: 5px;
  color: rgba(231, 218, 182, 0.72);
  font-size: 11px;
}

.founder-hall-toolbar strong {
  color: #e8c76f;
}

.founder-hall-table-wrap {
  max-height: calc(90vh - 150px);
  overflow: auto;
  border-top: 1px solid rgba(218, 177, 87, 0.28);
}

.founder-hall-table {
  width: 100%;
  border-collapse: collapse;
  color: #e9e5d9;
  font-size: 12px;
}

.founder-hall-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #07111b;
  color: #e4bd62;
  text-align: left;
}

.founder-hall-table th,
.founder-hall-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(208, 177, 105, 0.13);
}

.founder-hall-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.founder-hall-table tbody tr:hover {
  background: rgba(213, 174, 78, 0.09);
}

.founder-hall-artifact {
  min-width: 190px;
}

.founder-hall-artifact strong,
.founder-hall-artifact small {
  display: block;
}

.founder-hall-artifact strong {
  color: #f1dfac;
  font-size: 11px;
}

.founder-hall-artifact small {
  margin-top: 4px;
  color: rgba(226, 232, 239, 0.66);
  font-size: 9px;
}

.artifact-rarity-badge {
  --rarity-color: #a8b1bd;
  display: inline-flex;
  margin-top: 5px;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 66%, transparent);
  border-radius: 3px;
  color: var(--rarity-color);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artifact-rarity-badge[data-rarity="uncommon"] { --rarity-color: #63c58c; }
.artifact-rarity-badge[data-rarity="rare"] { --rarity-color: #55aef1; }
.artifact-rarity-badge[data-rarity="epic"] { --rarity-color: #b878ee; }
.artifact-rarity-badge[data-rarity="legendary"] { --rarity-color: #e1b34f; }
.artifact-rarity-badge[data-rarity="mythic"] { --rarity-color: #ef6a91; }
.artifact-rarity-badge[data-rarity="divine"] { --rarity-color: #f7e69a; }

.odin-valhalla-controls {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(219, 174, 71, 0.42);
  border-radius: 12px;
  background:
    radial-gradient(circle at 84% -20%, rgba(221, 174, 65, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(10, 18, 28, 0.98), rgba(4, 9, 16, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 162, 0.035),
    0 18px 44px rgba(0, 0, 0, 0.26);
}

.odin-valhalla-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.odin-valhalla-header > div > span {
  color: rgba(230, 213, 170, 0.65);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.odin-valhalla-header h3 {
  margin: 3px 0 0;
  color: #f2d681;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.odin-valhalla-header p {
  max-width: 680px;
  margin: 6px 0 0;
  color: rgba(225, 229, 235, 0.64);
  font-size: 12px;
  line-height: 1.5;
}

.odin-api-state {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(192, 97, 82, 0.4);
  border-radius: 999px;
  background: rgba(62, 20, 18, 0.35);
}

.odin-api-state.is-connected {
  border-color: rgba(104, 204, 158, 0.5);
  background: rgba(20, 66, 51, 0.34);
  color: #9ee5bf;
}

.odin-valhalla-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.odin-valhalla-card {
  display: grid;
  min-width: 0;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(218, 177, 87, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(115deg, rgba(9, 18, 29, 0.94), rgba(4, 10, 17, 0.82)),
    radial-gradient(circle at 0 0, rgba(218, 177, 87, 0.08), transparent 42%);
  box-shadow:
    inset 0 0 26px rgba(218, 177, 87, 0.035),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.odin-valhalla-card > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(218, 177, 87, 0.18);
}

.odin-valhalla-card > header > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(232, 193, 96, 0.58);
  border-radius: 50%;
  color: #f2d47c;
  font-family: Georgia, "Times New Roman", serif;
}

.odin-valhalla-card > header > div {
  min-width: 0;
}

.odin-valhalla-card h4 {
  margin: 0;
  color: #ead18b;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.odin-valhalla-card header p {
  margin: 4px 0 0;
  color: rgba(224, 230, 240, 0.58);
  font-size: 11px;
  line-height: 1.45;
}

.odin-valhalla-card label {
  display: grid;
  gap: 5px;
  color: rgba(231, 218, 182, 0.74);
  font-size: 11px;
}

.odin-valhalla-card textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  border: 1px solid rgba(218, 177, 87, 0.38);
  border-radius: 5px;
  background: #07111c;
  color: #f0e3be;
  padding: 9px;
}

.odin-valhalla-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.odin-valhalla-stats > div {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 7px;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid rgba(218, 177, 87, 0.16);
  border-radius: 7px;
  background: rgba(2, 8, 14, 0.58);
}

.odin-valhalla-stats dt {
  color: rgba(226, 215, 187, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.odin-valhalla-stats dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
  color: #f0d98f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.odin-valhalla-control-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(420px, 1fr);
  align-items: end;
  gap: 14px;
}

.odin-valhalla-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.odin-valhalla-card-actions.is-reward-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.odin-valhalla-card-actions button,
.odin-valhalla-card.is-recovery > button {
  width: 100%;
  min-height: 44px;
  padding-inline: 16px;
  white-space: normal;
}

.odin-valhalla-card.is-recovery {
  border-color: rgba(194, 102, 74, 0.42);
  background:
    linear-gradient(115deg, rgba(28, 13, 15, 0.78), rgba(5, 10, 17, 0.92)),
    radial-gradient(circle at 0 0, rgba(196, 85, 55, 0.09), transparent 42%);
}

.odin-demo-reset-card {
  border-color: rgba(224, 91, 70, 0.58);
  background:
    linear-gradient(115deg, rgba(42, 10, 14, 0.9), rgba(5, 9, 16, 0.96)),
    radial-gradient(circle at 0 0, rgba(224, 91, 70, 0.14), transparent 44%);
  box-shadow:
    inset 0 0 30px rgba(224, 91, 70, 0.045),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

.odin-demo-reset-warning {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid rgba(232, 102, 78, 0.5);
  border-radius: 7px;
  background: rgba(93, 24, 24, 0.34);
  color: #f4c2b5;
  font-size: 11px;
  line-height: 1.55;
}

.odin-demo-reset-warning strong {
  color: #ffd1c4;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.odin-demo-confirmation input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(232, 102, 78, 0.55);
  border-radius: 5px;
  background: #090d14;
  color: #ffd1c4;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.odin-danger-btn {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 124, 96, 0.72);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(133, 39, 31, 0.96), rgba(69, 16, 18, 0.98));
  color: #ffe0d7;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255, 211, 198, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.3);
}

.odin-danger-btn:hover:not(:disabled) {
  border-color: #ff9a80;
  box-shadow:
    inset 0 0 0 1px rgba(255, 211, 198, 0.14),
    0 0 18px rgba(224, 91, 70, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.34);
}

.odin-danger-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.odin-recovery-warning {
  padding: 11px 13px;
  border: 1px solid rgba(218, 113, 81, 0.38);
  border-radius: 7px;
  background: rgba(87, 27, 22, 0.24);
  color: #efb7a5;
  font-size: 11px;
  line-height: 1.5;
}

.odin-valhalla-reason {
  width: 100%;
}

.odin-valhalla-card button.is-loading {
  cursor: wait;
  opacity: 0.72;
}

.odin-valhalla-feedback {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(218, 177, 87, 0.24);
  border-radius: 5px;
  background: rgba(2, 7, 12, 0.72);
  color: rgba(231, 224, 204, 0.72);
  font-size: 11px;
  line-height: 1.45;
}

.odin-valhalla-feedback[data-state="success"] {
  border-color: rgba(93, 202, 151, 0.4);
}

.odin-valhalla-feedback[data-state="error"] {
  border-color: rgba(226, 92, 77, 0.55);
  color: #f3aaa0;
}

.odin-valhalla-feedback[data-state="loading"] {
  border-color: rgba(98, 194, 226, 0.48);
  color: #a9ddea;
}

.valhalla-awakening-overlay[hidden] {
  display: none !important;
}

.valhalla-awakening-overlay {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(37, 111, 132, 0.42), transparent 27%),
    radial-gradient(circle at 50% 54%, rgba(224, 173, 55, 0.22), transparent 42%),
    rgba(1, 5, 10, 0.94);
  pointer-events: none;
  transition: opacity 700ms ease;
}

.valhalla-awakening-overlay.is-active {
  opacity: 1;
}

.valhalla-awakening-overlay.is-ending {
  opacity: 0;
}

.valhalla-awakening-runes {
  position: absolute;
  inset: 12%;
  display: grid;
  place-items: center;
  color: rgba(113, 225, 240, 0.26);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 12vw, 190px);
  letter-spacing: 0.18em;
  text-shadow:
    0 0 20px rgba(89, 220, 239, 0.52),
    0 0 70px rgba(221, 174, 62, 0.35);
  animation: valhallaRuneBurn 2.4s ease-in-out infinite alternate;
}

.valhalla-awakening-rays {
  position: absolute;
  inset: -25%;
  background: repeating-conic-gradient(
    from 12deg at 50% 52%,
    transparent 0 7deg,
    rgba(255, 213, 105, 0.09) 8deg 9deg,
    transparent 10deg 20deg
  );
  animation: valhallaRayTurn 16s linear infinite;
}

.valhalla-awakening-copy {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 720px;
  justify-items: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
  text-shadow: 0 4px 24px #000;
}

.valhalla-awakening-copy small {
  color: #8bd8e9;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.valhalla-awakening-copy strong {
  color: #ffe7a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 0.95;
  text-transform: uppercase;
}

.valhalla-awakening-copy p {
  color: rgba(242, 237, 218, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2.2vw, 27px);
  line-height: 1.45;
}

.valhalla-awakening-copy button {
  pointer-events: auto;
}

@keyframes valhallaRuneBurn {
  from {
    opacity: 0.35;
    filter: blur(2px);
    transform: scale(0.97);
  }
  to {
    opacity: 0.82;
    filter: blur(0);
    transform: scale(1.035);
  }
}

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

body.valhalla-open .world-valhalla-gate {
  border-color: rgba(255, 220, 125, 0.95);
  box-shadow:
    inset 0 0 0 2px rgba(4, 9, 15, 0.68),
    0 0 36px rgba(99, 208, 235, 0.22),
    0 0 58px rgba(226, 178, 65, 0.22);
}

body.valhalla-open .map-section {
  border-color: rgba(229, 191, 91, 0.52);
  background:
    radial-gradient(circle at 72% 10%, rgba(70, 190, 218, 0.08), transparent 34%),
    rgba(8, 24, 35, 0.56);
  box-shadow:
    inset 0 0 34px rgba(67, 189, 215, 0.055),
    0 0 26px rgba(224, 178, 66, 0.08);
}

body.valhalla-open .world-navigation {
  border-color: rgba(228, 190, 92, 0.38);
  box-shadow:
    inset 0 0 18px rgba(213, 168, 58, 0.08),
    0 0 20px rgba(70, 192, 220, 0.08);
}

body.valhalla-open .world-map::after {
  border-color: rgba(232, 194, 96, 0.55);
  box-shadow:
    inset 0 0 24px rgba(78, 197, 222, 0.08),
    0 0 28px rgba(224, 177, 65, 0.1);
}

body.valhalla-open .world-valhalla-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 18%, rgba(94, 218, 236, 0.09) 42%, rgba(233, 181, 75, 0.08) 60%, transparent 82%);
}

body.valhalla-awakening .world-valhalla-gate {
  animation: valhallaGateAwakening 1.6s ease-in-out infinite alternate;
}

body.valhalla-awakening .world-valhalla-shade {
  background:
    radial-gradient(circle at 50% 45%, rgba(91, 222, 239, 0.08), transparent 31%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.04), transparent 35%, rgba(2, 7, 13, 0.66) 90%);
}

body.first-age-complete .map-viewport {
  box-shadow:
    inset 0 0 0 1px rgba(240, 205, 112, 0.2),
    inset 0 0 55px rgba(72, 188, 215, 0.08);
}

body.first-age-complete .world-valhalla-content::after {
  content: "FIRST AGE COMPLETE";
  color: #ffe29a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

@keyframes valhallaGateAwakening {
  from {
    filter: brightness(0.92) saturate(0.92);
    box-shadow: 0 0 20px rgba(72, 194, 220, 0.15);
  }
  to {
    filter: brightness(1.18) saturate(1.14);
    box-shadow:
      0 0 44px rgba(80, 211, 235, 0.36),
      0 0 70px rgba(231, 179, 62, 0.28);
  }
}

.valhalla-gate-panel[data-gate-state="open"] .valhalla-progress-track > span,
.valhalla-gate-panel[data-gate-state="completed"] .valhalla-progress-track > span {
  background: linear-gradient(90deg, #ffe69a, #86ddf1, #f5a8ff, #fff1b8);
  box-shadow: 0 0 22px rgba(126, 220, 242, 0.5);
}

@media (max-width: 1050px) {
  .odin-valhalla-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .odin-valhalla-control-row {
    grid-template-columns: minmax(200px, 0.45fr) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .valhalla-event-dashboard,
  .valhalla-chest-panel {
    grid-template-columns: 1fr;
  }

  .valhalla-event-actions {
    justify-content: stretch;
  }

  .valhalla-event-actions > button {
    flex: 1 1 auto;
  }

  .founder-hall-panel {
    width: calc(100vw - 16px);
  }

  .odin-valhalla-action-grid {
    grid-template-columns: 1fr;
  }

  .odin-valhalla-card-grid {
    grid-template-columns: 1fr;
  }

  .odin-valhalla-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .odin-valhalla-stats,
  .odin-valhalla-control-row,
  .odin-valhalla-card-actions,
  .odin-valhalla-card-actions.is-reward-actions {
    grid-template-columns: 1fr;
  }

  .odin-valhalla-controls,
  .odin-valhalla-card {
    padding: 15px;
  }

  .odin-valhalla-stats > div {
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .valhalla-awakening-runes,
  .valhalla-awakening-rays,
  body.valhalla-awakening .world-valhalla-gate {
    animation: none !important;
  }
}
