/* Cubetale — стили. Без внешних зависимостей. Анимации только на transform/opacity (GPU), уважают prefers-reduced-motion. */
:root {
  --bg: #050f15; --bg2: #07161e; --panel: #0b1a24; --panel2: #102632; --line: #16303d; --line2: #1f4151;
  --accent: #19d3da; --accent2: #6fa8ff; --orange: #ff7a3d; --orange-d: #e2551b; --green: #22c58b; --red: #f93466; --gold: #f5c04a; --purple: #a96afc;
  --text: #9db2bf; --light: #eaf3f7; --muted: #6d8593; --radius: 14px; --shadow: 0 12px 34px rgba(0,0,0,.38);
  --side: 272px; --bar: 60px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --tc: 28; --tr: 16; --ic: 40; --ir: 18;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 14px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; } button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--light); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
::selection { background: rgba(25,211,218,.3); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }

/* ── Каркас: левое меню + контент ── */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #081a23, #06121a); border-right: 1px solid var(--line); z-index: 60; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.show { opacity: 1; pointer-events: auto; }
#app { flex: 1; outline: none; }

/* ── Бренд ── */
.brand { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; text-decoration: none !important; border-bottom: 1px solid var(--line); overflow: hidden; }
.brand::before { content: ""; position: absolute; left: -20px; top: -30px; width: 130px; height: 130px; background: radial-gradient(closest-side, rgba(25,211,218,.28), transparent); animation: glow 4.5s ease-in-out infinite; pointer-events: none; }
.dragon { position: relative; flex: none; width: 46px; height: 56px; background: linear-gradient(165deg, #ffffff 10%, #7ff0f4 55%, #19d3da); -webkit-mask: url(../logo.png) center / contain no-repeat; mask: url(../logo.png) center / contain no-repeat; animation: float 5s ease-in-out infinite; }
.dragon.sm { width: 24px; height: 30px; animation: none; }
.wordmark { width: 146px; height: auto; overflow: visible; }
.wordmark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; }
.wordmark path:nth-child(2) { animation-delay: .06s } .wordmark path:nth-child(3) { animation-delay: .12s } .wordmark path:nth-child(4) { animation-delay: .18s }
.wordmark path:nth-child(5) { animation-delay: .24s } .wordmark path:nth-child(6) { animation-delay: .30s } .wordmark path:nth-child(7) { animation-delay: .36s } .wordmark path:nth-child(8) { animation-delay: .42s }
.brand:hover .wordmark { filter: drop-shadow(0 0 8px rgba(25,211,218,.55)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 50% { transform: translateY(-4px); } }
@keyframes glow { 50% { opacity: .45; transform: scale(1.15); } }

/* ── Навигация слева ── */
.snav { flex: 1; overflow-y: auto; padding: 10px 10px 6px; overscroll-behavior: contain; }
.snav a.top, .snav .grp > button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; text-align: left; text-decoration: none !important; border-left: 3px solid transparent; transition: background .18s, color .18s, border-color .18s; }
.snav a.top:hover, .snav .grp > button:hover { background: rgba(25,211,218,.07); color: var(--light); }
.snav a.top.on { background: linear-gradient(90deg, rgba(25,211,218,.18), transparent); color: var(--light); border-left-color: var(--accent); }
.snav .ico { color: var(--accent); }
.grp .chev { margin-left: auto; transition: transform .25s var(--ease); opacity: .6; }
.grp.open .chev { transform: rotate(90deg); }
.grp .items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.grp.open .items { grid-template-rows: 1fr; }
.grp .items > div { overflow: hidden; }
.grp .items a { display: flex; align-items: center; gap: 9px; margin: 1px 0 1px 14px; padding: 6px 10px 6px 14px; border-radius: 8px; color: var(--text); font-size: 13.5px; border-left: 1px solid var(--line2); text-decoration: none !important; transition: .15s; }
.grp .items a:hover { color: var(--light); background: rgba(25,211,218,.06); }
.grp .items a.on { color: var(--light); border-left-color: var(--accent); background: linear-gradient(90deg, rgba(25,211,218,.14), transparent); font-weight: 600; }
.grp .items a .sp { opacity: .85; }
.sfoot { padding: 12px 14px 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ipcard { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 6px; }
.ipline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; } .ipline b { color: var(--light); }
.ipbtn { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px dashed var(--accent); border-radius: 8px; color: var(--accent); transition: .15s; }
.ipbtn:hover { background: rgba(25,211,218,.08); border-style: solid; } .ipbtn code { font: 700 14px ui-monospace, Consolas, monospace; }
.soc { display: flex; gap: 8px; justify-content: center; }
.soc a { width: 36px; height: 36px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; color: var(--light); transition: .18s; }
.soc a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── Верхняя панель ── */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar); display: flex; align-items: center; gap: 12px; padding: 0 22px; background: rgba(5,15,21,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.gsearch { position: relative; flex: 1; max-width: 460px; }
.gsearch input { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 9px 14px 9px 38px; color: var(--light); font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.gsearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25,211,218,.12); }
.gsearch .ico { position: absolute; left: 12px; top: 11px; color: var(--muted); pointer-events: none; }
.pill { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.pill b { color: var(--light); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; flex: none; }
.dot.off { background: var(--red); box-shadow: none; animation: none; }
.dot.site { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pill.pill-site { margin-left: 0; } .ipsite { margin-left: auto; color: var(--muted); } .ipsite b { color: var(--light); }
@keyframes pulse { 50% { opacity: .35; } }
.burger, .mini-brand { display: none; }
.burger { width: 42px; height: 42px; border-radius: 10px; place-items: center; color: var(--light); font-size: 22px; }
.mini-brand { align-items: center; gap: 8px; font-weight: 900; letter-spacing: .08em; color: var(--light); text-decoration: none !important; font-size: 15px; }

/* ── Кнопки ── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 11px 20px; font-weight: 700; font-size: 14px; text-decoration: none !important; transition: transform .18s var(--ease), filter .18s, box-shadow .18s; white-space: nowrap; min-height: 42px; }
.btn-sm { padding: 7px 14px; min-height: 36px; font-size: 13px; }
.btn-primary { background: linear-gradient(180deg, #2fe0e6, #12b7be); color: #04252a; box-shadow: 0 6px 22px rgba(25,211,218,.28); }
.btn-orange { background: linear-gradient(180deg, #ff8a52, #e2551b); color: #fff; box-shadow: 0 6px 22px rgba(226,85,27,.32); }
.btn-ghost { background: var(--panel); border-color: var(--line2); color: var(--light); }
.btn-green { background: linear-gradient(180deg, #25cf93, #139a69); color: #fff; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); } .btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: shine 4.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 140%; } }

/* ── Спрайты из ресурспака ── */
.spr { --z: 3; display: inline-block; flex: none; width: calc(16px * var(--z)); height: calc(16px * var(--z)); image-rendering: pixelated; background-repeat: no-repeat; vertical-align: middle;
  background-position: calc(var(--x, 0) * -16px * var(--z)) calc(var(--y, 0) * -16px * var(--z)); }
.spr.t { background-image: url(traits.png); background-size: calc(var(--tc) * 16px * var(--z)) calc(var(--tr) * 16px * var(--z)); }
.spr.i { background-image: url(items.png); background-size: calc(var(--ic) * 16px * var(--z)) calc(var(--ir) * 16px * var(--z)); }
.spr.v { background-image: url(vanilla.png?v=r8); background-size: calc(var(--vc, 24) * 16px * var(--z)) calc(var(--vr, 1) * 16px * var(--z)); }
.spr.z1 { --z: 1 } .spr.z2 { --z: 2 } .spr.z4 { --z: 4 } .spr.z5 { --z: 5 }
.sp { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; overflow: hidden; border-radius: 6px; background: rgba(25,211,218,.07); }
.sp .spr { --z: 1; }

/* ── Главная ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(900px 420px at 80% -10%, rgba(25,211,218,.15), transparent 60%), radial-gradient(700px 380px at 0% 110%, rgba(255,122,61,.11), transparent 60%), var(--bg2); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .22; mask-image: linear-gradient(#000, transparent 85%); -webkit-mask-image: linear-gradient(#000, transparent 85%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; padding: 64px 36px; max-width: 1180px; margin: 0 auto; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; will-change: transform; }
.orb.a { width: 320px; height: 320px; right: 8%; top: -80px; background: rgba(25,211,218,.35); animation: drift 16s ease-in-out infinite; }
.orb.b { width: 260px; height: 260px; left: 10%; bottom: -90px; background: rgba(255,122,61,.28); animation: drift 20s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate3d(40px, 24px, 0) scale(1.1); } }
.cubes i { position: absolute; width: 10px; height: 10px; border: 1px solid rgba(25,211,218,.5); background: rgba(25,211,218,.08); bottom: -20px; animation: rise 14s linear infinite; opacity: 0; }
.cubes i:nth-child(1) { left: 8%; animation-delay: 0s } .cubes i:nth-child(2) { left: 22%; animation-delay: 3s; width: 14px; height: 14px } .cubes i:nth-child(3) { left: 38%; animation-delay: 6s }
.cubes i:nth-child(4) { left: 55%; animation-delay: 2s; width: 8px; height: 8px } .cubes i:nth-child(5) { left: 70%; animation-delay: 8s; width: 12px; height: 12px } .cubes i:nth-child(6) { left: 86%; animation-delay: 5s }
@keyframes rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-560px) rotate(200deg); opacity: 0; } }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: rgba(25,211,218,.1); border: 1px solid rgba(25,211,218,.3); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 6s linear infinite; }
@keyframes sweep { to { background-position: -200% 0; } }
.lead { font-size: 17px; margin: 18px 0 26px; max-width: 540px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
.ipbox { background: rgba(11,26,36,.88); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.ipbox h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.ipcopy { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border: 1px dashed var(--accent); border-radius: 12px; padding: 12px 16px; font-size: 22px; font-weight: 800; color: var(--accent); width: 100%; transition: .15s; }
.ipcopy:hover { background: rgba(25,211,218,.07); border-style: solid; } .ipcopy small { font-size: 12px; font-weight: 600; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; } .stat b { display: block; font-size: 26px; color: var(--light); font-weight: 800; } .stat span { font-size: 12px; color: var(--muted); }
.players { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; min-height: 28px; }
.players img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; border: 1px solid var(--line); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.sec { padding-top: 48px; }
.sec h2 { font-size: 23px; font-weight: 800; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; } .sec h2 .ico { color: var(--orange); }
.sub { margin: 0 0 20px; color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .22s var(--ease), border-color .2s, box-shadow .22s; text-decoration: none !important; color: var(--text); overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(240px 120px at var(--mx, 50%) -20%, rgba(25,211,218,.14), transparent); opacity: 0; transition: opacity .25s; }
.tile:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.4); } .tile:hover::after { opacity: 1; }
.tile .ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: rgba(25,211,218,.09); border: 1px solid var(--line2); margin-bottom: 12px; }
.tile h3 { font-size: 17px; margin-bottom: 5px; } .tile p { margin: 0; font-size: 13.5px; }
.buys { display: flex; gap: 10px; flex-wrap: wrap; }
.buy { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 6px; font-size: 13px; animation: up .4s var(--ease) both; }
.buy img { width: 28px; height: 28px; border-radius: 50%; image-rendering: pixelated; } .buy b { color: var(--light); } .buy i { font-style: normal; color: var(--gold); font-weight: 700; }
.empty { color: var(--muted); font-size: 14px; padding: 10px 0; }

/* ── Вики ── */
.wikibar { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; padding: 28px 28px 10px; max-width: 1180px; margin: 0 auto; align-items: start; }
.article { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px 36px; min-width: 0; box-shadow: var(--shadow); }
.article.wide { padding: 28px; }
.ahead { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ahead .big { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(25,211,218,.14), rgba(25,211,218,.03)); border: 1px solid var(--line2); flex: none; }
.crumbs { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.article h1 { font-size: 30px; font-weight: 900; }
.article h2 { font-size: 20px; color: var(--accent); margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.article h3 { font-size: 16px; margin: 18px 0 6px; }
.article ul { list-style: none; padding: 0; } .article ul li { position: relative; padding-left: 22px; margin: 7px 0; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.article strong, .article b { color: var(--light); }
.article code, .article kbd { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font: 13px ui-monospace, Consolas, monospace; color: var(--accent); }
.article kbd { color: var(--gold); } .article code[data-copy] { cursor: pointer; } .article code[data-copy]:hover { border-color: var(--accent); }
.steps { list-style: none; counter-reset: s; padding: 0; } .steps li { counter-increment: s; position: relative; padding: 10px 0 10px 46px !important; margin: 0 !important; } .steps li::before { content: counter(s) !important; position: absolute; left: 0 !important; top: 8px !important; width: 30px !important; height: 30px !important; border-radius: 50% !important; display: grid; place-items: center; background: rgba(25,211,218,.12) !important; border: 1px solid rgba(25,211,218,.4); color: var(--accent); font-weight: 800; font-size: 13px; transform: none !important; }
.note { border-left: 3px solid var(--accent); background: rgba(25,211,218,.07); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 18px 0; }
.note.warn { border-color: var(--orange); background: rgba(255,122,61,.08); }
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl th { text-align: left; background: var(--bg); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl tr:hover td { background: rgba(25,211,218,.035); }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 16px 0; }
.card { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none !important; transition: .18s var(--ease); color: var(--text); }
a.card:hover { border-color: var(--accent); transform: translateY(-3px); } .card h3 { font-size: 16px; margin: 0 0 6px; } .card p { margin: 0; font-size: 13.5px; }
.pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pn a { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13px; color: var(--muted); text-decoration: none !important; transition: .18s; } .pn a:hover { border-color: var(--accent); transform: translateY(-2px); } .pn a b { display: block; color: var(--light); font-size: 15px; } .pn a.nx { text-align: right; }
.toc { position: sticky; top: calc(var(--bar) + 18px); font-size: 13px; } .toc h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--muted); border-left: 2px solid var(--line); text-decoration: none !important; transition: .15s; } .toc a:hover, .toc a.on { color: var(--accent); border-color: var(--accent); }
.res { display: grid; gap: 12px; } .res a { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none !important; transition: .18s; } .res a:hover { border-color: var(--accent); transform: translateX(3px); } .res h3 { font-size: 16px; margin: 0 0 4px; } .res p { margin: 0; font-size: 13.5px; }
mark { background: rgba(25,211,218,.22); color: var(--light); border-radius: 3px; padding: 0 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font-size: 13px; font-weight: 600; transition: .15s; } .chip:hover { border-color: var(--accent); color: var(--light); } .chip.on { background: rgba(25,211,218,.16); border-color: var(--accent); color: var(--light); }
.inp { width: 100%; max-width: 340px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 14px; color: var(--light); font: inherit; font-size: 14px; } .inp:focus { outline: none; border-color: var(--accent); }

/* ── Черты ── */
.tgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tcard { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; text-align: left; width: 100%; color: var(--text); }
.tcard:hover, .tcard.open { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.4); }
.tcard h3 { font-size: 15px; margin: 0; } .tcard small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.tiers { display: flex; gap: 8px; margin: 10px 0 6px; }
.tier { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: #040c11; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .25s, border-color .2s; }
.tier .spr { filter: saturate(.55) brightness(.8); transition: filter .25s, transform .25s; }
.tcard:hover .tier .spr, .tcard.open .tier .spr, .tier.lit .spr { filter: none; }
.tier[data-t="bronze"].lit, .tcard:hover .tier[data-t="bronze"] { box-shadow: 0 0 16px rgba(186,103,65,.7); border-color: #ba6741; }
.tier[data-t="silver"].lit, .tcard:hover .tier[data-t="silver"] { box-shadow: 0 0 16px rgba(209,209,209,.6); border-color: #d1d1d1; }
.tier[data-t="gold"].lit, .tcard:hover .tier[data-t="gold"] { box-shadow: 0 0 18px rgba(255,172,0,.75); border-color: #ffac00; }
.tier[data-t="master"].lit, .tcard:hover .tier[data-t="master"] { box-shadow: 0 0 18px rgba(170,18,18,.85); border-color: #e03030; }
.tier:hover { transform: scale(1.12); z-index: 2; }
.tdesc { font-size: 13px; margin: 6px 0 0; }
.tlv { display: none; margin-top: 8px; font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 8px; } .tcard.open .tlv { display: block; animation: up .25s var(--ease); }
.tlv div { display: flex; gap: 8px; margin: 3px 0; } .tlv i { font-style: normal; font-weight: 800; flex: none; width: 56px; }
.c-bronze { color: #d8875f } .c-silver { color: #d7d7d7 } .c-gold { color: #ffc02e } .c-master { color: #ff5a5a }

/* ── Дерево навыков ── */
.treebar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.treewrap { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(600px 400px at 50% 50%, #0a1f2a, #060f15); padding: 18px; max-height: 78vh; -webkit-overflow-scrolling: touch; }
.tree { position: relative; margin: 0 auto; }
.tree svg { position: absolute; inset: 0; pointer-events: none; }
.tree svg line { stroke: #1c3a49; stroke-width: 3; transition: stroke .3s; } .tree svg line.on { stroke: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.node { position: absolute; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: #07131a; border: 1px solid #1c3a49; transition: transform .18s var(--ease), box-shadow .3s, border-color .3s; cursor: pointer; padding: 0; }
.node .spr { --z: 2; filter: grayscale(.9) brightness(.55); transition: filter .3s; }
.node.avail { border-color: #3a6a80; } .node.avail .spr { filter: grayscale(.2) brightness(.9); animation: nudge 2.2s ease-in-out infinite; }
.node.on { border-color: var(--accent); box-shadow: 0 0 14px rgba(25,211,218,.65); } .node.on .spr { filter: none; }
.node.start { border-color: var(--gold); box-shadow: 0 0 12px rgba(245,192,74,.55); }
.node:hover { transform: scale(1.18); z-index: 5; }
@keyframes nudge { 50% { transform: scale(1.08); } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Работы и прочее ── */
.jgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.jcard { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; } .jcard h3 { margin: 0 0 6px; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.jcard details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; } .jcard summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.jrows { font-size: 12.5px; margin: 8px 0 0; width: 100%; border-collapse: collapse; } .jrows td { padding: 3px 0; border-bottom: 1px dashed var(--line); } .jrows td:last-child { text-align: right; white-space: nowrap; color: var(--gold); }
.sgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.sgrid .cell { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px 10px; display: grid; justify-items: center; align-content: start; gap: 6px; font-size: 12px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; transition: .15s; cursor: default; } .sgrid .cell:hover { border-color: var(--accent); transform: translateY(-2px); }
.skg { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 18px; }
.sk { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px 12px; display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; transition: .18s var(--ease); }
.sk:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.sk b { color: var(--light); font-size: 14px; margin-top: 4px; } .sk small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.chest { display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.mapbox { position: relative; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; min-height: 280px; background: radial-gradient(600px 300px at 50% 40%, #0d2a36, #06121a); margin: 12px 0; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: fade .4s; }
.mapload { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; color: var(--light); transition: .2s; } .mapload:hover { background: rgba(25,211,218,.06); } .mapload small { color: var(--accent); }
.recgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.rec { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; transition: border-color .2s, transform .2s var(--ease); } .rec:hover { border-color: var(--accent); transform: translateY(-3px); }
.rhead { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; } .rhead h3 { font-size: 15px; margin: 0; } .rhead small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.rgrid { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; justify-content: center; margin: 6px 0 10px; padding: 8px; background: #040c11; border: 1px solid var(--line); border-radius: 10px; }
.rc { width: 40px; height: 40px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line2); border-radius: 6px; } .rc.empty { background: transparent; border-style: dashed; opacity: .4; } .rc:hover:not(.empty) { border-color: var(--accent); }
.rtxt { font-style: normal; font-size: 10px; color: var(--muted); }
.recwrap { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px; margin-top: 14px; align-items: start; }
.rlist { max-height: 560px; overflow: auto; display: grid; gap: 4px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overscroll-behavior: contain; }
.ri { display: flex; align-items: center; gap: 10px; text-align: left; padding: 6px 10px; border-radius: 10px; color: var(--text); font-size: 13.5px; border: 1px solid transparent; transition: .15s; }
.ri:hover { background: rgba(25,211,218,.07); color: var(--light); } .ri.on { background: linear-gradient(90deg, rgba(25,211,218,.18), transparent); border-color: rgba(25,211,218,.4); color: var(--light); font-weight: 600; }
.rsticky { position: sticky; top: calc(var(--bar) + 14px); }
.rdet { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; animation: up .25s var(--ease); }
.rgrid.big { grid-template-columns: repeat(3, 56px); gap: 6px; padding: 12px; }
.rgrid.big .rc { width: 56px; height: 56px; border-radius: 8px; }
.kitgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 16px; }
.kit { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; transition: .2s var(--ease); } .kit:hover { border-color: var(--accent); transform: translateY(-3px); }
.kit h3 { font-size: 16px; margin: 0 0 2px; } .kit small { color: var(--muted); }
.kitems { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.kitems .rc { position: relative; width: 52px; height: 52px; border-radius: 8px; } .kitems .cnt { position: absolute; right: 3px; bottom: 1px; font-size: 12px; color: #fff; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
.rlore { font-size: 12.5px; color: var(--text); } .rlore div { margin: 2px 0; }
.cal { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.day { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; transition: .18s; } .day:hover { border-color: var(--accent); transform: translateY(-2px); } .day.big { border-color: rgba(245,192,74,.6); background: linear-gradient(160deg, rgba(245,192,74,.1), var(--bg)); } .day b { color: var(--light); display: block; margin-bottom: 4px; } .day div { color: var(--text); }
.bars { display: grid; gap: 6px; margin: 8px 0; } .bar2 { display: grid; grid-template-columns: 78px 1fr 28px; gap: 8px; align-items: center; font-size: 12.5px; } .bar2 span { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; } .bar2 span i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform-origin: left; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* ── Магазин ── */
.shophead { padding: 34px 0 6px; } .shophead h1 { font-size: 32px; font-weight: 900; text-transform: uppercase; display: flex; gap: 14px; align-items: center; } .shophead h1 .ico { color: var(--orange); }
.safe { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; margin-top: 12px; } .safe .ico { color: var(--green); font-size: 20px; }
.packs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding: 18px 0 10px; }
.pack { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px 20px; text-align: center; cursor: pointer; transition: transform .22s var(--ease), border-color .2s, box-shadow .22s; display: flex; flex-direction: column; }
.pack:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 18px 36px rgba(0,0,0,.45); }
.coinart { height: 92px; display: grid; place-items: center; font-size: 60px; color: var(--gold); filter: drop-shadow(0 6px 16px rgba(245,192,74,.4)); margin-bottom: 8px; transition: transform .3s var(--ease); } .pack:hover .coinart { transform: scale(1.1) rotate(-6deg); }
.amt { font-size: 34px; font-weight: 900; color: var(--light); } .amt small { font-size: 18px; color: var(--gold); margin-right: 2px; }
.bonus { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--accent); border: 1px solid rgba(25,211,218,.5); border-radius: 8px; padding: 2px 10px; background: rgba(25,211,218,.07); }
.prow { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; } .price { font-size: 22px; font-weight: 800; color: var(--green); }
.ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(40deg); width: 130px; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .1em; padding: 4px 0; color: #fff; background: var(--orange-d); }

/* ── Модалка, тосты, подсказка ── */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; } .modal.open { display: flex; }
.modal .bg { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); animation: fade .2s; }
.modal .box { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); animation: up .25s var(--ease); }
.modal .x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; }
.modal h3 { font-size: 22px; margin-bottom: 4px; } .modal .pr { font-size: 26px; font-weight: 900; color: var(--green); margin-bottom: 18px; }
label.f { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
label.f input { display: block; width: 100%; margin-top: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--light); font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0; } label.f input:focus { outline: none; border-color: var(--accent); }
label.f small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 4px; }
.terms { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 4px 0 16px; align-items: flex-start; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; color: var(--light); animation: up .25s var(--ease); } .toast.err { border-left-color: var(--red); }
.tip { position: fixed; z-index: 130; max-width: 300px; pointer-events: none; background: #0a1a24; border: 1px solid var(--accent); border-radius: 12px; padding: 12px 14px; box-shadow: 0 14px 34px rgba(0,0,0,.6), 0 0 18px rgba(25,211,218,.18); font-size: 13px; color: var(--text); opacity: 0; transform: translateY(6px); transition: opacity .14s, transform .14s; }
.tip.show { opacity: 1; transform: none; } .tip h4 { font-size: 14px; margin-bottom: 4px; } .tip .k { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; } .tip .cost { color: var(--gold); font-weight: 700; margin-top: 6px; }

/* ── Подвал ── */
.foot { margin-top: 60px; border-top: 1px solid var(--line); background: #040c11; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 22px 28px; display: grid; gap: 8px; font-size: 13px; } .flinks { display: flex; gap: 18px; flex-wrap: wrap; } .foot b { color: var(--light); }

/* ── Анимации появления ── */
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
.page { animation: up .35s var(--ease) both; }
.rv { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ── Адаптив ── */
@media (max-width: 1120px) { .wikibar { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 320px); transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: none; }
  .side.open { transform: none; box-shadow: 10px 0 40px rgba(0,0,0,.6); }
  .burger { display: grid; } .mini-brand { display: flex; } .gsearch { max-width: none; } .bar { padding: 0 12px; padding-top: env(safe-area-inset-top); height: calc(var(--bar) + env(safe-area-inset-top)); }
  .hero-in { grid-template-columns: 1fr; padding: 40px 20px; } .wrap, .wikibar { padding-left: 16px; padding-right: 16px; } .foot-in { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 640px) {
  .hide-s { display: none; } .mini-brand span:last-child { display: none; } .article { padding: 22px 16px; border-radius: 14px; } .article h1 { font-size: 24px; } .ahead .big { width: 52px; height: 52px; }
  .pn { flex-direction: column; } .toasts { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); } .modal .box { padding: 22px 18px; }
  .packs { grid-template-columns: 1fr 1fr; gap: 12px; } .pack { padding: 18px 12px 14px; } .amt { font-size: 26px; } .coinart { height: 70px; font-size: 46px; } .price { font-size: 17px; } .prow .btn { padding: 8px 10px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; } .tile { padding: 14px; } .tile .ic { width: 42px; height: 42px; } .tile h3 { font-size: 15px; } .tile p { font-size: 12.5px; }
  .tgrid { grid-template-columns: 1fr; } .jgrid { grid-template-columns: 1fr; } .cal { grid-template-columns: repeat(2, 1fr); } .skg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .recgrid { grid-template-columns: 1fr; }
  .recwrap { grid-template-columns: 1fr; } .rlist { max-height: 260px; } .rsticky { position: static; }
  .treewrap { padding: 10px; max-height: 70vh; } .lead { font-size: 15.5px; } .stats { grid-template-columns: 1fr 1fr; }
}
@media (hover: none) { .tile:hover, .pack:hover, .tcard:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .rv { opacity: 1; transform: none; } .wordmark path { stroke-dashoffset: 0; } }

.paym { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.paym h3 { margin: 0 0 10px; color: var(--light); font-size: 16px; }
.paym .pm { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); margin-top: 8px; }
.paym .pm.best { border: 1px solid var(--green); background: rgba(34,197,139,.08); }
.paym .pi { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--bg2); color: var(--accent); }
.paym .pm.best .pi { color: var(--green); }
.paym .pm b { display: block; color: var(--light); font-size: 14px; }
.paym .pm small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.paym .pc { margin-left: auto; flex: none; font-weight: 700; color: var(--light); font-size: 13.5px; white-space: nowrap; }
.paym .pm.best .pc { color: var(--green); }
.paym p { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .paym .pm { flex-wrap: wrap; } .paym .pc { margin-left: 50px; } }

/* предложения: компактный слайдер в левом меню между навигацией и кнопкой «Купить монеты» */
.deals { flex: none; margin: 0; padding: 8px 10px 10px; border-top: 1px solid var(--line); }
.cr { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px 8px; overflow: hidden; }
.cr .slide { display: none; }
.cr .slide.on { display: block; animation: slin .25s ease; }
@keyframes slin { from { opacity: 0; } to { opacity: 1; } }
.cr .dh { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 5px; }
.dtag { font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #1a1205; background: var(--gold); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.hot .dtag { background: var(--orange); color: #fff; animation: dblink 1.4s ease-in-out infinite; }
@keyframes dblink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .hot .dtag, .cr .slide.on { animation: none; } }
.dcd { font-size: 10px; color: var(--muted); white-space: nowrap; }
.hot .dcd { color: var(--orange); }
.cr h3 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--light); line-height: 1.25; }
.cr .art { display: flex; align-items: center; justify-content: flex-start; gap: 4px; margin: 6px 0 4px; min-height: 0; }
.cr .art .mini { color: var(--gold); font-size: 20px; line-height: 1; }
.cr .art.skins { flex-wrap: nowrap; gap: 3px; }
.cr .ski { display: inline-grid; place-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.cr .dsub { margin: 0; font-size: 11.5px; line-height: 1.3; color: var(--text); }
.cr .dnote { display: none; }
.cr .obtn { width: 100%; margin-top: 7px; padding: 7px 8px; font-size: 13px; justify-content: center; }
.cr .arr { position: absolute; top: 50%; margin-top: -26px; width: 22px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line2); border-radius: 7px; background: rgba(5,15,21,.8); color: var(--light); cursor: pointer; z-index: 3; opacity: 0; transition: opacity .15s; }
.cr:hover .arr, .cr:focus-within .arr { opacity: 1; }
.cr .arr:hover, .cr .arr:focus-visible { border-color: var(--accent); outline: none; }
.cr .arr.l { left: 4px; }
.cr .arr.r { right: 4px; }
.cr .arr.l > * { transform: rotate(180deg); }
.cr .arr.r > * { transform: none; }
.cr .arr svg { width: 14px; height: 14px; }
.cr .dots { display: flex; justify-content: center; gap: 5px; margin-top: 7px; }
.cr .dots button { width: 20px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: var(--line2); cursor: pointer; }
.cr .dots button.on { background: var(--accent); }
@media (max-height: 700px) { .deals { display: none; } }

/* предложения внизу страницы магазина */
.dsec { margin-top: 28px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.dealbig { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: border-color .2s, transform .2s, background .2s; outline: none; }
.dealbig:hover, .dealbig:focus-visible { border-color: var(--accent); transform: translateY(-1px); background: var(--panel2); }
.dealbig.hot { border-color: var(--orange); }
.dealbig.wide { grid-column: 1 / -1; }
.dealbig .dh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.dealbig h3 { margin: 0; color: var(--light); font-size: 18px; }
.dealbig p { margin: 4px 0 0; font-size: 14px; }
.dealbig .dnote { font-size: 13px; color: var(--muted); }
.dealbig s { color: var(--muted); font-weight: 400; font-size: .85em; }
.dealbig .dp { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.dealbig .dprice { font-size: 22px; font-weight: 800; color: var(--light); }
.sks.big { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.sks.big .ski { display: inline-grid; place-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; }

/* анимированный премиум-префикс и монета из игры */
.cr .slide { text-align: center; }
.cr .art, .cr .art.skins { justify-content: center; }
.cr .art.one { gap: 6px; min-height: 30px; }
.pbody { display: inline-block; line-height: 0; animation: pbob 1.6s ease-in-out infinite; }
.pbody img { image-rendering: pixelated; border-radius: 4px; }
@keyframes pbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.pfx { display: inline-block; width: 97px; height: 24px; background: url(premium.png) 0 0 / 97px 264px no-repeat; image-rendering: pixelated; animation: pfx 1.1s steps(11) infinite; }
@keyframes pfx { to { background-position: 0 -264px; } }
.gcoin { display: inline-block; width: 21px; height: 21px; background: url(coin.png) center / 21px 21px no-repeat; image-rendering: pixelated; animation: pbob 1.6s ease-in-out .3s infinite; }
.cr .art .cn { font-size: 13px; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .pbody, .pfx, .gcoin { animation: none; } }

/* ── Заточка свитками (только классы se-*) ── */
.se-lead { font-size: 15.5px; }
.se-tiers { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 8px; }
.se-tier { --c: #b8b8b8; position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; text-align: center; overflow: hidden; transition: transform .2s var(--ease), border-color .2s, box-shadow .25s; }
.se-tier::before { content: ""; position: absolute; inset: -40% -20% auto; height: 140px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 28%, transparent), transparent); pointer-events: none; }
.se-tier:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 35%, transparent); }
.se-tier.bless { --c: #ffd35a; } .se-tier.epic { --c: #c77dff; }
.se-pair { position: relative; display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.se-pair img { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); transition: transform .25s var(--ease); }
.se-tier:hover .se-pair img:first-child { transform: rotate(-6deg) translateY(-2px); } .se-tier:hover .se-pair img:last-child { transform: rotate(6deg) translateY(-2px); }
.se-tier h3 { position: relative; margin: 0; font-size: 17px; color: var(--c) !important; }
.se-stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; margin: 2px 0 10px; } .se-stars i { font-style: normal; color: var(--line2); }
.se-fail { display: inline-block; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(0,0,0,.25); color: var(--light); }
.se-tier small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.se-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 22px; align-items: center; }
.se-shot { margin: 0; text-align: center; } .se-shot img { width: 100%; height: auto; image-rendering: pixelated; border-radius: 8px; }
.se-shot figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.se-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 4px; }
.se-chances { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 14px 0; }
.se-box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.se-box h3 { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; } .se-box h3 span { font-size: 12px; color: var(--muted); font-weight: 600; }
.se-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; margin: 5px 0; }
.se-row b { font-variant-numeric: tabular-nums; } .se-row em { font-style: normal; text-align: right; color: var(--light); font-weight: 700; font-variant-numeric: tabular-nums; }
.se-bar { height: 10px; border-radius: 999px; background: #040c11; border: 1px solid var(--line); overflow: hidden; }
.se-bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--orange-d), var(--gold)); }
.se-row.safe .se-bar i { background: linear-gradient(90deg, #13a874, var(--green)); } .se-row.safe em { color: var(--green); }
.se-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.se-stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.se-stat b { display: block; font-size: 22px; font-weight: 900; color: var(--accent) !important; line-height: 1.1; } .se-stat span { font-size: 12.5px; color: var(--muted); }
.se-stat small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 6px; }
.se-aura { background: #050c12; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 14px 0; text-align: center; }
.se-aura img { max-width: 100%; height: auto; image-rendering: pixelated; }
.se-ramp { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.se-ramp div { text-align: center; } .se-ramp div::before { content: ""; display: block; height: 10px; border-radius: 4px; background: var(--c); margin-bottom: 4px; box-shadow: 0 0 10px var(--c); }
.se-src { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 14px 0; }
.se-src a { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--text); text-decoration: none !important; transition: .18s var(--ease); }
.se-src a:hover { border-color: var(--accent); transform: translateY(-3px); }
.se-src h3 { margin: 0 0 6px; font-size: 15px; color: var(--light); } .se-src p { margin: 0; font-size: 13px; }
.se-src .t1 { color: #d0d0d0; } .se-src .t2 { color: #ffd35a; } .se-src .t3 { color: #c77dff; }
@media (max-width: 760px) { .se-tiers, .se-chances, .se-how { grid-template-columns: minmax(0, 1fr); } .se-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .se-shots { grid-template-columns: minmax(0, 1fr); } }

.se-tiers.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .se-tiers.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .se-tiers.four { grid-template-columns: minmax(0, 1fr); } }
