/* RELIC FRONTIER 公開サイト
   装飾を増やしすぎず、情報を探しやすい構成にしています。 */

:root {
  --bg: #101112;
  --bg-alt: #161718;
  --panel: #1b1c1e;
  --line: #303236;
  --text: #f1f1ef;
  --sub: #a9abad;
  --accent: #c45f43;
  --accent-hover: #d36d51;
  --ok: #72ad78;
  --warn: #d1a35b;
  --danger: #c96b63;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.is-hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #151617;
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: #c8c9ca;
  text-decoration: none;
  font-size: 13px;
}

.main-nav a:hover {
  color: #fff;
}

.intro {
  padding: 64px 0 58px;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.lead {
  max-width: 680px;
  color: #d3d4d5;
  font-size: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #45474b;
  border-radius: 6px;
  background: #222326;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #292b2e;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-hover);
}

.copy-message {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--sub);
  font-size: 13px;
}

.server-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.summary-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn);
}

.status-dot.ok {
  background: var(--ok);
}

.status-dot.bad {
  background: var(--danger);
}

.server-summary dl {
  margin: 0;
}

.server-summary dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #292b2e;
}

.server-summary dl > div:last-child {
  border-bottom: 0;
}

.server-summary dt {
  color: var(--sub);
}

.server-summary dd {
  margin: 0;
  text-align: right;
}

.section {
  padding: 54px 0;
}

.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid #202225;
  border-bottom: 1px solid #202225;
}

.section-title {
  margin-bottom: 22px;
}

.section-title p,
.muted {
  color: var(--sub);
}

.row-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.info-box {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.info-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--sub);
  font-size: 12px;
}

.info-box strong {
  display: block;
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 6px;
}

.tab {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #1c1d1f;
  color: #c5c6c7;
  cursor: pointer;
}

.tab.is-active,
.tab:hover {
  border-color: #55585d;
  background: #292b2e;
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #2a2c2f;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #202124;
  color: #b9bbbd;
  font-size: 12px;
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #202225;
}

.rank-number {
  width: 64px;
  color: var(--sub);
}

.rank-value {
  font-weight: 700;
}

.empty {
  padding: 28px 14px;
  color: var(--sub);
  text-align: center;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.plain-panel,
.rules-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.season-ranking {
  margin-top: 18px;
}

.season-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #2b2d30;
}

.season-row:first-child {
  border-top: 0;
}

.guide-list {
  margin: 18px 0 0;
  padding-left: 22px;
}

.guide-list li {
  margin-bottom: 16px;
  padding-left: 4px;
}

.guide-list strong,
.guide-list span {
  display: block;
}

.guide-list span {
  margin-top: 3px;
  color: #c3c5c7;
  font-size: 14px;
}

code {
  padding: 1px 5px;
  border: 1px solid #3b3d41;
  border-radius: 4px;
  background: #111214;
  color: #e3c1b7;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .92em;
}

.rules-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rules-box {
  white-space: pre-wrap;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: #121314;
  color: var(--sub);
  font-size: 12px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 820px) {
  .header-row {
    min-height: 58px;
  }

  .main-nav {
    display: none;
  }

  .intro {
    padding: 44px 0;
  }

  .intro-grid,
  .two-column,
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 28px;
  }

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

  .row-title {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 24px, 1080px);
  }

  h1 {
    font-size: 38px;
  }

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

  .actions,
  .footer-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

