/* ===== Страница события. Цвета задаются темой события (переменные на <body>) ===== */
body.ev {
  background:
    radial-gradient(ellipse 80% 40% at 85% 70%, var(--glow1), transparent 70%),
    radial-gradient(ellipse 60% 30% at 5% 98%, var(--glow2), transparent 70%),
    var(--bg);
  --line: color-mix(in srgb, var(--accent) 20%, transparent);
  --dim: var(--muted);
  --card: color-mix(in srgb, var(--bg) 85%, #fff 6%);
  --bg2: color-mix(in srgb, var(--bg) 92%, #fff 4%);
}
body.ev .site-head { background: color-mix(in srgb, var(--bg) 80%, transparent); }
body.ev .nav a.on, body.ev .langs a.on { background: color-mix(in srgb, var(--accent) 25%, transparent); box-shadow: none; }
body.ev .site-foot a { color: var(--accent2); }
.grad { background: linear-gradient(180deg, var(--g1, #fff) 0%, var(--g2, #ffc2a8) 45%, var(--g3, #ff5a36) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* обложка */
.ev-hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; }
.ev-cover { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.ev-cover::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent) 0%, transparent 25%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, var(--bg) 96%),
              linear-gradient(90deg, color-mix(in srgb, var(--bg) 85%, transparent) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 50%, transparent 80%); }
.ev-hero-in { position: relative; width: 100%; padding-top: 140px; padding-bottom: 36px; }
.ev-hero .back { margin-bottom: 22px; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); }
.ev-hero .kicker { color: var(--kicker); text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.ev-meta { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px;
  font-size: 15px; color: var(--muted); letter-spacing: .08em; }
.ev-meta b { color: var(--accent2); }
.ev-body > * { max-width: 1040px; }

/* ---------- classic: карточки EVE, Aion, WoW, Altar of Malice ---------- */
.s-classic .ev-years { margin-top: 14px; display: flex; align-items: baseline; gap: 22px; }
.s-classic .ev-years .num { font-size: clamp(110px, 16vw, 190px); font-weight: 800; line-height: .85;
  filter: drop-shadow(0 0 40px color-mix(in srgb, var(--accent) 55%, transparent)); }
.s-classic .ev-years .lbl { font-size: clamp(34px, 5vw, 64px); font-weight: 700; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.s-classic .ev-lead { margin-top: 18px; font-size: clamp(22px, 3vw, 34px); color: color-mix(in srgb, var(--text) 80%, #fff); line-height: 1.25; }
.s-classic .ev-lead b { display: block; color: #fff; font-weight: 800; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.02em; line-height: 1.05; margin-top: 4px; }
.s-classic .rule { margin: 34px 0 36px; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 15%, transparent) 70%, transparent); }
.s-classic .pts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 52px; }
.s-classic .pts li { position: relative; padding-left: 34px; font-size: 17.5px; line-height: 1.5; color: var(--text); }
.s-classic .pts li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 12px; border: 2px solid var(--accent);
  transform: rotate(45deg); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 90%, transparent); }
.s-classic .pts li b { display: block; color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.s-classic .fact { --h: var(--hl); position: relative; margin-top: 36px; padding: 26px 32px 28px 66px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--h) 20%, transparent), color-mix(in srgb, var(--h) 4%, transparent));
  border-left: 3px solid var(--h); }
.s-classic .fact.hl2 { --h: var(--hl2); }
.s-classic .fact + .fact { margin-top: 18px; }
.s-classic .fact::before { content: ""; position: absolute; left: 30px; top: 36px; width: 12px; height: 12px; border: 2px solid var(--h);
  transform: rotate(45deg); box-shadow: 0 0 12px var(--h); }
.s-classic .fact .k { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--h); }
.s-classic .fact h3 { margin-top: 6px; font-size: 23px; font-weight: 800; color: #fff; }
.s-classic .fact p { margin-top: 8px; font-size: 17.5px; line-height: 1.6; color: var(--text); }

/* ---------- magazine: Tears of Veeshan ---------- */
.s-magazine .ev-cover { filter: saturate(.85) contrast(1.05); }
.s-magazine .ev-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(160,20,30,.35), rgba(10,40,70,.25)); mix-blend-mode: multiply; }
.s-magazine .row { display: flex; align-items: center; gap: 22px; margin-top: 12px; }
.s-magazine .num { font-weight: 900; font-size: clamp(110px, 16vw, 190px); line-height: .78; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2.5px var(--accent); text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.s-magazine .ago { font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1; text-transform: uppercase; color: #fff; }
.s-magazine .what { margin-top: 10px; font-size: clamp(13px, 1.6vw, 18px); letter-spacing: .3em; text-transform: uppercase; color: var(--accent2); font-weight: 600; }
.s-magazine .game { margin-top: 26px; font-weight: 800; font-size: clamp(26px, 4vw, 46px); line-height: 1; text-transform: uppercase; letter-spacing: .04em; color: var(--game); }
.s-magazine .name { font-weight: 900; font-size: clamp(46px, 8.6vw, 104px); line-height: .95; text-transform: uppercase; letter-spacing: -.015em; color: #fff;
  text-shadow: 0 6px 40px rgba(0,0,0,.6), 0 0 60px color-mix(in srgb, var(--accent) 25%, transparent); }
.s-magazine .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 30px; }
.s-magazine .c { position: relative; padding: 22px 0 26px; border-top: 1px solid #262a31; }
.s-magazine .c .i { position: absolute; right: 0; top: 14px; font-weight: 900; font-size: 76px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.12); }
.s-magazine .c h3 { position: relative; font-weight: 800; font-size: 22px; line-height: 1.15; color: #fff; margin-bottom: 10px; }
.s-magazine .c h3::before { content: ""; display: block; width: 32px; height: 4px; background: var(--accent); margin-bottom: 14px; }
.s-magazine .c p { position: relative; font-size: 17.5px; line-height: 1.5; color: var(--text); }
.s-magazine .story { margin-top: 26px; background: var(--hl); color: #170708; padding: 36px 40px 40px; position: relative; overflow: hidden; }
.s-magazine .story::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 480px 320px at 100% 0%, var(--bg) 0%, color-mix(in srgb, var(--bg) 96%, transparent) 26%, rgba(40,6,10,.75) 48%, transparent 78%); }
.s-magazine .story > *:not(.eye) { position: relative; }
.s-magazine .story .wrap-eye { float: right; width: 300px; height: 190px; margin: -22px -30px 4px 18px; shape-outside: ellipse(48% 42% at 50% 52%); }
.s-magazine .story .eye { position: absolute; right: -10px; top: -12px; width: 340px; height: 204px; opacity: .78; background: url("../../img/dragon-eye.svg?v=aecce6cd") center / contain no-repeat; }
.s-magazine .story .k { font-size: 13px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; }
.s-magazine .story h3 { font-weight: 900; font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; letter-spacing: -.01em; margin: 8px 0 14px; line-height: 1; }
.s-magazine .story p { font-family: "Lora", Georgia, serif; font-size: 19px; line-height: 1.6; color: #22090b; }
.s-magazine .ev-meta { text-transform: uppercase; letter-spacing: .2em; font-size: 13px; border-top-color: #262a31; }
.s-magazine .ev-meta b { color: var(--game); }

/* ---------- chronicle: Tabula Rasa ---------- */
.s-chronicle .lead { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.s-chronicle .num { font-weight: 900; font-size: clamp(110px, 15vw, 170px); line-height: .8; color: var(--accent); letter-spacing: -.04em; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.s-chronicle .ago { font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; text-transform: uppercase; color: #fff; }
.s-chronicle .ago small { display: block; font-size: clamp(14px, 1.8vw, 20px); font-weight: 700; letter-spacing: .12em; color: var(--accent2); margin-top: 8px; text-transform: none; }
.s-chronicle h1 { font-weight: 900; font-size: clamp(40px, 6.5vw, 76px); line-height: 1.02; margin-top: 26px; letter-spacing: -.01em; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.s-chronicle h1 em { font-style: normal; color: var(--accent); }
.s-chronicle .tl { position: relative; margin-top: 34px; }
.s-chronicle .tl::before { content: ""; position: absolute; left: 229px; top: 18px; bottom: 18px; width: 3px; background: #26313a; border-radius: 2px; }
.s-chronicle .ev-i { display: grid; grid-template-columns: 210px 1fr; gap: 0 56px; padding: 16px 0; position: relative; }
.s-chronicle .ev-i::before { content: ""; box-sizing: border-box; position: absolute; left: 221px; top: 22px; width: 19px; height: 19px; border-radius: 50%; background: var(--bg); border: 4px solid var(--accent); }
.s-chronicle .ev-i .d { text-align: right; font-weight: 800; font-size: 20px; line-height: 1.15; color: var(--accent); white-space: nowrap; }
.s-chronicle .ev-i .d small { display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.s-chronicle .ev-i h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.s-chronicle .ev-i p { font-size: 17.5px; line-height: 1.5; color: var(--text); }
.s-chronicle .ev-i.now { margin: 10px -22px; padding: 22px; background: var(--accent); border-radius: 18px; }
.s-chronicle .ev-i.now::before { left: 243px; top: 28px; background: #06191b; border-color: #06191b; }
.s-chronicle .ev-i.now .d, .s-chronicle .ev-i.now .d small, .s-chronicle .ev-i.now h3 { color: #06191b; }
.s-chronicle .ev-i.now p { color: #0b2a2d; }
.s-chronicle .ev-i.court .d { color: var(--hl); }
.s-chronicle .ev-i.court::before { border-color: var(--hl); }
.s-chronicle .fact { margin-top: 30px; padding: 28px 32px; border-radius: 20px; background: #121921; border-left: 4px solid var(--hl); }
.s-chronicle .fact .k { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--hl); }
.s-chronicle .fact h3 { margin-top: 6px; font-size: 23px; font-weight: 800; color: #fff; }
.s-chronicle .fact p { margin-top: 8px; font-size: 17.5px; line-height: 1.6; color: var(--text); }

/* соседи */
.neighbours { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nb { display: block; padding: 18px 22px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); transition: .15s; }
.nb:hover { border-color: var(--accent); }
.nb span { font-size: 13px; color: var(--muted); font-weight: 600; }
.nb b { display: block; margin-top: 4px; font-weight: 700; }
.nb i { font-style: normal; font-size: 13px; color: var(--accent2); }
.nb.next { text-align: right; }
.nb.empty { border: 0; background: none; }

@media (max-width: 760px) {
  .ev-hero { min-height: 520px; }
  .ev-hero-in { padding-top: 110px; }
  .s-classic .pts, .s-magazine .grid { grid-template-columns: 1fr; gap: 22px; }
  .s-magazine .grid { gap: 0; }
  .s-classic .fact { padding: 22px 20px 22px 50px; }
  .s-classic .fact::before { left: 20px; top: 32px; }
  .s-magazine .story { padding: 28px 22px 30px; }
  .s-magazine .story .wrap-eye { width: 170px; height: 110px; margin: -16px -16px 4px 10px; }
  .s-magazine .story .eye { width: 200px; height: 120px; }
  .s-magazine .story p { font-size: 17px; }
  .s-chronicle .tl::before { left: 9px; }
  .s-chronicle .ev-i { grid-template-columns: 1fr; padding-left: 38px; gap: 4px; }
  .s-chronicle .ev-i::before { left: 1px; top: 20px; }
  .s-chronicle .ev-i .d { text-align: left; white-space: normal; }
  .s-chronicle .ev-i .d small { display: inline; margin-left: 8px; }
  .s-chronicle .ev-i.now { margin: 10px -12px 10px -12px; padding: 18px 16px 18px 50px; }
  .s-chronicle .ev-i.now::before { left: 13px; top: 22px; }
  .ev-meta { flex-direction: column; gap: 6px; }
  .neighbours { grid-template-columns: 1fr; }
}

/* цифры-итоги под заголовком и пункт со списком (используются по желанию события) */
.s-classic .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 0 0 40px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.s-classic .stat { padding: 18px 0 16px; text-align: center; }
.s-classic .stat + .stat { border-left: 1px solid rgba(255,255,255,.08); }
.s-classic .stat .v { font-family: "Lora", serif; font-weight: 700; font-size: 46px; line-height: 1; color: #fff; }
.s-classic .stat .v small { font-size: .62em; color: var(--accent2); margin-right: 2px; }
.s-classic .stat .l { margin-top: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--kicker); }
.s-classic .pts li.wide { grid-column: 1 / -1; }
.s-classic .pts li b small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.s-classic .subs { margin-top: 10px; }
.s-classic .sub { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); }
.s-classic .sub:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.s-classic .sub .n { font-weight: 700; color: var(--kicker); }
@media (max-width: 760px) {
  .s-classic .stats { grid-template-columns: repeat(2, 1fr); }
  .s-classic .stat:nth-child(3) { border-left: 0; }
  .s-classic .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .s-classic .sub { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 760px) { .s-classic .pts li b small { display: block; margin: 2px 0 0; } }

/* пункт с картинкой или гифкой справа */
.s-classic .pts li.media { display: grid; grid-template-columns: 1fr 240px; gap: 28px; align-items: start; }
.s-classic .pts li.media .pt-img { width: 240px; height: 240px; object-fit: cover; border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); }
@media (max-width: 760px) {
  .s-classic .pts li.media { grid-template-columns: 1fr; gap: 16px; }
  .s-classic .pts li.media .pt-img { width: 100%; height: auto; max-width: 320px; }
}

/* отдельная вставка-акцент с картинкой (например, «Звезда дополнения» в EverQuest) */
.feat.spotlight { margin-top: 40px; display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center;
  padding: 30px 32px; border-radius: 16px; position: relative;
  background: linear-gradient(120deg, rgba(242,194,48,.16), rgba(242,194,48,.05) 60%, rgba(0,0,0,.15));
  border: 1px solid rgba(242,194,48,.45); border-left: 5px solid #f2c230; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.feat.spotlight h3 { font-size: 26px; font-weight: 800; color: #f8d34a; line-height: 1.2; }
.feat.spotlight p { margin-top: 12px; font-size: 18px; line-height: 1.6; color: #f1ead2; }
.feat.spotlight .sp-img { width: 260px; height: 260px; object-fit: cover; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 2px rgba(242,194,48,.55); }
@media (max-width: 760px) {
  .feat.spotlight { grid-template-columns: 1fr; padding: 22px 18px; gap: 18px; }
  .feat.spotlight h3 { font-size: 22px; }
  .feat.spotlight p { font-size: 16.5px; }
  .feat.spotlight .sp-img { width: 100%; height: auto; max-width: 340px; }
}

/* вступление под заголовком; с графиком на фоне (например, рост подписчиков EVE после Exodus) */
.ev-intro { position: relative; margin: 8px 0 34px; padding: 30px 32px 24px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(255,255,255,.02));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.ev-intro .it { position: relative; z-index: 2; max-width: 620px; }
.ev-intro h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; color: #fff; }
.ev-intro p { margin-top: 12px; font-size: 18px; line-height: 1.6; color: var(--text); }
.ev-intro.has-chart { padding-bottom: 12px; }
.intro-plot { position: relative; height: 230px; margin: 16px -32px 0; }
.intro-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-chart .ic-line { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.intro-chart .ic-mark { stroke: var(--accent2); stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.intro-chart .ic-axis { stroke: rgba(255,255,255,.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.intro-plot .ic-yr { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--muted); }
.intro-plot .ic-mtext { position: absolute; transform: translate(-50%, -100%); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: #06101f; background: var(--accent2); }
.intro-plot .ic-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 0 14px var(--accent); }
.intro-plot .ic-val { position: absolute; transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap;
  font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.ev-intro .ic-cap { position: relative; z-index: 2; margin-top: 10px; font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 760px) {
  .ev-intro { padding: 22px 18px 18px; }
  .ev-intro p { font-size: 16.5px; }
  .intro-plot { height: 170px; margin: 12px -18px 0; }
  .intro-plot .ic-val { font-size: 13px; }
}
.intro-plot .ic-val.r { transform: translate(calc(-100% + 8px), calc(-100% - 12px)); }

/* график в шапке события (chartInHero): справа внизу поверх обложки */
.ev-hero-in { position: relative; }
.hero-chart { position: absolute; right: 28px; bottom: 0; width: min(560px, 46%); padding: 16px 0 10px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.hero-chart .intro-plot { height: 190px; margin: 26px 0 0; }
.hero-chart .ic-cap { margin: 8px 14px 0; font-size: 11.5px; color: var(--muted); text-align: right; }
@media (max-width: 960px) {
  .hero-chart { position: static; width: auto; margin-top: 26px; }
}
@media (max-width: 760px) {
  .hero-chart .intro-plot { height: 160px; }
}
