.wow-forever-view {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(196, 146, 42, 0.18), transparent 55%),
    linear-gradient(180deg, #24180f 0%, #120e0b 42%, #0c0a08 100%);
  border: 1px solid #6e5424;
  color: #f4e6c4;
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 140, 0.14),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.wow-forever-view .toolbar {
  border-bottom-color: rgba(231, 197, 106, 0.28);
}

.wow-forever-view .breadcrumb,
.wow-forever-view .breadcrumb button,
.wow-forever-view .breadcrumb-current {
  color: #e7c56a;
}

.wowf {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
}

.wowf button,
.wowf .wowf-linkish {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: none;
}

.wowf button:hover {
  transform: none;
}

.wowf-banner {
  margin: 0.85rem 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(231, 197, 106, 0.45);
  background: rgba(48, 32, 12, 0.72);
  color: #f4e6c4;
}

.wowf-banner.error {
  border-color: #8d3b32;
  background: rgba(70, 18, 14, 0.75);
  color: #ffd0c8;
}

.wowf-census {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem 0.8rem;
  border: 1px solid #7a5a28;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(196, 146, 42, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(72, 48, 18, 0.62), rgba(16, 11, 8, 0.9));
}

.wowf-census-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.2rem;
  margin-top: 0.55rem;
}

.wowf-census-label {
  display: block;
  color: #c6a15a;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.wowf-census strong {
  display: block;
  margin-top: 0.2rem;
  color: #fff6d8;
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: normal;
}

.wowf-census-detail {
  display: block;
  margin-top: 0.25rem;
  color: #e7d7b0;
}

.wowf-census-note {
  margin: 0.8rem 0 0;
  color: #b9a47a;
  font-size: 0.92rem;
  line-height: 1.4;
}

.wowf-census-note a {
  color: #e7c56a;
}

@media (max-width: 720px) {
  .wowf-census-grid {
    grid-template-columns: 1fr;
  }
}

.wowf-guild {
  margin-top: 1.5rem;
}

.wowf-guild-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.2rem;
  align-items: flex-end;
}

.wowf-guild-title {
  margin: 0.9rem 0 0.45rem;
  color: #e7c56a;
  font-size: 1.05rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wowf-guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.4rem;
}

.wowf-guild-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(122, 90, 40, 0.55);
  background: rgba(18, 12, 8, 0.55);
  color: #f4e6c4;
}

.wowf-guild-item.done {
  border-color: rgba(122, 168, 72, 0.7);
  background: rgba(28, 36, 16, 0.55);
}

.wowf-guild-item input {
  margin-top: 0.28rem;
}

.wowf-guild-item strong {
  display: block;
  font-weight: normal;
  color: #fff6d8;
}

.wowf-guild-item small {
  display: block;
  margin-top: 0.1rem;
  color: #b9a47a;
}

.wowf-clear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.7rem;
}

.wowf button.wowf-clear-card {
  position: relative;
  display: block;
  width: 100%;
  height: 124px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #4a3a22;
  background: #120e0b;
  text-align: left;
  cursor: default;
  box-shadow: none;
}

.wowf-clear-art {
  position: absolute;
  inset: 0;
  background-color: #1a140f;
  background-position: center;
  background-size: cover;
  filter: grayscale(1) brightness(0.58) contrast(0.92);
}

.wowf button.wowf-clear-card.done {
  border-color: #e7c56a;
  box-shadow:
    0 0 14px rgba(231, 197, 106, 0.55),
    inset 0 0 18px rgba(255, 214, 120, 0.18);
}

.wowf button.wowf-clear-card.done .wowf-clear-art {
  filter: none;
}

.wowf-clear-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.75rem 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.84));
  color: #d9d0c2;
  font-size: 1.05rem;
}

.wowf button.wowf-clear-card.done .wowf-clear-name {
  color: #fff6d8;
}

.wowf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 1rem;
}

.wowf-tabs button {
  background: #1a140f;
  color: #d9c79a;
  border: 1px solid #5c4722;
  padding: 0.55rem 0.9rem;
  font-size: 1rem;
}

.wowf-tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, #6a4e1d, #3d2b10);
  color: #fff4d2;
  border-color: #e7c56a;
}

.wowf-tabs .wowf-refresh {
  margin-left: auto;
  background: linear-gradient(180deg, #8a6424, #4a3012);
  color: #fff6d8;
  border-color: #e7c56a;
}

.wowf-tabs .wowf-refresh:disabled {
  opacity: 0.65;
}

.wowf-plaque {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(180deg, rgba(72, 48, 18, 0.55), rgba(20, 14, 10, 0.8));
  border: 1px solid #7a5a28;
}

.wowf-kicker {
  margin: 0;
  color: #c6a15a;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.wowf-name {
  margin: 0.15rem 0 0;
  font-size: 2rem;
  line-height: 1.1;
  color: #fff6d8;
}

.wowf-meta {
  margin: 0.25rem 0 0;
  color: #e7d7b0;
}

.wowf-actions {
  display: flex;
  align-items: flex-end;
}

.wowf-actions button,
.wowf-primary,
.wowf-ghost {
  background: linear-gradient(180deg, #8a6424, #5a3e12);
  color: #fff6d8;
  border: 1px solid #e7c56a;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.wowf-ghost,
.wowf-row-actions button {
  background: #1a140f;
  color: #e7d7b0;
  border: 1px solid #6e5424;
}

.wowf-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.wowf-roster,
.wowf-sheet,
.wowf-board,
.wowf-admin-card {
  background: rgba(12, 9, 7, 0.55);
  border: 1px solid rgba(122, 90, 40, 0.7);
  padding: 0.75rem;
}

.wowf-char,
.wowf-board tbody tr {
  width: 100%;
  text-align: left;
  background: #16110d;
  color: #f4e6c4;
  border: 1px solid #3d2e18;
  padding: 0.65rem 0.7rem;
  margin-bottom: 0.45rem;
  cursor: pointer;
}

.wowf-char.selected,
.wowf-board tbody tr.selected {
  border-color: #e7c56a;
  background: #2a1d10;
}

.wowf-char-name {
  display: block;
  font-size: 1.15rem;
}

.wowf-char-sub {
  display: block;
  margin-top: 0.15rem;
  color: #cbb992;
  font-size: 0.92rem;
}

.wowf-sheet-head {
  margin-bottom: 0.8rem;
}

.wowf-portrait,
.wowf-portrait-fallback {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 1px solid #e7c56a;
  background: #1a120c;
}

.wowf-portrait-fallback {
  display: grid;
  place-items: center;
  color: #e7c56a;
  font-size: 1.6rem;
}

.wowf-back { display: none; }

.wowf-overlay {
  position: fixed;
  inset: 0;
  z-index: 19000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.wowf-overlay.hidden { display: none; }

.wowf-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 2, 0.74);
}

.wowf-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(92vh, 960px);
  overflow: auto;
  padding: 0.85rem 1rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(48, 32, 14, 0.96), rgba(14, 10, 8, 0.98));
  border: 1px solid #e7c56a;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.wowf-overlay-close {
  float: right;
  margin: 0 0 0.4rem 0.8rem;
}

.wowf-overlay .wowf-sheet {
  background: transparent;
  border: 0;
  padding: 0;
}

body.wowf-overlay-open { overflow: hidden; }

.wowf-sheet h3 {
  margin: 0;
  font-size: 1.7rem;
}

.wowf-note {
  color: #d7c39a;
  margin: 0.35rem 0 0.7rem;
}

.wowf-sheet-body {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  gap: 0.6rem 1.6rem;
  align-items: start;
}

.wowf-sheet-body.solo {
  grid-template-columns: auto;
}

.wowf-doll {
  display: grid;
  grid-template-columns: 54px minmax(160px, 220px) 54px;
  gap: 0.45rem 0.7rem;
  justify-items: center;
}

.wowf-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.15rem;
  align-content: start;
  min-width: 0;
}

.wowf-stat-vitals {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.wowf-stat-vitals div {
  padding: 0.4rem 0.65rem 0.45rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(231, 197, 106, 0.35);
}

.wowf-stat-vitals span,
.wowf-stat-block h4 {
  display: block;
  margin: 0;
  color: #cbb992;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wowf-stat-vitals b {
  display: block;
  margin-top: 0.1rem;
  color: #8ee0a8;
  font-size: 1.45rem;
  line-height: 1.1;
}

.wowf-power-mana b { color: #7fb4e0; }
.wowf-power-rage b { color: #e07a72; }
.wowf-power-energy b { color: #f0d36a; }
.wowf-power-focus b { color: #e39a4a; }

.wowf-stat-block h4 {
  margin-bottom: 0.2rem;
  color: #e7c56a;
}

.wowf-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.16rem 0;
  border-bottom: 1px solid rgba(231, 197, 106, 0.12);
  color: #e7d7b0;
  font-size: 0.92rem;
}

.wowf-stat-row b {
  color: #fff6d8;
  font-weight: 600;
}

.wowf-stats .wowf-stat-block:last-child:nth-child(even) {
  grid-column: 1 / -1;
}

.wowf-model {
  width: min(190px, 100%);
  height: 190px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.45rem;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
}

.wowf-render {
  width: min(210px, 100%);
  height: 260px;
}

.wowf-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wowf-center {
  align-self: center;
  text-align: center;
  color: #e7d7b0;
}

.wowf-level {
  font-size: 2.4rem;
  color: #fff6d8;
  line-height: 1;
}

.wowf-weapons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.wowf-slot {
  width: 50px;
  height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #100d0a;
  border: 1px solid #6a5430;
  color: #8d7b5c;
  font-size: 0.62rem;
  line-height: 1.05;
  text-align: center;
  cursor: help;
}

.wowf-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wowf-slot[data-quality="POOR"] { border-color: #9d9d9d; }
.wowf-slot[data-quality="COMMON"] { border-color: #ffffff; }
.wowf-slot[data-quality="UNCOMMON"] { border-color: #1eff00; }
.wowf-slot[data-quality="RARE"] { border-color: #0070dd; }
.wowf-slot[data-quality="EPIC"] { border-color: #a335ee; }
.wowf-slot[data-quality="LEGENDARY"] { border-color: #ff8000; }
.wowf-slot[data-quality="ARTIFACT"] { border-color: #e6cc80; }
.wowf-slot[data-quality="HEIRLOOM"] { border-color: #00ccff; }

.wowf-empty {
  color: #cbb992;
  margin: 0.4rem 0;
}

.wowf-board-wrap {
  overflow-x: auto;
}

.wowf-board {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.wowf-board th,
.wowf-board td {
  padding: 0.55rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid rgba(122, 90, 40, 0.45);
}

.wowf-board th {
  color: #e7c56a;
  font-weight: 600;
  font-size: 0.92rem;
}

.wowf-board tbody tr {
  display: table-row;
  margin: 0;
  width: auto;
}

.wowf-board tbody tr[data-open="0"] {
  cursor: default;
}

.wowf-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 0.8rem;
}

.wowf-form label,
.wowf-account {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: #e7d7b0;
}

.wowf-form textarea,
.wowf-form input,
.wowf-form select {
  background: #120e0b;
  color: #fff6d8;
  border: 1px solid #6e5424;
  border-radius: 6px;
  padding: 0.55rem 0.6rem;
  font: inherit;
}

.wowf-names,
.wowf-span,
.wowf-form .wowf-help {
  grid-column: 1 / -1;
}

.wowf-form textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.wowf-help {
  color: #d7c39a;
  margin: 0 0 0.8rem;
}

.wowf-help code {
  color: #fff6d8;
}

.wowf-accounts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wowf-account {
  flex-direction: row;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border: 1px solid #3d2e18;
  background: #16110d;
}

.wowf-row-actions {
  display: flex;
  gap: 0.4rem;
}

.wowf-horde { color: #ff5a4a; }
.wowf-alliance { color: #7eb6ff; }

.wow-tip {
  position: fixed;
  z-index: 20000;
  width: min(280px, calc(100vw - 24px));
  padding: 0.55rem 0.65rem 0.65rem;
  background: rgba(8, 6, 12, 0.96);
  border: 1px solid #6a5430;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
}

.wow-tip.hidden { display: none; }

.wow-tip strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.wow-tip p {
  margin: 0.12rem 0;
  font-size: 0.92rem;
  line-height: 1.25;
}

@media (max-width: 860px) {
  .wowf-layout {
    grid-template-columns: 1fr;
  }

  .wowf-layout.has-sheet .wowf-roster {
    display: none;
  }

  .wowf-back {
    display: inline-block;
    margin-bottom: 0.7rem;
  }

  .wowf-account {
    flex-direction: column;
    align-items: stretch;
  }

  .wowf-sheet-body,
  .wowf-stats,
  .wowf-stat-vitals {
    grid-template-columns: 1fr;
  }
}
