.atlas-selected {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-block: 1px solid #ab8b5e;
  background: #efddb6;
  line-height: 1.12;
}
.atlas-selected img { object-fit: contain; flex: none; }
.atlas-selected span { min-width: 0; overflow-wrap: anywhere; }
.atlas-selected small { display: block; color: var(--ink-muted); font-size: 11px; }
.atlas-marker[aria-pressed=true]:not(:hover, :focus-visible) .atlas-label { display: none; }
.map-world .atlas-label-above .atlas-label { top: auto; bottom: calc(100% + 4px); }
.map-world .atlas-marker.harbor-marker { border-radius: 45% 45% 4px 4px; background: #d4e8df; }
.map-world .atlas-marker.camp-marker { border-radius: 50%; }
.map-world .atlas-marker.city-marker { border-radius: 2px; }
.map-world .atlas-marker.event-marker { border-radius: 7px 7px 3px 3px; }
.map-world .atlas-marker.home { border-width: 2px; background: #326554; }
.map-world .atlas-marker.foreign-marker { border-style: dashed; }
.map-world .atlas-marker.atlas-compact, .map-world .atlas-dot { border-radius: 50%; }

.report-folders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  padding: 2px;
  gap: 2px;
  border: 1px solid #89643b;
  background: #6c5435;
}
.report-folders button, .report-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 38px;
  padding: 4px 7px;
  border: 1px solid #ac864d;
  border-radius: 1px;
  background: linear-gradient(#f3e3ba, #e5cb95);
  color: #52361b;
  line-height: 1.15;
  font-weight: 650;
}
.report-folders button {
  font: 700 clamp(14px, 2vw, 19px)/1.1 var(--serif);
  border-color: #95754b;
  background: linear-gradient(#6d5b3a, #514128);
  color: #f5dda9;
}
.report-folders button:is(:hover, [aria-pressed=true]), .report-control:hover:not(:disabled) {
  color: #432b15;
  background: linear-gradient(#ffebba, #ddba78);
}
.report-folders button:focus-visible, .report-control:focus-visible { outline: 2px solid #294b36; outline-offset: -3px; }
.report-folders .icon, .report-control .icon, .report-placeholder .icon { width: 18px; height: 18px; flex: none; }
.report-ledge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 35px;
  gap: 5px;
  padding-block: 4px;
  color: #63482b;
  font-size: 13px;
}
.report-control { min-height: 34px; font-size: 13px; }
.report-control:disabled { opacity: .57; cursor: default; }
.report-list button.report-unread { background: #f2ddad; }
.report-list button.report-unread > .icon { border-color: #995643; background: #f0cda7; color: #7b3023; }
.report-outcome { text-align: right; }
.report-outcome small { display: block; color: #7a3825; font-size: 11px; }
.report-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
}
.report-actions .report-control { min-height: 44px; padding-inline: 4px; font-size: 12px; }
.report-actions .report-control:only-child { grid-column: 1 / -1; }
.report-actions .icon { width: 15px; height: 15px; }
.report-placeholder { display: flex; align-items: center; gap: 6px; color: #614628; }
@media (max-width: 395px) {
  .report-folders button { gap: 3px; padding-inline: 2px; }
  .report-folders .icon { width: 14px; height: 14px; }
}

.report-seal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #a28d57;
  color: #354b37;
  background: linear-gradient(115deg, #d6e3c4, #f0e7c7);
}
.report-seal.report-seal-loss { color: #732e20; background: linear-gradient(115deg, #edd1b5, #f4e1c6); }
.report-seal > .icon {
  width: 33px;
  height: 33px;
  padding: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.report-seal .eyebrow { color: inherit; }
.report-seal h2 { margin: 3px 0 0; overflow-wrap: anywhere; }
.report-balance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 12px;
}
.report-balance > div {
  padding: 5px 2px;
  border: 1px solid #b2986c;
  background: #f6e9cc;
  text-align: center;
}
.report-balance dt { font-size: 11px; color: var(--ink-muted); }
.report-balance dt .icon { display: block; width: 18px; height: 18px; margin: 0 auto 1px; color: #80552c; }
.report-balance dd { margin: 1px 0 0; font: 700 20px/1 var(--serif); overflow-wrap: anywhere; }
.report-seal-loss ~ .report-balance > div:nth-child(2) { color: #8b3c2b; border-color: #b57e64; }

.heroes-view .hero-card > img { object-fit: contain; }
.hero-loadout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  list-style: none;
  margin-block: 0 12px;
  padding: 0;
}
.hero-loadout li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px;
  border: 1px solid #9e8153;
  background: linear-gradient(145deg, #e5cf9f, #f5e8cb);
}
.hero-loadout li > :is(img, .icon) {
  width: clamp(30px, 5vw, 46px);
  height: clamp(30px, 5vw, 46px);
  flex: none;
  object-fit: contain;
}
.hero-loadout li > .icon { padding: 5px; background: #ead9b1; color: #7b582e; }
.hero-loadout li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.hero-loadout strong, .hero-loadout small { display: block; line-height: 1.15; }
.hero-loadout small { margin-top: 3px; color: var(--ink-muted); }
.hero-picker img { object-fit: contain; background: #e6d3ae; }
.inventory-item img { object-fit: contain; }
@media (max-width: 550px) {
  .hero-loadout li { flex-direction: column; text-align: center; }
}
@media (max-width: 395px) {
  .hero-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .hero-picker button { font-size: 11px; padding: 3px 1px; }
}

.guild-view .guild-banner { gap: 11px; align-items: center; }
.guild-crest {
  width: clamp(56px, 10vw, 96px);
  height: clamp(56px, 10vw, 96px);
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px #101c19cc);
}
.guild-banner h2 { font-size: clamp(23px, 3.8vw, 38px); }
.guild-banner > div { min-width: 0; }
.guild-banner .guild-stats { gap: 2px 9px; }

.goals-section > h3, .guild-view .event-list > h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 5px 8px;
  border-block-end: 1px solid #a98654;
  background: linear-gradient(90deg, #e0c594, #f2e3c318);
  font: 700 20px/1.12 var(--serif);
}
.goals-section > h3 .icon, .guild-view .event-list > h3 .icon { width: 17px; height: 17px; color: #754b22; }
.goal-claims > h3 img { flex: none; object-fit: contain; }
.goal-claims > h3 { background: linear-gradient(90deg, #d8be7f, #f2e3c318); }
.goal-card header img { object-fit: contain; }

.alpha-game .login-scene picture { display: block; width: 100%; height: 100%; }
.alpha-game #detail[data-view=login] { align-self: center; }
.login-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; border-block-end: 1px solid #ad8f62; }
.login-title > .icon { width: 29px; height: 29px; color: #825525; }
@media (max-width: 540px) {
  .alpha-game #visual[data-view=login] > .login-scene { aspect-ratio: 1.7; }
  .login-scene img { object-position: center 57%; }
}

.alpha-game .board select {
  appearance: none;
  padding-inline-end: 25px;
  background-image: linear-gradient(45deg, transparent 49%, #795129 50%), linear-gradient(135deg, #795129 49%, transparent 50%);
  background-position: right 12px center, right 7px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.alpha-game :is(.map-list, .completed-goals, .guild-side, [data-shared-reports]) > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  padding: 4px 5px;
  color: #533a21;
  font-family: var(--serif);
  font-weight: 700;
}
.alpha-game :is(.map-list, .completed-goals, .guild-side, [data-shared-reports]) > summary::-webkit-details-marker { display: none; }
.alpha-game :is(.map-list, .completed-goals, .guild-side, [data-shared-reports]) > summary::before { content: '▸'; color: #805628; }
.alpha-game :is(.map-list, .completed-goals, .guild-side, [data-shared-reports])[open] > summary::before { content: '▾'; }

#game-confirmation {
  width: min(420px, calc(100vw - 28px));
  max-height: 80dvh;
  padding: 16px 19px;
  color: var(--ink);
  border: 2px solid #9e7244;
  background: var(--surface);
  box-shadow: 0 9px 25px #111b168c;
}
#game-confirmation::backdrop { background: #15201db7; }
#game-confirmation h2 { margin: 0; font: 700 27px/1.1 var(--serif); }
#confirmation-copy { overflow-wrap: anywhere; }
.confirmation-buttons { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.confirmation-buttons button { min-height: 38px; padding: 6px 10px; border: 1px solid #91683f; background: #f3e4c4; }
.confirmation-buttons button[value=confirm] { background: linear-gradient(#f4d598, #d5a365); font-weight: 700; }
.confirmation-buttons button:focus-visible { outline-color: #6b4326; }
@media (max-width: 700px) {
  .alpha-game[data-drawer] .message { z-index: 9; bottom: 48dvh; }
}
