.raid-detail-page {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  padding: 30px 0 92px;
  background:
    radial-gradient(ellipse at 88% 6%, rgba(159, 119, 60, .13), transparent 32%),
    radial-gradient(ellipse at 3% 53%, rgba(82, 106, 72, .11), transparent 28%),
    #2c2e29;
}

.raid-detail-page::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(214, 183, 121, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 183, 121, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.raid-detail-page .gd-wrap {
  position: relative;
  z-index: 1;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 34px;
  color: #d8c18c;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.detail-back:hover {
  color: #f2dba5;
  transform: translateX(-3px);
}

.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 8px 0 35px;
  border-bottom: 1px solid rgba(215, 185, 126, .24);
}

.detail-heading-copy {
  min-width: 0;
}

.detail-heading .gd-title {
  max-width: 780px;
  overflow-wrap: anywhere;
}

.detail-difficulty {
  display: inline-flex;
  margin: 17px 0 0;
  padding: 6px 10px;
  color: #e0c482;
  border: 1px solid rgba(215, 185, 126, .3);
  background: rgba(215, 185, 126, .07);
  font: 9px/1.3 "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detail-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 19px 0 0;
  color: #e0c482;
  font: 11px/1.5 "DM Mono", monospace;
  letter-spacing: .025em;
}

.detail-time > span:last-child {
  color: #aaa18e;
  font-size: 9px;
}

.time-mark {
  width: 7px;
  height: 7px;
  border: 1px solid #d5b16e;
  transform: rotate(45deg);
}

.detail-time-pending {
  color: #bdb4a2;
  font-family: "DM Sans", sans-serif;
}

.detail-seal {
  position: relative;
  display: grid;
  width: 118px;
  height: 118px;
  flex: 0 0 118px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: #dfbd73;
  border: 1px solid rgba(214, 176, 101, .46);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(235, 217, 176, .025), inset 0 0 0 5px rgba(235, 217, 176, .035);
  text-align: center;
}

.detail-seal::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(214, 176, 101, .19);
  border-radius: 50%;
  content: "";
}

.detail-seal span {
  font: 600 18px "Playfair Display", Georgia, serif;
  letter-spacing: .12em;
}

.detail-seal i {
  width: 23px;
  height: 1px;
  background: #b99858;
}

.detail-seal small {
  color: #c3b79d;
  font: 8px/1.45 "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.detail-notice {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  gap: 12px 24px;
  margin-top: 22px;
  padding: 15px 18px;
  color: #e6d6ad;
  border: 1px solid rgba(210, 172, 103, .35);
  border-left: 3px solid #c9a45f;
  background: rgba(165, 126, 64, .09);
  font-size: 11px;
  line-height: 1.65;
}

.detail-notice strong {
  color: #f0dfb7;
  font-weight: 700;
}

.detail-notice.is-cancelled {
  color: #e3c6b6;
  border-color: rgba(191, 113, 87, .45);
  border-left-color: #bd7359;
  background: rgba(147, 71, 54, .13);
}

.detail-notice.is-cancelled strong {
  color: #f0c9b8;
}

.detail-description {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  margin: 25px 0 0;
  padding: 21px 0 23px;
  border-bottom: 1px solid rgba(215, 185, 126, .17);
}

.section-eyebrow {
  color: #d5b16e;
  font: 700 9px/1.5 "DM Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.detail-description .section-eyebrow {
  padding-top: 3px;
}

.detail-description p {
  max-width: 760px;
  margin: 0;
  color: #c8beaa;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.roster-summary {
  display: grid;
  grid-template-columns: minmax(150px, .46fr) minmax(0, 1.54fr);
  align-items: center;
  gap: 22px;
  margin: 27px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(215, 185, 126, .23);
  background: linear-gradient(110deg, rgba(113, 130, 83, .12), rgba(255, 244, 219, .025) 58%);
}

.summary-heading {
  display: grid;
  gap: 6px;
}

.summary-heading > span:last-child {
  color: #eee5d0;
  font: 500 13px "Playfair Display", Georgia, serif;
}

.role-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.role-counts div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 90px;
  padding: 7px 9px;
  border-left: 1px solid rgba(215, 185, 126, .35);
}

.role-counts dt {
  color: #bdb4a2;
  font-size: 10px;
}

.role-counts dd {
  margin: 0;
  color: #e4ca8e;
  font: 500 14px "DM Mono", monospace;
}

.role-counts .unknown-count dd {
  color: #d1aa97;
}

.roster-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
  gap: 18px;
}

.roster-panel {
  min-width: 0;
  padding: 22px 23px 18px;
  border: 1px solid rgba(215, 185, 126, .22);
  background: radial-gradient(ellipse at 95% 0%, rgba(168, 129, 68, .08), transparent 42%), rgba(50, 51, 45, .8);
  box-shadow: 0 12px 28px rgba(13, 15, 13, .12);
}

.reserve-panel {
  background: radial-gradient(ellipse at 95% 0%, rgba(103, 120, 83, .12), transparent 42%), rgba(44, 47, 41, .8);
}

.roster-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(215, 185, 126, .2);
}

.roster-panel-heading h2 {
  margin: 5px 0 0;
  color: #f0e6d0;
  font: 500 25px/1.12 "Playfair Display", Georgia, serif;
}

.roster-total {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  color: #e2c785;
  border: 1px solid rgba(215, 185, 126, .34);
  border-radius: 50%;
  font: 10px "DM Mono", monospace;
}

.participant-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.participant-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(215, 185, 126, .12);
}

.participant-row:last-child {
  border-bottom: 0;
}

.class-icon {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid rgba(215, 185, 126, .32);
  background: rgba(255, 244, 219, .05);
}

.class-icon-empty {
  position: relative;
  background: linear-gradient(145deg, rgba(215, 185, 126, .12), rgba(255, 244, 219, .02));
}

.class-icon-empty::before,
.class-icon-empty::after {
  position: absolute;
  top: 18px;
  left: 10px;
  width: 16px;
  height: 1px;
  background: rgba(215, 185, 126, .48);
  content: "";
}

.class-icon-empty::after {
  transform: rotate(90deg);
}

.participant-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.participant-identity strong {
  overflow: hidden;
  color: #eee6d2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.participant-spec,
.participant-note {
  color: #bdb4a2;
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.participant-note {
  color: #d0b879;
  font-style: italic;
}

.role-tag {
  max-width: 120px;
  padding: 5px 7px;
  color: #ddc994;
  border: 1px solid rgba(215, 185, 126, .23);
  background: rgba(215, 185, 126, .055);
  font: 9px/1.25 "DM Mono", monospace;
  text-align: center;
}

.role-unknown {
  color: #bdb4a2;
  border-style: dashed;
}

.is-incomplete .class-icon {
  opacity: .72;
}

.raid-detail-empty {
  display: grid;
  min-height: 120px;
  align-content: center;
  justify-items: center;
  gap: 13px;
  color: #bdb4a2;
  border: 1px dashed rgba(215, 185, 126, .24);
  background: rgba(255, 244, 219, .018);
  text-align: center;
}

.raid-detail-empty p {
  margin: 0;
  font-size: 11px;
}

.empty-rule {
  width: 35px;
  height: 1px;
  background: #c69c5c;
  opacity: .7;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.detail-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 15px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.detail-button:hover {
  transform: translateY(-2px);
}

.detail-button-secondary {
  color: #dfc991;
  border: 1px solid rgba(215, 185, 126, .36);
  background: rgba(255, 244, 219, .035);
}

.detail-button-secondary:hover {
  border-color: rgba(215, 185, 126, .7);
  background: rgba(255, 244, 219, .07);
}

.detail-button-primary {
  margin-left: auto;
  color: #302f28;
  border: 1px solid #d0aa68;
  background: #d0aa68;
}

.detail-button-primary:hover {
  background: #e0c184;
}

.detail-refresh {
  padding: 10px 8px;
  color: #c8beaa;
  font-size: 10px;
  text-decoration-color: rgba(200, 190, 170, .5);
  text-underline-offset: 3px;
}

.detail-refresh:hover {
  color: #f0e6d0;
}

.detail-footnote {
  margin: 13px 0 0;
  color: #938b79;
  font-size: 9px;
  line-height: 1.6;
}

.detail-state {
  max-width: 700px;
  min-height: 430px;
  margin: 15px auto 0;
  padding: 54px clamp(24px, 7vw, 78px);
  border: 1px solid rgba(215, 185, 126, .24);
  background: radial-gradient(ellipse at 80% 0%, rgba(159, 119, 60, .1), transparent 44%), rgba(53, 53, 46, .82);
  box-shadow: 0 22px 55px rgba(13, 15, 13, .17);
}

.state-index {
  display: block;
  margin: 43px 0 13px;
  color: #d5b16e;
  font: 11px "DM Mono", monospace;
}

.detail-state .gd-title {
  font-size: clamp(34px, 5vw, 55px);
}

.detail-state > p:not(.gd-kicker) {
  max-width: 460px;
  margin: 21px 0 24px;
  color: #c8beaa;
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 760px) {
  .raid-detail-page {
    padding: 24px 0 65px;
  }

  .raid-detail-page .gd-wrap {
    width: min(100% - 36px, 600px);
  }

  .detail-back {
    margin-bottom: 25px;
  }

  .detail-heading {
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 26px;
  }

  .detail-seal {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
    gap: 5px;
  }

  .detail-seal span {
    font-size: 14px;
  }

  .detail-seal i {
    width: 18px;
  }

  .detail-seal small {
    font-size: 6px;
  }

  .detail-notice {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-description {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .roster-summary {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .role-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-counts div {
    justify-content: space-between;
    min-width: 0;
  }

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

  .detail-button-primary {
    margin-left: 0;
  }
}

@media (max-width: 440px) {
  .detail-heading {
    gap: 12px;
  }

  .detail-heading .gd-title {
    font-size: clamp(34px, 9vw, 43px);
  }

  .detail-seal {
    width: 65px;
    height: 65px;
    flex-basis: 65px;
    margin-top: 16px;
  }

  .detail-seal small {
    display: none;
  }

  .detail-seal i {
    margin-top: 2px;
  }

  .roster-panel {
    padding: 18px 14px 14px;
  }

  .participant-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .class-icon {
    width: 34px;
    height: 34px;
  }

  .role-tag {
    max-width: 88px;
    padding: 4px 5px;
    font-size: 8px;
  }

  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-button,
  .detail-refresh {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .detail-state {
    min-height: 380px;
    padding: 36px 24px;
  }
}
