/* Dragon's Exodus website — Copyright (c) 2026 Dragon's Exodus. MIT License; see LICENSE. */
:root {
  --de-green: #70883c;
  --de-green-lt: #809536;
  --bg: #000;
  --bg-panel: #0c0e09;
  --bg-hover: #48472b;
  --fg: #cccccc;
  --fg-dim: #8a8a7a;
  --line: #3a3a26;
  --maxw: 1080px;
  --head: "Tempus Sans ITC", "Trajan Pro", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Verdana, Geneva, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
img { border: 0; max-width: 100%; height: auto; }
a { color: var(--de-green-lt); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.hero { overflow-x: auto; }
.ascii {
  display: inline-block;
  text-align: left;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre;
  line-height: 1.05;
  margin: 0;
}
.hero { text-align: center; margin: 0 0 20px; }
.ascii-hero { font-size: clamp(7px, 1.35vw, 13px); }
@media (max-width: 700px) {
  .ascii-hero { display: none; }
}

.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 12px 24px;
}

body.atlas-page { --maxw: 92rem; }

.content {
  min-width: 0;
  color: var(--fg);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 12px;
  text-align: center;
  padding: 16px 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-footer a { color: var(--de-green-lt); }

#content, .column, .column1 { width: auto; float: none; padding: 0; margin: 0; }
.style1 { color: var(--fg); font-size: 14px; }
.style1a { color: var(--fg); font-size: 12px; }
.style2 { color: var(--de-green-lt); font-weight: bold; }
.style3 {
  font-family: var(--head);
  font-size: 20px;
  color: var(--de-green);
  margin: 18px 0 6px;
}
.style4 {
  font-family: var(--head);
  font-size: 28px;
  font-weight: bold;
  color: var(--de-green);
  margin: 0 0 12px;
}
.content h2 { font-size: 18px; margin: 16px 0 4px; }
.content p { margin: 0 0 12px; }
.content ul { margin: 0 0 12px; padding-left: 22px; }
.content li { margin: 2px 0; }
.content cite { font-style: italic; }
.line { border-top: 1px dashed #555; margin: 14px 0; height: 0; }

.content a { color: var(--de-green-lt); }
.content a:hover { color: #fff; }

.content table { width: 100%; border-collapse: collapse; }
.content table td { padding: 3px 6px; }
table.area { border: 1px dashed var(--de-green); }
table.area th, table.area td { border: 1px dashed var(--de-green-lt); padding: 4px 6px; }

.cta {
  display: inline-block;
  background: var(--de-green);
  color: #08120a !important;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 5px;
  font-size: 16px;
}
.cta:hover { background: var(--de-green-lt); }

.feed-box { margin-top: 8px; }
.feed-count { color: var(--fg-dim); font-size: 12px; margin: 0 0 8px; }
.who-page { width: min(100%, 44rem); margin-inline: auto; }
.who-page > .style4 { text-align: center; }
.who-feed { width: 100%; overflow: visible; }
.who-roster-head,
.who-player {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 2.5rem minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
}
.who-roster-head {
  color: var(--de-green-lt);
  border-bottom: 1px dashed var(--de-green);
  padding: 4px 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.who-roster-head > :nth-child(2),
.who-player-level { text-align: center; }
.who-player {
  min-height: 44px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #1c2417;
  padding: 6px 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.who-player:hover { background: #141a12; }
.who-player:focus-visible {
  outline: 2px solid var(--de-green-lt);
  outline-offset: 2px;
  background: #141a12;
}
.who-player > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.who-player-name { color: #fff; font-weight: bold; }
.who-player-level,
.who-player-class,
.who-player-race { color: #fff; }
body.who-dialog-open { overflow: hidden; }
.who-dialog {
  width: min(42rem, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-panel);
  color: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .72);
}
.who-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.who-dialog-panel { max-height: inherit; overflow-y: auto; }
.who-dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 4px 4px 4px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}
.who-dialog-header h2 {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-family: var(--head);
  font-size: 22px;
  overflow-wrap: anywhere;
}
.who-dialog-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--fg);
  font: 28px/1 system-ui, sans-serif;
  cursor: pointer;
}
.who-dialog-close:hover { color: #fff; background: #141a12; }
.who-dialog-close:focus-visible { outline: 2px solid var(--de-green-lt); outline-offset: -2px; }
.who-dialog-body { padding: 16px; }
.who-profile-unavailable { margin: 0; color: var(--fg); }
.who-profile-facts { margin: 0; }
.who-profile-fact {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #1c2417;
}
.who-profile-fact dt { color: var(--de-green-lt); font-weight: bold; }
.who-profile-fact dd { min-width: 0; margin: 0; color: #fff; overflow-wrap: anywhere; }
.who-profile-clan-rank { color: #fff; }
.who-profile-section-title {
  margin: 18px 0 8px;
  color: var(--de-green);
  font-family: var(--head);
  font-size: 18px;
}
.who-profile-classes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 6px;
}
.who-profile-class {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #242b1d;
  background: #090b07;
}
.who-class-name { min-width: 0; color: #fff; overflow-wrap: anywhere; }
.who-class-level { color: #fff; font-variant-numeric: tabular-nums; }
table.feed { width: 100%; border-collapse: collapse; }
table.feed th {
  text-align: left;
  color: var(--de-green-lt);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px dashed var(--de-green);
  padding: 4px 8px;
}
table.feed td { padding: 4px 8px; border-bottom: 1px solid #1c2417; }
table.feed tr:hover td { background: #141a12; }
.feed-lvl { color: var(--fg-dim); white-space: nowrap; }
.feed-tier { font-family: var(--head); color: var(--de-green); margin: 14px 0 4px; font-size: 18px; }
.feed-tierlist { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.feed-imm { font-weight: bold; }

@media (max-width: 820px) {
  .style4 { font-size: 24px; }
}

@media (max-width: 480px) {
  .who-roster-head,
  .who-player {
    grid-template-columns: minmax(0, 1.3fr) 2.25rem minmax(0, 1.15fr) minmax(0, .9fr);
    gap: 4px;
    padding-inline: 4px;
  }
  .who-roster-head { font-size: 10px; }
  .who-player { font-size: 12px; }
  .who-dialog-header { padding-left: 12px; }
  .who-dialog-header h2 { font-size: 19px; }
  .who-dialog-body { padding: 12px; }
  .who-profile-fact { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 8px; }
}
