:root {
  color-scheme: dark;
  --bg: #111719;
  --panel: #192023;
  --line: #344044;
  --ink: #eff4ed;
  --muted: #afbbb7;
  --accent: #c2f29a;
  --dim: #25352e;
  font:
    15px/1.55 Inter,
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.btn:hover {
  border-color: #83918b;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #142518;
  font-weight: 700;
}
a {
  color: var(--accent);
}
.shell {
  display: grid;
  grid-template-columns: 225px 1fr;
  min-height: 100vh;
}
aside {
  padding: 29px 18px;
  border-right: 1px solid var(--line);
  background: #101516;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: #15241d;
  background: var(--accent);
  clip-path: polygon(0 5%, 33% 5%, 52% 50%, 71% 5%, 100% 5%, 57% 96%, 44% 96%);
}
.label,
small {
  font-size: 12px;
  color: var(--muted);
}
.label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.nav .active {
  color: var(--accent);
  background: var(--dim);
}
aside .foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px clamp(18px, 4vw, 64px) 80px;
  min-width: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 4vw, 55px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 14px 0 25px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 16px;
}
small,
.muted,
.sub {
  color: var(--muted);
}
.row,
.head,
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.head {
  justify-content: space-between;
  margin-bottom: 18px;
}
.actions {
  margin-top: 20px;
}
.panel,
details,
.tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 20px;
  margin: 14px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.grid .tile {
  margin: 0;
}
.value {
  font-size: 34px;
  letter-spacing: -0.05em;
}
.tag {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--muted);
}
.on {
  color: var(--accent);
  border-color: #526b50;
}
.chart {
  height: 132px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  margin: 18px 0 0;
}
.bar {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  font: 12px monospace;
}
.bar i {
  display: block;
  width: 58%;
  min-height: 2px;
  background: var(--accent);
  border-radius: 3px;
}
.item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.item:last-child {
  border: 0;
}
.meta {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
  margin-top: 16px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #101719;
  border-radius: 7px;
  padding: 9px 11px;
}
textarea {
  resize: vertical;
  min-height: 76px;
}
input[type="checkbox"] {
  appearance: none;
  width: 36px;
  height: 21px;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  padding: 0;
}
input[type="checkbox"]:before {
  content: "";
  position: absolute;
  background: #aebcb6;
  width: 13px;
  height: 13px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
}
input:checked[type="checkbox"] {
  background: var(--accent);
}
input:checked[type="checkbox"]:before {
  left: 18px;
  background: #253a29;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.switchrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.save {
  position: sticky;
  bottom: 10px;
  padding: 12px;
  background: #192023f5;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.landing {
  max-width: 1100px;
  min-height: 90vh;
  display: grid;
  align-content: center;
  gap: 24px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 7vw, 88px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 100% 10%, #304435, transparent 64%), var(--panel);
}
.hero h1 {
  font-size: clamp(46px, 7vw, 84px);
  max-width: 700px;
}
.hero p {
  max-width: 490px;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero .brand {
  margin-bottom: 54px;
}
.icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 11px;
}
.skip {
  position: fixed;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  z-index: 9;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 24px;
  right: 20px;
  max-width: min(440px, 90vw);
  background: #edf4e8;
  color: #213126;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 30px #0006;
  z-index: 5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 750px) {
  .shell {
    display: block;
  }
  aside {
    height: auto;
    position: static;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 8px;
  }
  aside .brand {
    font-size: 20px;
  }
  .nav {
    display: flex;
    overflow: auto;
    white-space: nowrap;
  }
  .nav button {
    padding: 7px 9px;
  }
  .foot {
    display: flex !important;
    align-items: center;
  }
  .foot button {
    font-size: 12px;
    padding: 4px 8px;
  }
  .shell main {
    padding-top: 22px;
  }
  .value {
    font-size: 26px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.guild-section {
  margin: 30px 0 42px;
}
.guild-section h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.guild-section h2 small {
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  border-radius: 1em;
  padding: 1px 9px;
}
.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(255px, 100%), 1fr));
  gap: 12px;
}
.guild-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 13px;
  color: var(--ink);
  text-decoration: none;
}
.guild-card:hover,
.guild-card:focus-visible {
  border-color: var(--accent);
  background: #202c29;
}
.guild-icon {
  display: inline-grid;
  position: relative;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 12px;
  background: #324438;
  color: var(--accent);
  font-weight: 700;
}
.guild-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guild-card-text {
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.guild-card-text span {
  font-size: 13px;
  color: var(--accent);
}
