/* =============================================================================
   OLYMPIA RP 1885 - SITE STYLESHEET
   Every page links to this one file (see includes/header.html).

   How it is organised:
     1. Base, top menu, page header, footer
     2. Shared components used by several pages
     3. Helper classes (logo, login box, spacing helpers like .mt-16)
     4. Page sections: styles for one page only. Each page's <body> has a
        class such as "page-rules", and its section starts with that class.
   ============================================================================= */

/* =============================================================================
   BASE: page background, fonts, layout
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-image: url("../images/background.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100%;
}

body {
  font-family: 'Raleway', Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  margin: 20px;
}

/* Only on: connect, donations */
:where(.page-connect, .page-donations) main {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Only on: howto, privacy, rules */
:where(.page-howto, .page-privacy, .page-rules) main {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* Only on: index, penalcode */
:where(.page-index, .page-penalcode) main {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Only on: mytickets, staffdm */
:where(.page-mytickets, .page-staffdm) main {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}


/* =============================================================================
   TOP MENU (includes/menu.html)
   ============================================================================= */

nav {
  background-color: hsla(24, 35%, 7%, 0.98);
  text-align: center;
  border-bottom: 1px solid hsla(38, 40%, 30%, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: hsl(38, 30%, 82%);
  display: inline-block;
  padding: 15px 22px;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
  font-family: 'Raleway', Georgia, serif;
  font-weight: 500;
}

/* Only on: business_applications, businesses, roster, staff */
:where(.page-business_applications, .page-businesses, .page-roster, .page-staff) nav a {
  padding: 12px 20px;
}

nav a:hover {
  background-color: hsla(35, 60%, 30%, 0.65);
  color: hsl(38, 55%, 88%);
  cursor: pointer;
}

nav a.active {
  background-color: hsla(35, 55%, 28%, 0.70);
  color: hsl(38, 60%, 85%);
  border-bottom: 2px solid hsl(38, 60%, 55%);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  background-color: hsla(24, 35%, 7%, 0.98);
  border: 1px solid hsla(38, 40%, 30%, 0.4);
  min-width: 200px;
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  text-align: left;
  padding: 12px 20px;
  white-space: nowrap;
}

.nav-dropdown-toggle .chevron {
  font-size: 9px;
  margin-left: 4px;
}


/* =============================================================================
   PAGE HEADER BANNER (logo, title and subtitle at the top of each page)
   ============================================================================= */

.page-header {
  background-color: hsla(26, 28%, 9%, 0.90);
  text-align: center;
  padding: 40px 20px 30px;
  border-bottom: 1px solid hsla(38, 40%, 30%, 0.3);
}

/* Only on: mdt, mytickets, staffdm, tickets_staff */
:where(.page-mdt, .page-mytickets, .page-staffdm, .page-tickets_staff) .page-header {
  padding: 34px 20px 26px;
}

.page-header h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 40px;
  color: hsl(38, 38%, 90%);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 10px;
}

/* Only on: mdt, mytickets, staffdm, tickets_staff */
:where(.page-mdt, .page-mytickets, .page-staffdm, .page-tickets_staff) .page-header h1 {
  font-size: 32px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 15px;
  color: hsla(38, 22%, 72%, 0.80);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Only on: mdt, mytickets, staffdm, tickets_staff */
:where(.page-mdt, .page-mytickets, .page-staffdm, .page-tickets_staff) .page-header p {
  font-size: 13px;
}


/* =============================================================================
   FOOTER (includes/footer.html)
   ============================================================================= */

footer {
  background-color: hsla(24, 35%, 7%, 0.96);
  text-align: center;
  padding: 18px;
  border-top: 1px solid hsla(38, 40%, 25%, 0.35);
}

/* Only on: business_applications, businesses, connect, donations, roster, staff */
:where(.page-business_applications, .page-businesses, .page-connect, .page-donations, .page-roster, .page-staff) footer {
  background-color: hsla(24, 35%, 7%, 0.98);
}

/* Only on: howto, mdt, mytickets, privacy, rules, staffdm, support, tickets_staff */
:where(.page-howto, .page-mdt, .page-mytickets, .page-privacy, .page-rules, .page-staffdm, .page-support, .page-tickets_staff) footer {
  margin-top: auto;
}

footer p {
  color: hsla(38, 18%, 60%, 0.60);
  font-size: 12px;
  letter-spacing: 0.5px;
}


/* =============================================================================
   SHARED COMPONENTS (cards, forms, tables... used on more than one page)
   A comment such as "Only on: roster, staff" means the rule is limited to those pages.
   ============================================================================= */

/* Only on: mdt, staffdm, tickets_staff */
:where(.page-mdt, .page-staffdm, .page-tickets_staff) #login-banner,
:where(.page-mdt, .page-staffdm, .page-tickets_staff) #no-access-banner {
  display: none;
  max-width: 560px;
  margin: 60px auto;
  background-color: hsla(26, 28%, 9%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.35);
  border-top: 3px solid hsl(38, 62%, 50%);
  border-radius: 6px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* All pages except: mytickets */
:where(body:not(.page-mytickets)) #login-banner .title,
:where(body:not(.page-mytickets)) #no-access-banner .title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 20px;
  color: hsl(38, 45%, 85%);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* Only on: mdt, staffdm, tickets_staff */
:where(.page-mdt, .page-staffdm, .page-tickets_staff) #login-banner p,
:where(.page-mdt, .page-staffdm, .page-tickets_staff) #no-access-banner p {
  color: hsla(38, 18%, 68%, 0.75);
  font-size: 13px;
  margin-bottom: 24px;
  font-style: italic;
}

/* Only on: mdt, mytickets, tickets_staff */
:where(.page-mdt, .page-mytickets, .page-tickets_staff) #login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: hsl(235, 86%, 65%);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: 'Raleway', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Only on: mytickets, staffdm */
:where(.page-mytickets, .page-staffdm) #user-badge {
  display: none;
  max-width: 1100px;
  margin: 0 auto 18px;
  background-color: hsla(26, 28%, 9%, 0.80);
  border: 1px solid hsla(38, 35%, 28%, 0.30);
  border-radius: 6px;
  padding: 10px 18px;
  align-items: center;
  justify-content: space-between;
}

/* Only on: mdt, mytickets, staffdm, tickets_staff */
:where(.page-mdt, .page-mytickets, .page-staffdm, .page-tickets_staff) #user-badge span {
  color: hsla(38, 20%, 75%, 0.85);
  font-size: 13px;
}

/* Only on: mdt, mytickets, staffdm, tickets_staff */
:where(.page-mdt, .page-mytickets, .page-staffdm, .page-tickets_staff) #user-badge strong {
  color: hsl(38, 50%, 82%);
}

/* Only on: mdt, mytickets, staffdm, tickets_staff */
:where(.page-mdt, .page-mytickets, .page-staffdm, .page-tickets_staff) #user-badge a {
  color: hsla(38, 20%, 55%, 0.70);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

#dashboard {
  display: none;
}

.tab-btn {
  background-color: transparent;
  color: hsla(38, 22%, 70%, 0.75);
  border: none;
  border-right: 1px solid hsla(38, 30%, 30%, 0.30);
  padding: 13px 24px;
  font-size: 12px;
  font-family: 'Raleway', Georgia, serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  flex: 1;
  transition: background-color 0.2s, color 0.2s;
  font-weight: 500;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover {
  background-color: hsla(35, 50%, 22%, 0.60);
  color: hsl(38, 50%, 88%);
}

.tab-btn.active {
  background-color: hsla(35, 55%, 26%, 0.88);
  color: hsl(38, 60%, 85%);
  border-bottom: 2px solid hsl(38, 62%, 55%);
}

.app-panel {
  background-color: hsla(26, 28%, 9%, 0.88);
  padding: 30px 36px;
  max-width: 780px;
  margin: 28px auto 40px;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.app-panel.visible {
  display: block;
}

.app-panel h3 {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 38%, 88%);
  font-size: 22px;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 8px;
  border-bottom: 1px solid hsla(38, 40%, 35%, 0.35);
  padding-bottom: 10px;
}

.app-panel .panel-desc {
  color: hsla(38, 18%, 70%, 0.75);
  font-size: 13px;
  text-align: center;
  margin-bottom: 24px;
  font-style: italic;
}

.dm-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.convo-list {
  background-color: hsla(26, 28%, 9%, 0.90);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  max-height: 70vh;
  overflow-y: auto;
}

.convo-item {
  padding: 14px 16px;
  border-bottom: 1px solid hsla(38, 25%, 25%, 0.25);
  cursor: pointer;
  transition: background-color 0.15s;
}

.convo-item:hover {
  background-color: hsla(35, 40%, 20%, 0.35);
}

.convo-item.active {
  background-color: hsla(35, 55%, 25%, 0.55);
}

.convo-item .name {
  color: hsl(38, 38%, 88%);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.convo-item .preview {
  color: hsla(38, 18%, 65%, 0.75);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convo-item .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.convo-item .time {
  color: hsla(38, 18%, 55%, 0.60);
  font-size: 10.5px;
}

.tag-doj-team {
  background-color: hsla(12, 80%, 28%, 0.60);
  color: hsl(12, 85%, 82%);
  border: 1px solid hsla(12, 75%, 48%, 0.45);
}

.tag-staff {
  background-color: hsla(0, 65%, 22%, 0.60);
  color: hsl(0, 55%, 80%);
  border: 1px solid hsla(0, 60%, 38%, 0.45);
}

.discord-id-group {
  background-color: hsla(35, 45%, 25%, 0.14);
  border: 1px solid hsla(38, 55%, 42%, 0.30);
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 4px;
}

.discord-id-group label {
  display: block;
  color: hsl(38, 55%, 72%);
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.discord-id-group input {
  width: 100%;
  background-color: hsla(26, 22%, 7%, 0.85);
  border: 1px solid hsla(38, 45%, 38%, 0.40);
  color: hsl(38, 25%, 88%);
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Raleway', Georgia, serif;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 3px;
}

/* All pages except: business_applications */
:where(body:not(.page-business_applications)) .discord-id-group input:focus {
  border-color: hsla(38, 62%, 52%, 0.75);
}

.discord-id-hint {
  margin-top: 6px;
  font-size: 12px;
  color: hsla(38, 15%, 50%, 0.62);
  font-style: italic;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  color: hsla(38, 20%, 80%, 0.88);
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: hsla(26, 22%, 7%, 0.85);
  border: 1px solid hsla(38, 28%, 35%, 0.38);
  color: hsl(38, 20%, 88%);
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Raleway', Georgia, serif;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  border-radius: 3px;
}

/* All pages except: mdt */
:where(body:not(.page-mdt)) .form-group input:focus,
:where(body:not(.page-mdt)) .form-group select:focus,
:where(body:not(.page-mdt)) .form-group textarea:focus {
  border-color: hsla(38, 62%, 52%, 0.70);
}

/* All pages except: mdt, tickets */
:where(body:not(.page-mdt, .page-tickets)) .form-group select option {
  background-color: hsl(26, 22%, 10%);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.submit-btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background-color: hsla(35, 60%, 33%, 0.88);
  color: hsl(38, 50%, 92%);
  border: 1px solid hsla(38, 55%, 48%, 0.50);
  font-size: 14px;
  font-family: 'Raleway', Georgia, serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s, transform 0.15s;
  font-weight: 500;
}

/* All pages except: business_applications */
:where(body:not(.page-business_applications)) .submit-btn:hover:not(:disabled) {
  background-color: hsla(35, 65%, 40%, 0.96);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.50;
  cursor: not-allowed;
}

.notice {
  background-color: hsla(26, 28%, 9%, 0.86);
  color: hsla(38, 18%, 70%, 0.75);
  text-align: center;
  font-size: 13px;
  padding: 12px 20px;
  max-width: 780px;
  margin: 0 auto 0;
  font-style: italic;
  border-radius: 4px;
  border-left: 3px solid hsla(38, 45%, 40%, 0.40);
}

#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  font-size: 14px;
  font-family: 'Raleway', Georgia, serif;
  color: hsl(38, 40%, 92%);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
  font-weight: 500;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast.success {
  background-color: hsla(134, 50%, 28%, 0.96);
}

#toast.error {
  background-color: hsla(0, 65%, 38%, 0.96);
}

#toast.info {
  background-color: hsla(35, 60%, 30%, 0.96);
}

.disabled-fields input,
.disabled-fields select,
.disabled-fields textarea,
.disabled-fields .discord-id-group input {
  background-color: hsla(30, 15%, 20%, 0.55) !important;
  color: hsla(38, 12%, 52%, 0.60) !important;
  cursor: not-allowed !important;
}

.disabled-fields input:focus,
.disabled-fields select:focus,
.disabled-fields textarea:focus,
.disabled-fields .discord-id-group input:focus {
  border-color: hsla(38, 20%, 32%, 0.35) !important;
}

/* All pages except: mytickets, staffdm, tickets_staff */
:where(body:not(.page-mytickets, .page-staffdm, .page-tickets_staff)) .closed-notice {
  background-color: #7a1c2e;
  border: 2px solid #5a0f1e;
  color: hsl(0, 0%, 96%);
  padding: 0;
  margin-bottom: 24px;
  border-radius: 6px;
  overflow: hidden;
}

.closed-notice-title {
  background-color: #5a0f1e;
  color: hsl(38, 40%, 92%);
  padding: 10px 20px;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  text-align: center;
  font-family: 'Cinzel', Georgia, serif;
  text-transform: uppercase;
}

.closed-notice-content {
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1.7;
  color: hsla(0, 0%, 90%, 0.88);
}

.status-badge {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 500;
}

.status-open {
  background-color: hsla(120, 45%, 22%, 0.65);
  color: hsl(120, 60%, 72%);
}

.status-closed {
  background-color: hsla(0, 30%, 25%, 0.55);
  color: hsla(0, 20%, 65%, 0.85);
}

.type-badge {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 500;
  background-color: hsla(38, 45%, 25%, 0.55);
  color: hsl(38, 60%, 78%);
  margin-right: 6px;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: hsla(38, 18%, 55%, 0.65);
  font-size: 13px;
  font-style: italic;
}

.thread-panel {
  background-color: hsla(26, 28%, 9%, 0.90);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}

.thread-header .title {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 42%, 86%);
  font-size: 16px;
  letter-spacing: 0.5px;
}

.thread-header .sub {
  color: hsla(38, 18%, 60%, 0.70);
  font-size: 11.5px;
  margin-top: 3px;
}

.thread-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 55vh;
}

.msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.6;
}

.msg-staff {
  align-self: flex-end;
  background-color: hsla(35, 55%, 28%, 0.55);
  color: hsl(38, 40%, 90%);
  border: 1px solid hsla(38, 55%, 45%, 0.35);
}

.msg-member {
  align-self: flex-start;
  background-color: hsla(26, 25%, 18%, 0.85);
  color: hsl(38, 20%, 82%);
  border: 1px solid hsla(38, 25%, 30%, 0.35);
}

.msg .author {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.65;
  margin-bottom: 4px;
}

.msg .time {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 5px;
  text-align: right;
}

.initial-fields {
  background-color: hsla(35, 45%, 25%, 0.14);
  border: 1px solid hsla(38, 55%, 42%, 0.30);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: hsla(38, 22%, 80%, 0.85);
  line-height: 1.7;
}

.initial-fields strong {
  color: hsl(38, 55%, 75%);
}

.thread-input {
  padding: 14px 20px;
  border-top: 1px solid hsla(38, 30%, 30%, 0.30);
  display: flex;
  gap: 10px;
}

.thread-input textarea {
  flex: 1;
  resize: none;
  height: 44px;
  padding: 10px 14px;
  background-color: hsla(26, 22%, 14%, 0.85);
  border: 1px solid hsla(38, 30%, 35%, 0.35);
  border-radius: 4px;
  color: hsl(38, 25%, 88%);
  font-family: 'Raleway', Georgia, serif;
  font-size: 13.5px;
}

.btn-send {
  background-color: hsla(35, 60%, 33%, 0.88);
  color: hsl(38, 50%, 92%);
  border: 1px solid hsla(38, 55%, 48%, 0.55);
  border-radius: 4px;
  padding: 0 24px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Raleway', Georgia, serif;
}

.btn-send:hover {
  background-color: hsla(35, 65%, 40%, 0.96);
}

.btn-send:disabled,
.thread-input textarea:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Only on: mytickets, staffdm */
:where(.page-mytickets, .page-staffdm) .closed-notice {
  padding: 14px 20px;
  text-align: center;
  color: hsla(0, 30%, 65%, 0.75);
  font-size: 12.5px;
  font-style: italic;
  border-top: 1px solid hsla(38, 30%, 30%, 0.30);
}

.rules-toc {
  background-color: hsla(26, 28%, 9%, 0.96);
  padding: 20px 28px;
  margin-bottom: 32px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border-left: 3px solid hsla(38, 50%, 42%, 0.55);
}

.rules-toc-title {
  color: hsl(38, 55%, 68%);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 500;
  font-family: 'Raleway', Georgia, serif;
}

.rules-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 20px;
}

.rules-toc-grid a {
  color: hsla(38, 18%, 70%, 0.72);
  font-size: 13px;
  text-decoration: none;
  padding: 3px 0;
  display: block;
  transition: color 0.15s;
}

.rules-toc-grid a:hover {
  color: hsl(38, 62%, 65%);
}

.rules-section {
  margin-bottom: 6px;
}

.rules-section-btn {
  width: 100%;
  background-color: hsla(35, 50%, 18%, 0.95);
  border: none;
  border-left: 4px solid hsla(38, 62%, 50%, 0.58);
  color: hsl(38, 38%, 90%);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 18px;
  text-align: left;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
  letter-spacing: 0.5px;
  border-radius: 0 4px 4px 0;
}

.rules-section-btn:hover {
  background-color: hsla(35, 55%, 25%, 0.98);
}

.rules-section-btn .chevron {
  font-size: 12px;
  color: hsla(38, 25%, 60%, 0.65);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.rules-section-btn.open .chevron {
  transform: rotate(180deg);
}

.rules-section-content {
  display: none;
  padding-bottom: 8px;
}

.rules-section-content.open {
  display: block;
}

.rule-block {
  background-color: hsla(26, 25%, 10%, 0.94);
  margin-bottom: 4px;
  padding: 16px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rule-block.indent {
  padding-left: 48px;
}

.rule-text {
  color: hsl(38, 25%, 88%);
  font-size: 15px;
  line-height: 1.75;
}

.steps li:last-child {
  border-bottom: none;
}

.note strong {
  color: hsl(38, 70%, 70%);
  font-weight: 600;
}

.payout-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.payout-table thead tr {
  background-color: hsla(26, 28%, 10%, 0.98);
}

.payout-table thead th {
  color: hsl(38, 65%, 65%);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 16px;
  text-align: left;
  font-weight: 500;
  font-family: 'Raleway', Georgia, serif;
}

.payout-table thead th:last-child {
  background-color: hsla(43, 70%, 28%, 0.32);
  border-left: 1px solid hsla(43, 75%, 52%, 0.60);
  color: hsl(43, 85%, 65%);
  text-align: center;
}

.payout-table tbody tr {
  background-color: hsla(26, 25%, 10%, 0.94);
  border-bottom: 1px solid hsla(38, 25%, 25%, 0.30);
  transition: background-color 0.15s;
}

.payout-table tbody tr:hover {
  background-color: hsla(26, 28%, 16%, 0.98);
}

.payout-table tbody td {
  color: hsl(38, 22%, 86%);
  font-size: 14px;
  padding: 10px 16px;
}

.payout-table tbody td:last-child {
  background-color: hsla(43, 70%, 32%, 0.28);
  border-left: 1px solid hsla(43, 75%, 52%, 0.60);
  color: hsl(43, 88%, 68%);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}


/* =============================================================================
   HELPER CLASSES
   Small named styles used in page markup (these replaced old inline style="" attributes).
   ============================================================================= */

/* Round logo shown at the top of most pages */
.site-logo { display: block; width: 110px; height: 110px; object-fit: contain; margin: 0 auto 14px; }

/* Discord logo on the Discord page / "Coming soon" image on the home page */
.discord-logo { display: block; width: 90px; height: 90px; object-fit: contain; margin: 0 auto 18px; }
.coming-soon-img { display: block; width: 60%; max-width: 320px; height: auto; margin: 0 auto 24px; border-radius: 4px; }

/* Footer link (Privacy Policy) */
.footer-link { color: inherit; text-decoration: underline; }

/* "Sign in with Discord" box shown on forms when you are not logged in */
.login-banner {
  max-width: 780px;
  margin: 30px auto;
  background-color: hsla(26, 28%, 9%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.35);
  border-top: 3px solid hsl(38, 62%, 50%);
  border-radius: 6px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.login-banner.wide { max-width: 820px; }
.login-banner.narrow { max-width: 700px; }
.login-title { font-family: 'Cinzel', Georgia, serif; font-size: 20px; color: hsl(38, 45%, 85%); letter-spacing: 1px; margin-bottom: 10px; }
.login-text { color: hsla(38, 18%, 68%, 0.75); font-size: 13px; margin-bottom: 24px; font-style: italic; }
.discord-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: hsl(235, 86%, 65%);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: 'Raleway', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
}

/* "Signed in as ..." bar shown on forms once you are logged in */
.user-badge {
  max-width: 780px;
  margin: 16px auto 0;
  background-color: hsla(26, 28%, 9%, 0.80);
  border: 1px solid hsla(38, 35%, 28%, 0.30);
  border-radius: 6px;
  padding: 10px 18px;
  align-items: center;
  justify-content: space-between;
}
.user-badge.wide { max-width: 820px; }
.user-badge.narrow { max-width: 700px; }
.badge-text { color: hsla(38, 20%, 75%, 0.85); font-size: 13px; }
.badge-name { color: hsl(38, 50%, 82%); }
.signout-link { color: hsla(38, 20%, 55%, 0.70); font-size: 12px; text-decoration: none; letter-spacing: 0.5px; }

/* Sub-heading inside an application form (e.g. "Applicant Information") */
.form-heading {
  background-color: transparent;
  color: hsl(0, 0%, 95%);
  font-size: 18px;
  padding: 12px 0 8px 0;
  margin-top: 20px;
  border-bottom: 1px solid hsla(231, 100%, 60%, 0.25);
}

/* Changelog: group headings ("Discord Bot", "Website"...) and indented items */
.changelog-entry li.log-group { border-left: none; padding-left: 0; margin-top: 12px; margin-bottom: 2px; }
.changelog-entry li.log-group.first { margin-top: 4px; }
.log-group-title { font-family: 'Cinzel', Georgia, serif; font-size: 13px; color: hsl(38, 45%, 82%); letter-spacing: 1px; }
.changelog-entry li.log-indent { padding-left: 32px; }
.log-link { color: hsl(38, 75%, 68%); text-decoration: underline; }

/* Text colours and links */
.gold-link { color: hsl(38, 75%, 68%); }
.gold-text { color: hsl(38, 55%, 72%); }
.small-link { color: hsl(38, 62%, 62%); text-decoration: underline; font-size: 13px; }
.title-note { font-size: 13px; color: hsla(38, 18%, 58%, 0.65); font-family: 'Raleway', Georgia, serif; font-weight: 400; letter-spacing: 0.5px; }

/* How To / Roulette guides */
.guide-img { max-width: 100%; border-radius: 6px; display: block; }
.card .guide-text { color: hsl(38, 18%, 80%); font-size: 14px; line-height: 1.7; }
.card .guide-text.loose { line-height: 1.75; }

/* Penal code: small wrapping text in a table cell */
.cell-small { white-space: normal !important; font-size: 11px !important; line-height: 1.3 !important; }

/* A row of buttons side by side */
.button-row { display: flex; gap: 8px; }

/* Spacing helpers: mt = margin-top, mb = margin-bottom (in pixels) */
.mt-8  { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-14 { margin-top: 14px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-6  { margin-bottom: 6px !important; }
.mb-8  { margin-bottom: 8px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-14 { margin-bottom: 14px !important; }


/* =============================================================================
   PAGE: applications.html  (Applications)
   ============================================================================= */

:where(.page-applications) .tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  margin: 28px 0 30px;
  background-color: hsla(26, 28%, 8%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.40);
  border-radius: 6px;
  overflow: hidden;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 28px;
  margin-bottom: 30px;
}

:where(.page-applications) .app-panel {
  display: none;
  margin: 0 auto 40px;
}

:where(.page-applications) .notice {
  margin: 0 auto 30px;
}


/* =============================================================================
   PAGE: ban_appeals.html  (Ban Appeals)
   ============================================================================= */

:where(.page-ban_appeals) .form-panel {
  background-color: hsla(26, 28%, 9%, 0.88);
  padding: 30px 36px;
  max-width: 780px;
  margin: 0 auto 40px;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

:where(.page-ban_appeals) .form-panel h3 {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 38%, 88%);
  font-size: 22px;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 8px;
  border-bottom: 1px solid hsla(38, 40%, 35%, 0.35);
  padding-bottom: 10px;
}

:where(.page-ban_appeals) .form-panel .panel-desc {
  color: hsla(38, 18%, 70%, 0.75);
  font-size: 13px;
  text-align: center;
  margin-bottom: 24px;
  font-style: italic;
}


/* =============================================================================
   PAGE: business_applications.html  (Business Application)
   ============================================================================= */

:where(.page-business_applications) main {
  padding: 40px 20px 60px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

:where(.page-business_applications) .app-card {
  background-color: hsla(26, 28%, 9%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.35);
  border-top: 3px solid hsla(38, 62%, 50%, 0.60);
  border-radius: 6px;
  padding: 36px 40px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

:where(.page-business_applications) .app-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 22px;
  color: hsl(38, 40%, 88%);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 6px;
  border-bottom: 1px solid hsla(38, 40%, 35%, 0.35);
  padding-bottom: 12px;
}

:where(.page-business_applications) .app-desc {
  color: hsla(38, 18%, 68%, 0.75);
  font-size: 13px;
  text-align: center;
  margin-bottom: 28px;
  font-style: italic;
}

:where(.page-business_applications) .section-divider {
  color: hsl(38, 42%, 80%);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 0 8px;
  margin: 22px 0 16px;
  border-bottom: 1px solid hsla(38, 38%, 32%, 0.30);
}

:where(.page-business_applications) .form-group {
  margin-bottom: 16px;
}

:where(.page-business_applications) .form-group select:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  border-color: hsla(38, 28%, 35%, 0.25);
}

:where(.page-business_applications) .discord-id-group {
  background-color: hsla(35, 45%, 25%, 0.10);
  border: 1px solid hsla(38, 55%, 42%, 0.28);
  margin-bottom: 20px;
}

:where(.page-business_applications) .discord-id-group label {
  letter-spacing: normal;
}

:where(.page-business_applications) .discord-id-group input {
}

:where(.page-business_applications) .submit-btn {
  margin-top: 26px;
  transition: background-color 0.2s;
}

:where(.page-business_applications) .submit-btn:hover {
  background-color: hsla(35, 65%, 40%, 0.96);
}

:where(.page-business_applications) .back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: hsla(38, 40%, 62%, 0.80);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

:where(.page-business_applications) .back-link:hover {
  color: hsl(38, 55%, 78%);
}


/* =============================================================================
   PAGE: businesses.html  (Businesses)
   ============================================================================= */

:where(.page-businesses) .notice {
  max-width: none;
  margin: 0;
  font-style: normal;
  background-color: hsla(38, 55%, 18%, 0.92);
  color: hsl(38, 45%, 90%);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 14px 24px;
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid hsla(38, 65%, 50%, 0.55);
  border-left: 4px solid hsla(38, 70%, 55%, 0.90);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: 88px;
  z-index: 99;
}

:where(.page-businesses) .page-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 20px 60px 8px;
}

:where(.page-businesses) .filter-sidebar {
  width: 190px;
  flex-shrink: 0;
  background-color: hsla(26, 28%, 9%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.35);
  border-top: 3px solid hsla(38, 62%, 50%, 0.55);
  border-radius: 6px;
  padding: 20px 18px;
  position: sticky;
  top: 100px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.40);
}

:where(.page-businesses) .filter-heading {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 14px;
  color: hsl(38, 45%, 82%);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid hsla(38, 35%, 30%, 0.35);
}

:where(.page-businesses) .filter-group {
  margin-bottom: 18px;
}

:where(.page-businesses) .filter-group-label {
  font-size: 10px;
  font-family: 'Raleway', Georgia, serif;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: hsla(38, 30%, 55%, 0.70);
  margin-bottom: 10px;
}

:where(.page-businesses) .filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: hsla(38, 20%, 75%, 0.85);
  font-family: 'Raleway', Georgia, serif;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}

:where(.page-businesses) .filter-option:hover {
  color: hsl(38, 50%, 88%);
}

:where(.page-businesses) .filter-option input[type="checkbox"] {
  accent-color: hsl(38, 62%, 55%);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

:where(.page-businesses) .filter-clear {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 7px;
  background-color: hsla(35, 40%, 22%, 0.60);
  border: 1px solid hsla(38, 40%, 35%, 0.40);
  border-radius: 3px;
  color: hsla(38, 30%, 70%, 0.80);
  font-size: 11px;
  font-family: 'Raleway', Georgia, serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s;
}

:where(.page-businesses) .filter-clear:hover {
  background-color: hsla(35, 50%, 28%, 0.75);
  color: hsl(38, 50%, 88%);
}

:where(.page-businesses) main {
  margin: 0;
  min-width: 0;
}

:where(.page-businesses) .town-block {
  margin-bottom: 34px;
}

:where(.page-businesses) .town-header {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 17px;
  color: hsl(38, 50%, 88%);
  background-color: hsla(35, 45%, 20%, 0.97);
  border-bottom: 3px solid hsla(38, 65%, 52%, 0.85);
  padding: 10px 18px;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

:where(.page-businesses) .town-region {
  font-size: 10px;
  color: hsla(38, 30%, 60%, 0.70);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
  font-style: italic;
}

:where(.page-businesses) .region-header {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: hsl(38, 55%, 80%);
  background-color: hsla(24, 35%, 7%, 0.98);
  border-top: 2px solid hsla(38, 62%, 45%, 0.60);
  border-bottom: 2px solid hsla(38, 62%, 45%, 0.60);
  text-align: center;
  padding: 10px 20px;
  margin-bottom: 28px;
  position: sticky;
  top: 88px;
  z-index: 98;
}

:where(.page-businesses) .business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

:where(.page-businesses) .business-card {
  background-color: hsla(26, 28%, 9%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.35);
  border-top: 3px solid hsla(38, 62%, 50%, 0.55);
  border-radius: 6px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.40);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

:where(.page-businesses) .business-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.50);
}

:where(.page-businesses) .business-img {
  width: 100%;
  height: 100px;
  background-color: hsla(26, 20%, 16%, 0.80);
  border: 1px dashed hsla(38, 30%, 30%, 0.40);
  border-radius: 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsla(38, 15%, 40%, 0.50);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Raleway', Georgia, serif;
}

:where(.page-businesses) .business-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 14px;
  color: hsl(38, 45%, 85%);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

:where(.page-businesses) .business-owner {
  font-size: 11px;
  color: hsla(38, 20%, 60%, 0.75);
  font-style: italic;
}

:where(.page-businesses) .business-price {
  font-size: 11px;
  color: hsl(38, 62%, 62%);
  font-family: 'Cinzel', Georgia, serif;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

:where(.page-businesses) .business-tag {
  display: inline-block;
  margin-top: 0;
  font-size: 9px;
  font-family: 'Raleway', Georgia, serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
}

:where(.page-businesses) .tag-available {
  background-color: hsla(130, 55%, 18%, 0.70);
  color: hsl(130, 60%, 72%);
  border: 1px solid hsla(130, 50%, 32%, 0.50);
}

:where(.page-businesses) .tag-unavailable {
  background-color: hsla(0, 60%, 20%, 0.70);
  color: hsl(0, 65%, 72%);
  border: 1px solid hsla(0, 55%, 35%, 0.50);
}

:where(.page-businesses) .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

:where(.page-businesses) .apply-btn {
  display: inline-block;
  background-color: hsla(130, 55%, 22%, 0.80);
  color: hsl(130, 60%, 82%);
  border: 1px solid hsla(130, 50%, 38%, 0.60);
  border-radius: 3px;
  padding: 5px 14px;
  font-size: 10px;
  font-family: 'Raleway', Georgia, serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s;
}

:where(.page-businesses) .apply-btn:hover {
  background-color: hsla(130, 55%, 30%, 0.90);
}

:where(.page-businesses) .apply-btn.disabled {
  background-color: hsla(0, 0%, 20%, 0.40);
  color: hsla(0, 0%, 55%, 0.45);
  border-color: hsla(0, 0%, 30%, 0.25);
  cursor: not-allowed;
  pointer-events: none;
}

:where(.page-businesses) .empty-notice {
  background-color: hsla(26, 28%, 9%, 0.80);
  border: 1px dashed hsla(38, 30%, 30%, 0.35);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  color: hsla(38, 18%, 55%, 0.55);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.5px;
}


/* =============================================================================
   PAGE: changelog.html  (Changelog)
   ============================================================================= */

:where(.page-changelog) .changelog-container {
  max-width: 780px;
  margin: 30px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

:where(.page-changelog) .changelog-entry {
  background-color: hsla(26, 28%, 9%, 0.88);
  padding: 24px 30px;
  border-left: 4px solid hsla(38, 62%, 50%, 0.65);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}

:where(.page-changelog) .changelog-entry:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

:where(.page-changelog) .changelog-entry .version {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 18px;
  color: hsl(38, 40%, 88%);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

:where(.page-changelog) .changelog-entry .date {
  font-size: 12px;
  color: hsla(38, 18%, 58%, 0.65);
  font-style: italic;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

:where(.page-changelog) .changelog-entry .tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  margin-right: 6px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-style: normal;
  border-radius: 3px;
  font-weight: 500;
  font-family: 'Raleway', Georgia, serif;
}

:where(.page-changelog) .tag-added {
  background-color: hsla(120, 45%, 22%, 0.65);
  color: hsl(120, 60%, 72%);
}

:where(.page-changelog) .tag-fixed {
  background-color: hsla(200, 55%, 22%, 0.65);
  color: hsl(200, 65%, 72%);
}

:where(.page-changelog) .tag-changed {
  background-color: hsla(38, 65%, 25%, 0.65);
  color: hsl(38, 75%, 72%);
}

:where(.page-changelog) .tag-removed {
  background-color: hsla(0, 50%, 22%, 0.65);
  color: hsl(0, 65%, 72%);
}

:where(.page-changelog) .tag-wip {
  background-color: hsla(28, 85%, 28%, 0.75);
  color: hsl(28, 95%, 75%);
}

:where(.page-changelog) .tag-staff {
  background-color: hsla(330, 60%, 28%, 0.70);
  color: hsl(330, 80%, 82%);
  border: 1px solid hsla(330, 60%, 50%, 0.40);
}

:where(.page-changelog) .tag-meeting {
  background-color: hsla(270, 55%, 28%, 0.80);
  color: hsl(270, 80%, 82%);
  border: 1px solid hsla(270, 55%, 50%, 0.40);
}

:where(.page-changelog) .tag-testing {
  background-color: hsla(48, 90%, 28%, 0.80);
  color: hsl(48, 95%, 72%);
  border: 1px solid hsla(48, 80%, 45%, 0.40);
}

:where(.page-changelog) .tag-intesting {
  background-color: hsla(200, 65%, 28%, 0.80);
  color: hsl(200, 90%, 80%);
  border: 1px solid hsla(200, 65%, 50%, 0.45);
}

:where(.page-changelog) .tag-scriptdev {
  background-color: hsla(0, 65%, 38%, 0.70);
  color: hsl(0, 90%, 85%);
  border: 1px solid hsla(0, 65%, 55%, 0.45);
}

:where(.page-changelog) .wip-entry {
  border-left-color: hsla(28, 85%, 50%, 0.75) !important;
  background-color: hsla(22, 45%, 10%, 0.92) !important;
}

:where(.page-changelog) .changelog-entry ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

:where(.page-changelog) .changelog-entry ul li {
  color: hsla(38, 18%, 75%, 0.82);
  font-size: 14px;
  padding-left: 14px;
  border-left: 2px solid hsla(38, 35%, 35%, 0.28);
  line-height: 1.7;
}


/* =============================================================================
   PAGE: connect.html  (Connect)
   ============================================================================= */

:where(.page-connect) .card {
  background-color: hsla(26, 28%, 9%, 0.92);
  border: 1px solid hsla(38, 40%, 35%, 0.40);
  border-top: 3px solid hsla(38, 62%, 50%, 0.65);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  padding: 60px 80px;
  max-width: 700px;
  width: 100%;
  text-align: center;
}

:where(.page-connect) .card-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 36px;
  color: hsl(38, 55%, 78%);
  letter-spacing: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 14px;
}

:where(.page-connect) .card-sub {
  font-size: 15px;
  color: hsla(38, 20%, 65%, 0.75);
  font-style: italic;
  margin-bottom: 40px;
  line-height: 1.7;
}

:where(.page-connect) .connect-btn {
  display: inline-block;
  background-color: hsla(35, 60%, 33%, 0.90);
  color: hsl(38, 50%, 92%);
  text-decoration: none;
  font-size: 15px;
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 56px;
  border: 1px solid hsla(38, 55%, 48%, 0.55);
  border-radius: 4px;
  transition: background-color 0.2s, transform 0.15s;
  cursor: pointer;
  margin-bottom: 40px;
}

:where(.page-connect) .connect-btn:hover {
  background-color: hsla(35, 65%, 40%, 0.96);
  transform: translateY(-2px);
}

:where(.page-connect) .connect-btn:active {
  transform: translateY(0);
}

:where(.page-connect) .divider {
  border: none;
  border-top: 1px solid hsla(38, 30%, 35%, 0.25);
  margin: 0 0 36px;
}

:where(.page-connect) .steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

:where(.page-connect) .step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

:where(.page-connect) .step-num {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 22px;
  color: hsl(38, 62%, 62%);
  min-width: 32px;
  line-height: 1.4;
}

:where(.page-connect) .step-text {
  font-size: 14px;
  color: hsla(38, 18%, 75%, 0.85);
  line-height: 1.7;
}

:where(.page-connect) .step-text a {
  color: hsl(38, 62%, 62%);
  text-decoration: underline;
}

:where(.page-connect) .beta-warning {
  background-color: hsla(26, 28%, 7%, 0.96);
  border: 2px solid hsl(48, 90%, 55%);
  border-radius: 6px;
  padding: 16px 24px;
  margin: 20px auto;
  max-width: 860px;
  text-align: center;
  color: hsl(48, 95%, 72%);
  font-size: 14px;
  font-family: 'Raleway', Georgia, serif;
  letter-spacing: 0.5px;
  line-height: 1.7;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 12px hsla(48, 90%, 50%, 0.25);
}


/* =============================================================================
   PAGE: discord.html  (Discord)
   ============================================================================= */

:where(.page-discord) .hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

:where(.page-discord) .card {
  background-color: hsla(26, 28%, 9%, 0.90);
  padding: 56px 64px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  border-top: 3px solid hsla(38, 60%, 48%, 0.65);
}

:where(.page-discord) .discord-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: block;
}

:where(.page-discord) .server-name {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: hsl(38, 45%, 68%);
  margin-bottom: 10px;
  font-family: 'Raleway', Georgia, serif;
  font-weight: 500;
}

:where(.page-discord) .card h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 34px;
  color: hsl(38, 38%, 90%);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}

:where(.page-discord) .card p {
  font-size: 15px;
  color: hsla(38, 18%, 74%, 0.80);
  line-height: 1.8;
  margin-bottom: 36px;
  font-style: italic;
}

:where(.page-discord) .join-btn {
  display: inline-block;
  background-color: hsla(35, 60%, 33%, 0.90);
  color: hsl(38, 50%, 92%);
  text-decoration: none;
  font-size: 14px;
  font-family: 'Raleway', Georgia, serif;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 15px 48px;
  border: 1px solid hsla(38, 55%, 48%, 0.55);
  border-radius: 4px;
  transition: background-color 0.2s, transform 0.15s;
  cursor: pointer;
}

:where(.page-discord) .join-btn:hover {
  background-color: hsla(35, 65%, 40%, 0.96);
  transform: translateY(-2px);
}

:where(.page-discord) .join-btn:active {
  transform: translateY(0);
}

:where(.page-discord) .invite-code {
  margin-top: 22px;
  font-size: 12px;
  color: hsla(38, 18%, 55%, 0.65);
  letter-spacing: 0.5px;
}

:where(.page-discord) .invite-code span {
  color: hsl(38, 55%, 65%);
}

:where(.page-discord) .perks {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 40px;
  border-top: 1px solid hsla(38, 30%, 35%, 0.25);
  padding-top: 32px;
}

:where(.page-discord) .perk {
  flex: 1;
  min-width: 130px;
  padding: 0 18px;
  text-align: center;
  border-right: 1px solid hsla(38, 25%, 35%, 0.20);
}

:where(.page-discord) .perk:last-child {
  border-right: none;
}

:where(.page-discord) .perk-icon {
  font-size: 26px;
  margin-bottom: 8px;
  display: block;
}

:where(.page-discord) .perk-label {
  font-size: 12px;
  color: hsla(38, 18%, 68%, 0.70);
  line-height: 1.5;
}


/* =============================================================================
   PAGE: donations.html  (Donations)
   ============================================================================= */

:where(.page-donations) .coming-soon-box {
  background-color: hsla(26, 28%, 9%, 0.92);
  border: 1px solid hsla(38, 40%, 35%, 0.40);
  border-top: 3px solid hsla(38, 62%, 50%, 0.65);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  padding: 100px 80px;
  max-width: 860px;
  width: 100%;
  text-align: center;
}

:where(.page-donations) .coming-soon-text {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 72px;
  color: hsl(38, 55%, 72%);
  letter-spacing: 6px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

:where(.page-donations) .coming-soon-sub {
  font-size: 16px;
  color: hsla(38, 20%, 65%, 0.70);
  margin-top: 24px;
  font-style: italic;
  letter-spacing: 1px;
}


/* =============================================================================
   PAGE: howto.html  (How To)
   ============================================================================= */

:where(.page-howto) .guide-body {
  background-color: hsla(26, 25%, 10%, 0.94);
  padding: 22px 26px 26px;
}

:where(.page-howto) .section-divider {
  color: hsl(38, 42%, 80%);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 0 8px;
  margin: 18px 0 14px;
  border-bottom: 1px solid hsla(38, 38%, 32%, 0.30);
}

:where(.page-howto) .guide-body > .section-divider:first-child {
  margin-top: 0;
}

:where(.page-howto) .steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

:where(.page-howto) .steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: hsl(38, 18%, 80%);
  font-size: 14px;
  line-height: 1.75;
  padding: 9px 0;
  border-bottom: 1px solid hsla(38, 25%, 25%, 0.20);
}

:where(.page-howto) .steps li::before {
  content: counter(step);
  min-width: 26px;
  height: 26px;
  background-color: hsla(38, 55%, 28%, 0.55);
  border: 1px solid hsla(38, 60%, 48%, 0.50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  color: hsl(38, 70%, 70%);
  flex-shrink: 0;
  margin-top: 3px;
}

:where(.page-howto) .key {
  display: inline-block;
  background-color: hsla(26, 28%, 18%, 0.90);
  border: 1px solid hsla(38, 45%, 40%, 0.55);
  border-radius: 3px;
  padding: 1px 8px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: hsl(38, 70%, 75%);
  letter-spacing: 0.5px;
  margin: 0 2px;
}

:where(.page-howto) .note {
  background-color: hsla(38, 55%, 18%, 0.55);
  border: 1px solid hsla(38, 60%, 40%, 0.40);
  border-radius: 5px;
  padding: 12px 16px;
  color: hsl(38, 35%, 78%);
  font-size: 13px;
  line-height: 1.70;
  margin-top: 14px;
}

:where(.page-howto) .body-text {
  color: hsl(38, 18%, 78%);
  font-size: 14px;
  line-height: 1.80;
}

:where(.page-howto) .body-text strong {
  color: hsl(38, 55%, 72%);
}

:where(.page-howto) code {
  background-color: hsla(26, 28%, 18%, 0.90);
  border: 1px solid hsla(38, 40%, 32%, 0.45);
  border-radius: 3px;
  padding: 1px 7px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: hsl(38, 70%, 75%);
  letter-spacing: 0.3px;
}


/* =============================================================================
   PAGE: index.html  (Home)
   ============================================================================= */

:where(.page-index) .hero {
  text-align: center;
  padding: 80px 20px 60px;
}

:where(.page-index) .hero-box {
  display: inline-block;
  background-color: hsla(26, 28%, 9%, 0.90);
  padding: 50px 60px;
  max-width: 700px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  border-top: 3px solid hsla(38, 60%, 48%, 0.65);
}

:where(.page-index) .hero-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 50px;
  color: hsl(38, 40%, 90%);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

:where(.page-index) .hero-subtitle {
  font-size: 16px;
  color: hsla(38, 25%, 72%, 0.82);
  margin-bottom: 30px;
  font-style: italic;
  letter-spacing: 1px;
}

:where(.page-index) .hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

:where(.page-index) .btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background-color 0.2s, transform 0.15s;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Raleway', Georgia, serif;
  font-weight: 500;
}

:where(.page-index) .btn-primary {
  background-color: hsla(35, 60%, 33%, 0.88);
  color: hsl(38, 50%, 92%);
  border: 1px solid hsla(38, 55%, 48%, 0.55);
}

:where(.page-index) .btn-primary:hover {
  background-color: hsla(35, 65%, 40%, 0.96);
  transform: translateY(-1px);
}

:where(.page-index) .btn-secondary {
  background-color: hsla(0, 0%, 100%, 0.07);
  color: hsl(38, 25%, 85%);
  border: 1px solid hsla(38, 30%, 55%, 0.30);
}

:where(.page-index) .btn-secondary:hover {
  background-color: hsla(35, 30%, 25%, 0.45);
  transform: translateY(-1px);
}

:where(.page-index) .section-title {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 55%, 90%);
  background-color: hsla(26, 28%, 9%, 0.94);
  border-left: 4px solid hsla(38, 62%, 50%, 0.70);
  text-align: center;
  font-size: 26px;
  margin: 40px 0 22px;
  padding: 14px 20px;
  letter-spacing: 2px;
  border-radius: 0 4px 4px 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

:where(.page-index) .info-block {
  background-color: hsla(26, 28%, 9%, 0.86);
  color: hsla(38, 22%, 82%, 0.88);
  text-align: center;
  padding: 22px 30px;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  border-left: 3px solid hsla(38, 50%, 42%, 0.45);
}

:where(.page-index) .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

:where(.page-index) .card {
  background-color: hsla(26, 28%, 9%, 0.86);
  padding: 28px 24px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  border-top: 2px solid hsla(38, 50%, 42%, 0.50);
  transition: transform 0.2s, box-shadow 0.2s;
}

:where(.page-index) .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

:where(.page-index) .card-icon {
  font-size: 38px;
  margin-bottom: 12px;
}

:where(.page-index) .card h3 {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 38%, 86%);
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

:where(.page-index) .card p {
  background-color: transparent;
  color: hsla(38, 18%, 74%, 0.80);
  font-size: 14px;
  padding: 0;
  line-height: 1.7;
  text-align: center;
}

:where(.page-index) .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background-color: hsla(30, 25%, 25%, 0.35);
  margin-bottom: 40px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

:where(.page-index) .stat {
  background-color: hsla(26, 28%, 9%, 0.90);
  text-align: center;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

:where(.page-index) .stat-number {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 34px;
  color: hsl(38, 62%, 62%);
  font-weight: bold;
  display: block;
}

:where(.page-index) .stat-label {
  font-size: 11px;
  color: hsla(38, 18%, 65%, 0.72);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
  display: block;
}

:where(.page-index) footer p {
  background-color: transparent;
  padding: 0;
  text-align: center;
}

:where(.page-index) a.inline-link {
  color: hsl(38, 62%, 62%);
  text-decoration: underline;
}


/* =============================================================================
   PAGE: mdt.html  (MDT)
   ============================================================================= */

:where(.page-mdt) main {
  padding: 24px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

:where(.page-mdt) #user-badge {
  display: none;
  max-width: 1000px;
  margin: 0 auto 18px;
  background-color: hsla(26, 28%, 9%, 0.80);
  border: 1px solid hsla(38, 35%, 28%, 0.30);
  border-radius: 6px;
  padding: 10px 18px;
  align-items: center;
  justify-content: space-between;
}

:where(.page-mdt) .tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  margin: 0 0 20px;
  background-color: hsla(26, 28%, 8%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.40);
  border-radius: 6px;
  overflow: hidden;
}

:where(.page-mdt) .tab-btn {
  padding: 13px 18px;
  font-size: 11.5px;
  letter-spacing: 1px;
}

:where(.page-mdt) .tab-panel {
  display: none;
}

:where(.page-mdt) .tab-panel.visible {
  display: block;
}

:where(.page-mdt) .card {
  background-color: hsla(26, 28%, 9%, 0.88);
  padding: 20px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  margin-bottom: 16px;
}

:where(.page-mdt) .card h3 {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 38%, 88%);
  font-size: 16px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

:where(.page-mdt) .form-group {
  margin-bottom: 14px;
}

:where(.page-mdt) .form-group label {
  font-size: 12.5px;
  margin-bottom: 5px;
}

:where(.page-mdt) .form-group input,
:where(.page-mdt) .form-group select,
:where(.page-mdt) .form-group textarea {
  transition: none;
  padding: 9px 12px;
  font-size: 13.5px;
}

:where(.page-mdt) .form-row {
  gap: 12px;
}

:where(.page-mdt) .btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: hsla(35, 60%, 33%, 0.88);
  color: hsl(38, 50%, 92%);
  border: 1px solid hsla(38, 55%, 48%, 0.50);
  font-size: 12.5px;
  font-family: 'Raleway', Georgia, serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
}

:where(.page-mdt) .btn:hover {
  background-color: hsla(35, 65%, 40%, 0.96);
}

:where(.page-mdt) .btn-small {
  padding: 6px 14px;
  font-size: 11px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Raleway', Georgia, serif;
  border: 1px solid;
  background-color: hsla(35, 55%, 26%, 0.55);
  color: hsl(38, 60%, 85%);
  border-color: hsla(38, 55%, 45%, 0.45);
}

:where(.page-mdt) .btn-small.danger {
  background-color: hsla(0, 50%, 28%, 0.55);
  color: hsl(0, 65%, 82%);
  border-color: hsla(0, 50%, 45%, 0.45);
}

:where(.page-mdt) .btn-small.success {
  background-color: hsla(120, 45%, 22%, 0.55);
  color: hsl(120, 60%, 78%);
  border-color: hsla(120, 45%, 45%, 0.45);
}

:where(.page-mdt) .record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

:where(.page-mdt) .record-card {
  background-color: hsla(26, 25%, 10%, 0.92);
  border: 1px solid hsla(38, 25%, 25%, 0.30);
  border-radius: 5px;
  padding: 14px 18px;
}

:where(.page-mdt) .record-card .record-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  cursor: pointer;
}

:where(.page-mdt) .record-card .record-id {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 55%, 78%);
  font-size: 13px;
}

:where(.page-mdt) .record-card .record-meta {
  color: hsla(38, 18%, 60%, 0.75);
  font-size: 11.5px;
}

:where(.page-mdt) .record-card .record-body {
  display: none;
  margin-top: 12px;
  border-top: 1px solid hsla(38, 25%, 25%, 0.25);
  padding-top: 12px;
}

:where(.page-mdt) .record-card .record-body.open {
  display: block;
}

:where(.page-mdt) .status-badge {
  letter-spacing: 0.6px;
  padding: 2px 8px;
}

:where(.page-mdt) .status-needsRevision {
  background-color: hsla(0, 55%, 28%, 0.70);
  color: hsl(0, 70%, 82%);
}

:where(.page-mdt) .status-pending {
  background-color: hsla(38, 60%, 28%, 0.65);
  color: hsl(38, 75%, 78%);
}

:where(.page-mdt) .status-approved {
  background-color: hsla(120, 45%, 22%, 0.65);
  color: hsl(120, 60%, 72%);
}

:where(.page-mdt) .status-denied {
  background-color: hsla(0, 50%, 25%, 0.60);
  color: hsla(0, 30%, 70%, 0.90);
}

:where(.page-mdt) .verdict-guilty {
  background-color: hsla(0, 55%, 28%, 0.65);
  color: hsl(0, 70%, 82%);
}

:where(.page-mdt) .verdict-notGuilty {
  background-color: hsla(120, 45%, 22%, 0.65);
  color: hsl(120, 60%, 72%);
}

:where(.page-mdt) .verdict-noContest {
  background-color: hsla(38, 55%, 26%, 0.65);
  color: hsl(38, 70%, 78%);
}

:where(.page-mdt) .verdict-btn {
  padding: 6px 14px;
  font-size: 11px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Raleway', Georgia, serif;
  border: 1px solid;
  background-color: hsla(26, 22%, 14%, 0.7);
  color: hsla(38, 20%, 82%, 0.85);
  border-color: hsla(38, 28%, 35%, 0.45);
}

:where(.page-mdt) .verdict-btn:hover {
  background-color: hsla(35, 40%, 22%, 0.7);
}

:where(.page-mdt) .verdict-btn.guilty:hover {
  background-color: hsla(0, 55%, 28%, 0.55);
  border-color: hsla(0, 55%, 45%, 0.5);
}

:where(.page-mdt) .verdict-btn.notGuilty:hover {
  background-color: hsla(120, 45%, 22%, 0.55);
  border-color: hsla(120, 45%, 45%, 0.5);
}

:where(.page-mdt) .verdict-btn.noContest:hover {
  background-color: hsla(38, 55%, 26%, 0.55);
  border-color: hsla(38, 55%, 45%, 0.5);
}

:where(.page-mdt) .charge-dropdown {
  position: relative;
}

:where(.page-mdt) .charge-dropdown-toggle {
  width: 100%;
  text-align: left;
  background-color: hsla(26, 22%, 7%, 0.85);
  border: 1px solid hsla(38, 28%, 35%, 0.38);
  color: hsl(38, 20%, 88%);
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: 'Raleway', Georgia, serif;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

:where(.page-mdt) .charge-dropdown-toggle:hover {
  border-color: hsla(38, 62%, 52%, 0.6);
}

:where(.page-mdt) .charge-dropdown-toggle .chevron {
  font-size: 9px;
  margin-left: 8px;
  color: hsla(38, 40%, 65%, 0.8);
}

:where(.page-mdt) .charge-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background-color: hsla(24, 28%, 8%, 0.98);
  border: 1px solid hsla(38, 40%, 30%, 0.5);
  border-radius: 4px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
  padding: 8px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

:where(.page-mdt) .charge-dropdown-menu.open {
  display: block;
}

:where(.page-mdt) .charge-dropdown-menu .charge-title {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 55%, 75%);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 10px 0 4px;
}

:where(.page-mdt) .charge-dropdown-menu .charge-title:first-child {
  margin-top: 0;
}

:where(.page-mdt) .charge-dropdown-menu label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: hsla(38, 20%, 82%, 0.9);
  padding: 4px 2px;
  font-weight: 400;
  cursor: pointer;
}

:where(.page-mdt) .charge-dropdown-menu label:hover {
  color: hsl(38, 55%, 88%);
}

:where(.page-mdt) .charge-dropdown-menu input[type=checkbox] {
  margin-top: 2px;
}

:where(.page-mdt) .charge-summary-box {
  background-color: hsla(35, 45%, 25%, 0.14);
  border: 1px solid hsla(38, 55%, 42%, 0.30);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: hsla(38, 22%, 82%, 0.9);
  line-height: 1.7;
}

:where(.page-mdt) .charge-summary-box strong {
  color: hsl(38, 55%, 78%);
}

:where(.page-mdt) .revision-banner {
  background-color: hsla(0, 55%, 22%, 0.55);
  border: 1px solid hsla(0, 55%, 45%, 0.40);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: hsl(0, 70%, 85%);
}

:where(.page-mdt) .revision-banner strong {
  color: hsl(0, 80%, 90%);
}

:where(.page-mdt) .empty-state {
  padding: 30px 20px;
}

:where(.page-mdt) .evidence-item {
  background-color: hsla(35, 45%, 25%, 0.14);
  border: 1px solid hsla(38, 55%, 42%, 0.25);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: hsla(38, 22%, 82%, 0.9);
}

:where(.page-mdt) .evidence-item a {
  color: hsl(38, 70%, 68%);
}

:where(.page-mdt) .evidence-picker {
  max-height: 140px;
  overflow-y: auto;
  border: 1px solid hsla(38, 28%, 35%, 0.30);
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 10px;
}

:where(.page-mdt) .evidence-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: hsla(38, 20%, 80%, 0.85);
  margin-bottom: 6px;
  font-weight: 400;
}

:where(.page-mdt) .search-results h4 {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 55%, 88%);
  background-color: hsla(26, 28%, 9%, 0.92);
  border-left: 3px solid hsla(38, 62%, 50%, 0.65);
  font-size: 13px;
  margin: 18px 0 10px;
  padding: 8px 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 0 4px 4px 0;
}

:where(.page-mdt) .search-results h4:first-child {
  margin-top: 0;
}

:where(.page-mdt) .record-card.clickable {
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

:where(.page-mdt) .record-card.clickable:hover {
  background-color: hsla(35, 40%, 20%, 0.45);
  border-color: hsla(38, 55%, 45%, 0.45);
}


/* =============================================================================
   PAGE: mytickets.html  (My Tickets)
   ============================================================================= */

:where(.page-mytickets) #login-banner {
  display: none;
  max-width: 560px;
  margin: 60px auto;
  background-color: hsla(26, 28%, 9%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.35);
  border-top: 3px solid hsl(38, 62%, 50%);
  border-radius: 6px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

:where(.page-mytickets) #login-banner .title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 20px;
  color: hsl(38, 45%, 85%);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

:where(.page-mytickets) #login-banner p {
  color: hsla(38, 18%, 68%, 0.75);
  font-size: 13px;
  margin-bottom: 24px;
  font-style: italic;
}

:where(.page-mytickets) .dm-layout {
  grid-template-columns: 300px 1fr;
}

:where(.page-mytickets) .thread-header {
  padding: 16px 20px;
  border-bottom: 1px solid hsla(38, 30%, 30%, 0.30);
}

:where(.page-mytickets) .msg-staff {
  align-self: flex-start;
  background-color: hsla(26, 25%, 18%, 0.85);
  color: hsl(38, 20%, 82%);
  border: 1px solid hsla(38, 25%, 30%, 0.35);
}

:where(.page-mytickets) .msg-member {
  align-self: flex-end;
  background-color: hsla(35, 55%, 28%, 0.55);
  color: hsl(38, 40%, 90%);
  border: 1px solid hsla(38, 55%, 45%, 0.35);
}


/* =============================================================================
   PAGE: penalcode.html  (Penal Code)
   ============================================================================= */

:where(.page-penalcode) .section-title {
  border-bottom: 1px solid hsla(38, 45%, 40%, 0.40);
  padding-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 50%, 88%);
  background-color: hsla(26, 28%, 9%, 0.98);
  text-align: center;
  font-size: 24px;
  margin: 40px 0 14px;
  padding: 14px 20px;
  letter-spacing: 2px;
  border-left: 4px solid hsla(38, 62%, 50%, 0.70);
  border-radius: 0 4px 4px 0;
  position: sticky;
  top: 88px;
  z-index: 99;
}

:where(.page-penalcode) .category-header {
  background-color: hsla(35, 45%, 20%, 0.97);
  border-left: 4px solid hsla(38, 65%, 52%, 0.85);
  color: hsl(38, 50%, 88%);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 12px 20px;
  margin-top: 24px;
  margin-bottom: 2px;
  border-radius: 0 4px 4px 0;
}

:where(.page-penalcode) .penal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 6px;
  border-radius: 6px;
  overflow: hidden;
  table-layout: fixed;
}

:where(.page-penalcode) .penal-table thead tr {
  background-color: hsla(26, 28%, 10%, 0.98);
}

:where(.page-penalcode) .penal-table thead th {
  color: hsl(38, 65%, 65%);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 11px 16px;
  text-align: left;
  font-weight: 500;
  font-family: 'Raleway', Georgia, serif;
}

:where(.page-penalcode) .penal-table thead th:nth-child(1) {
  width: 80px;
}

:where(.page-penalcode) .penal-table thead th:nth-child(2) {
  width: 200px;
}

:where(.page-penalcode) .penal-table thead th:nth-child(3) {
  width: auto;
}

:where(.page-penalcode) .penal-table tbody td {
  overflow-wrap: break-word;
  color: hsl(38, 22%, 86%);
  font-size: 14px;
  padding: 11px 16px;
  vertical-align: top;
}

:where(.page-penalcode) .penal-table tbody tr {
  background-color: hsla(26, 25%, 10%, 0.94);
  border-bottom: 1px solid hsla(38, 25%, 25%, 0.30);
  transition: background-color 0.15s;
}

:where(.page-penalcode) .penal-table tbody tr:hover {
  background-color: hsla(26, 28%, 16%, 0.98);
}

:where(.page-penalcode) .penal-table tbody td.code-num {
  color: hsl(38, 65%, 60%);
  font-size: 13px;
  white-space: nowrap;
  width: 90px;
  font-weight: 500;
}

:where(.page-penalcode) .penal-table tbody td.empty {
  color: hsla(38, 12%, 48%, 0.55);
  font-style: italic;
  font-size: 13px;
}

:where(.page-penalcode) .penal-table thead th:nth-child(4),
:where(.page-penalcode) .penal-table thead th:nth-child(5) {
  background-color: hsla(43, 70%, 28%, 0.32);
  border-left: 1px solid hsla(43, 75%, 52%, 0.60);
  border-right: 1px solid hsla(43, 75%, 52%, 0.60);
  border-top: 1px solid hsla(43, 75%, 52%, 0.60);
  color: hsl(43, 85%, 65%);
  text-align: center;
  width: 130px;
  min-width: 130px;
}

:where(.page-penalcode) .penal-table tbody td:nth-child(4),
:where(.page-penalcode) .penal-table tbody td:nth-child(5) {
  background-color: hsla(43, 70%, 32%, 0.28);
  border-left: 1px solid hsla(43, 75%, 52%, 0.60);
  border-right: 1px solid hsla(43, 75%, 52%, 0.60);
  border-bottom: 1px solid hsla(43, 75%, 52%, 0.60);
  border-top: none;
  border-radius: 0;
  color: hsl(43, 88%, 68%);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.4px;
  width: 130px;
  min-width: 130px;
}

:where(.page-penalcode) .penal-table tbody td:nth-child(4).empty,
:where(.page-penalcode) .penal-table tbody td:nth-child(5).empty {
  color: hsla(43, 40%, 40%, 0.45);
  font-weight: 400;
}

:where(.page-penalcode) .penal-table tbody td.cell-danger {
  background-color: hsla(0, 72%, 28%, 0.85) !important;
  border: 1px solid hsla(0, 75%, 50%, 0.80) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 12px;
}

:where(.page-penalcode) .notice {
  max-width: none;
  margin: 0;
  background-color: hsla(26, 28%, 9%, 0.96);
  color: hsl(38, 22%, 80%);
  font-size: 14px;
  padding: 14px 24px;
  margin-bottom: 10px;
  line-height: 1.6;
  border-left: 3px solid hsla(38, 45%, 40%, 0.55);
}

:where(.page-penalcode) footer {
  margin-top: 40px;
}


/* =============================================================================
   PAGE: privacy.html  (Privacy Policy & Terms of Service)
   ============================================================================= */

:where(.page-privacy) footer a {
  color: hsla(38, 18%, 60%, 0.75);
}

:where(.page-privacy) .rule-num {
  color: hsl(38, 72%, 60%);
  font-size: 15px;
  font-weight: bold;
  min-width: 20px;
  flex-shrink: 0;
  padding-top: 1px;
}

:where(.page-privacy) .rule-text a {
  color: hsl(38, 62%, 65%);
}


/* =============================================================================
   PAGE: roster.html  (Roster)
   ============================================================================= */

:where(.page-roster) main {
  padding: 40px 20px 60px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

:where(.page-roster) .faction-block {
  margin-bottom: 50px;
}

:where(.page-roster) .faction-header {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 20px;
  color: hsl(38, 50%, 88%);
  background-color: hsla(35, 45%, 20%, 0.97);
  border-bottom: 3px solid hsla(38, 65%, 52%, 0.85);
  padding: 14px 22px;
  border-radius: 4px;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

:where(.page-roster) .roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

:where(.page-roster) .member-card {
  background-color: hsla(26, 28%, 9%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.35);
  border-top: 3px solid hsla(38, 62%, 50%, 0.55);
  border-radius: 6px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.40);
  transition: transform 0.2s, box-shadow 0.2s;
}

:where(.page-roster) .member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.50);
}

:where(.page-roster) .member-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid hsla(38, 50%, 42%, 0.50);
  margin: 0 auto 12px;
  display: block;
  background-color: hsla(26, 25%, 18%, 0.80);
}

:where(.page-roster) .member-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 15px;
  color: hsl(38, 45%, 85%);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

:where(.page-roster) .member-rank {
  font-size: 11px;
  color: hsla(38, 20%, 65%, 0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 6px;
}

:where(.page-roster) .tag {
  font-size: 10px;
  font-family: 'Raleway', Georgia, serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: center;
}

:where(.page-roster) .tag-judge {
  background-color: hsla(12, 80%, 28%, 0.60);
  color: hsl(12, 85%, 82%);
  border: 1px solid hsla(12, 75%, 48%, 0.45);
}

:where(.page-roster) .tag-medical-team {
  background-color: hsla(130, 60%, 20%, 0.60);
  color: hsl(130, 65%, 78%);
  border: 1px solid hsla(130, 60%, 38%, 0.45);
}

:where(.page-roster) .empty-notice {
  background-color: hsla(26, 28%, 9%, 0.80);
  border: 1px dashed hsla(38, 30%, 30%, 0.35);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  color: hsla(38, 18%, 55%, 0.55);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.5px;
}


/* =============================================================================
   PAGE: roulette.html  (Roulette Table Guide)
   ============================================================================= */

:where(.page-roulette) .page-header {
  padding: 44px 20px 32px;
}

:where(.page-roulette) .page-header h1 {
  font-size: 38px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

:where(.page-roulette) .page-header p {
  font-size: 14px;
  color: hsla(38, 22%, 72%, 0.75);
}

:where(.page-roulette) main {
  padding: 30px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

:where(.page-roulette) .section-title {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 40%, 88%);
  border-bottom: 1px solid hsla(38, 45%, 40%, 0.40);
  font-size: 20px;
  margin: 38px 0 16px;
  padding-bottom: 9px;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

:where(.page-roulette) .card {
  background-color: hsla(26, 28%, 9%, 0.88);
  border-left: 4px solid hsla(38, 62%, 50%, 0.65);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  padding: 22px 26px;
  margin-bottom: 14px;
}

:where(.page-roulette) .card p,
:where(.page-roulette) .card li {
  color: hsl(38, 18%, 80%);
  font-size: 14px;
  line-height: 1.75;
}

:where(.page-roulette) .card ul,
:where(.page-roulette) .card ol {
  padding-left: 20px;
  margin-top: 6px;
}

:where(.page-roulette) .card li {
  margin-bottom: 4px;
}

:where(.page-roulette) .card .label {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 55%, 72%);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

:where(.page-roulette) .config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

:where(.page-roulette) .config-item {
  background-color: hsla(26, 30%, 13%, 0.90);
  border: 1px solid hsla(38, 40%, 30%, 0.30);
  border-radius: 5px;
  padding: 14px 16px;
}

:where(.page-roulette) .config-item .key {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: hsl(38, 60%, 62%);
  font-weight: 600;
  margin-bottom: 4px;
}

:where(.page-roulette) .config-item .val {
  font-size: 14px;
  color: hsl(38, 18%, 88%);
}

:where(.page-roulette) .config-item .desc {
  font-size: 12px;
  color: hsla(38, 15%, 60%, 0.75);
  margin-top: 4px;
  font-style: italic;
  line-height: 1.5;
}

:where(.page-roulette) .steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-top: 4px;
}

:where(.page-roulette) .steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: hsl(38, 18%, 80%);
  font-size: 14px;
  line-height: 1.7;
  padding: 8px 0;
  border-bottom: 1px solid hsla(38, 25%, 25%, 0.20);
}

:where(.page-roulette) .steps li::before {
  content: counter(step);
  min-width: 26px;
  height: 26px;
  background-color: hsla(38, 55%, 28%, 0.55);
  border: 1px solid hsla(38, 60%, 48%, 0.50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  color: hsl(38, 70%, 70%);
  flex-shrink: 0;
  margin-top: 2px;
}

:where(.page-roulette) .note {
  background-color: hsla(38, 55%, 18%, 0.55);
  border: 1px solid hsla(38, 60%, 40%, 0.40);
  border-radius: 5px;
  padding: 12px 16px;
  color: hsl(38, 35%, 78%);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 12px;
}

:where(.page-roulette) .req-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

:where(.page-roulette) .req-badge {
  background-color: hsla(26, 30%, 14%, 0.90);
  border: 1px solid hsla(38, 50%, 35%, 0.45);
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  color: hsl(38, 60%, 72%);
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 1px;
}

:where(.page-roulette) .code-block {
  background-color: hsla(0, 0%, 6%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.45);
  border-radius: 5px;
  padding: 12px 18px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: hsl(38, 60%, 72%);
  margin-top: 10px;
  letter-spacing: 0.5px;
  line-height: 1.8;
}

:where(.page-roulette) .action-list {
  list-style: none;
  padding: 0;
  margin-top: 4px;
}

:where(.page-roulette) .action-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid hsla(38, 25%, 25%, 0.20);
  color: hsl(38, 18%, 80%);
  font-size: 14px;
  line-height: 1.65;
}

:where(.page-roulette) .action-list li:last-child {
  border-bottom: none;
}

:where(.page-roulette) .action-list .action-name {
  min-width: 160px;
  color: hsl(38, 60%, 68%);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* This page never applied the box-sizing reset to ::before / ::after */
:where(.page-roulette) *::before,
:where(.page-roulette) *::after {
  box-sizing: content-box;
}


/* =============================================================================
   PAGE: rules.html  (Server Rules)
   ============================================================================= */

:where(.page-rules) .rule-block.example {
  background-color: hsla(26, 20%, 8%, 0.88);
  border-left: 3px solid hsla(38, 30%, 35%, 0.45);
}

:where(.page-rules) .rule-num {
  color: hsl(38, 72%, 60%);
  font-size: 15px;
  font-weight: bold;
  min-width: 36px;
  flex-shrink: 0;
  padding-top: 1px;
}

:where(.page-rules) .rule-label {
  color: hsl(38, 80%, 65%);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
  font-family: 'Raleway', Georgia, serif;
}

:where(.page-rules) .rule-subsection {
  background-color: hsla(30, 25%, 14%, 0.96);
  color: hsl(38, 40%, 85%);
  font-size: 15px;
  padding: 10px 20px;
  margin-top: 8px;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
  font-family: 'Cinzel', Georgia, serif;
}

:where(.page-rules) .matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 6px;
  margin-top: 4px;
  border-radius: 6px;
  overflow: hidden;
}

:where(.page-rules) .matrix-table thead tr {
  background-color: hsla(26, 28%, 12%, 0.90);
}

:where(.page-rules) .matrix-table thead th {
  color: hsl(38, 55%, 68%);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 16px;
  text-align: left;
  font-weight: 500;
  font-family: 'Raleway', Georgia, serif;
}

:where(.page-rules) .matrix-table tbody tr {
  background-color: hsla(26, 25%, 10%, 0.62);
  border-bottom: 1px solid hsla(38, 25%, 28%, 0.22);
}

:where(.page-rules) .matrix-table tbody tr:hover {
  background-color: hsla(26, 28%, 15%, 0.75);
}

:where(.page-rules) .matrix-table tbody td {
  color: hsla(38, 20%, 82%, 0.88);
  font-size: 14px;
  padding: 10px 16px;
}


/* =============================================================================
   PAGE: staff.html  (Staff)
   ============================================================================= */

:where(.page-staff) main {
  padding: 50px 20px 60px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

:where(.page-staff) .section-label {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: hsla(38, 35%, 60%, 0.65);
  text-align: center;
  margin-bottom: 30px;
}

:where(.page-staff) .roster {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

:where(.page-staff) .staff-card {
  background-color: hsla(26, 28%, 9%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.35);
  border-left: 4px solid hsla(38, 62%, 50%, 0.60);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

:where(.page-staff) .staff-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}

:where(.page-staff) .staff-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid hsla(38, 50%, 42%, 0.50);
  flex-shrink: 0;
}

:where(.page-staff) .staff-info {
  flex: 1;
}

:where(.page-staff) .staff-names {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 20px;
  color: hsl(38, 45%, 85%);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

:where(.page-staff) .staff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:where(.page-staff) .tag {
  font-size: 11px;
  font-family: 'Raleway', Georgia, serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
}

:where(.page-staff) .tag-owner {
  background-color: hsla(38, 70%, 35%, 0.55);
  color: hsl(38, 70%, 85%);
  border: 1px solid hsla(38, 65%, 48%, 0.45);
}

:where(.page-staff) .tag-judge {
  background-color: hsla(12, 80%, 30%, 0.60);
  color: hsl(12, 85%, 82%);
  border: 1px solid hsla(12, 75%, 50%, 0.45);
}

:where(.page-staff) .tag-manager {
  background-color: hsla(220, 50%, 30%, 0.50);
  color: hsl(220, 60%, 85%);
  border: 1px solid hsla(220, 55%, 50%, 0.40);
}

:where(.page-staff) .tag-dev {
  background-color: hsla(140, 40%, 22%, 0.55);
  color: hsl(140, 50%, 78%);
  border: 1px solid hsla(140, 45%, 38%, 0.40);
}

:where(.page-staff) .tag-script {
  background-color: hsla(270, 40%, 28%, 0.55);
  color: hsl(270, 55%, 82%);
  border: 1px solid hsla(270, 45%, 48%, 0.40);
}

:where(.page-staff) .tag-bot {
  background-color: hsla(200, 50%, 25%, 0.55);
  color: hsl(200, 60%, 80%);
  border: 1px solid hsla(200, 55%, 45%, 0.40);
}

:where(.page-staff) .tag-website {
  background-color: hsla(175, 45%, 22%, 0.55);
  color: hsl(175, 55%, 76%);
  border: 1px solid hsla(175, 50%, 40%, 0.40);
}

:where(.page-staff) .tag-ag {
  background-color: hsla(12, 80%, 30%, 0.60);
  color: hsl(12, 85%, 82%);
  border: 1px solid hsla(12, 75%, 50%, 0.45);
}


/* =============================================================================
   PAGE: staffdm.html  (Staff DM Conversations)
   ============================================================================= */

:where(.page-staffdm) #login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: hsl(235, 86%, 65%);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: 'Raleway', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
}

:where(.page-staffdm) #login-btn:hover {
  background-color: hsl(235, 86%, 58%);
}

:where(.page-staffdm) #dashboard {
  gap: 20px;
}

:where(.page-staffdm) .thread-header {
  padding: 16px 20px;
  border-bottom: 1px solid hsla(38, 30%, 30%, 0.30);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

:where(.page-staffdm) .btn-delete {
  background-color: hsla(0, 50%, 28%, 0.55);
  color: hsl(0, 65%, 82%);
  border: 1px solid hsla(0, 50%, 45%, 0.45);
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Raleway', Georgia, serif;
  transition: background-color 0.15s;
}

:where(.page-staffdm) .btn-delete:hover {
  background-color: hsla(0, 55%, 35%, 0.70);
}

:where(.page-staffdm) .btn-close {
  background-color: hsla(38, 45%, 25%, 0.55);
  color: hsl(38, 60%, 82%);
  border: 1px solid hsla(38, 55%, 45%, 0.45);
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Raleway', Georgia, serif;
  transition: background-color 0.15s;
}

:where(.page-staffdm) .btn-close:hover {
  background-color: hsla(38, 50%, 32%, 0.70);
}

:where(.page-staffdm) .msg img.attachment {
  max-width: 100%;
  border-radius: 4px;
  margin-top: 8px;
  display: block;
}

:where(.page-staffdm) .thread-input textarea::placeholder {
  color: hsla(38, 18%, 55%, 0.55);
}

:where(.page-staffdm) .btn-send {
  transition: background-color 0.15s;
}


/* =============================================================================
   PAGE: support.html  (Support)
   ============================================================================= */

:where(.page-support) main {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

:where(.page-support) .intro-block {
  background-color: hsla(26, 28%, 9%, 0.86);
  color: hsla(38, 22%, 82%, 0.88);
  text-align: center;
  padding: 22px 30px;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  border-left: 3px solid hsla(38, 50%, 42%, 0.45);
}

:where(.page-support) .section-title {
  font-family: 'Cinzel', Georgia, serif;
  color: hsl(38, 55%, 90%);
  background-color: hsla(26, 28%, 9%, 0.94);
  border-left: 4px solid hsla(38, 62%, 50%, 0.70);
  font-size: 22px;
  margin: 32px 0 16px;
  padding: 14px 20px;
  letter-spacing: 1px;
  border-radius: 0 4px 4px 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

:where(.page-support) .support-block {
  background-color: hsla(26, 25%, 10%, 0.94);
  padding: 22px 28px;
  margin-bottom: 8px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

:where(.page-support) .support-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

:where(.page-support) .support-block ul li {
  color: hsla(38, 18%, 82%, 0.90);
  font-size: 14.5px;
  line-height: 1.7;
  padding-left: 16px;
  border-left: 2px solid hsla(38, 35%, 35%, 0.35);
}

:where(.page-support) .ticket-cta {
  text-align: center;
  margin: 44px 0 20px;
}

:where(.page-support) .btn-ticket {
  display: inline-block;
  padding: 15px 42px;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background-color 0.2s, transform 0.15s;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Raleway', Georgia, serif;
  font-weight: 500;
  background-color: hsla(35, 60%, 33%, 0.88);
  color: hsl(38, 50%, 92%);
  border: 1px solid hsla(38, 55%, 48%, 0.55);
}

:where(.page-support) .btn-ticket:hover {
  background-color: hsla(35, 65%, 40%, 0.96);
  transform: translateY(-1px);
}


/* =============================================================================
   PAGE: tickets.html  (Submit a Ticket)
   ============================================================================= */

:where(.page-tickets) .tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  margin: 28px auto 30px;
  background-color: hsla(26, 28%, 8%, 0.92);
  border: 1px solid hsla(38, 35%, 28%, 0.40);
  border-radius: 6px;
  overflow: hidden;
  max-width: 700px;
}

:where(.page-tickets) .app-panel {
  display: none;
  max-width: 700px;
  margin: 0 auto 40px;
}

:where(.page-tickets) .notice {
  max-width: 700px;
}


/* =============================================================================
   PAGE: tickets_staff.html  (Staff Ticket Dashboard)
   ============================================================================= */

:where(.page-tickets_staff) main {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

:where(.page-tickets_staff) #user-badge {
  display: none;
  max-width: 1200px;
  margin: 0 auto 18px;
  background-color: hsla(26, 28%, 9%, 0.80);
  border: 1px solid hsla(38, 35%, 28%, 0.30);
  border-radius: 6px;
  padding: 10px 18px;
  align-items: center;
  justify-content: space-between;
}

:where(.page-tickets_staff) .filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

:where(.page-tickets_staff) .section-label {
  padding: 10px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: hsla(38, 45%, 65%, 0.85);
  background-color: hsla(26, 28%, 6%, 0.90);
  border-bottom: 1px solid hsla(38, 25%, 25%, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

:where(.page-tickets_staff) .section-label.section-toggle {
  cursor: pointer;
}

:where(.page-tickets_staff) .section-label.section-toggle:hover {
  background-color: hsla(26, 28%, 10%, 0.95);
}

:where(.page-tickets_staff) .filter-btn {
  background-color: hsla(26, 28%, 9%, 0.80);
  color: hsla(38, 22%, 70%, 0.75);
  border: 1px solid hsla(38, 30%, 30%, 0.30);
  padding: 7px 16px;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Raleway', Georgia, serif;
}

:where(.page-tickets_staff) .filter-btn.active {
  background-color: hsla(35, 55%, 26%, 0.88);
  color: hsl(38, 60%, 85%);
  border-color: hsla(38, 55%, 45%, 0.5);
}

:where(.page-tickets_staff) .claim-badge {
  font-size: 9.5px;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 500;
  background-color: hsla(270, 55%, 28%, 0.65);
  color: hsl(270, 70%, 82%);
  margin-right: 6px;
}

:where(.page-tickets_staff) .thread-header {
  padding: 16px 20px;
  border-bottom: 1px solid hsla(38, 30%, 30%, 0.30);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

:where(.page-tickets_staff) .thread-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

:where(.page-tickets_staff) .btn-small {
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Raleway', Georgia, serif;
  border: 1px solid;
}

:where(.page-tickets_staff) .btn-claim {
  background-color: hsla(270, 45%, 25%, 0.55);
  color: hsl(270, 70%, 82%);
  border-color: hsla(270, 50%, 45%, 0.45);
}

:where(.page-tickets_staff) .btn-claim:hover {
  background-color: hsla(270, 50%, 32%, 0.70);
}

:where(.page-tickets_staff) .btn-close {
  background-color: hsla(0, 50%, 28%, 0.55);
  color: hsl(0, 65%, 82%);
  border-color: hsla(0, 50%, 45%, 0.45);
}

:where(.page-tickets_staff) .btn-close:hover {
  background-color: hsla(0, 55%, 35%, 0.70);
}

:where(.page-tickets_staff) .btn-add {
  background-color: hsla(38, 45%, 25%, 0.55);
  color: hsl(38, 60%, 82%);
  border-color: hsla(38, 55%, 45%, 0.45);
}

:where(.page-tickets_staff) .btn-add:hover {
  background-color: hsla(38, 50%, 32%, 0.70);
}

:where(.page-tickets_staff) .thread-messages {
  max-height: 50vh;
}

:where(.page-tickets_staff) .closed-notice,
:where(.page-tickets_staff) .claimed-notice {
  padding: 14px 20px;
  text-align: center;
  color: hsla(0, 30%, 65%, 0.75);
  font-size: 12.5px;
  font-style: italic;
  border-top: 1px solid hsla(38, 30%, 30%, 0.30);
}

:where(.page-tickets_staff) .add-participant-row {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid hsla(38, 30%, 30%, 0.30);
}

:where(.page-tickets_staff) .add-participant-row input {
  flex: 1;
  background-color: hsla(26, 22%, 14%, 0.85);
  border: 1px solid hsla(38, 30%, 35%, 0.35);
  border-radius: 4px;
  color: hsl(38, 25%, 88%);
  padding: 8px 12px;
  font-size: 12.5px;
  font-family: 'Raleway', Georgia, serif;
}
