/* Тула Коматоз — гильдейский сайт в стиле 2008 года */

:root {
  --stone: #2a2a26;
  --stone-dark: #0e0c0b;
  --panel: #1a1716;
  --gold: #ffd24a;
  --gold-soft: #d9b949;
  --frame: #8a6a3a;
  --frame-dark: #3a2c1a;
  --text: #e6e1d6;
  --muted: #bdb6a8;

  --c-warrior: #c79c6e;
  --c-paladin: #f58cba;
  --c-hunter: #abd473;
  --c-rogue: #fff569;
  --c-priest: #ffffff;
  --c-mage: #69ccf0;
  --c-warlock: #9482c9;
  --c-druid: #ff7d0a;
  --c-shaman: #0070de;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .05 0 0 0 .55 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { background: #050404; }

body {
  margin: 0;
  background: #050404;
  color: var(--text);
  font: 15px/1.35 Arial, Helvetica, sans-serif;
}

a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 10px; }

/* ---------- Каркас ---------- */

.page {
  position: relative;
  width: 1402px;
  margin: 0 auto;
  padding-bottom: 10px;
  background: var(--noise), linear-gradient(180deg, #2c2b27, #22211e);
  box-shadow: 0 0 40px #000;
}

.header img { display: block; }

/* ---------- Навигация ---------- */

.nav {
  position: relative;
  height: 58px;
  margin-top: -2px;
  padding: 4px 62px 0 94px;
  background:
    linear-gradient(180deg, #3b3226 0, #17130f 3px, #0f0d0b 52px, #4a3a24 54px, #0f0e0c 58px);
  border-top: 1px solid #7a5f36;
}

.nav ul { display: flex; gap: 6px; height: 46px; }
.nav li { flex: 1 1 140px; }

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font: 700 21px/1 "PT Serif", Georgia, serif;
  color: #ffd86a;
  text-decoration: none;
  text-shadow: 0 1px 0 #000, 0 0 6px rgba(0, 0, 0, .9);
  background: var(--noise), linear-gradient(180deg, #403d39 0%, #262421 45%, #1a1816 100%);
  border: 2px solid #5b4a30;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px #0b0a09, 0 0 0 1px #000;
}

.nav a:hover { color: #fff1b0; background: var(--noise), linear-gradient(180deg, #4d4943, #2d2a26 50%, #1f1c19); }

.nav a.is-active {
  color: #ffd24a;
  background: linear-gradient(180deg, #2f6fd0 0%, #0f3b8f 50%, #082a6c 100%);
  border-color: #e7c66a;
  box-shadow: inset 0 0 10px rgba(110, 170, 255, .55), 0 0 6px rgba(255, 210, 100, .6), 0 0 0 1px #000;
}

.nav__orn { position: absolute; top: -12px; z-index: 2; pointer-events: none; }
.nav__orn--l { left: 0; }
.nav__orn--r { right: 0; }

/* ---------- Колонки ---------- */

.layout {
  display: grid;
  grid-template-columns: 289px 760px 297px;
  gap: 8px;
  align-items: stretch;
  padding: 3px 20px 0;
}

.col { display: flex; flex-direction: column; gap: 8px; }
.box--grow { flex: 1; }

/* ---------- Тёмная панель ---------- */

.box {
  position: relative;
  padding: 7px 12px 8px;
  background:
    url(../img/corner-dark-tl.png) left top no-repeat,
    url(../img/corner-dark-tr.png) right top no-repeat,
    url(../img/corner-dark-bl.png) left bottom no-repeat,
    url(../img/corner-dark-br.png) right bottom no-repeat,
    var(--noise), radial-gradient(ellipse at 50% 40%, #221f1c, #141210 90%);
  background-origin: border-box;
  border: 2px solid #6e5532;
  border-radius: 4px;
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #3a2d1c, 0 0 0 4px #000, inset 0 0 0 1px #000, inset 0 0 0 3px #4a3a24, inset 0 0 12px #000;
}


.box__title {
  margin: -4px -6px 8px;
  padding: 0 8px 4px 12px;
  font: 700 20px/1.15 "PT Serif", Georgia, serif;
  color: var(--gold);
  text-shadow: 0 1px 0 #000, 0 0 4px #000;
  background: linear-gradient(180deg, rgba(60, 60, 56, .55), rgba(30, 30, 28, .2));
  border-bottom: 1px solid #4a3a24;
  box-shadow: 0 1px 0 #000;
}

.box__body { padding: 0 8px; }

/* Онлайн */
.online { padding: 0 8px 0 22px; }
.online li { display: flex; align-items: center; gap: 8px; height: 24.7px; font-size: 16px; white-space: nowrap; }
.online li a { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.online li::before { flex: none; }
.online li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6ff9c 0, #4fd11d 35%, #1d6a05 80%);
  box-shadow: 0 0 4px rgba(90, 220, 40, .7);
}
.online a { text-decoration: none; font-weight: 700; }
.online span { color: var(--muted); }
.online .online__more a { text-decoration: none; }
.online .online__more a:hover { color: var(--gold); }
.online .online__more { padding-left: 2px; color: var(--text); }
.online .online__more::before { display: none; }

/* ---------- Новости (пергамент) ---------- */

.news {
  position: relative;
  padding: 11px 24px 8px 26px;
  color: #241507;
  background:
    url(../img/corner-parch-tl.png) left top no-repeat,
    url(../img/corner-parch-tr.png) right top no-repeat,
    url(../img/corner-parch-bl.png) left bottom no-repeat,
    url(../img/corner-parch-br.png) right bottom no-repeat,
    var(--mottle),
    radial-gradient(ellipse at 50% 55%, #e9cd96 0%, #ddb980 45%, #c49658 80%, #9a6a30 100%);
  background-origin: border-box;
  border: 2px solid #6e5532;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px #000, 0 0 0 3px #3a2d1c, 0 0 0 4px #000,
    inset 0 0 0 1px #2a1a08, inset 0 0 26px rgba(90, 50, 10, .75), inset 0 0 60px rgba(120, 70, 20, .35);
}

.news__title {
  margin: -4px -10px 2px -12px;
  padding: 1px 12px 3px;
  font: 700 27px/1.25 "PT Serif", Georgia, serif;
  color: var(--gold);
  text-shadow: 0 1px 0 #000, 0 0 5px #000, 1px 1px 2px #000;
  background: linear-gradient(90deg, rgba(60, 30, 5, .95) 0%, rgba(90, 50, 10, .85) 45%, rgba(165, 108, 34, .55) 80%, rgba(165, 108, 34, 0) 100%);
  border-radius: 2px;
}

.news__meta { margin: 0 0 4px 2px; font-size: 16px; color: #3a2a17; }

.news__body { font-size: 16px; line-height: 21px; }
.news__body p { margin-bottom: 8px; }
.news__body ul { margin: -4px 0 8px 34px; list-style: disc; line-height: 19px; }


/* ---------- Правая колонка ---------- */

.progress { padding: 0 8px; }
.progress__row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 3px; }
.bar {
  height: 15px;
  margin-bottom: 9px;
  background: #1c1a18;
  border: 1px solid #5a5248;
  box-shadow: 0 0 0 1px #000, inset 0 1px 3px #000;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, #6ff07a 0%, #22b52e 35%, #148a1d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.bar--blue i { background: linear-gradient(180deg, #6cc4ff 0%, #0a8ae0 35%, #0560aa 100%); }

.recruit { padding: 0 6px; }
.recruit li { display: flex; align-items: center; height: 26px; font-size: 16px; color: var(--text); }

.recruit b { margin-right: 5px; }
.recruit em { margin-left: 5px; font-style: normal; font-weight: 700; }


/* ---------- Цвета классов ---------- */

.c-warrior { color: var(--c-warrior); }
.c-paladin { color: var(--c-paladin); }
.c-mage { color: var(--c-mage); }
.c-priest { color: var(--c-priest); }
.c-druid { color: var(--c-druid); }
.c-shaman { color: var(--c-shaman); }
.c-warlock { color: var(--c-warlock); }
.c-rogue { color: var(--c-rogue); }
.c-hunter { color: var(--c-hunter); }

/* ---------- Подвал ---------- */

.footer {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  margin: 10px 20px 0;
  padding: 0 130px 0 160px;
  background: var(--noise), linear-gradient(180deg, #1d1b18, #121110);
  border-top: 2px solid #6e5532;
  border-bottom: 2px solid #6e5532;
  box-shadow: 0 -3px 0 -1px #2d2316, 0 3px 0 -1px #2d2316, inset 0 1px 0 #000, inset 0 -1px 0 #000;
}
.footer p { flex: 1; margin: 0; font-size: 15px; color: #d8d0c0; }
.footer__badges { display: flex; gap: 16px; align-items: center; }
.footer__badges img { display: block; }
.footer__orn { position: absolute; top: -8px; pointer-events: none; }
.footer__orn--l { left: -20px; }
.footer__orn--r { right: -20px; }

/* ---------- Иконки классов, статусы ---------- */

.cicon {
  width: 26px;
  height: 26px;
  margin-right: 14px;
  vertical-align: middle;
  border: 1px solid #000;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #6e5532;
}
.cicon--sm { width: 20px; height: 20px; margin-right: 8px; }

.recruit li { height: 30px; }
.st-need { color: #3fe43a; }
.st-open { color: #c8e86a; }
.st-closed { color: #ff3b30; }
.alliance { color: #4f8fff; }

/* ---------- Боковые блоки ---------- */

.info { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; padding: 2px 8px 6px 14px; font-size: 15px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }
.info__link, .more { display: block; margin: 0; padding: 4px 8px 4px 14px; font-size: 14px; color: var(--gold-soft); }
.info__link a, .more { color: var(--gold-soft); }
.info__link a:hover, .more:hover { color: var(--gold); }
.more { padding: 0; text-align: right; }

.classes { padding: 2px 16px 4px 6px; }
.classes li { display: flex; align-items: center; height: 26px; font-size: 15px; font-weight: 700; }
.classes span { flex: 1; }
.classes b { color: var(--text); }

/* ---------- Страницы в центре ---------- */

.box--page { padding: 10px 16px 14px; }
.box--page .box__title { margin: -6px -10px 12px; padding: 2px 12px 6px; font-size: 25px; }
.box--page .box__body { padding: 0 4px; }

.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.note a { color: var(--gold-soft); }
.note--top { margin: 0 0 12px; font-size: 15px; color: var(--text); }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th {
  padding: 6px 10px;
  text-align: left;
  font-weight: 700;
  color: var(--gold);
  background: linear-gradient(180deg, #3a342b, #231f1a);
  border-top: 1px solid #6e5532;
  border-bottom: 1px solid #000;
}
.table td { padding: 5px 10px; border-bottom: 1px solid #000; vertical-align: middle; }
.table tbody tr:nth-child(odd) { background: rgba(110, 87, 37, .14); }
.table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.table tbody tr:hover { background: rgba(255, 210, 74, .08); }
.table .num { text-align: center; }
.table a { text-decoration: none; }
.table a:hover b { text-decoration: underline; }
.table em { font-style: normal; font-weight: 700; }
.table .bar { margin: 0; }

.roster th { cursor: pointer; user-select: none; white-space: nowrap; }
.roster th:hover { color: #fff1b0; }
.roster th.is-sorted::after { content: " ▲"; font-size: 10px; }
.roster th.is-sorted.is-desc::after { content: " ▼"; }
.avatar {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  vertical-align: middle;
  background: #000;
  border: 1px solid #6e5532;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #000;
}

.filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter__btn {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  font: 700 15px Arial, sans-serif;
  color: var(--text);
  background: var(--noise), linear-gradient(180deg, #403d39, #1f1c19);
  border: 1px solid #5b4a30;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #000;
  cursor: pointer;
}
.filter__btn b { margin-left: 6px; color: var(--gold); }
.filter__btn .cicon { margin-right: 0; }
.filter__btn:hover { border-color: #b08a4a; }
.filter__btn.is-active {
  background: linear-gradient(180deg, #2f6fd0, #0f3b8f 50%, #082a6c);
  border-color: #e7c66a;
}

.leveling li { display: flex; align-items: center; height: 30px; }
.leveling__name { width: 210px; }
.leveling__name a { text-decoration: none; }
.leveling .bar { flex: 1; margin: 0 14px 0 0; }
.leveling__lvl { width: 60px; text-align: right; color: var(--muted); }

.raids td:first-child { width: 220px; font-weight: 700; }
.raids td:nth-child(2) { width: 90px; }

.recruit-table td:nth-child(4) { color: var(--muted); }

/* ---------- Галерея ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery__item { display: block; text-decoration: none; color: var(--text); }
.gallery__item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid #6e5532; box-shadow: 0 0 0 1px #000; }
.gallery__item span { display: block; padding: 4px 2px; font-size: 13px; }
.gallery__item i { color: var(--muted); font-style: normal; }
.gallery__item:hover img { border-color: var(--gold); }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 16px; }
.empty p:first-child { font: 700 22px "PT Serif", Georgia, serif; color: var(--gold); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .85);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; border: 2px solid #6e5532; }
.lightbox figcaption { margin-top: 8px; text-align: center; color: var(--text); }

.noscript { padding: 40px; text-align: center; color: var(--text); }
