
:root {
    --bg: #0b0f19; --bg2: #111827; --card: #151d2e; --line: #243049; --text: #e6e9f0; --muted: #8d97ad;
    --gold: #f2b544; --gold2: #ffcf6e; --prem: #3a2a08; --ok: #4ade80; --bad: #f87171; --warn: #fbbf24; --link: #7cb7ff;
    --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 8px 0 6px; }
h2 { font-size: 19px; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 16px 0 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pre { white-space: pre-wrap; word-break: break-word; }
.inline { display: inline; }
.tl-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.top { background: #0d1322; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: .5px; }
.logo:hover { text-decoration: none; }
.logo-a { color: var(--gold); }
.logo-b { color: #fff; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; flex: 1; }
.nav a, .linkbtn { color: var(--text); padding: 6px 10px; border-radius: 8px; background: none; border: 0; font: inherit; cursor: pointer; }
.nav a.on, .nav a:hover, .linkbtn:hover { background: var(--bg2); text-decoration: none; }
.langs { position: relative; }
.langs summary { cursor: pointer; list-style: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.langs summary::-webkit-details-marker { display: none; }
.langs div { position: absolute; right: 0; top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; min-width: 150px; }
.langs div a { display: block; padding: 6px 10px; color: var(--text); border-radius: 6px; }
.langs div a.on, .langs div a:hover { background: var(--bg2); }

.btn { display: inline-block; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1205; font-weight: 700; border: 0;
       border-radius: 8px; padding: 9px 18px; cursor: pointer; font: inherit; font-weight: 700; text-align: center; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.big { padding: 12px 28px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.bad { background: #7f1d1d; color: #fff; }
.nav .btn.small { color: #1a1205; }

main.wrap { padding-top: 20px; padding-bottom: 40px; min-height: 70vh; }
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.games { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; align-self: start; position: sticky; top: 80px; }
.games h2 { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.games a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text); }
.games a.on, .games a:hover { background: var(--bg2); color: var(--gold); text-decoration: none; }
.sect { margin-top: 20px; color: var(--gold); }

.row { display: grid; grid-template-columns: 56px 1fr 130px; gap: 14px; align-items: center; background: var(--card);
       border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 10px 0; }
.row.hl { border-color: #4b5d87; background: #17213a; }
.row.prem { border-color: var(--gold); background: linear-gradient(90deg, var(--prem), var(--card) 60%); }
.rank { font-size: 24px; font-weight: 800; text-align: center; color: var(--muted); }
.row.prem .rank { color: var(--gold); }
.main h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.main h3 a { color: #fff; }
.banner img { display: block; max-width: 100%; height: auto; border-radius: 4px; margin: 4px 0; }
.banner-big { max-width: 100%; height: auto; border-radius: 6px; }
.meta { margin: 4px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.desc { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.side { text-align: center; }
.votes b { display: block; font-size: 22px; color: var(--gold); }
.votes span { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.side .btn { margin-top: 8px; width: 100%; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-size: 12px; color: var(--text); }
a.tag:hover { text-decoration: none; border-color: var(--gold); }
.tag.prem { background: var(--gold); color: #1a1205; border-color: var(--gold); font-weight: 700; }
.tag.ok { color: var(--ok); } .tag.bad { color: var(--bad); }
.tag.st0 { color: var(--warn); } .tag.st1 { color: var(--ok); } .tag.st2 { color: var(--warn); } .tag.st3, .tag.st4 { color: var(--bad); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 6px var(--ok); } .dot.off { background: var(--bad); }
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 20px 0; }
.pager a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); }
.empty.big h1 { font-size: 64px; color: var(--gold); margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 16px 0; }
.card.danger { border-color: #7f1d1d; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 13px; }
.tbl.small td { font-size: 13px; }
td.good { color: var(--ok); } td.bad { color: var(--bad); }
.code { background: #070a12; border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow-x: auto; font: 13px/1.5 Consolas, monospace; white-space: pre; }
label { display: block; margin: 10px 0; color: var(--muted); font-size: 14px; }
label.chk { display: flex; gap: 8px; align-items: center; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea {
    display: block; width: 100%; margin-top: 4px; padding: 9px 10px; background: #0d1322; color: var(--text);
    border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-btns input[type=text] { width: auto; flex: 1; min-width: 160px; margin: 0; }
.msg { padding: 12px 14px; border-radius: 8px; margin: 12px 0; border: 1px solid; }
.msg.ok { background: #0f2a1a; border-color: #1f6f3d; color: #b9f5cf; }
.msg.bad { background: #2a0f12; border-color: #7f1d1d; color: #fecaca; }
.msg.warn { background: #2a210b; border-color: #8a6a12; color: #fde68a; }
.msg p { margin: 6px 0 0; }

.auth { max-width: 440px; margin: 20px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.auth .btn { width: 100%; margin-top: 10px; }
.cf-turnstile { margin: 12px 0; min-height: 65px; }
.vote-box { max-width: 640px; margin: 10px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: center; }
.vote-form .cf-turnstile { display: flex; justify-content: center; }
.crumbs { color: var(--muted); font-size: 13px; margin: 0; }
.server-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.server-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-align: center; }
.stats b { display: block; font-size: 24px; color: var(--gold); }
.stats span { color: var(--muted); font-size: 13px; }
.chart { width: 100%; height: 120px; display: block; }
.chart rect { fill: var(--gold); opacity: .85; }
.chart rect:hover { opacity: 1; fill: var(--gold2); }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc { max-width: 860px; }
.doc li { margin: 6px 0; }

.foot { border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: 13px; }
.foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 820px) {
    .layout { grid-template-columns: 1fr; }
    .games { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
    .games h2 { width: 100%; margin: 0 0 4px; }
    .row { grid-template-columns: 36px 1fr; }
    .row .side { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; text-align: left; }
    .row .side .btn { width: auto; margin: 0 0 0 auto; }
    .votes b { display: inline; font-size: 18px; margin-right: 4px; }
    .tbl { display: block; overflow-x: auto; }
}

.vip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px 1px 6px; border-radius: 6px; font-size: 12px; font-weight: 900;
       letter-spacing: 1px; line-height: 18px; vertical-align: middle; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.vip::before { content: "\265B"; font-size: 13px; }
.vip.gold { background: linear-gradient(180deg, #ffe08a, #e2a227); color: #3b2500; box-shadow: 0 0 10px rgba(242,181,68,.55); }
.vip.silver { background: linear-gradient(180deg, #f1f4f9, #a9b3c4); color: #1d2533; box-shadow: 0 0 8px rgba(200,210,230,.35); }
.row.vipgold { border-color: #a57a1e; background: linear-gradient(90deg, #2a1f07, var(--card) 55%); }
.row.hl { border-color: #7d8aa3; background: linear-gradient(90deg, #1d2433, var(--card) 55%); }

.pl-label { position: absolute; top: 4px; right: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); z-index: 2; }
.pl-rotator { position: relative; max-width: 760px; margin: 0 auto 16px; min-height: 106px; background: var(--card); border: 1px solid var(--line);
              border-radius: var(--r); padding: 8px; display: flex; align-items: center; justify-content: center; }
.pl-slide { display: none; }
.pl-slide.on { display: block; animation: adfade .6s ease; }
.pl-slide img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
@keyframes adfade { from { opacity: 0; } to { opacity: 1; } }
.pl-dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.pl-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #3a4666; cursor: pointer; }
.pl-dots button.on { background: var(--gold); }
.pl-free { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); border: 2px dashed var(--line);
           border-radius: 8px; font-weight: 600; }
.pl-free:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }
.pl-free.wide { width: 728px; max-width: 100%; height: 90px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 0 0 18px; }
.pl-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px;
           background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; color: var(--text); }
.pl-cell img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.pl-cell span { font-size: 12px; color: var(--muted); }
.pl-cell:hover { border-color: var(--gold); text-decoration: none; }
.pl-cell.pl-free { border-style: dashed; border-width: 2px; }

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 16px 0; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; }
.plan.top { border-color: #a57a1e; } .plan.highlight { border-color: #7d8aa3; } .plan.rotator, .plan.static { border-color: #3d6aa8; }
.plan h3 { margin: 0 0 6px; }
.plan .price { font-size: 26px; font-weight: 800; color: var(--gold); margin: 4px 0; }
.plan .price small { font-size: 13px; color: var(--muted); }
.plan form { margin-top: auto; } .plan .btn { width: 100%; }
.plan .note { margin-top: auto; color: var(--warn); font-size: 13px; }
.tag.ost0 { color: var(--muted); } .tag.ost1 { color: var(--ok); } .tag.ost2, .tag.ost3 { color: var(--bad); }
.kv th { text-align: left; color: var(--muted); padding: 4px 12px 4px 0; font-weight: 500; } .kv td { padding: 4px 0; }
.doc.wide { max-width: 1000px; }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.kind h2 { display: flex; gap: 8px; align-items: center; }
.prices { list-style: none; padding: 0; margin: 10px 0 0; }
.prices li { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 6px 0; }
.prices b { color: var(--gold); }
@media (max-width: 820px) { .pl-rotator { min-height: 70px; } .pl-free.wide { height: 60px; } }

.games { max-height: calc(100vh - 100px); overflow-y: auto; }
.games details.grp { margin-top: 6px; }
.games details.grp summary { cursor: pointer; list-style: none; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 800;
                             letter-spacing: 1px; text-transform: uppercase; color: var(--gold); background: var(--bg2); display: flex; justify-content: space-between; }
.games details.grp summary::-webkit-details-marker { display: none; }
.games details.grp summary::after { content: "+"; color: var(--muted); }
.games details.grp[open] summary::after { content: "-"; }
.games details.grp summary .n { margin-left: auto; margin-right: 8px; color: var(--muted); font-weight: 400; }
.games details.grp a { padding-left: 16px; font-size: 14px; }
@media (max-width: 820px) { .games { max-height: none; display: block; } .games details.grp { display: block; } }

.nav a.btn, .nav a.btn:hover { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1205; }

@media (min-width: 900px) { .pl-grid { grid-template-columns: repeat(3, 1fr); } }

.stars { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; white-space: nowrap; }
.stars .s { color: #3a4666; } .stars .s.full { color: var(--gold); }
.stars .s.half { background: linear-gradient(90deg, var(--gold) 50%, #3a4666 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars b { margin-left: 4px; color: var(--text); }
a:hover .stars { text-decoration: none; }
.review { border-top: 1px solid var(--line); padding: 10px 0; }
.review header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rstars { color: var(--gold); letter-spacing: 1px; } .rstars .off { color: #3a4666; }
.review .reply { margin: 6px 0 0 18px; padding: 8px 10px; border-left: 3px solid var(--gold); background: var(--bg2); border-radius: 6px; }
.review .reply p { margin: 4px 0 0; }
.review-form { margin-bottom: 14px; }
.rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 30px; color: #3a4666; cursor: pointer; margin: 0; line-height: 1; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--gold); }
.rate input:focus-visible + label { outline: 2px solid var(--gold); }

.partners { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.partners h2 { font-size: 12px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 6px; }
.partners a { display: block; padding: 4px 10px; color: var(--text); font-size: 14px; }
.partners a img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.foot-partners { border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 14px; }
.foot-partners .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.foot-partners b { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.foot-partners a { color: var(--muted); font-size: 13px; }
.foot-partners a img { height: 31px; width: auto; vertical-align: middle; }

.mine-server .mine-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mine-server .mine-head h2 { margin: 0; }
.mine-server .grow { flex: 1; }
.votebox { margin-top: 12px; border: 1px solid #3a4f7a; background: #0f1830; border-radius: 8px; padding: 10px 12px; }
.vb-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.vb-label { min-width: 170px; color: var(--gold); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.vb-row code { flex: 1; min-width: 220px; background: #070a12; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px;
               font: 13px Consolas, monospace; color: #cfe3ff; word-break: break-all; user-select: all; }

.btn:disabled, .btn.wait { background: #2a3142; color: #7d8699; cursor: not-allowed; filter: none; box-shadow: none; }
.freeplaces { color: var(--ok); font-weight: 700; }
.kind .note { color: var(--warn); font-weight: 700; }

.pl-bottom { margin-top: 22px; }

.flag { width: 20px; height: 15px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.players { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.players.on { background: #2e9e5b; } .players.off { background: #c0392b; }
.players svg { flex: none; }
.tag.map, .tag.addr { font-family: ui-monospace, Consolas, monospace; }
p.small { font-size: 12px; margin-top: -4px; }

.pl-free { flex-direction: column; gap: 6px; }
.pl-buy { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--gold); color: #1a1205; font-size: 12px;
          font-weight: 700; animation: tl-pulse 1.8s ease-in-out infinite; }
.pl-free:hover .pl-buy { animation: none; filter: brightness(1.1); }
@keyframes tl-pulse { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 185, 66, .55); }
                      50% { opacity: .82; transform: scale(1.04); box-shadow: 0 0 0 6px rgba(245, 185, 66, 0); } }
.kind:target { animation: tl-mark 1.1s ease-in-out 5; border-color: var(--gold); scroll-margin-top: 90px; }
@keyframes tl-mark { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 185, 66, 0); } 50% { box-shadow: 0 0 0 4px rgba(245, 185, 66, .75); } }
.pl-profile { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .pl-buy, .kind:target { animation: none; } }

.note-chk { font-size: 13px; color: var(--muted); border-left: 3px solid var(--gold); padding: 4px 10px; margin: 6px 0 10px; }
.rw { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0 14px; }
.rw p { margin: 0 0 8px; }
[hidden] { display: none !important; }

.pl-wrap { position: relative; display: flex; }
.pl-wrap > .pl-cell { flex: 1; }
.pl-tab { position: absolute; top: -9px; right: 12px; z-index: 3; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
          line-height: 16px; background: #1a2236; color: var(--gold); border: 1px solid var(--gold); white-space: nowrap;
          box-shadow: 0 2px 6px rgba(0,0,0,.45); transition: transform .15s ease, background .15s ease; }
.pl-tab:hover { transform: scale(1.08); background: var(--gold); color: #1a1205; text-decoration: none; }
.pl-rotator > .pl-tab { top: -9px; right: 14px; }
.pl-rotator .pl-label { left: 10px; right: auto; }
.pl-grid { padding-top: 6px; row-gap: 16px; }

.pl-cell .pl-buy, .pl-free .pl-buy { color: #1a1205; }

@media (max-width: 820px) {
    .top-in { gap: 8px 12px; padding-top: 6px; padding-bottom: 6px; }
    .logo { order: 1; font-size: 20px; }
    .langs { order: 2; margin-left: auto; }
    .nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none;
           -webkit-overflow-scrolling: touch; }
    .nav::-webkit-scrollbar { display: none; }
    .nav a, .nav .linkbtn { white-space: nowrap; flex: none; padding: 6px 10px; font-size: 14px; background: var(--bg2); }
    .nav form.inline { flex: none; }
}

.pick { margin: 10px 0 18px; }
.pick label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.pick select { max-width: 420px; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }

.nav-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.nav-wrap .nav { flex: 1; min-width: 0; }
.nav-arrow { position: absolute; top: 50%; z-index: 4; width: 30px; height: 30px; margin-top: -17px; display: none; place-items: center;
             padding: 0; border-radius: 50%; cursor: pointer; border: 1px solid var(--gold); background: rgba(13,19,34,.92);
             color: var(--gold); box-shadow: 0 2px 10px rgba(0,0,0,.6); -webkit-tap-highlight-color: transparent; }
.nav-arrow svg { width: 16px; height: 16px; }
.nav-arrow.prev { left: -4px; } .nav-arrow.next { right: -4px; }
.nav-arrow.on { display: grid; animation: nav-blink 1.4s ease-in-out infinite; }
.nav-arrow:active { background: var(--gold); color: #1a1205; }
@keyframes nav-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245,185,66,.6); } 50% { opacity: .55; box-shadow: 0 0 0 5px rgba(245,185,66,0); } }
@media (prefers-reduced-motion: reduce) { .nav-arrow.on { animation: none; } }
@media (max-width: 820px) {
    .nav-wrap { order: 3; flex: 0 0 100%; }
    .nav-wrap .nav { order: 0; flex: 1 1 auto; }

    .nav-wrap.more-next .nav { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
    .nav-wrap.more-prev .nav { -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent); mask-image: linear-gradient(270deg, #000 82%, transparent); }
    .nav-wrap.more-prev.more-next .nav { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
                                         mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
}

.vres { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; margin: 14px 0 18px; border-radius: 12px;
        border: 1px solid var(--line); background: var(--card); }
.vres-ico { flex: none; width: 54px; height: 54px; }
.vres-ico svg { width: 54px; height: 54px; display: block; }
.vres h2 { margin: 2px 0 6px; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.vres p { margin: 0 0 4px; }
.vres.ok { border-color: #2e9e5b; } .vres.ok .vres-ico, .vres.ok h2 { color: #3fcf7a; }
.vres.warn { border-color: var(--gold); } .vres.warn .vres-ico, .vres.warn h2 { color: var(--gold); }
.vres.bad { border-color: #c0392b; } .vres.bad .vres-ico, .vres.bad h2 { color: #ff5a4a; }
.vres-next { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .vres { gap: 12px; padding: 14px; } .vres-ico, .vres-ico svg { width: 42px; height: 42px; } .vres h2 { font-size: 18px; } }

.btn.discord { background: #5865f2; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.btn.discord:hover { background: #4752c4; }
.btn.discord svg { width: 18px; height: 18px; }
.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.share-l { font-size: 12px; color: var(--muted); margin-right: 2px; }
.sh { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
      background: var(--bg2); color: var(--text); cursor: pointer; padding: 0; transition: transform .15s ease, background .15s ease; }
.sh svg { width: 16px; height: 16px; }
.sh:hover { transform: translateY(-2px); text-decoration: none; color: #fff; }
.sh.fb:hover { background: #1877f2; } .sh.rd:hover { background: #ff4500; } .sh.x:hover { background: #000; }
.sh.tg:hover { background: #229ed9; } .sh.cp:hover { background: var(--gold); color: #1a1205; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.vip-box { position: relative; border: 1px solid #a57a1e; border-radius: 14px; padding: 12px 12px 30px; margin: 6px 0 18px;
           background: linear-gradient(180deg, rgba(245,185,66,.08), transparent 120px), var(--card); }
.vip-head { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; }
.vip-head h2 { margin: 0; font-size: 18px; color: var(--gold); }
.vip-star { font-size: 22px; color: var(--gold); text-shadow: 0 0 10px rgba(245,185,66,.6); }
.vip-count { margin-left: auto; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.vip-page { display: none; }
.vip-page.on { display: block; animation: adfade .5s ease; }
.vip-page .row:last-child { margin-bottom: 0; }
.vip-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; gap: 7px; justify-content: center; }
.vip-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #4a3a14; cursor: pointer; }
.vip-dots button.on { background: var(--gold); box-shadow: 0 0 6px rgba(245,185,66,.7); }

.pl-rotator:has(.pl-dots) { padding-bottom: 26px; }
.pl-rotator .pl-dots { bottom: 8px; gap: 7px; }
.pl-rotator .pl-dots button { width: 9px; height: 9px; background: #4a3a14; }
.pl-rotator .pl-dots button.on { background: var(--gold); box-shadow: 0 0 6px rgba(245,185,66,.7); }
.vip-pages { transition: min-height .2s ease; }
.pl-free.guest { cursor: default; }
.pl-free.guest:hover { color: var(--muted); border-color: var(--line); }

.rules-intro { font-size: 16px; line-height: 1.6; border-left: 3px solid var(--gold); padding: 6px 12px; background: var(--bg2); border-radius: 6px; }
.rules-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 20px; }
.rules-toc a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: var(--bg2); }
.rules-sec { margin: 0 0 18px; scroll-margin-top: 80px; }
.rules-sec h2 { color: var(--gold); font-size: 20px; margin: 0 0 8px; }
.rules-sec ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rules-sec li { line-height: 1.55; padding: 8px 12px 8px 54px; position: relative; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.rules-sec .rn { position: absolute; left: 12px; top: 8px; font-weight: 700; color: var(--gold); font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

.row.vipfree { border: 2px dashed #a57a1e; background: rgba(245,185,66,.04); color: var(--muted); text-decoration: none; align-items: center; }
.row.vipfree .rank { color: #a57a1e; }
.row.vipfree h3 { color: var(--gold); margin: 0 0 4px; }
.row.vipfree:hover { border-color: var(--gold); background: rgba(245,185,66,.09); text-decoration: none; }
.row.vipfree .side { display: flex; align-items: center; justify-content: center; }

.row.vipfree { min-height: 180px; }
.vipfree-banner { width: 468px; max-width: 100%; height: 60px; margin: 8px 0; border: 1px dashed #a57a1e; border-radius: 4px;
                  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a57a1e; letter-spacing: .1em; }
.row.vipfree .pl-buy { white-space: nowrap; padding: 8px 16px; font-size: 13px; }

.msg-link { position: relative; }
.dot-new { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #e0453a; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.msg-item header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.msg-item.unread { border-color: var(--gold); }
.msg-item time { margin-left: auto; }
.tag.new { background: #e0453a; color: #fff; border-color: #e0453a; }
.pre { white-space: pre-wrap; }

.promo-band { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 4px 0 14px; border-radius: 12px;
              border: 1px solid #2e9e5b; background: linear-gradient(90deg, rgba(46,158,91,.18), transparent 80%), var(--card); }
.promo-band .promo-tag { padding: 2px 10px; border-radius: 999px; background: #2e9e5b; color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.promo-band .btn { margin-left: auto; }
.first-free { text-align: center; border: 2px dashed #a57a1e; background: linear-gradient(180deg, rgba(245,185,66,.10), transparent 70%), var(--card); padding: 28px 18px; }
.first-free .first-star { font-size: 40px; color: var(--gold); text-shadow: 0 0 14px rgba(245,185,66,.7); line-height: 1; }
.first-free h2 { color: var(--gold); margin: 8px 0; }
.first-free p { max-width: 560px; margin: 0 auto 14px; color: var(--text); }

.row { grid-template-columns: 56px minmax(0, 1fr) 130px; }
.row > *, .layout > *, .list, .doc, .edit { min-width: 0; }
img { max-width: 100%; height: auto; }
pre, .code { max-width: 100%; overflow-x: auto; }
.layout { grid-template-columns: minmax(0, var(--side, 220px)) minmax(0, 1fr); }
@media (max-width: 820px) {
    .row { grid-template-columns: 36px minmax(0, 1fr); }
    .layout { grid-template-columns: minmax(0, 1fr); }
    h1, h2, h3, .row h3 a { overflow-wrap: anywhere; }
}

.like-f { display: inline-block; margin-top: 8px; }
.like { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; line-height: 1; }
.like svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.like:hover:not(:disabled) { color: #ff5d7a; border-color: #ff5d7a; }
.like.on { color: #ff5d7a; border-color: rgba(255, 93, 122, .5); cursor: default; }
.like.on svg { fill: currentColor; }
.like.pop svg { animation: likepop .45s ease; }
@keyframes likepop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.like-msg { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) { .row .side .like-f { margin: 0; } }

.foot .visits b { color: var(--gold); font-variant-numeric: tabular-nums; margin-left: 4px; }

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 30px; height: 30px; border-radius: 7px; }
