/* =============================================================================
   Fearadept — тема «Ледяная корона»: тёмная ночь Нордскола, морозный циан,
   немного золота. Всё на CSS-переменных, анимации уважают reduced-motion.
   ============================================================================= */

:root {
  --bg: #060a14;
  --bg-2: #0a1122;
  --ink: #e8f1ff;
  --ink-2: #a9b8d4;
  --ink-3: #6f7f9e;
  --frost: #7fd8ff;
  --frost-2: #3aa8e8;
  --frost-glow: rgba(127, 216, 255, .35);
  --gold: #e9c46a;
  --alliance: #3d7dff;
  --horde: #e0393e;
  --card: rgba(14, 22, 42, .62);
  --card-border: rgba(140, 190, 255, .14);
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Cinzel", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 500 15.5px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--frost); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
::selection { background: var(--frost); color: var(--bg); }

/* --------------------------------------------------------------- переходы между страницами */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
.nav { view-transition-name: nav; }
.sky { view-transition-name: sky; }

/* --------------------------------------------------------------- небо: аврора, снег, зерно */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(1200px 700px at 70% -10%, #13234a 0%, transparent 60%),
              radial-gradient(900px 600px at 0% 110%, #0d1a35 0%, transparent 60%),
              var(--bg); }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; mix-blend-mode: screen; will-change: transform; }
.a1 { width: 60vw; height: 40vh; left: -10vw; top: -8vh; background: radial-gradient(closest-side, #1fd1c1, transparent); animation: drift1 26s ease-in-out infinite alternate; }
.a2 { width: 55vw; height: 45vh; right: -15vw; top: 5vh; background: radial-gradient(closest-side, #3a6cff, transparent); animation: drift2 32s ease-in-out infinite alternate; }
.a3 { width: 40vw; height: 30vh; left: 30vw; top: 25vh; background: radial-gradient(closest-side, #8a5cff, transparent); opacity: .25; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 10vh) scale(1.2) rotate(12deg); } }
@keyframes drift2 { to { transform: translate(-20vw, 8vh) scale(.9) rotate(-10deg); } }
@keyframes drift3 { to { transform: translate(-10vw, -12vh) scale(1.3); } }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain { position: absolute; inset: -50%; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite; }
@keyframes grain { 50% { transform: translate(-5%, 4%); } 100% { transform: translate(3%, -6%); } }

/* --------------------------------------------------------------- навигация */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(14px) saturate(1.4);
  background: linear-gradient(to bottom, rgba(6, 10, 20, .85), rgba(6, 10, 20, .55));
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
.nav.scrolled { border-bottom-color: var(--card-border); padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); letter-spacing: .06em; color: var(--ink); }
.brand svg { width: 26px; height: 26px; fill: var(--frost); filter: drop-shadow(0 0 8px var(--frost-glow)); transition: transform .6s var(--ease); }
.brand:hover svg { transform: rotate(144deg) scale(1.1); }
.links { display: flex; align-items: center; gap: 4px; }
.links a:not(.btn) { position: relative; padding: 8px 14px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; border-radius: 10px; }
.links a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--frost), var(--frost-2)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.links a:not(.btn):hover, .links a.active { color: var(--ink); }
.links a:not(.btn):hover::after, .links a.active::after { transform: scaleX(1); }
.links .btn { margin-left: 10px; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span + span { margin-top: 7px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* --------------------------------------------------------------- раскладка */
.main { flex: 1; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(720px, 100% - 32px); }
.page-top { padding-top: clamp(28px, 6vw, 64px); padding-bottom: 64px; }
section.container + section.container { margin-top: 56px; }
.page-title { font: 700 clamp(28px, 4vw, 40px)/1.15 var(--display); letter-spacing: .02em; margin: 0 0 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2, .section-head h1 { margin: 0; font: 700 clamp(22px, 3vw, 30px) var(--display); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.link-arrow { font-weight: 600; display: inline-flex; gap: 6px; }
.link-arrow.back { display: inline-block; margin-bottom: 20px; }

/* --------------------------------------------------------------- карточки */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -30px rgba(0, 0, 0, .8);
}
/* морозная рамка, которая проявляется при наведении */
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(127, 216, 255, .55), transparent 35%, transparent 65%, rgba(138, 92, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
a.card { color: inherit; display: block; }
a.card:hover::before, .card.tilt:hover::before { opacity: 1; }
.card-title { margin: 0 0 14px; font: 700 16px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tilt { transition: transform .4s var(--ease), box-shadow .4s; transform-style: preserve-3d; }
.tilt:hover { box-shadow: 0 30px 60px -30px rgba(58, 168, 232, .45); }

/* --------------------------------------------------------------- кнопки */
.btn {
  --h: 42px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 700 14.5px var(--body); letter-spacing: .02em; cursor: pointer; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .3s, background .3s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { --h: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-frost {
  color: #04121f;
  background: linear-gradient(135deg, #b9ecff, var(--frost) 40%, var(--frost-2));
  box-shadow: 0 8px 30px -8px var(--frost-glow), 0 0 0 1px rgba(255, 255, 255, .25) inset;
}
.btn-frost:hover { color: #04121f; box-shadow: 0 12px 40px -6px rgba(127, 216, 255, .6), 0 0 0 1px rgba(255, 255, 255, .4) inset; transform: translateY(-1px); }
/* блик, пробегающий по кнопке */
.btn-frost::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-frost:hover::after { left: 130%; }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .04); border-color: var(--card-border); }
.btn-ghost:hover { color: #fff; background: rgba(127, 216, 255, .1); border-color: rgba(127, 216, 255, .4); }

/* --------------------------------------------------------------- hero */
.hero { position: relative; min-height: calc(100vh - 70px); display: grid; place-items: center; text-align: center; padding: 40px 16px 90px; }
.hero-inner { max-width: 860px; }
.eyebrow { margin: 0 0 14px; font-weight: 700; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--frost); }
.hero-title { margin: 0; font: 900 clamp(52px, 11vw, 128px)/.95 var(--display); letter-spacing: .03em; }
.shimmer {
  background: linear-gradient(110deg, #9fb3d9 0%, #ffffff 20%, var(--frost) 35%, #ffffff 50%, #9fb3d9 70%, #e9f6ff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
  filter: drop-shadow(0 0 30px rgba(127, 216, 255, .25));
}
@keyframes shimmer { to { background-position: -250% 0; } }
.hero-sub { margin: 22px auto 30px; max-width: 560px; font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 99px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--card-border); font-size: 14px; font-weight: 600; }
.status-pill .sep { color: var(--ink-3); }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); position: relative; }
.status-pill.up .dot { background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.status-pill.up .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #3ddc84; animation: ping 1.8s var(--ease) infinite; }
.status-pill.down .dot { background: var(--horde); box-shadow: 0 0 10px var(--horde); }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.realmlist { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 12px 18px; cursor: pointer;
  color: var(--ink); background: rgba(4, 10, 22, .7); border: 1px dashed rgba(127, 216, 255, .35); border-radius: 12px;
  font: inherit; transition: border-color .3s, background .3s, transform .2s var(--ease); }
.realmlist:hover { border-color: var(--frost); background: rgba(127, 216, 255, .08); }
.realmlist:active { transform: scale(.98); }
.realmlist code { color: var(--frost); }
.copy-hint { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); transition: color .2s; }
.realmlist.copied .copy-hint { color: #3ddc84; }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(169, 184, 212, .4); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--frost); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------- статистика */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { font: 700 clamp(30px, 4vw, 42px)/1.1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.stat-value.small { font-size: clamp(22px, 3vw, 30px); }
.stat-foot { font-size: 13px; color: var(--ink-3); }
.faction-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06); margin: 4px 0; }
.faction-bar span { height: 100%; transition: width 1.2s var(--ease); }
.faction-bar .alliance { background: linear-gradient(90deg, #2257d6, var(--alliance)); }
.faction-bar .horde { background: linear-gradient(90deg, var(--horde), #9d1b1f); }
.txt-alliance { color: #6f9dff; font-weight: 600; }
.txt-horde { color: #ff6b6f; font-weight: 600; }
.faction-split { display: flex; gap: 18px; }
.stat-mini { display: flex; flex-direction: column; gap: 4px; }

/* --------------------------------------------------------------- фичи */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; }
.feature h3 { margin: 14px 0 6px; font: 700 21px var(--display); }
.feature p { margin: 0; color: var(--ink-2); }
.feature-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 22px; color: var(--frost);
  background: radial-gradient(circle at 30% 30%, rgba(127, 216, 255, .25), rgba(127, 216, 255, .05)); border: 1px solid rgba(127, 216, 255, .25);
  transition: transform .5s var(--ease); }
.feature:hover .feature-ico { transform: rotate(-8deg) scale(1.1); }

/* --------------------------------------------------------------- таблицы */
.table-card { padding: 6px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 12px 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.table td { padding: 10px 14px; border-top: 1px solid rgba(140, 190, 255, .07); vertical-align: middle; }
.table tbody tr { transition: background .2s; animation: row-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms + 150ms); }
.table tbody tr:hover { background: rgba(127, 216, 255, .05); }
@keyframes row-in { from { opacity: 0; transform: translateX(-10px); } }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table.compact td { padding: 8px 6px; }
.rank { width: 44px; font: 700 15px var(--display); color: var(--ink-3); }
.podium { font-size: 18px; }
.podium.p1 { color: #ffd76a; text-shadow: 0 0 14px rgba(255, 215, 106, .6); }
.podium.p2 { color: #d9e3f0; text-shadow: 0 0 12px rgba(217, 227, 240, .4); }
.podium.p3 { color: #e09a5c; text-shadow: 0 0 12px rgba(224, 154, 92, .4); }
.lvl { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 8px; font-weight: 700;
  background: rgba(127, 216, 255, .1); color: var(--frost); }

.char { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.ico-pair { display: flex; }
.ico-pair img { width: 28px; height: 28px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .15); }
.ico-pair img + img { margin-left: -6px; box-shadow: -2px 0 0 var(--bg-2); }
.char-name { color: var(--cc, #fff); font-weight: 700; }
.char:hover .char-name { text-shadow: 0 0 16px var(--cc); }
.guild-tag, .guild-name { color: #7ddf8a; font-weight: 600; font-size: 13.5px; }

.faction { display: inline-block; width: 22px; height: 22px; border-radius: 50%; position: relative; }
.faction.alliance { background: radial-gradient(circle at 35% 30%, #8fb4ff, var(--alliance) 55%, #102a73); box-shadow: 0 0 10px rgba(61, 125, 255, .5); }
.faction.horde { background: radial-gradient(circle at 35% 30%, #ff9b9e, var(--horde) 55%, #5c0a0d); box-shadow: 0 0 10px rgba(224, 57, 62, .5); }
.badge { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 10px; border-radius: 10px; vertical-align: middle;
  font: 700 16px var(--body); background: rgba(127, 216, 255, .12); color: var(--frost); }

/* --------------------------------------------------------------- армори */
.search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; max-width: 560px; margin-bottom: 18px;
  background: rgba(4, 10, 22, .7); border: 1px solid var(--card-border); border-radius: 14px; transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: rgba(127, 216, 255, .55); box-shadow: 0 0 0 4px rgba(127, 216, 255, .12); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 600 16px var(--body); height: 36px; }
.search.inline { margin: 0; flex: 1 1 260px; max-width: none; }

.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.char-card { display: flex !important; align-items: center; gap: 14px; padding: 16px; }
.char-card .faction { margin-left: auto; flex: none; }
.char-card-ico { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--cc); box-shadow: 0 0 18px -4px var(--cc); flex: none; }

.char-hero { display: flex; align-items: center; gap: 24px; padding: 28px; overflow: hidden; flex-wrap: wrap; }
.char-hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 200px at 0% 0%, color-mix(in srgb, var(--cc) 30%, transparent), transparent 70%); }
.char-portrait { position: relative; flex: none; }
.char-portrait img { width: 96px; height: 96px; border-radius: 20px; border: 2px solid var(--cc); box-shadow: 0 0 40px -6px var(--cc); }
.char-portrait .cls { position: absolute; right: -10px; bottom: -10px; width: 40px; height: 40px; border-radius: 12px; box-shadow: none; border-color: var(--bg); border-width: 3px; }
.char-title { margin: 0; font: 900 clamp(32px, 5vw, 48px)/1 var(--display); color: var(--cc); text-shadow: 0 0 40px color-mix(in srgb, var(--cc) 40%, transparent); display: flex; align-items: center; gap: 14px; }
.char-sub { margin: 8px 0 4px; color: var(--ink-2); font-size: 16px; }
.char-hero-info { flex: 1; min-width: 220px; position: relative; }
.char-hero-side { display: flex; align-items: center; gap: 18px; position: relative; }
.online-dot { width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 12px #3ddc84; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.ilvl-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--frost) calc(var(--p) * 1%), rgba(255, 255, 255, .07) 0);
  animation: ring-in 1.4s var(--ease) both; }
.ilvl-ring span { width: 76px; height: 76px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; align-content: center; text-align: center; line-height: 1.1; }
.ilvl-ring b { font: 700 24px var(--display); }
.ilvl-ring small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes ring-in { from { --p: 0; } }

.char-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 16px; }
.char-side { display: flex; flex-direction: column; gap: 16px; }
.equip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.equip-col { display: flex; flex-direction: column; gap: 8px; }
.equip-weapons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--card-border); }
.slot { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name ilvl" "item ilvl"; align-items: center; column-gap: 8px;
  padding: 8px 12px; border-radius: 11px; background: rgba(255, 255, 255, .025);
  border-left: 3px solid var(--qc, rgba(255, 255, 255, .08)); transition: background .25s, transform .25s var(--ease); min-height: 54px; }
.slot:not(.empty):hover { background: color-mix(in srgb, var(--qc) 10%, transparent); transform: translateX(3px); }
.slot-name { grid-area: name; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.slot-item { grid-area: item; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-ilvl { grid-area: ilvl; font: 700 13px var(--body); color: var(--ink-3); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.skill + .skill { margin-top: 12px; }
.skill-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.bar { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--frost-2), var(--frost));
  box-shadow: 0 0 12px var(--frost-glow); animation: grow 1.2s var(--ease) both .3s; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.ach-list, .plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ach-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }

/* --------------------------------------------------------------- деньги */
.coins { display: inline-flex; gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.coins span::after { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 3px; vertical-align: -1px; }
.coins .g::after { background: radial-gradient(circle at 35% 35%, #fff3b0, #e1b12c 60%, #8a6a10); }
.coins .s::after { background: radial-gradient(circle at 35% 35%, #fff, #b8c2cc 60%, #6b7480); }
.coins .c::after { background: radial-gradient(circle at 35% 35%, #ffd2a8, #c46f2c 60%, #6b3510); }

/* --------------------------------------------------------------- предметы */
.q0 { color: #9d9d9d !important; } .q1 { color: #ffffff !important; } .q2 { color: #1eff00 !important; }
.q3 { color: #0070dd !important; } .q4 { color: #a335ee !important; } .q5 { color: #ff8000 !important; }
.q6 { color: #e6cc80 !important; } .q7 { color: #00ccff !important; }
.items-table a { font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; margin-bottom: 16px; }
.filters select, .filters .ilvl {
  height: 42px; padding: 0 12px; border-radius: 12px; color: var(--ink); font: 600 14px var(--body);
  background: rgba(4, 10, 22, .7); border: 1px solid var(--card-border); outline: 0; transition: border-color .3s;
}
.filters select:focus, .filters .ilvl:focus { border-color: rgba(127, 216, 255, .55); }
.filters select option { background: var(--bg-2); }
.filters .ilvl { width: 96px; }

.item-layout { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 16px; align-items: start; }
.item-side { display: flex; flex-direction: column; gap: 16px; }
.tooltip-card { border-color: color-mix(in srgb, var(--qc) 45%, transparent); background: rgba(6, 10, 22, .9); overflow: hidden; }
.tooltip-card p { margin: 4px 0; }
.tooltip-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px 160px at 50% 0%, color-mix(in srgb, var(--qc) 22%, transparent), transparent 70%); }
.item-name { position: relative; margin: 0 0 4px; font: 700 24px/1.2 var(--display); color: var(--qc); text-shadow: 0 0 24px color-mix(in srgb, var(--qc) 50%, transparent); }
.item-ilvl { color: var(--gold); }
.item-row { display: flex; justify-content: space-between; gap: 10px; }
.stat-green { color: #1eff00; }
.item-desc { color: #ffd100; font-style: italic; }
.tooltip-card .link-arrow { margin-top: 14px; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; vertical-align: 1px; }
.tag.boss { background: rgba(224, 57, 62, .18); color: #ff8a8d; }
.tag.elite { background: rgba(233, 196, 106, .15); color: var(--gold); }
.chance { display: inline-block; min-width: 64px; padding: 2px 8px; border-radius: 7px; font-weight: 700; font-size: 13px;
  background: linear-gradient(90deg, rgba(127, 216, 255, .25) var(--w), rgba(255, 255, 255, .05) var(--w)); }

/* --------------------------------------------------------------- табы и пагинация */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; margin-bottom: 18px; width: fit-content; max-width: 100%;
  background: rgba(4, 10, 22, .6); border: 1px solid var(--card-border); border-radius: 14px; }
.tab { padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background .3s, color .2s; }
.tab:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.tab.active { color: #04121f; background: linear-gradient(135deg, #b9ecff, var(--frost)); box-shadow: 0 6px 20px -6px var(--frost-glow); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }

/* --------------------------------------------------------------- формы */
.form-card { padding: clamp(22px, 4vw, 40px); }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12.5px; }
.field input {
  height: 48px; padding: 0 16px; border-radius: 12px; color: var(--ink); font: 600 16px var(--body);
  background: rgba(4, 10, 22, .7); border: 1px solid var(--card-border); outline: 0;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input:focus { border-color: rgba(127, 216, 255, .6); box-shadow: 0 0 0 4px rgba(127, 216, 255, .12); background: rgba(4, 10, 22, .9); }
.field input:user-invalid { border-color: rgba(224, 57, 62, .7); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.strength { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .4s var(--ease), background .4s; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(224, 57, 62, .1); border: 1px solid rgba(224, 57, 62, .35);
  color: #ffb3b5; animation: shake .5s var(--ease); }
.alert p { margin: 2px 0; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.success { text-align: center; overflow: hidden; }
.success .steps { text-align: left; margin: 18px auto; max-width: 480px; }
.success .steps li { margin: 8px 0; }
.success .realmlist { margin: 10px 0 22px; }
.success-burst { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(61, 220, 132, .25), transparent 55%); animation: burst 1.6s var(--ease) both; }
@keyframes burst { from { opacity: 0; transform: scale(.6); } }

/* --------------------------------------------------------------- как играть */
.howto { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.howto li { display: flex; gap: 20px; align-items: flex-start; }
.howto h3 { margin: 4px 0 6px; font: 700 20px var(--display); }
.howto p { margin: 0 0 12px; color: var(--ink-2); }
.howto .realmlist { margin-top: 0; }
.howto-n { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font: 900 22px var(--display);
  color: #04121f; background: linear-gradient(135deg, #b9ecff, var(--frost)); box-shadow: 0 8px 24px -8px var(--frost-glow); }

/* --------------------------------------------------------------- пусто/ошибка */
.empty { text-align: center; padding: 48px 24px; }
.empty-ico { font-size: 40px; color: var(--frost); display: block; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(20deg); } }
.error-page { text-align: center; }
.error-code { font: 900 clamp(90px, 20vw, 180px)/1 var(--display); }

/* --------------------------------------------------------------- футер */
.footer { margin-top: 40px; border-top: 1px solid var(--card-border); background: rgba(4, 8, 18, .6); }
.footer-inner { width: min(1180px, 100% - 32px); margin-inline: auto; padding: 24px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }

/* --------------------------------------------------------------- появление при скролле */
.reveal { opacity: 0; transform: translateY(22px); filter: blur(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* --------------------------------------------------------------- тултипы wowhead поверх темы */
.wowhead-tooltip { z-index: 100 !important; }

/* --------------------------------------------------------------- адаптив */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .char-layout, .item-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .links { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: rgba(8, 14, 28, .96); border: 1px solid var(--card-border); border-radius: 16px; backdrop-filter: blur(16px);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links a:not(.btn) { padding: 12px 14px; }
  .links a:not(.btn)::after { display: none; }
  .links .btn { margin: 8px 0 0; }
  .hide-sm { display: none; }
  .equip-cols, .equip-weapons, .field-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 70px; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .realmlist { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  #snow { display: none; }
}
