/* warmane.fun: matte surfaces, soft depth, original palette and type. */
:root {
  --edge-light: rgb(255 255 255 / 5%);
}

.wcl-top-filter-bar {
  background:
    radial-gradient(ellipse at 22% 0, rgb(255 255 255 / 3%), transparent 70%),
    linear-gradient(#191919, #111111);
  border-top: 0;
  border-bottom: 1px solid #282828;
  box-shadow: 0 8px 24px rgb(0 0 0 / 45%);
  padding-top: 4px;
  padding-bottom: 4px;
}

.wcl-realm-title,
.wcl-box-title { text-shadow: 0 1px 1px rgb(0 0 0 / 45%); }

.wcl-page { margin-top: 20px; }

.wcl-box {
  min-width: 0;
  padding: 0;
  background: #0e0e0e;
  border-color: #292929;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 45%), 0 12px 26px rgb(0 0 0 / 30%);
}

.wcl-box-title {
  background:
    radial-gradient(ellipse at 12% 0, rgb(255 255 255 / 3%), transparent 75%),
    linear-gradient(#202020, #181818);
  border: 0;
  border-bottom: 1px solid #2b2b2b;
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 1px 0 var(--edge-light);
  min-height: 44px;
}

.wcl-boss-icon-header {
  border-color: #3c3c3c;
  box-shadow: 0 2px 5px rgb(0 0 0 / 35%);
}

.wcl-table { background: #0a0a0a; }
.wcl-table thead th {
  background: #1b1b1b;
  box-shadow: none;
}
.wcl-view-more {
  background: #111;
  border-radius: 0 0 4px 4px;
  box-shadow: none;
}
.wcl-bar-track { box-shadow: inset 0 1px 3px rgb(0 0 0 / 40%); }
.wcl-bar-fill-lk,
.wcl-bar-fill-halion {
  box-shadow: none;
}

/* Chat is anchored at bottom-right; the upper-left grip grows it inward. */
.wow-chat-dock {
  width: var(--chat-width, 520px);
  max-width: calc(100% - 32px);
  bottom: 12px;
  padding: 0;
  background: #101011;
  border: 1px solid #3a332b;
  border-radius: 5px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 60%), 0 20px 55px rgb(0 0 0 / 65%);
}
.wow-chat-tabs {
  min-height: 38px;
  padding-left: 21px;
  gap: 8px;
  background: linear-gradient(#211f1c, #191817);
  border: 0;
  border-bottom: 1px solid #322c25;
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 1px 0 var(--edge-light);
}
.wow-chat-tabs-left { flex-wrap: wrap; }
.wow-chat-tabs-right { flex-shrink: 0; }
.wow-tab-active {
  background: #2a2119;
  border-color: #63472c;
  box-shadow: none;
  text-shadow: none;
  padding-top: 4px;
  padding-bottom: 4px;
}
.wow-chat-body {
  height: var(--chat-body-height, 350px);
  max-height: calc(100dvh - 140px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top left, rgb(92 67 39 / 9%), transparent 65%),
    linear-gradient(110deg, #101011, #09090b);
  box-shadow: inset 0 2px 8px rgb(0 0 0 / 30%);
  border: 0;
}
.wow-chat-messages {
  height: auto;
  min-height: 0;
  flex: 1;
  padding: 12px 13px;
  gap: 8px;
  font-size: 13px;
  line-height: 1.48;
  overscroll-behavior: contain;
}
.wow-chat-identity-bar,
.wow-chat-form { flex-shrink: 0; }
.wow-chat-identity-bar {
  background: #171717;
  padding: 7px 10px;
  box-shadow: none;
}
.wow-chat-form {
  background: #111;
  border-radius: 0 0 4px 4px;
  padding: 9px 10px;
}
.wow-chat-input { min-width: 0; }
.wow-chat-input,
.wow-nick-input {
  box-shadow: inset 0 2px 5px #000, 0 1px 0 rgb(255 255 255 / 5%);
}
.wow-chat-send-btn {
  background: #302215;
  box-shadow: none;
}
.wow-chat-resize {
  position: absolute;
  z-index: 1;
  left: -1px;
  top: -1px;
  width: 24px;
  height: 24px;
  color: #d7b78b;
  font: 17px Arial, sans-serif;
  background: #23211d;
  border: 1px solid #504335;
  border-radius: 3px 0 4px 0;
  box-shadow: none;
  cursor: nwse-resize;
  touch-action: none;
}
.wow-chat-resize:hover { color: #fff0d6; border-color: #c69b6d; }
.wow-chat-resize:focus-visible { outline: 2px solid #ffbf80; outline-offset: 3px; }
.wow-chat-dock.minimized .wow-chat-resize { display: none; }
.wow-chat-dock.is-resizing { user-select: none; }

@media (max-width: 600px) {
  .wcl-top-filter-bar { padding: 6px 10px; }
  .wcl-top-right { flex-wrap: wrap; gap: 8px; min-width: 0; }
  .wcl-box { overflow-x: auto; }
  .wcl-box-title { gap: 8px; }
  .wcl-box-title-left { min-width: 0; }
  .wcl-mini-tabs { flex-shrink: 0; }
  .wow-chat-dock { right: 8px; bottom: 8px; max-width: calc(100% - 16px); }
  .wow-chat-body { height: var(--chat-body-height, 310px); max-height: calc(100dvh - 180px); }
  .wow-chat-online { display: none; }
  .wow-chat-identity-bar { flex-wrap: wrap; }
  .wow-chat-tabs-left { gap: 3px; }
  .wow-tab-inactive { padding: 2px 4px; }
  .wow-chat-form { gap: 4px; padding: 8px; }
}

/* Verified source snapshots, using the existing palette and typography. */
[hidden] { display: none !important; }
.club-data-section { margin-bottom: 16px; }
.pending-rankings { margin: 0 0 16px; border: 1px solid #34312d; border-radius: 3px; }
.pending-rankings summary { padding: 10px 12px; color: #ab9c83; cursor: pointer; font-size: 12px; background: #181818; }
.pending-rankings[open] summary { margin-bottom: 12px; }
.pending-rankings .wcl-weekly-split-grid { padding: 0 10px; }
.club-data-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #d8c6a8; }
.club-data-heading a, .guild-card a, .col-date a { color: #c69b6d; font-size: 12px; }
.boss-section-box .col-date { width: 82px; white-space: nowrap; }
.boss-section-box .col-dps { min-width: 85px; white-space: nowrap; }
.source-summary { font-size: 12px; line-height: 1.5; color: #aaa; margin: 7px 0 12px; }
.guild-directory { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.guild-card { background: linear-gradient(#202020, #181818); border: 1px solid #34312d; border-radius: 4px; padding: 11px 12px; box-shadow: 0 3px 8px #0003; min-width: 0; }
.guild-card.selected-guild { border-color: #b98b53; background: #29231b; }
.guild-filter { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.guild-filter:hover { text-decoration: underline; }
.guild-filter:focus-visible { outline: 2px solid #c69b6d; outline-offset: 3px; }
.guild-card-count { font-size: 21px; color: #ddd; margin: 7px 0 4px; }
.guild-card-count span { font-size: 11px; color: #999; margin-left: 7px; }
.source-time { color: #888; font-size: 10px; margin-bottom: 7px; }
.source-stale { color: #ceaa71 !important; }
.wcl-sync-badge.sources-stale { color: #ceaa71; border-color: #77603b; }
.sources-stale .wcl-sync-dot { background: #ceaa71; box-shadow: none; }
.member-matches { font-size: 11px; color: #ccc; overflow-wrap: anywhere; margin-bottom: 7px; }
.data-empty { text-align: center; padding: 15px 18px !important; white-space: normal !important; color: #999; }
.data-empty strong { display: block; font-weight: 500; font-size: 13px; color: #c6bcae; margin-bottom: 6px; }
.data-empty span { display: block; font-size: 11px; line-height: 1.5; }
.boss-mode { color: #aaa; font-size: 11px; font-weight: normal; }
.boss-coverage { color: #999; font-size: 11px; padding: 7px 12px; border-bottom: 1px solid #292929; }
button.wcl-view-more { width: 100%; font: inherit; background: #1d1d1d; border: 0; }
.wow-chat-messages[data-loaded="true"]:empty::before { content: "No messages yet. Start the conversation."; color: #998a75; font-size: 12px; }
.wow-chat-history-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 12px; color: #998a75; font-size: 11px; flex-shrink: 0; }
.wow-chat-history-bar button { background: transparent; border: 0; color: #c69b6d; cursor: pointer; white-space: nowrap; font: inherit; }
.wow-chat-history-bar button[hidden] { display: none; }
.wow-chat-send-btn:disabled, .wow-chat-history-bar button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 1000px) { .guild-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .guild-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guild-card-count span { display: block; margin-left: 0; }
  .boss-mode { display: block; }
}
:root { --weekly-muted: #99918a; }
.weekly-status { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 16px; padding: 13px 16px; border: 1px solid #493c29; border-left: 3px solid #c3914e; border-radius: 5px; background: #191714; font-size: 13px; color: #bfb7ac; }
.weekly-status strong { color: #dfc28e; }
#weekly-status-message { flex-basis: 100%; line-height: 1.5; }
.weekly-evidence { font-size: 12px; color: var(--weekly-muted); }
.weekly-evidence a { color: #d4aa72; }
#flt-guild { max-width: 180px; }
#cd-reset-countdown { font-variant-numeric: tabular-nums; min-width: 90px; }
/* Guild standings: progress is relative to the leading kill count. */
.guild-progress-cell { min-width: 130px; }
.guild-progress-name { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.guild-log-link { color:#b8aa8b; font-size:14px; text-decoration:none; padding:0 3px; }
.guild-log-link:hover { color:#f1cf82; }
.guild-boss-select { max-width:100%; min-width:0; background:#151515; color:#ddd; border:1px solid #3c3c3c; border-radius:3px; padding:5px 7px; font:inherit; font-size:14px; }
.guild-period-label { color:#999; font-size:11px; white-space:nowrap; }
#weekly-kills-section .wcl-box-title-left { flex-wrap:wrap; }
#weekly-kills-section .wcl-table { table-layout:auto; }
#weekly-kills-section .wcl-bar-track { height:6px; border-radius:2px; }
#weekly-kills-section .raid-dps-cell { font-size:12px; white-space:nowrap; }
.raid-dps-cell a { color:inherit; text-decoration:none; }
.raid-dps-cell a:hover { text-decoration:underline; }
.guild-sort-button { border:0; background:transparent; color:inherit; font:inherit; padding:0; cursor:pointer; white-space:nowrap; }
.guild-sort-button:hover { color:#e5cc80; }
.guild-sort-button:focus-visible { outline:1px solid #e5cc80; outline-offset:4px; }
.uwu-top100 { color:#e5cc80 !important; }
.uwu-top99 { color:#e268a8 !important; }
.uwu-top95 { color:#ff8000 !important; }
.uwu-top90 { color:#ff3c00 !important; }
.uwu-top75 { color:#a335ee !important; }
.uwu-top50 { color:#0070ff !important; }
.uwu-top25 { color:#1eff00 !important; }
.uwu-top0 { color:#666666 !important; }
.raid-switch { display:flex; padding:3px; gap:3px; border:1px solid #45403a; border-radius:7px; background:#101010; flex-shrink:0; }
.raid-switch button { border:0; border-radius:4px; padding:6px 12px; background:transparent; color:#a9a39a; cursor:pointer; font:inherit; font-size:12px; }
.raid-switch button[aria-pressed="true"] { color:#ffe0a0; background:#463321; box-shadow:inset 0 1px #ffffff15; }
.raid-switch button:hover { color:#ffcf7e; }
.raid-switch button:focus-visible { outline:2px solid #d5a04f; }
.raid-switch small { font-size:9px; opacity:.7; }
.raid-mode { margin-left:auto; color:#d9b875; font-size:9px; letter-spacing:.04em; }
.raid-mode-normal { color:#aaa; }
.wcl-bar-fill-normal { background:linear-gradient(90deg, #7c3aed, #c4b5fd); }
.raid-progress-heading { width:85px; white-space:nowrap; text-align:center !important; }
.raid-progress { text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums; font-size:12px; }
.raid-progress strong { display:block; color:#e2c68e; font-weight:500; }
.raid-progress strong small { font-size:9px; color:#ac9570; }
.raid-progress span { display:block; margin-top:3px; font-size:10px; color:#999; }
.wcl-page { max-width:1280px; }
#weekly-kills-section .wcl-box { min-width:0; }
#weekly-kills-section .wcl-box-title { flex-wrap:wrap; gap:8px; min-height:56px; box-sizing:border-box; }
#weekly-kills-section .guild-progress-name > span:first-child { white-space:nowrap; }
#weekly-kills-section .guild-boss-select { font-size:12px; width:240px; max-width:240px; flex-shrink:0; box-sizing:border-box; }
@media (max-width:600px) {
  #weekly-kills-section .wcl-table th, #weekly-kills-section .wcl-table td { padding-left:6px; padding-right:6px; }
  #weekly-kills-section .guild-progress-cell { min-width:110px; }
  #weekly-kills-section .wcl-box { overflow-x:auto; }
}
