:root {
  --bg-deep: #16090b;
  --bg-warm: #451116;
  --ink: #201712;
  --wood-1: #3d2c29;
  --wood-2: #241915;
  --gold: #caa65a;
  --gold-strong: #f0cf7a;
  --paper: #ece3cf;
  --paper-edge: #d5c7a7;
  --text-dark: #352920;
  --text-light: #f1e5cf;
  --muted: #b29e83;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text-light);
  font-family: Verdana, Geneva, sans-serif;
  line-height: 1.45;
  text-shadow: none;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 166, 84, 0.52) 0, rgba(255, 166, 84, 0.18) 26%, rgba(40, 8, 10, 0) 52%),
    radial-gradient(circle at 50% 60%, #5f1920 0, #2e0f14 36%, #16090b 74%);
}

.backdrop {
  position: fixed;
  inset: 0;
  background: url("../img/texture-dirt.jpg") center/cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.14;
  pointer-events: none;
  z-index: -2;
}

.wrap {
  width: min(1180px, 96vw);
  margin: 0 auto;
}

.site-header {
  display: contents;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 10px 10px 0 0;
  background:
    linear-gradient(180deg, rgba(86, 57, 42, 0.96), rgba(35, 23, 18, 0.98)),
    linear-gradient(90deg, rgba(255, 211, 117, 0.08), rgba(0, 0, 0, 0));
  box-shadow: 0 26px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 220, 150, 0.22);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px) saturate(0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold-strong);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.main-nav a {
  text-decoration: none;
  color: #f6e0ad;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.22);
}



a,
button,
.panel a,
.panel button,
.panel h2,
.panel h3,
.panel p,
.panel span,
.panel strong,
.hero-cta,
.blog-filter-chip {
  text-shadow: none !important;
}

.main-nav a:hover,
.main-nav a.active {
  color: #1d150d;
  background: linear-gradient(180deg, #f3cf81, #b98d41);
  border-color: rgba(0, 0, 0, 0.32);
}

.auth-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 190px;
  min-width: 190px;
  color: #ffeec4;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(58, 38, 28, 0.94), rgba(31, 21, 16, 0.96));
  border: 1px solid rgba(255, 214, 130, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.12);
  text-shadow:
    -0.04em -0.04em 0 rgba(11, 6, 4, 0.52),
    0.04em -0.04em 0 rgba(11, 6, 4, 0.52),
    -0.04em 0.04em 0 rgba(11, 6, 4, 0.52),
    0.04em 0.04em 0 rgba(11, 6, 4, 0.52);
  cursor: pointer;
}

.account-trigger-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.account-trigger-copy-link {
  cursor: pointer;
}

.account-trigger-copy-link:focus-visible .account-trigger-text {
  text-decoration: underline;
}

.account-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 215, 142, 0.08);
  color: var(--gold-strong);
  font-size: 1rem;
}

.account-trigger-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-trigger-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--account-class-color, #fff0cc);
  font-weight: 700;
}

.account-trigger-subtext {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 238, 196, 0.68);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-trigger-caret {
  font-size: 0.7rem;
  color: rgba(255, 238, 196, 0.7);
  margin-left: auto;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  display: none;
  background: linear-gradient(180deg, rgba(50, 33, 25, 0.98), rgba(28, 19, 15, 0.98));
  border: 1px solid rgba(255, 214, 130, 0.22);
  border-radius: 8px;
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.45);
  z-index: 25;
}

.account-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 10px;
}

.account-menu.open .account-dropdown {
  display: grid;
  gap: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .account-menu:hover .account-dropdown,
  .account-menu:focus-within .account-dropdown {
    display: grid;
    gap: 6px;
  }
}

.account-dropdown-link {
  display: block;
  text-decoration: none;
  color: #2a1d0f;
  background: linear-gradient(180deg, #f1cc78, #bd8d3f);
  border: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 7px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 233, 168, 0.8), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.account-dropdown-link.danger {
  background: linear-gradient(180deg, #c45656, #7f2121);
  color: #fae6e6;
}

.status-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.status-pill.ok {
  background: #8ac170;
  color: #17290f;
}

.status-pill.warn {
  background: #e0b86a;
  color: #31200d;
}

.btn-link,
.hero-cta {
  display: inline-block;
  text-decoration: none;
  color: #2a1d0f;
  background: linear-gradient(180deg, #f1cc78, #bd8d3f);
  border: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 7px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 233, 168, 0.8), 0 4px 10px rgba(0, 0, 0, 0.35);
  text-shadow:
    -0.04em -0.04em 0 rgba(82, 56, 23, 0.34),
    0.04em -0.04em 0 rgba(82, 56, 23, 0.34),
    -0.04em 0.04em 0 rgba(82, 56, 23, 0.34),
    0.04em 0.04em 0 rgba(82, 56, 23, 0.34);
}

.btn-link.danger {
  background: linear-gradient(180deg, #c45656, #7f2121);
  color: #fae6e6;
}

.hero-cta.danger {
  background: linear-gradient(180deg, #c45656, #7f2121);
  color: #fae6e6;
}

.blizzard-login {
  position: relative;
  color: #eef6ff;
  background:
    linear-gradient(180deg, #2e7fe8, #0d4fae 58%, #083b85);
  border-color: rgba(4, 18, 48, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(176, 214, 255, 0.72),
    inset 0 -1px 0 rgba(6, 28, 74, 0.55),
    0 6px 14px rgba(4, 20, 56, 0.38);
  text-shadow: 0 1px 0 rgba(3, 14, 40, 0.85);
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
}

.blizzard-login:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.blizzard-login:focus-visible {
  outline: 2px solid rgba(143, 201, 255, 0.95);
  outline-offset: 2px;
}

.blizzard-login i {
  margin-right: 6px;
}

.blizzard-login.is-loading,
.blizzard-login[aria-disabled="true"],
.js-auth-action.is-loading,
.js-auth-action[aria-disabled="true"] {
  pointer-events: none;
  color: #d9dde5;
  background: linear-gradient(180deg, #7d8795, #596271 58%, #444c58);
  border-color: rgba(34, 40, 48, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 10px rgba(0, 0, 0, 0.24);
  text-shadow: none;
  transform: none;
  filter: none;
  opacity: 0.92;
}

.blizzard-login-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: blizzard-login-spin 0.75s linear infinite;
}

@keyframes blizzard-login-spin {
  to {
    transform: rotate(360deg);
  }
}

.menu-toggle {
  display: none;
  color: var(--text-light);
  border: 1px solid rgba(255, 215, 135, 0.35);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  padding: 8px 10px;
}

.hero {
  min-height: 330px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background:
    linear-gradient(180deg, rgba(15, 10, 10, 0.62), rgba(18, 12, 10, 0.72)),
    var(--hero) center top/cover no-repeat;
  box-shadow: 0 32px 45px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(14, 8, 8, 0), rgba(14, 8, 8, 0.92));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 34px 30px;
}

.hero-logo {
  display: block;
  width: clamp(92px, 14vw, 140px);
  height: auto;
  margin: 0 0 16px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.42));
}

.kicker {
  margin: 0;
  color: #f8d88f;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 8px 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: #fff1cf;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero p {
  margin: 0;
  color: #efdec0;
}

.layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.65);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.45);
}

.panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.news-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 238, 0.93), rgba(241, 230, 204, 0.96)),
    url("../img/texture-dirt.jpg") center/cover no-repeat;
  color: var(--text-dark);
  border-right: 1px solid rgba(109, 78, 48, 0.25);
  text-shadow: none;
}

.side-panel {
  background: linear-gradient(180deg, #2d1b22, #21141a 65%, #1b1116);
  color: var(--text-light);
  text-shadow: none;
}

.side-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.news-panel .panel-head {
  background: linear-gradient(180deg, rgba(236, 223, 191, 0.92), rgba(220, 204, 169, 0.92));
}

.side-panel .panel-head {
  border-bottom-color: rgba(255, 210, 124, 0.18);
}

.panel-head h2 {
  margin: 0;
  font-size: 1.12rem;
  color: inherit;
}

.panel-head span {
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.8;
}

.news-grid {
  display: grid;
  gap: 0;
}

.guild-activity-feed {
  display: grid;
  gap: 10px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(91, 63, 39, 0.2);
  background: rgba(255, 252, 245, 0.3);
}

.guild-activity-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(77, 55, 37, 0.18);
  border-left: 4px solid var(--class-color, #caa65a);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.58);
}

.guild-activity-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.guild-activity-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(58, 40, 26, 0.34);
}

.guild-activity-avatar.fallback {
  background: linear-gradient(180deg, #76573f, #463228);
}

.guild-activity-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #7b6957;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guild-activity-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(64, 45, 28, 0.1);
  color: #8a5a2f;
  font-weight: 700;
}

.guild-activity-card h3 {
  margin: 0;
  color: #2d2018;
  font-size: 1rem;
}

.guild-activity-card p {
  margin: 0;
  color: #4a3b2c;
}

.guild-activity-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.guild-activity-feed-compact {
  gap: 8px;
  padding: 12px;
}

.guild-activity-card-compact {
  gap: 6px;
  padding: 12px;
  border-color: rgba(255, 214, 130, 0.14);
  background: linear-gradient(180deg, rgba(46, 30, 36, 0.96), rgba(28, 18, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.08);
}

.guild-activity-card-link:hover .guild-activity-card-compact {
  background: linear-gradient(180deg, rgba(57, 37, 44, 0.96), rgba(33, 21, 26, 0.98));
  border-color: rgba(255, 214, 130, 0.22);
  transform: translateY(-1px);
}

.guild-activity-card-compact .guild-activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.guild-activity-card-compact .guild-activity-meta {
  font-size: 0.72rem;
  color: #bca98b;
}

.guild-activity-card-compact h3 {
  font-size: 0.9rem;
  line-height: 1.28;
  color: #f0e3c7;
}

.guild-activity-card-compact p {
  font-size: 0.82rem;
  color: #cbb697;
}

.guild-activity-link {
  color: #8a5a2f;
  font-weight: 700;
  text-decoration: none;
}

.guild-activity-link:hover {
  color: #c28b3d;
}

.guild-activity-more {
  margin: 2px 4px 0;
  text-align: right;
}

.guild-activity-card-compact .guild-activity-tag {
  background: rgba(255, 214, 130, 0.12);
  color: #f0cf87;
}

.guild-activity-name {
  font-weight: 700;
}

.guild-activity-realm,
.guild-activity-separator {
  color: #cbb697;
}

.guild-activity-feed-page {
  gap: 12px;
}

.news-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(91, 63, 39, 0.2);
  background: rgba(255, 252, 245, 0.36);
}

.news-card img {
  width: 128px;
  height: 88px;
  object-fit: cover;
  border: 1px solid rgba(95, 66, 38, 0.42);
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.news-card-image-fallback {
  width: 128px;
  height: 88px;
  border: 1px solid rgba(95, 66, 38, 0.28);
  border-radius: 4px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 208, 122, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(45, 20, 16, 0.95), rgba(109, 69, 33, 0.92));
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.lazy-media {
  transform: translateZ(0) scale(1);
  transition: filter 320ms ease, opacity 320ms ease, transform 320ms ease;
}

.lazy-media.is-pending {
  filter: blur(12px);
  opacity: 0.72;
  transform: translateZ(0) scale(1.02);
}

.lazy-media.is-ready {
  filter: blur(0);
  opacity: 1;
  transform: translateZ(0) scale(1);
}

.news-copy {
  padding-right: 6px;
}

.news-tag {
  margin: 0;
  color: #8a5a2f;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-copy h3 {
  margin: 4px 0;
  font-size: 1.02rem;
  color: #2d2018;
}

.news-copy p {
  margin: 0;
  color: #4a3b2c;
}

.news-copy time {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  color: #755f4a;
}

.news-link-row {
  margin-top: 10px;
}

.news-link {
  color: #8a5a2f;
  font-weight: 700;
  text-decoration: none;
}

.news-link:hover {
  color: #c28b3d;
}

.ext-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.ext-item {
  border: 1px solid rgba(255, 219, 145, 0.16);
  background: linear-gradient(180deg, rgba(64, 42, 51, 0.82), rgba(36, 24, 30, 0.86));
  border-radius: 8px;
  padding: 10px;
}

.ext-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.ext-item h3 {
  margin: 0;
  font-size: 0.92rem;
  color: #f7e5be;
}

.ext-top span {
  color: #26190c;
  background: linear-gradient(180deg, #f3cf82, #b7873c);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  font-size: 0.66rem;
  text-transform: uppercase;
  padding: 3px 7px;
}

.ext-item p {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: #cab79b;
}

.quick-panels {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-card {
  border: 1px solid rgba(255, 211, 123, 0.22);
  border-radius: 9px;
  padding: 15px;
  background: linear-gradient(180deg, rgba(56, 33, 39, 0.92), rgba(26, 16, 21, 0.95));
}

.quick-card h3 {
  margin: 0 0 8px;
  color: #f0cf87;
  font-size: 1rem;
}

.quick-card p {
  margin: 0;
  color: #cdb799;
}

.site-footer {
  padding: 20px 0 36px;
  text-align: center;
  color: #b89c81;
  font-size: 0.8rem;
}

.full-width {
  grid-column: 1 / -1;
}

.flash {
  margin: 0;
  padding: 11px 14px;
  background: linear-gradient(180deg, rgba(90, 54, 36, 0.95), rgba(53, 33, 24, 0.96));
  border-bottom: 1px solid rgba(240, 199, 121, 0.3);
  color: #f6e6c6;
}

.profile-page {
  padding-top: 24px;
  padding-bottom: 28px;
  display: grid;
  gap: 12px;
}

.profile-head,
.profile-card {
  border: 1px solid rgba(0, 0, 0, 0.62);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(233, 220, 190, 0.95), rgba(220, 204, 170, 0.95));
  color: #2e231c;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  padding: 16px;
}

.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-head h1,
.profile-card h2 {
  margin: 0;
}

.profile-card p {
  margin: 10px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .auth-box {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

  .news-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(109, 78, 48, 0.25);
  }

  .quick-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    margin-top: 6px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 280px;
  }

  .hero-content {
    padding: 22px 18px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card img {
    width: 100%;
    height: 170px;
    margin-bottom: 8px;
  }
}

.character-list {
  display: grid;
  gap: 12px;
}

.realm-character-tools {
  padding: 0 16px 12px;
}

.realm-character-search {
  display: grid;
  gap: 6px;
  max-width: 420px;
}

.realm-character-search span {
  color: #cdb58b;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.realm-character-search input {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 130, 0.26);
  background: rgba(14, 10, 11, 0.84);
  color: #ead8b1;
  padding: 0 12px;
  font: inherit;
}

.character-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.character-list-loading {
  opacity: 0.9;
}

.character-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(77, 55, 37, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.45);
}

.realm-character-link {
  text-decoration: none;
  color: inherit;
  border-left: 3px solid var(--class-color, rgba(77, 55, 37, 0.24));
  background: linear-gradient(180deg, rgba(23, 14, 15, 0.94), rgba(13, 8, 9, 0.95));
  border-color: rgba(255, 210, 130, 0.15);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.realm-character-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(29, 17, 18, 0.95), rgba(16, 10, 11, 0.96));
  border-left-color: var(--class-color, rgba(77, 55, 37, 0.42));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.realm-character-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 1120px) {
  .realm-character-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1520px) {
  .realm-character-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.realm-character-copy {
  display: grid;
  gap: 4px;
}

.realm-character-name {
  display: block;
  margin: 0;
  color: var(--class-color, #f0cf87);
  font-size: 1.02rem;
  line-height: 1.2;
}

.realm-character-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #b7a282;
  font-size: 0.84rem;
}

.realm-character-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.realm-character-meta i {
  color: #d1b484;
  font-size: 0.72rem;
}

.realm-character-meta-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255, 210, 130, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.character-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.character-main h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.character-main p {
  margin: 2px 0;
  color: #5b4938;
  font-size: 0.86rem;
}

.character-avatar {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(58, 40, 26, 0.4);
}

.character-avatar.fallback {
  background: linear-gradient(180deg, #76573f, #463228);
}

.character-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.realm-character-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px 4px;
}

.realm-page-status {
  color: #c8b18a;
  font-size: 0.82rem;
}

.realm-page-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.realm-page-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 130, 0.3);
  background: rgba(20, 13, 13, 0.9);
  color: #e4cda3;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.realm-page-btn.is-active {
  background: linear-gradient(180deg, rgba(244, 225, 174, 0.96), rgba(213, 180, 120, 0.95));
  color: #402a14;
  border-color: rgba(180, 136, 72, 0.45);
}

.realm-page-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.character-empty-state {
  padding: 16px;
  border: 1px solid rgba(77, 55, 37, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.52);
}

.character-detail-view {
  padding: 16px;
}

.character-detail-card {
  display: grid;
  gap: 16px;
}

.character-detail-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(77, 55, 37, 0.22);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.52);
}

.character-detail-header h2 {
  margin: 0 0 6px;
  color: #2d2018;
}

.character-detail-header p {
  margin: 4px 0 0;
  color: #5b4938;
}

.character-detail-title {
  color: #8a5a2f;
  font-weight: 700;
}

.character-detail-avatar {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(58, 40, 26, 0.4);
}

.character-detail-media {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(77, 55, 37, 0.22);
}

.character-detail-media img {
  display: block;
  width: 100%;
  height: auto;
}

.character-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.character-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.character-stat-pill {
  padding: 14px 16px;
  border: 1px solid rgba(77, 55, 37, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.6), rgba(240, 229, 204, 0.62));
}

.character-stat-pill span {
  display: block;
  color: #8a5a2f;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.character-stat-pill strong {
  display: block;
  margin-top: 6px;
  color: #2d2018;
  font-size: 1.05rem;
}

.character-detail-panel {
  padding: 16px;
  border: 1px solid rgba(77, 55, 37, 0.22);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.52);
}

.character-detail-panel h3 {
  margin: 0 0 10px;
  color: #2d2018;
}

.character-detail-panel p {
  margin: 6px 0 0;
  color: #5b4938;
}

.character-empty-state h3 {
  margin: 0 0 8px;
  color: #2d2018;
}

.character-empty-state p {
  margin: 0;
  color: #5b4938;
}

.character-error-state {
  border-color: rgba(196, 86, 86, 0.28);
  background: rgba(255, 240, 240, 0.66);
}

.character-loading-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  border-color: rgba(255, 210, 130, 0.3);
  background: linear-gradient(180deg, rgba(28, 17, 13, 0.92), rgba(12, 9, 9, 0.94));
}

.character-loading-state h3,
.character-loading-state p {
  color: #f2dfbb;
}

.character-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 210, 130, 0.2);
  border-top-color: #f0cf87;
  animation: character-spin 900ms linear infinite;
}

.character-loading-queue {
  color: #d8b67c;
  font-size: 0.86rem;
}

@keyframes character-spin {
  to {
    transform: rotate(360deg);
  }
}

.armory-page-hero {
  min-height: 380px;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.armory-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, color-mix(in srgb, var(--class-color, #caa65a) 22%, transparent), transparent 28%),
    linear-gradient(90deg, rgba(4, 5, 10, 0.88), rgba(6, 8, 14, 0.42) 48%, rgba(12, 8, 8, 0.82)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.armory-page-hero .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  max-width: min(58%, 700px);
  padding-top: 44px;
  padding-bottom: 30px;
}

.armory-page-hero h1 {
  color: var(--class-color, #fff3d5);
  margin: 0;
  font-size: clamp(1.7rem, 3.9vw, 2.55rem);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.armory-hero-copy {
  display: grid;
  gap: 18px;
  align-content: end;
  width: min(100%, 560px);
}

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

.armory-hero-title {
  margin: 0;
  color: #f0ddb4;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.armory-hero-title.is-append {
  color: #e7d19d;
}

.armory-hero-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.armory-hero-row {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.armory-hero-label {
  color: rgba(247, 227, 190, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.armory-hero-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff2d5;
  font-size: 0.98rem;
  font-weight: 700;
}

.armory-hero-value span,
.armory-hero-value a {
  min-width: 0;
}

.armory-hero-icon {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 220, 150, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.armory-hero-link {
  color: #f0cf87;
  text-decoration: none;
}

.armory-hero-link:hover {
  color: #ffe0a4;
}

.armory-hero-portrait {
  position: absolute;
  right: -138px;
  bottom: -164px;
  z-index: 1;
  width: 580px;
  height: 680px;
  pointer-events: none;
}

.armory-hero-render-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.armory-hero-render-shell::before {
  content: "";
  position: absolute;
  inset: 10% 16% 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(210, 160, 78, 0.24) 0, rgba(210, 160, 78, 0.1) 38%, rgba(210, 160, 78, 0) 72%);
  filter: blur(18px);
  animation: armoryHeroPulse 6.2s ease-in-out infinite;
}

.armory-hero-render-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 196, 92, 0.16), transparent 26%),
    radial-gradient(circle at 50% 62%, rgba(30, 18, 10, 0.38), transparent 62%),
    linear-gradient(180deg, rgba(12, 8, 6, 0.18), rgba(12, 8, 6, 0) 26%, rgba(12, 8, 6, 0.26) 100%);
  opacity: 0.8;
  animation: armoryHeroSweep 9.5s ease-in-out infinite alternate;
}

.armory-hero-render {
  width: 142%;
  height: 142%;
  object-fit: contain;
  object-position: bottom center;
  filter:
    drop-shadow(0 26px 36px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 18px rgba(216, 164, 73, 0.18));
  transform-origin: center bottom;
  animation: armoryHeroFloat 5.8s ease-in-out infinite;
}

.armory-hero-render-shell-fallback {
  align-items: center;
}

.armory-hero-render-fallback {
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 215, 142, 0.18);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

@keyframes armoryHeroFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.012);
  }
}

@keyframes armoryHeroPulse {
  0%,
  100% {
    opacity: 0.56;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.04);
  }
}

@keyframes armoryHeroSweep {
  0% {
    transform: translateX(-10%) scale(0.985);
    opacity: 0.68;
  }

  100% {
    transform: translateX(10%) scale(1.015);
    opacity: 0.88;
  }
}

.armory-layout {
  grid-template-columns: 1fr;
}

.armory-main-panel {
  background:
    linear-gradient(180deg, rgba(26, 12, 10, 0.96), rgba(20, 8, 8, 0.98)),
    url("../img/texture-dirt.jpg") center/cover no-repeat;
  color: #f3e8d2;
  border-right: 1px solid rgba(255, 206, 120, 0.12);
}

.armory-main-panel .panel-head {
  background: linear-gradient(180deg, rgba(68, 19, 13, 0.92), rgba(36, 10, 9, 0.94));
  border-bottom-color: rgba(255, 206, 120, 0.18);
}

.character-armory-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 130, 0.18);
  border-left: 4px solid var(--class-color, #caa65a);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(42, 20, 16, 0.94), rgba(25, 11, 11, 0.96)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--class-color, #caa65a) 22%, transparent) 0, transparent 42%);
}

.character-armory-banner {
  position: absolute;
  inset: 0 0 auto;
  height: 72px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), color-mix(in srgb, var(--class-color, #caa65a) 18%, transparent), rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0));
  opacity: 0.95;
}

.character-armory-main {
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

.character-armory-portrait {
  position: relative;
  flex-shrink: 0;
}

.character-armory-portrait::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid color-mix(in srgb, var(--class-color, #caa65a) 48%, rgba(255,255,255,0.18));
  border-radius: 10px;
  pointer-events: none;
}

.character-armory-card .character-avatar {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  border-color: rgba(255, 215, 142, 0.25);
}

.character-armory-copy {
  display: grid;
  gap: 6px;
}

.character-armory-kicker {
  margin: 0;
  color: #f0cf87;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.character-armory-card h3 {
  margin: 0;
  color: #fff0c7;
  font-size: 1.4rem;
}

.character-armory-card .character-main p {
  color: #cdb799;
}

.character-armory-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.character-armory-pills span {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 215, 142, 0.12);
  color: #f0e0be;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.character-armory-actions {
  position: relative;
  z-index: 1;
}

.character-main-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 140, 0.2);
  background: rgba(255, 216, 140, 0.08);
  color: #f0cf87;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.armory-detail {
  gap: 0;
  border: 1px solid rgba(255, 210, 130, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 12, 10, 0.96), rgba(20, 8, 8, 0.98));
}

.armory-detail-title-row {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 210, 130, 0.12);
  color: #f0cf87;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, rgba(44, 18, 12, 0.86), rgba(23, 9, 10, 0.92));
}

.armory-detail-hero {
  position: relative;
  min-height: 340px;
  background:
    linear-gradient(90deg, rgba(5, 7, 14, 0.8), rgba(8, 12, 18, 0.38) 48%, rgba(12, 8, 8, 0.78)),
    var(--armory-hero, radial-gradient(circle at 72% 34%, rgba(74, 156, 255, 0.28), transparent 24%), radial-gradient(circle at 42% 60%, rgba(90, 18, 18, 0.46), transparent 34%), linear-gradient(180deg, #081222, #10151e 55%, #130809));
  background-size: cover;
  background-position: center;
}

.armory-detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, color-mix(in srgb, var(--class-color, #caa65a) 24%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.6));
}

.armory-detail-header {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  align-items: flex-end;
  padding: 28px;
  min-height: 340px;
  border: 0;
  background: transparent;
}

.armory-detail-identity {
  max-width: 560px;
}

.armory-detail-kicker {
  margin: 0 0 8px;
  color: #f0cf87;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.armory-detail .character-detail-header h2 {
  margin: 0 0 8px;
  color: #fff3d5;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.armory-detail .character-detail-header p {
  color: #ead8b8;
}

.armory-detail-profile-shot {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.armory-detail .character-detail-avatar {
  width: 118px;
  height: 118px;
  border-radius: 14px;
  box-shadow: 0 18px 26px rgba(0, 0, 0, 0.34);
}

.armory-detail-score {
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 210, 130, 0.22);
  border-radius: 12px;
  background: rgba(16, 11, 11, 0.72);
  text-align: center;
}

.armory-detail-score strong {
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.armory-detail-score span {
  color: #f0cf87;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.armory-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255, 210, 130, 0.12);
  border-bottom: 1px solid rgba(255, 210, 130, 0.12);
  background: linear-gradient(180deg, rgba(43, 19, 12, 0.96), rgba(22, 10, 10, 0.98));
}

.armory-detail-tabs span {
  padding: 14px 18px;
  color: #e8d7b6;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255, 210, 130, 0.1);
}

.armory-detail-tabs .is-active {
  color: #26190a;
  background: linear-gradient(180deg, #f0cc78, #bb8b3c);
  text-shadow: none;
}

.armory-stat-strip {
  padding: 18px;
}

.armory-detail .character-stat-pill,
.armory-detail-panel {
  border-color: rgba(255, 210, 130, 0.14);
  background: linear-gradient(180deg, rgba(37, 18, 15, 0.9), rgba(22, 11, 12, 0.92));
}

.armory-detail .character-stat-pill span,
.armory-detail-panel h3 {
  color: #f0cf87;
}

.armory-detail .character-stat-pill strong,
.armory-summary-list strong {
  color: #fff0c7;
}

.armory-detail-grid {
  padding: 0 18px 18px;
  grid-template-columns: 1.35fr 1fr 1fr;
}

.armory-detail-panel-wide {
  grid-column: span 1;
}

.armory-debug-panel {
  margin: 0 18px 18px;
}

.armory-debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.armory-debug-content.is-hidden {
  display: none;
}

.api-toggle-btn {
  appearance: none;
  border: 1px solid rgba(255, 210, 130, 0.34);
  background: linear-gradient(180deg, rgba(34, 24, 18, 0.92), rgba(18, 12, 12, 0.96));
  color: #f0cf87;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.api-toggle-btn:hover {
  border-color: rgba(255, 210, 130, 0.56);
  color: #ffe7b1;
}

.armory-debug-json {
  margin: 0;
  padding: 16px 18px;
  max-height: 480px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 130, 0.12);
  background: rgba(7, 8, 14, 0.82);
  color: #d9f1ff;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.armory-summary-list {
  display: grid;
  gap: 10px;
}

.armory-summary-list p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 210, 130, 0.08);
  color: #d7c4a3;
}

.armory-summary-list p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.armory-summary-list span {
  text-align: right;
  color: #fff0c7;
}

.armory-equipment-layout-panel {
  margin: 0 18px 18px;
  background:
    radial-gradient(circle at 50% 34%, rgba(58, 120, 154, 0.18), rgba(14, 11, 14, 0.9) 52%),
    linear-gradient(180deg, rgba(25, 13, 12, 0.9), rgba(11, 7, 8, 0.94));
}

.armory-equipment-headline {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.armory-equipment-headline p {
  margin: 0;
  color: #f3e7cc;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.armory-equipment-headline p span {
  display: block;
  margin-top: 2px;
  color: #d9c6a2;
  font-size: 0.8rem;
  font-weight: 600;
}

.armory-equipment-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 360px) minmax(260px, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 620px;
}

.armory-equipment-column {
  display: grid;
  gap: 8px;
}

.armory-equipment-center {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 210, 130, 0.16);
  border-radius: 12px;
  padding: 0;
  background: radial-gradient(circle at 50% 24%, rgba(55, 105, 132, 0.42), rgba(13, 16, 24, 0.9) 64%);
  overflow: hidden;
  min-height: 620px;
  align-self: stretch;
}

.armory-equipment-render {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.18);
  transform-origin: center bottom;
}

.armory-equipment-render-fallback {
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 10px;
  color: #f0cf87;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(32, 18, 14, 0.82), rgba(16, 11, 12, 0.88));
}

.armory-slot-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid rgba(114, 177, 210, 0.22);
  background: linear-gradient(180deg, rgba(39, 70, 90, 0.2), rgba(12, 8, 12, 0.55));
}

.armory-slot-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.armory-slot-card-link:hover {
  border-color: color-mix(in srgb, var(--item-quality-color, #f0cf87) 72%, rgba(114, 177, 210, 0.24));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.armory-slot-spacer {
  min-height: 54px;
}

.armory-slot-media {
  width: 42px;
  height: 42px;
}

.armory-slot-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--item-quality-color, #f0cf87) 70%, rgba(255, 210, 130, 0.18));
}

.armory-slot-icon-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(70, 46, 31, 0.92), rgba(40, 26, 22, 0.96));
  color: #f5ddaa;
  font-weight: 700;
}

.armory-slot-copy {
  min-width: 0;
}

.armory-slot-name,
.armory-slot-meta {
  margin: 0;
}

.armory-slot-name {
  color: var(--item-quality-color, #f0cf87);
  font-size: 0.89rem;
  line-height: 1.22;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.armory-slot-meta {
  margin-top: 2px;
  color: var(--item-quality-color, #f0cf87);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.armory-slot-card-right {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.armory-slot-card-right .armory-slot-media {
  order: 2;
}

.armory-slot-card-right .armory-slot-copy {
  text-align: right;
}

.armory-equipment-bottom {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(76%, 680px);
  margin-left: auto;
  margin-right: auto;
}

.armory-empty-slot {
  margin: 0;
  color: #bda17b;
  font-size: 0.82rem;
}

.guild-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.guild-list-page {
  padding: 16px;
  gap: 12px;
}

.guild-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}

.guild-page-layout {
  grid-template-columns: minmax(0, 2.3fr) minmax(320px, 0.9fr);
}

.guild-member {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 142, 0.12);
  background: linear-gradient(180deg, rgba(58, 37, 44, 0.82), rgba(31, 20, 26, 0.9));
}

.guild-member-link {
  text-decoration: none;
  color: inherit;
  border-left: 3px solid var(--class-color, rgba(255, 215, 142, 0.18));
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.guild-member-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(70, 44, 52, 0.9), rgba(36, 23, 29, 0.94));
}

.guild-member-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guild-member-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.guild-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 142, 0.18);
}

.guild-avatar-fallback {
  background: linear-gradient(180deg, rgba(118, 87, 63, 0.96), rgba(70, 50, 40, 0.96));
}

.guild-member strong {
  display: block;
  font-size: 0.9rem;
}

.guild-member span {
  color: #bfa88b;
  font-size: 0.8rem;
}

.guild-rank {
  color: #f0cf87;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guild-class {
  color: var(--class-color, #d9c6a2);
  font-size: 0.78rem;
}

.guild-member-error {
  border-color: rgba(196, 86, 86, 0.28);
  background: linear-gradient(180deg, rgba(85, 34, 38, 0.88), rgba(48, 17, 21, 0.92));
}

@media (max-width: 760px) {
  .character-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .character-item,
  .guild-member {
    flex-direction: column;
    align-items: flex-start;
  }

  .realm-character-link .character-actions {
    width: auto;
  }

  .guild-member-meta {
    justify-items: start;
    text-align: left;
  }

  .guild-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .character-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .character-detail-grid {
    grid-template-columns: 1fr;
  }

  .character-stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .armory-layout {
    grid-template-columns: 1fr;
  }

  .armory-detail-header {
    align-items: flex-start;
  }

  .armory-detail-grid {
    grid-template-columns: 1fr;
  }

  .armory-equipment-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
    align-items: start;
  }

  .armory-equipment-center {
    order: -1;
    min-height: 320px;
    padding: 10px;
  }

  .armory-equipment-render {
    object-fit: contain;
    transform: none;
  }

  .armory-slot-card-right {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .armory-slot-card-right .armory-slot-media {
    order: 0;
  }

  .armory-slot-card-right .armory-slot-copy {
    text-align: left;
  }

  .armory-equipment-bottom {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .armory-page-hero .hero-content {
    max-width: 100%;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .armory-hero-copy {
    width: min(100%, 420px);
  }

  .armory-hero-row {
    gap: 0;
  }

  .armory-hero-portrait {
    position: static;
    margin-top: 20px;
    width: min(72vw, 260px);
    height: min(82vw, 300px);
  }
}

.small-note {
  margin: 8px 0 0;
  color: #7b6957;
  font-size: 0.84rem;
}

.page-notice {
  margin: 14px 14px 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.page-notice-success {
  color: #2a1d0f;
  background: linear-gradient(180deg, rgba(236, 220, 150, 0.95), rgba(202, 166, 90, 0.92));
  border: 1px solid rgba(76, 53, 21, 0.35);
  text-shadow:
    -0.03em -0.03em 0 rgba(255, 247, 212, 0.32),
    0.03em -0.03em 0 rgba(255, 247, 212, 0.32),
    -0.03em 0.03em 0 rgba(255, 247, 212, 0.32),
    0.03em 0.03em 0 rgba(255, 247, 212, 0.32);
}

.ext-item-danger {
  border-color: rgba(196, 86, 86, 0.32);
}

.danger-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.danger-label {
  font-size: 0.82rem;
  color: #f0d4d4;
}

.danger-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(196, 86, 86, 0.42);
  background: rgba(20, 11, 14, 0.82);
  color: #f7e6e6;
  font: inherit;
}

.danger-input:focus {
  outline: 2px solid rgba(220, 132, 132, 0.5);
  outline-offset: 1px;
}

.legacy-footer {
  margin-top: 24px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.65);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(43, 28, 24, 0.96), rgba(16, 10, 11, 0.96)),
    linear-gradient(90deg, rgba(202, 166, 90, 0.06), rgba(0, 0, 0, 0));
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 220, 150, 0.1);
  text-shadow:
    -0.05em -0.05em 0 rgba(14, 7, 8, 0.58),
    0.05em -0.05em 0 rgba(14, 7, 8, 0.58),
    -0.05em 0.05em 0 rgba(14, 7, 8, 0.58),
    0.05em 0.05em 0 rgba(14, 7, 8, 0.58);
}

.legacy-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 28px 24px 18px;
  text-align: left;
}

.legacy-footer-brand {
  text-align: center;
}

.legacy-footer-brand img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

.legacy-footer-brand p {
  margin: 12px 0 0;
  color: #d9c6a2;
}

.legacy-footer-brand a {
  color: #caa65a;
  text-decoration: none;
}

.legacy-footer-column h3 {
  margin: 0 0 12px;
  color: #caa65a;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legacy-footer-column a {
  display: block;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #eadfc7;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.legacy-footer-column a:hover {
  border-color: rgba(202, 166, 90, 0.25);
  background: rgba(202, 166, 90, 0.08);
  color: #fff0cc;
  transform: translateX(2px);
}

.legacy-footer-end {
  padding: 14px 20px 18px;
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.08));
}

.legacy-footer-end a {
  color: #d9c6a2;
  text-decoration: none;
  font-size: 0.82rem;
}

.legacy-footer-end a:hover {
  color: #f0cf7a;
}

.legal-layout {
  margin-top: 20px;
}

.legal-panel {
  min-height: 100%;
}

.legal-content {
  padding: 20px 22px 24px;
}

.legal-content h3 {
  margin: 0 0 10px;
  color: #2d2018;
  font-size: 1.02rem;
}

.legal-content p {
  margin: 0 0 18px;
  color: #4a3b2c;
}

.legal-content code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(64, 45, 28, 0.08);
  color: #2d2018;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(91, 63, 39, 0.18);
}

.faq-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 760px) {
  .legacy-footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .legacy-footer-brand {
    text-align: left;
  }

  .legacy-footer-end {
    text-align: left;
  }
}

.guild-roster-controls {
  display: flex;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 22px 0;
}

.guild-roster-search {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: min(100%, 320px);
}

.guild-roster-search span {
  color: #5b4734;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guild-roster-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(91, 63, 39, 0.18);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.9);
  color: #2d2018;
  font: inherit;
}

.guild-roster-search input:focus {
  outline: none;
  border-color: rgba(176, 126, 61, 0.48);
  box-shadow: 0 0 0 3px rgba(214, 167, 86, 0.14);
}

.guild-roster-table-shell {
  padding: 18px 22px 24px;
}

.guild-roster-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.guild-roster-pagination-status {
  color: #6a543d;
  font-size: 0.86rem;
  font-weight: 700;
}

.guild-roster-loading,
.guild-roster-empty {
  padding: 18px;
  border: 1px solid rgba(91, 63, 39, 0.14);
  border-radius: 12px;
  background: rgba(255, 250, 242, 0.7);
  color: #4f3c2c;
}

.guild-roster-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #2d2018;
}

.guild-roster-empty p {
  margin: 0;
}

.guild-roster-error {
  border-color: rgba(154, 55, 45, 0.22);
  background: rgba(255, 239, 235, 0.8);
}

.guild-roster-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(91, 63, 39, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.88);
}

.guild-roster-table thead {
  background: linear-gradient(180deg, rgba(69, 32, 19, 0.96), rgba(45, 20, 16, 0.98));
}

.guild-roster-table th,
.guild-roster-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(91, 63, 39, 0.12);
  vertical-align: middle;
}

.guild-roster-table th {
  color: #f0cf87;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guild-roster-table th button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.guild-roster-table th button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.35;
}

.guild-roster-table th button[data-sort-direction="asc"]::after {
  border-bottom: 6px solid #f0cf87;
}

.guild-roster-table th button[data-sort-direction="desc"]::after {
  border-top: 6px solid #f0cf87;
}

.guild-roster-table th button[data-sort-direction="none"]::after {
  border-top: 6px solid rgba(240, 207, 135, 0.7);
}

.guild-roster-row {
  transition: background-color 160ms ease;
}

.guild-roster-row:hover {
  background: color-mix(in srgb, var(--class-color, #e6dcc2) 10%, rgba(255, 249, 240, 0.96));
}

.guild-roster-cell-name {
  min-width: 260px;
}

.guild-roster-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #2d2018;
  font-weight: 700;
  text-decoration: none;
}

.guild-roster-name:hover {
  color: var(--class-color, #7d5d2a);
}

.guild-roster-class {
  font-weight: 700;
}

.guild-roster-link {
  color: #7a5521;
  font-weight: 700;
  text-decoration: none;
}

.guild-roster-link:hover {
  color: #b47a2d;
}

@media (max-width: 900px) {
  .guild-roster-controls {
    align-items: stretch;
  }

  .guild-roster-table-shell {
    overflow-x: auto;
  }

  .guild-roster-table {
    min-width: 760px;
  }

  .guild-roster-pagination {
    justify-content: flex-start;
  }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.blog-panel,
.blog-editor-panel,
.blog-detail-panel,
.blog-moderation-panel {
  display: grid;
  gap: 20px;
}

.blog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(91, 63, 39, 0.18);
  background: rgba(255, 250, 242, 0.84);
  color: #6a4c25;
  font-weight: 700;
  text-decoration: none;
}

.blog-filter-chip.active,
.blog-filter-chip:hover {
  background: linear-gradient(180deg, rgba(196, 153, 73, 0.94), rgba(144, 104, 40, 0.94));
  color: #1f1307;
  border-color: rgba(124, 86, 29, 0.38);
}

.blog-toolbar-note {
  margin: 0;
  color: #6a543d;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid rgba(91, 63, 39, 0.12);
  border-radius: 16px;
  background: rgba(255, 251, 245, 0.92);
  box-shadow: 0 18px 38px rgba(56, 32, 22, 0.08);
}

.blog-card-link {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.blog-card-image-shell,
.blog-card-image,
.blog-card-image-fallback {
  min-height: 220px;
  background: radial-gradient(circle at top left, rgba(204, 168, 98, 0.28), rgba(43, 28, 22, 0.9));
}

.blog-card-image-shell img,
.blog-detail-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-copy {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.blog-card-meta,
.blog-detail-meta,
.blog-submission-meta,
.blog-moderation-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  color: #6a543d;
  font-size: 0.84rem;
}

.blog-card-copy h3,
.blog-detail-article h2,
.blog-submission-head h3,
.blog-moderation-head h3 {
  margin: 0;
  color: #2d2018;
}

.blog-card-copy p,
.blog-detail-body p,
.blog-submission-card p,
.blog-moderation-card p {
  margin: 0;
  color: #4f3c2c;
}

.blog-detail-article {
  display: grid;
  gap: 18px;
}

.blog-detail-body {
  display: grid;
  gap: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.blog-detail-note {
  padding: 14px 16px;
  border: 1px solid rgba(154, 55, 45, 0.18);
  border-radius: 12px;
  background: rgba(255, 240, 235, 0.72);
  color: #703b2b;
}

.blog-editor-form {
  display: grid;
  gap: 16px;
}

.blog-form-field {
  display: grid;
  gap: 8px;
}

.blog-form-field span {
  color: #5b4734;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-form-field input,
.blog-form-field select,
.blog-form-field textarea,
.blog-moderation-note {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(91, 63, 39, 0.18);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.92);
  color: #2d2018;
  font: inherit;
}

.blog-form-field textarea,
.blog-moderation-note {
  resize: vertical;
}

.blog-form-field input:focus,
.blog-form-field select:focus,
.blog-form-field textarea:focus,
.blog-moderation-note:focus {
  outline: none;
  border-color: rgba(176, 126, 61, 0.48);
  box-shadow: 0 0 0 3px rgba(214, 167, 86, 0.14);
}

.blog-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.blog-form-status {
  margin: 0;
  color: #6a543d;
}

.blog-submissions,
.blog-moderation-list {
  display: grid;
  gap: 16px;
}

.blog-submission-card,
.blog-moderation-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(91, 63, 39, 0.14);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.88);
}

.blog-submission-head,
.blog-moderation-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: start;
}

.blog-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(91, 63, 39, 0.08);
  color: #6a4c25;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-status-published .blog-status-pill {
  background: rgba(85, 137, 72, 0.14);
  color: #416a35;
}

.blog-status-rejected .blog-status-pill {
  background: rgba(154, 55, 45, 0.14);
  color: #8a3328;
}

.blog-status-pending .blog-status-pill {
  background: rgba(184, 131, 33, 0.14);
  color: #8b6117;
}

.blog-moderation-reason {
  margin: 0;
  color: #7a3f31;
  font-size: 0.92rem;
}

.blog-moderation-card.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.hero-cta.is-secondary {
  background: linear-gradient(180deg, rgba(82, 62, 43, 0.96), rgba(53, 38, 25, 0.96));
  color: #f1dfb7;
}

.blog-detail-loading {
  padding: 18px;
  border: 1px solid rgba(91, 63, 39, 0.14);
  border-radius: 12px;
  background: rgba(255, 250, 242, 0.7);
  color: #4f3c2c;
}

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

\.events-panel {
  display: grid;
  gap: 20px;
}

.events-calendar-shell {
  display: grid;
  gap: 16px;
  padding: 18px 22px 22px;
}

.event-upcoming-list,
.event-side-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.event-side-card,
.event-upcoming-card {
  border: 1px solid rgba(255, 219, 145, 0.16);
  background: linear-gradient(180deg, rgba(64, 42, 51, 0.82), rgba(36, 24, 30, 0.86));
  border-radius: 8px;
  padding: 10px;
  box-shadow: none;
}

.event-create-form {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  align-items: start;
  margin-top: 10px;
}

.event-form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.event-form-field span {
  display: block;
  margin-bottom: 6px;
  color: #f7e5be;
  font-size: 0.82rem;
  font-weight: 700;
}

.event-form-field-full,
.event-form-actions {
  grid-column: 1 / -1;
}

.event-create-form .blog-form-field input,
.event-create-form .blog-form-field select,
.event-create-form .blog-form-field textarea {
  min-width: 0;
  width: 100%;
}

.event-create-form .blog-form-field input,
.event-create-form .blog-form-field select,
.event-create-form .blog-form-field textarea,
.event-create-form .blog-form-status {
  color: #f1e5cf;
}

.events-calendar-header {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.events-calendar-title {
  color: #2d2018;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: capitalize;
  text-align: center;
}

.events-calendar-weekdays,
.events-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.events-calendar-weekdays span {
  color: #6a543d;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.event-calendar-cell {
  min-height: 124px;
  padding: 12px;
  border: 1px solid rgba(91, 63, 39, 0.14);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.88);
}

.event-calendar-cell.is-empty {
  background: rgba(255, 250, 242, 0.38);
}

.event-calendar-day {
  color: #2d2018;
  font-weight: 800;
  margin-bottom: 10px;
}

.event-calendar-day-items {
  display: grid;
  gap: 8px;
}

.event-day-pill {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(107, 78, 40, 0.08);
  border-left: 4px solid rgba(144, 104, 40, 0.65);
}

.event-upcoming-card {
  display: grid;
  gap: 10px;
}

.event-day-pill strong,
.event-upcoming-card h3 {
  display: block;
  color: #8f6d35;
  font-size: 0.92rem;
  margin: 0 0 4px;
}

.event-day-pill span,
.event-upcoming-meta,
.event-upcoming-foot,
.event-day-more {
  color: #a58135;
  font-size: 0.8rem;
}

.event-upcoming-card p {
  margin: 0;
  color: #cab79b;
}

.event-upcoming-meta,
.event-upcoming-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.events-calendar-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.event-type-raid {
  border-left-color: #a43f36;
}

.event-type-mythic_plus {
  border-left-color: #6b50c7;
}

.event-type-social {
  border-left-color: #d3983d;
}

.event-type-meeting {
  border-left-color: #4a7db3;
}

.event-type-pvp {
  border-left-color: #9b3fa8;
}

.event-type-community {
  border-left-color: #4d8e56;
}

@media (max-width: 980px) {
  .events-calendar-weekdays,
  .events-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-create-form {
    grid-template-columns: 1fr;
  }

  .event-form-field-full,
  .event-form-actions {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .events-calendar-weekdays,
  .events-calendar-grid {
    grid-template-columns: 1fr;
  }

  .event-calendar-cell {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .guild-page-layout {
    grid-template-columns: 1fr;
  }

  .legacy-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .wrap {
    width: min(1180px, calc(100vw - 1rem));
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .panel-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .auth-box,
  .account-menu {
    width: 100%;
  }

  .account-trigger,
  .blizzard-login {
    width: 100%;
    min-width: 0;
  }

  .account-dropdown {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 0;
  }

  .character-stat-strip {
    grid-template-columns: 1fr;
  }

  .guild-page-layout {
    grid-template-columns: 1fr;
  }

  .guild-roster-cell-name {
    min-width: 180px;
  }

  .guild-roster-table-shell,
  .table-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .guild-roster-table {
    min-width: 640px;
  }

  .events-calendar-weekdays {
    display: none;
  }

  .events-calendar-grid {
    grid-template-columns: 1fr;
  }

  .event-calendar-cell {
    min-height: auto;
  }

  .legacy-footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px 14px;
  }

  .legacy-footer-brand {
    text-align: left;
  }

  .legacy-footer-brand img {
    max-height: 92px;
  }

  .legacy-footer-end {
    padding-inline: 16px;
  }

  img,
  video,
  iframe,
  canvas,
  svg {
    max-width: 100%;
    height: auto;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }
}


/* Events layout aligned to blog panel */
.blog-like-layout {
  gap: 0;
}

.events-layout,
.events-layout *,
.events-layout .hero-cta,
.events-layout button {
  text-shadow: none !important;
  filter: none !important;
}

.events-layout .events-panel,
.events-layout .side-stack,
.events-layout .side-panel,
.events-layout .events-calendar-shell,
.events-layout .event-upcoming-list,
.events-layout .event-create-form,
.events-layout .event-side-list,
.events-layout .event-side-card {
  min-width: 0;
}

@media (max-width: 980px) {
  .events-layout .events-calendar-weekdays,
  .events-layout .events-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
