:root {
  --brand-red: #ff2b2b;
  --brand-red-deep: #b31212;
  --brand-link: #ff8e8e;
  --brand-pale: #ffd9d9;
  --text: #cdcdcd;
  --text-dim: #8d8d8d;
  --panel: rgba(24 19 19 / 88%);
  --panel-solid: #171212;
  --row: #0a0808;
  --row-hover: #2a1414;
  --line: #4d1b1b;
  --join: #d41818;
  --discord-green: #3ba55d;
  --paws: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 128 128'%3E%3Cg fill='%23ff2b2b' fill-opacity='.09'%3E%3Cg transform='rotate(-20 32 34)'%3E%3Cellipse cx='32' cy='42' rx='11' ry='9'/%3E%3Cellipse cx='17' cy='30' rx='4.5' ry='6'/%3E%3Cellipse cx='26' cy='22' rx='4.5' ry='6.5'/%3E%3Cellipse cx='38' cy='22' rx='4.5' ry='6.5'/%3E%3Cellipse cx='47' cy='30' rx='4.5' ry='6'/%3E%3C/g%3E%3Cg transform='rotate(25 94 96)'%3E%3Cellipse cx='94' cy='104' rx='11' ry='9'/%3E%3Cellipse cx='79' cy='92' rx='4.5' ry='6'/%3E%3Cellipse cx='88' cy='84' rx='4.5' ry='6.5'/%3E%3Cellipse cx='100' cy='84' rx='4.5' ry='6.5'/%3E%3Cellipse cx='109' cy='92' rx='4.5' ry='6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background-color: #0d0b0b;
  background-image: var(--paws);
  color: var(--text);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p { margin: 0 0 1rem; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html:not(.js) .js-only { display: none; }
::selection { background-color: var(--brand-red-deep); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 3px; }

.page {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 15px 30px;
  flex: 1 0 auto;
}

.page a:not(.joinbtn) {
  color: var(--brand-link);
  transition: 0.2s;
}

.page a:not(.joinbtn):hover { color: #fff; }

.tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(10 8 8 / 94%);
  border-bottom: 1px solid var(--row-hover);
}

.tabs-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tabs-brand {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1.5px;
  text-decoration: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
}

html:not(.js) .tabs-brand, .tabs.scrolled .tabs-brand { visibility: visible; opacity: 1; }

.tabs-brand img {
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background-color: #000;
}

.tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.tabs li {
  flex: none;
  border-radius: 5px;
  background-color: #241d1d;
  transition: 0.25s ease-in-out;
}

.tabs li a {
  display: block;
  padding: 0 12px;
  font-family: "Titillium Web", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 38px;
  color: #ccc;
  text-decoration: none;
  white-space: nowrap;
}

.tabs li:hover {
  transform: scale(1.05) rotate(2deg);
  background-color: var(--row-hover);
}

.tabs li:nth-child(even):hover { transform: scale(1.05) rotate(-2deg); }
.tabs li:hover a { color: var(--brand-red); }

.tabs-inner::after {
  content: "";
  flex: 1 1 0;
}

.dicon { flex: none; fill: currentColor; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.panel {
  margin-top: 22px;
  padding: 1.4em;
  border-radius: 6px;
  background: var(--panel);
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

h2.sec {
  position: relative;
  margin-bottom: 28px;
  font-size: 1.6rem;
  color: var(--brand-red);
}

h2.sec::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: min(80%, 640px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 43, 43, 0.7) 0%, rgba(255, 43, 43, 0) 100%);
}

.muted { color: var(--text-dim); }
.sidenote { margin: 12px 0 0; font-size: 14px; color: var(--text-dim); }

.hero {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.hero-banner {
  position: relative;
  height: clamp(150px, 24vw, 290px);
  background-color: #000;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 18, 18, 0) 65%, rgba(23, 18, 18, 0.92) 100%);
}

.hero-body {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 1.6em;
}

.hero-icon {
  flex: none;
  width: 124px;
  height: 124px;
  margin-top: -62px;
  border: 5px solid var(--panel-solid);
  border-radius: 28px;
  background-color: #000;
  box-shadow: 3px 4px 0 0 #000000ba;
  transition: 0.25s ease-in-out;
}

.hero-icon:hover { transform: scale(1.06) rotate(-4deg); }

.hero-id {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 10px;
}

.hero h1 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -3px;
  color: #f2ecec;
}

.h1-sub {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--brand-red);
}

.tagline {
  margin: 6px 0 4px;
  font-style: italic;
}

.guildstats {
  margin: 0;
  color: rgb(185, 187, 190);
  font-size: 15px;
}

.guildstats .stat {
  display: inline-block;
  margin-right: 12px;
  white-space: nowrap;
}

.statusdot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background-color: #747f8d;
}

.statusdot.on { background-color: var(--discord-green); }

.hero-cta {
  flex: none;
  padding-top: 20px;
}

.joinbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 24px;
  border-radius: 6px;
  background-color: var(--join);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 3px 4px 0 0 #000;
  transition: 0.2s;
}

.joinbtn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) rotate(-1deg);
}

.lede {
  max-width: 60em;
  margin: 20px 0 0;
  padding: 0 1.6em;
  font-size: 1.2em;
  text-wrap: balance;
}

.lede b { color: #fff; }

.tags {
  list-style: none;
  margin: 18px 0 0;
  padding: 0 1.6em 1.6em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags li {
  padding: 5px 12px;
  border-radius: 4px;
  background-color: var(--row);
  box-shadow: 1px 1px 4px 0 #000;
  color: var(--brand-pale);
  font-weight: 600;
  transition: 0.25s;
}

.tags li:hover {
  color: #fff;
  background-color: var(--row-hover);
  transform: scale(1.05) rotate(-2deg);
}

.tags li:nth-child(even):hover { transform: scale(1.05) rotate(2deg); }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 20px;
}

.cards li {
  background-color: #000;
  box-shadow: 0 4px 11px 0 #000;
  border-top: 3px solid var(--brand-red-deep);
  padding: 12px 14px 14px;
  transition: 0.2s;
}

.cards li:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  border-top-color: var(--brand-red);
}

.cards h3 {
  margin: 0 0 5px;
  font-size: 18px;
  color: var(--brand-red);
}

.cards li:hover h3 { color: var(--brand-link); }

.cards p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.wall li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 5px 10px 5px 5px;
  border-radius: 4px;
  background-color: var(--row);
  box-shadow: 1px 1px 4px 0 #000;
  color: #a9a9a9;
  transition: 0.3s;
}

.wall li:hover { color: #fff; background-color: var(--row-hover); }
.wall li.muted { grid-column: 1 / -1; padding-left: 12px; color: var(--text-dim); }

.voice { margin-bottom: 22px; }

.voice h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--brand-pale);
}

.avwrap {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
}

.av {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background-color: #2a1f1f;
  color: var(--brand-link);
  font-size: 16px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  object-fit: cover;
}

.st {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--row);
  border-radius: 50%;
  background-color: #747f8d;
  transition: border-color 0.3s;
}

.wall li:hover .st { border-color: var(--row-hover); }
.st-online { background-color: var(--discord-green); }
.st-idle { background: radial-gradient(circle at 30% 30%, var(--row) 0 3px, #faa81a 3.5px); }
.st-dnd { background: linear-gradient(var(--row), var(--row)) center / 5px 2px no-repeat #ed4245; }

.who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.who .name, .who .sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who .sub { font-size: 12px; color: var(--text-dim); }

.staff {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 12px;
}

.staff li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 10px 14px 10px 10px;
  border-radius: 4px;
  background-color: var(--row);
  box-shadow: 1px 1px 4px 0 #000;
  transition: background-color 0.3s;
}

.staff li:hover { background-color: var(--row-hover); }

.staff .av {
  flex: none;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 26px;
  line-height: 58px;
  transition: transform 0.25s ease-in-out;
}

.staff li:hover .av { transform: scale(1.06) rotate(-4deg); }
.staff .who .name { font-size: 18px; font-weight: 700; color: #f2ecec; }
.staff .who .role { font-size: 13px; font-weight: 700; color: var(--brand-red); }
.staff .who .sub { font-size: 14px; white-space: normal; }

.channelid {
  color: rgb(222, 224, 252);
  background-color: rgba(88, 101, 242, 0.3);
  white-space: nowrap;
  padding: 1px 4px;
  border-radius: 5px;
}

.rulecols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 22px;
  align-items: start;
}

.rulegroup h3 {
  margin: 0 0 8px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 1rem;
  color: #1a0303;
  background-color: var(--brand-red);
}

.rulegroup.g2 h3 { background-color: #8f1010; color: #fff; }
.rulegroup.g3 h3 { background-color: #efe6e6; }

details.rule {
  margin-bottom: 5px;
  border-radius: 4px;
  background-color: var(--row);
  box-shadow: 1px 1px 4px 0 #000;
  transition: background-color 0.3s;
}

details.rule:hover, details.rule[open] { background-color: #1f1212; }

details.rule summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 600;
  color: #a9a9a9;
  transition: color 0.3s;
}

details.rule summary::-webkit-details-marker { display: none; }
details.rule:hover summary, details.rule[open] summary { color: #fff; }

details.rule summary::after {
  content: "▾";
  content: "▾" / "";
  margin-left: auto;
  color: var(--text-dim);
  transition: transform 0.2s;
}

details.rule[open] summary::after { transform: rotate(180deg); }

.rulecode {
  flex: none;
  min-width: 34px;
  padding: 2px 3px;
  border-radius: 4px;
  background-color: #000;
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.rulebody {
  padding: 0 14px 14px;
  font-size: 15px;
}

.rulebody strong { color: var(--brand-pale); }

.faqlist { max-width: 860px; margin: 0 auto; }
.faqlist .rulebody { padding-top: 2px; }

.cta {
  padding: 2.2em 1.4em;
  border: 1px solid var(--line);
  text-align: center;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--brand-red);
}

.cta p {
  max-width: 44em;
  margin: 0 auto 20px;
  font-size: 1.1em;
}

.cta .disboard {
  margin: 18px auto 0;
  font-size: 15px;
}

.powered {
  padding: 1em 15px;
  color: #8d8686;
  background-color: #0d0b0b;
  text-align: center;
  font-size: 14px;
}

html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s, transform 0.5s; }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .tabs li:hover, .tabs li:nth-child(even):hover, .joinbtn:hover, .hero-icon:hover, .staff li:hover .av,
  .tags li:hover, .tags li:nth-child(even):hover, .cards li:hover { transform: none; }
}

@media (max-width: 1000px) {
  .tabs-brand span { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tabs li a { font-size: 17px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 64px; }

  .page { padding: 12px 10px 24px; }
  .panel { margin-top: 14px; padding: 20px 15px; }

  .tabs-inner { padding: 7px 10px; gap: 10px; }
  .tabs-brand { flex: none; visibility: visible; opacity: 1; }

  .tabs ul {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    padding-right: 20px;
  }

  .tabs ul::-webkit-scrollbar { display: none; }
  .tabs li a { font-size: 16px; line-height: 36px; padding: 0 10px; }
  .tabs li a:focus-visible { outline-offset: -2px; }
  .tabs-inner::after { display: none; }

  .hero { padding: 0; }
  .hero-body { flex-direction: column; align-items: center; gap: 4px; padding: 0 15px; text-align: center; }
  .hero-icon { width: 104px; height: 104px; margin-top: -52px; border-radius: 24px; }
  .hero-id { padding-top: 4px; }
  .hero h1 { font-size: 2.5rem; letter-spacing: -2px; }
  .guildstats .stat { margin: 0 6px; }
  .hero-cta { width: 100%; padding-top: 12px; }
  .joinbtn { width: 100%; }
  .lede { padding: 0 15px; font-size: 1.05em; text-align: center; }
  .tags { justify-content: center; gap: 8px; padding: 0 15px 20px; font-size: 14px; }
  .wall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  h2.sec { font-size: 1.35rem; }
  .cta h2 { font-size: 1.6rem; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .joinbtn { padding: 8px 12px; font-size: 16px; }
}
