/* ARCWORLD v3 — overlay shell. Map canvas drawing is untouched. */

body {
  font-family: Outfit, sans-serif !important;
  background: #0B0A08 !important;
}

/* Stage: map is the whole screen */
.main {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  z-index: 1;
}
.map-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
}
#mapCanvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.map-toolbar {
  position: absolute !important;
  left: 50%;
  top: 86px;
  transform: translateX(-50%);
  z-index: 25;
  width: min(640px, calc(100% - 48px));
  height: 48px !important;
  border-radius: 999px;
  background: rgba(18,16,12,.82) !important;
  border: 1px solid rgba(224,164,90,.22) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  padding: 0 10px !important;
}
.search-input {
  border-radius: 999px !important;
  background: rgba(0,0,0,.35) !important;
  border-color: rgba(243,230,208,.12) !important;
  color: #F3E6D0 !important;
}

/* Floating islands instead of a top bar */
header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
  z-index: 40;
  pointer-events: none;
}
header > * { pointer-events: auto; }

.aw-island {
  position: absolute;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(18,16,12,.88);
  border: 1px solid rgba(224,164,90,.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.aw-island-brand { left: 16px; }
.aw-island-session { right: 16px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Syne, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #F3E6D0;
  letter-spacing: 0;
}
.logo-mark {
  width: 20px; height: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.logo-mark i { display: block; border-radius: 2px; background: #E0A45A; }
.logo-mark i:nth-child(2) { background: #C45C26; }
.logo-mark i:nth-child(3) { background: #F3E6D0; }
.logo-mark i:nth-child(4) { background: #7A8F5A; }
#logo-season {
  color: #E0A45A;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(224,164,90,.35);
}

#game-hud {
  position: absolute !important;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 420px));
  min-height: 0 !important;
  padding: 8px 12px !important;
  background: rgba(18,16,12,.88) !important;
  border: 1px solid rgba(224,164,90,.22) !important;
  border-radius: 18px;
  backdrop-filter: blur(18px);
}
#game-hud::before { display: none !important; }
.gh-title { font-family: Syne, sans-serif !important; color: #E0A45A !important; text-shadow: none !important; letter-spacing: 0 !important; font-size: 14px !important; }
.gh-chip { background: rgba(0,0,0,.28); border-color: rgba(243,230,208,.1); border-radius: 12px; }
.gh-xp, .gh-xp-fill { border-radius: 99px; }
.gh-xp-fill { background: linear-gradient(90deg, #C45C26, #E0A45A) !important; }
.gh-btn {
  border-radius: 999px !important;
  font-family: Outfit, sans-serif !important;
  text-transform: none;
  letter-spacing: 0 !important;
}
.gh-btn.warn { background: #E0A45A !important; color: #1A1208 !important; border: none; }
.btn-connect {
  background: #E0A45A !important;
  color: #1A1208 !important;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  font-family: Outfit, sans-serif;
  font-weight: 700;
}
.network-badge { color: #E0A45A; border-color: rgba(224,164,90,.3); border-radius: 999px; }

/* One sheet at a time — cards over the map */
.sidebar,
.right-panel {
  position: absolute !important;
  top: 148px !important;
  bottom: 108px !important;
  width: 340px !important;
  z-index: 30;
  display: none !important;
  flex-direction: column;
  border-radius: 24px !important;
  background: rgba(22,19,14,.94) !important;
  border: 1px solid rgba(224,164,90,.22) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  overflow: hidden;
  transform: none !important;
}
.sidebar { left: 16px; border-right: none !important; }
.right-panel { right: 16px; left: auto; border-left: none !important; }
body.sheet-you .sidebar { display: flex !important; }
body.sheet-world .right-panel { display: flex !important; }

.aw-sheet-x {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(243,230,208,.08);
  color: #F3E6D0;
  font-size: 20px;
  cursor: pointer;
}
.aw-sheet-title {
  font-family: Syne, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #F3E6D0;
  padding: 16px 48px 8px 18px;
}
.sidebar > .sidebar-tabs { display: none !important; }
.aw-col-label {
  font-family: Syne, sans-serif;
  color: #E0A45A;
  padding: 16px 48px 4px 18px;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
}

.right-panel > .sidebar-tabs {
  padding: 8px 10px;
  gap: 4px;
  border: none;
}
.sidebar-tab {
  border: none !important;
  border-radius: 999px !important;
  font-family: Outfit, sans-serif !important;
  font-size: 12px !important;
  font-weight: 650;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 8px 10px !important;
  color: #C9B99A;
}
.sidebar-tab.active {
  background: #E0A45A !important;
  color: #1A1208 !important;
}

.filter-toggle {
  margin: 0 14px 10px;
  border-radius: 12px;
  border-color: rgba(224,164,90,.2);
  color: #C9B99A;
  letter-spacing: 0;
  text-transform: none;
}
.parcel-empty-text, .myland-empty-text {
  font-family: Outfit, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  color: #C9B99A;
}
.btn-primary {
  background: #E0A45A !important;
  color: #1A1208 !important;
  border: none;
  border-radius: 12px;
  text-transform: none;
}
.btn { border-radius: 12px; text-transform: none; letter-spacing: 0; font-family: Outfit, sans-serif; }

/* Bottom command dock */
.aw-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(18,16,12,.92);
  border: 1px solid rgba(224,164,90,.28);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 50px rgba(0,0,0,.55);
}
.aw-dock button {
  min-width: 72px;
  border: 0;
  background: transparent;
  color: #C9B99A;
  font-family: Outfit, sans-serif;
  font-size: 11px;
  font-weight: 650;
  padding: 8px 10px 10px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.aw-dock button i { font-style: normal; font-size: 16px; color: #E0A45A; }
.aw-dock button.on,
.aw-dock button.world.on {
  background: #E0A45A;
  color: #1A1208;
}
.aw-dock button.on i { color: #1A1208; }

.mobile-bar, .statusbar { display: none !important; }

.modal, .wallet-modal, .go-box, .gs-card {
  background: #1C1914;
  border: 1px solid rgba(224,164,90,.25);
  border-radius: 22px;
}
.modal-title, .go-title { font-family: Syne, sans-serif; color: #F3E6D0; }

#loading-screen {
  background:
    radial-gradient(600px 360px at 50% 30%, rgba(224,164,90,.16), transparent 60%),
    #0B0A08;
  z-index: 2000;
}
.loading-logo {
  font-family: Syne, sans-serif;
  color: #F3E6D0;
  letter-spacing: -1px;
  text-shadow: none;
  animation: none;
}
.loading-bar { background: #E0A45A; box-shadow: none; }

#tooltip {
  background: rgba(18,16,12,.95);
  border: 1px solid rgba(224,164,90,.25);
  border-radius: 12px;
  color: #F3E6D0;
}

@media (max-width: 860px) {
  #game-hud { display: none !important; }
  .map-toolbar { top: 72px; width: calc(100% - 24px); }
  .sidebar, .right-panel {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    top: 128px !important;
    bottom: 96px !important;
  }
  .aw-dock { width: calc(100% - 16px); justify-content: space-between; }
  .aw-dock button { min-width: 0; flex: 1; }
  .aw-island-session .header-stats { display: none; }
}
