:root {
    --bg: #0d0715;
    --surface: #160d22;
    --surface-2: #201230;
    --card: #1d112b;
    --line: #3b2652;
    --text: #faf6ff;
    --muted: #b9a9c8;
    --mint: #b86cff;
    --aqua: #9f86ff;
    --amber: #ffcf70;
    --danger: #ff7a9c;
    --shadow: 0 22px 60px #08000f99;
    --radius: 22px;
    --max: 1320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at 18% 0,#25103a 0,transparent 32%),linear-gradient(180deg,#0b0612 0,#12091d 38%,#0d0715 100%);
    color: var(--text);
    font: 16px/1.62 Inter,Arial,Helvetica,sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,input,textarea {
    font: inherit;
}

strong,b {
    font-weight: 850;
}

main {
    min-height: 70vh;
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--mint);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.top-note {
    min-height: 34px;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #09020f;
    border-bottom: 1px solid #2c183b;
    color: #d0c7d8;
    font-size: 12px;
}

.top-note p {
    margin: 0;
}

.top-note p span {
    color: #91819e;
}

.top-note a {
    color: var(--mint);
    font-weight: 800;
}

.top-age {
    padding: 2px 7px;
    border: 1px solid #483458;
    border-radius: 999px;
    color: var(--amber);
}

.header {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    min-height: 76px;
    padding: 0 max(24px,calc((100% - var(--max))/2));
    display: flex;
    align-items: center;
    gap: 28px;
    background: #0f0818eb;
    border-bottom: 1px solid #301843;
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-right: auto;
    min-width: max-content;
}

.brand img {
    width: 42px;
    height: 38px;
    object-fit: contain;
    filter: saturate(.75) contrast(1.08);
}

.brand strong {
    font-size: 16px;
    letter-spacing: .08em;
}

.brand i {
    display: block;
    color: #867396;
    font-size: 8px;
    font-style: normal;
    letter-spacing: .25em;
    margin-top: 3px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.top-nav a {
    position: relative;
    color: #c0b5ca;
    font-size: 13px;
    font-weight: 800;
}

.top-nav a:hover {
    color: #fff;
}

.top-nav a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--mint);
    transition: .2s;
}

.top-nav a:hover:after {
    right: 0;
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn,.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    transition: transform .2s,filter .2s,border .2s;
}

.btn:hover,.telegram-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn.primary {
    background: var(--mint);
    color: #0c0415;
    box-shadow: 0 12px 28px #a362f51d;
}

.btn.secondary,.btn.login {
    background: #1b0d26;
    border-color: #3f2851;
    color: #efe9f6;
}

.telegram-btn {
    background: #1b0a28;
    border-color: #452161;
    color: #e6c8ff;
}

.telegram-btn img {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu summary {
    list-style: none;
    cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary i {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px;
    background: #f4e8ff;
}

.sidebar {
    position: relative;
    z-index: 30;
    width: min(var(--max),calc(100% - 48px));
    margin: 18px auto 0;
    padding: 11px;
    display: grid;
    grid-template-columns: auto auto auto 1fr auto;
    align-items: center;
    gap: 10px;
    background: #160820;
    border: 1px solid #321b43;
    border-radius: 17px;
    box-shadow: 0 10px 30px #0b00144d;
}

.online {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    color: #8a7898;
    white-space: nowrap;
}

.online span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 12px #a362f5;
}

.online b {
    color: #fff;
}

.online small {
    font-size: 11px;
}

.side-login {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 10px;
    background: #22102f;
    border: 1px solid #3f2552;
    font-size: 12px;
    font-weight: 850;
}

.side-switch {
    display: flex;
    gap: 6px;
}

.side-switch a {
    padding: 9px 12px;
    border-radius: 10px;
    background: #1f0f2b;
    font-size: 12px;
    font-weight: 850;
}

.side-switch a:first-child {
    background: #2f1744;
    color: #d3adff;
}

.sidebar>nav {
    display: flex;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.sidebar>nav a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #aa9db6;
    font-size: 12px;
    font-weight: 800;
}

.sidebar>nav a:hover {
    background: #22102f;
    color: #fff;
}

.sidebar>nav i {
    display: none;
}

.side-bottom {
    display: flex;
    gap: 7px;
    align-items: center;
}

.side-bottom>a {
    padding: 9px 11px;
    border-radius: 9px;
    background: #22102f;
    font-size: 11px;
    font-weight: 850;
}

.side-bottom b,.side-bottom small {
    display: block;
}

.side-bottom small {
    color: #806f8f;
}

.side-bottom>a:last-child {
    color: #c57cff;
}

.page-frame {
    margin-left: 0;
}

.page-frame main,.page-frame footer {
    width: min(var(--max),calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.hero {
    position: relative;
    min-height: 560px;
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(360px,.86fr) minmax(0,1.14fr);
    overflow: hidden;
    border: 1px solid #3a1d50;
    border-radius: 30px;
    background: radial-gradient(circle at 18% 16%,#522070 0,transparent 34%),radial-gradient(circle at 82% 18%,#2b1850 0,transparent 28%),linear-gradient(145deg,#1a0c28,#0d0715 70%);
    box-shadow: var(--shadow);
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#2b173b55 1px,transparent 1px),linear-gradient(90deg,#2b173b55 1px,transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg,#000 0,transparent 66%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    right: -110px;
    top: -160px;
    width: 520px;
    height: 520px;
    border: 1px solid #b758ff2e;
    border-radius: 50%;
    box-shadow: 0 0 0 55px #b758ff08,0 0 0 112px #a362f505;
}

.hero-copy {
    position: relative;
    z-index: 4;
    order: 2;
    padding: 76px 64px 70px 30px;
}

.hero h1,.page-hero h1,.game-hero h1 {
    margin: .08em 0 .18em;
    font-size: clamp(40px,5.1vw,72px);
    line-height: .99;
    letter-spacing: -.048em;
}

.hero-title strong {
    display: block;
    color: #fff;
}

.hero-title span {
    display: block;
    margin-top: 10px;
    color: #d1c9d9;
    font-size: .62em;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.hero-copy>p,.page-hero>p,.game-hero p {
    max-width: 720px;
    color: #b6a9c2;
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    margin-top: 27px;
}

.hero-facts {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 23px;
}

.hero-facts span {
    padding: 8px 11px;
    border: 1px solid #412854;
    border-radius: 999px;
    background: #1c0c28;
    color: #a091ad;
    font-size: 11px;
}

.hero-facts b {
    color: var(--mint);
}

.hero-visual {
    position: relative;
    order: 1;
    min-height: 100%;
    overflow: hidden;
}

.hero-visual:before {
    content: "MG";
    position: absolute;
    left: 44px;
    bottom: 26px;
    font-size: min(27vw,330px);
    line-height: .8;
    font-weight: 950;
    letter-spacing: -.12em;
    color: #260e3a;
    text-shadow: 0 0 1px #8a4cc0;
}

.hero-visual:after {
    content: "MELLSTROY GAME";
    position: absolute;
    left: 52px;
    top: 74px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #64477d;
    font-size: 10px;
    letter-spacing: .42em;
    font-weight: 900;
}

.hero-visual>img {
    display: none;
}

.orbit {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 1px solid #5b3d73;
    border-radius: 50%;
    background: #1b0928cc;
    color: #d7baf9;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    box-shadow: inset 0 0 25px #994ce812;
}

.orbit.one {
    right: 46px;
    top: 94px;
}

.orbit.two {
    right: 116px;
    bottom: 84px;
    width: 70px;
    height: 70px;
    border-color: #6d5c30;
    color: var(--amber);
}

.win-chip {
    position: absolute;
    z-index: 4;
    left: 52px;
    bottom: 48px;
    padding: 14px 16px;
    border-left: 3px solid var(--mint);
    background: #150720e8;
    box-shadow: 0 10px 30px #0b001480;
}

.win-chip b,.win-chip span {
    display: block;
}

.win-chip b {
    font-size: 13px;
    color: #fff;
}

.win-chip span {
    font-size: 11px;
    color: #897898;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-top: 12px;
}

.quick-grid a {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 11px;
    padding: 18px;
    border-radius: 16px;
    background: #190b24;
    border: 1px solid #311844;
    transition: .2s;
}

.quick-grid a:hover {
    transform: translateY(-3px);
    border-color: #5b347b;
}

.quick-grid i {
    grid-row: 1/3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #240e37;
    color: var(--mint);
    font-style: normal;
    font-size: 11px;
    font-weight: 950;
}

.quick-grid b {
    font-size: 14px;
}

.quick-grid span {
    color: #867495;
    font-size: 11px;
}

.content-section {
    margin-top: 72px;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-title h2,.intro h2,.two-col h2,.final-cta h2,.article-main h2 {
    font-size: clamp(28px,3vw,44px);
    line-height: 1.05;
    letter-spacing: -.035em;
    margin: .08em 0;
}

.section-title>a,.text-link {
    color: var(--mint);
    font-weight: 900;
    font-size: 13px;
}

.section-lead,.lead {
    max-width: 870px;
    color: #a89ab5;
    font-size: 17px;
}

.intro {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    align-items: start;
}

.intro>div:first-child {
    padding: 22px 2px;
}

.intro p {
    color: #a99bb5;
}

.project-card {
    padding: 18px;
    border-radius: 20px;
    background: #190b24;
    border: 1px solid #381e4d;
}

.project-card>span {
    font-size: 10px;
    color: var(--aqua);
    font-weight: 900;
    letter-spacing: .17em;
}

.project-card a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 14px 2px;
    border-bottom: 1px solid #2e1740;
}

.project-card a:last-child {
    border-bottom: 0;
}

.project-card em {
    color: #806f8f;
    font-size: 11px;
    font-style: normal;
    text-align: right;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #361e49;
    border-radius: 18px;
    background: #15071f;
    box-shadow: 0 16px 40px #0c001555;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 15px 17px;
    background: #230f32;
    color: #d9bdf9;
    font-size: 12px;
}

td {
    padding: 15px 17px;
    color: #b4a7c0;
    border-top: 1px solid #2e1740;
    vertical-align: top;
}

tbody tr:nth-child(even) {
    background: #180a23;
}

tbody tr:hover {
    background: #22102f;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px;
}

.game-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 42% 58%;
    border: 1px solid #341b47;
    border-radius: 18px;
    overflow: hidden;
    background: #190b24;
    box-shadow: 0 14px 34px #0b00144c;
}

.game-image {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 210px;
}

.game-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s;
}

.game-card:hover .game-image img {
    transform: scale(1.045);
}

.game-image>span {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #0f0517dd;
    border: 1px solid #442a59;
    color: #e5d5f8;
    font-size: 9px;
    font-weight: 900;
}

.game-card>div {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.game-card small {
    color: #af69ea;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
}

.game-card h3 {
    margin: 5px 0 7px;
    font-size: 18px;
    line-height: 1.1;
}

.game-card p {
    margin: 0;
    color: #9d8eaa;
    font-size: 12px;
    line-height: 1.55;
}

.game-tags {
    margin-top: 10px;
}

.game-tags span {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 999px;
    background: #210f31;
    color: #cca9f7;
    font-size: 9px;
}

.game-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.game-actions .btn {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 11px;
}

.more {
    color: #be7ff4;
    font-size: 10px;
    font-weight: 900;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.providers-grid article {
    min-width: 0;
    padding: 13px;
    border: 1px solid #341c48;
    border-radius: 16px;
    background: #1a0b25;
}

.providers-grid img {
    width: 100%;
    height: 74px;
    object-fit: contain;
    filter: saturate(.78) brightness(.92);
}

.providers-grid h3 {
    margin: 8px 0 2px;
    font-size: 13px;
}

.providers-grid p {
    margin: 0;
    color: #887896;
    font-size: 10px;
}

.banners {
    display: grid;
    grid-template-columns: 1.25fr .9fr .9fr;
    gap: 12px;
}

.banners>a {
    position: relative;
    min-height: 235px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #3d2451;
    background: #1a0b25;
}

.banners img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.7) contrast(1.05) brightness(.55);
    transition: .3s;
}

.banners>a:hover img {
    transform: scale(1.04);
    filter: saturate(.9) contrast(1.05) brightness(.62);
}

.banners div {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px;
    background: linear-gradient(transparent,#0f0417e8);
}

.banners span {
    color: var(--mint);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.banners h3 {
    margin: 4px 0;
    font-size: 24px;
}

.banners p {
    margin: 0;
    color: #b1a6ba;
    font-size: 12px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.two-col>article {
    padding: 28px;
    border: 1px solid #351d49;
    border-radius: 20px;
    background: linear-gradient(145deg,#1d0d29,#160820);
}

.two-col>article:nth-child(2) {
    background: linear-gradient(145deg,#1a0d25,#150720);
}

.two-col p {
    color: #a193ad;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}

.reviews-grid>article {
    padding: 18px;
    border: 1px solid #321b45;
    border-radius: 17px;
    background: #180a23;
}

.review-head {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    align-items: center;
}

.review-head>span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #29143d;
    color: #d6b8f9;
    font-weight: 900;
}

.review-head h3 {
    margin: 0;
    font-size: 13px;
}

.review-head small {
    color: #806f8f;
}

.review-head b {
    color: var(--amber);
    font-size: 11px;
}

.reviews-grid p {
    margin: 12px 0 0;
    color: #9d8faa;
    font-size: 12px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.faq-grid details {
    border: 1px solid #351d48;
    border-radius: 15px;
    background: #170922;
    padding: 0 15px;
}

.faq-grid summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    cursor: pointer;
    font-weight: 850;
    font-size: 13px;
}

.faq-grid summary span {
    color: var(--mint);
    font-size: 20px;
}

.faq-grid p {
    margin: 0 0 15px;
    color: #9e8faa;
    font-size: 12px;
}

.page-hero,.game-hero {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    padding: 58px;
    border: 1px solid #381e4c;
    border-radius: 27px;
    background: radial-gradient(circle at 86% 12%,#3a1657 0,transparent 28%),linear-gradient(135deg,#1d102a,#100819);
    box-shadow: var(--shadow);
}

.page-hero:after,.game-hero:after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    top: -170px;
    border: 1px solid #653f8566;
    border-radius: 50%;
    box-shadow: 0 0 0 45px #9d55e808,0 0 0 88px #9d55e805;
}

.page-hero h1 {
    max-width: 950px;
}

.byline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.byline span,.byline b {
    padding: 6px 10px;
    border-radius: 999px;
    background: #1b0c26;
    border: 1px solid #3a244b;
    color: #887896;
    font-size: 10px;
}

.byline b {
    color: #e2d6ef;
}

.game-hero-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: center;
}

.game-hero-grid>img {
    width: 260px;
    height: 190px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #442b58;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 270px;
    gap: 18px;
    align-items: start;
    margin-top: 20px;
}

.article-main {
    min-width: 0;
    padding: 30px;
    border: 1px solid #341c48;
    border-radius: 22px;
    background: #160821;
}

.article-main>section {
    position: relative;
    padding: 8px 0 28px;
    margin-bottom: 22px;
    border-bottom: 1px solid #2e1740;
}

.article-main>section:last-child {
    border-bottom: 0;
}

.article-main p {
    color: #a395af;
}

.section-number {
    display: inline-block;
    color: #6b4f84;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
}

.toc {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid #341c48;
    border-radius: 18px;
    background: #170922;
}

.toc>b {
    margin-bottom: 5px;
    font-size: 12px;
}

.toc>a,.toc>span {
    padding: 7px 0;
    color: #91809f;
    font-size: 11px;
    border-bottom: 1px solid #2b153c;
}

.toc>a:hover {
    color: #fff;
}

.toc .btn {
    margin-top: 6px;
    border-bottom: 0;
    color: #0c0415;
}

.editor-note {
    padding: 20px!important;
    border: 1px solid #48315a!important;
    border-radius: 15px;
    background: #1e0e2b!important;
}

.editor-note b {
    color: var(--mint);
}

.editor-note a {
    color: #c57cff;
    font-size: 12px;
    font-weight: 900;
}

.final-cta {
    margin: 72px 0 0;
    padding: 34px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid #472c5d;
    border-radius: 22px;
    background: linear-gradient(100deg,#241234,#12091c);
}

.final-cta p {
    margin: 6px 0 0;
    color: #9788a4;
}

.final-cta h2 {
    max-width: 760px;
}

footer {
    margin-top: 24px!important;
    margin-bottom: 28px;
    padding: 34px;
    border: 1px solid #321b44;
    border-radius: 22px;
    background: #12061c;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3,1fr);
    gap: 28px;
}

.footer-grid>div p {
    max-width: 380px;
    color: #8d7e9b;
    font-size: 12px;
}

.footer-grid nav {
    display: grid;
    align-content: start;
    gap: 7px;
}

.footer-grid nav b {
    margin-bottom: 5px;
    font-size: 11px;
    color: #e1d7ec;
}

.footer-grid nav a {
    color: #8a7998;
    font-size: 11px;
}

.footer-grid nav a:hover {
    color: #fff;
}

.age {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #5a4967;
    color: var(--amber);
    font-weight: 900;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #2c173d;
    color: #7e6e8c;
    font-size: 10px;
}

.footer-bottom p {
    margin: 0;
    max-width: 740px;
}

.popup-backdrop {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #0c0015c9;
    backdrop-filter: blur(7px);
}

.popup-backdrop[hidden] {
    display: none;
}

.popup {
    position: relative;
    width: min(440px,100%);
    padding: 26px;
    border: 1px solid #492b62;
    border-radius: 24px;
    background: radial-gradient(circle at 95% 0,#4a1e68 0,transparent 34%),linear-gradient(145deg,#21102f,#12091c);
    box-shadow: 0 30px 90px #000b;
    overflow: hidden;
}

.popup-shine {
    position: absolute;
    width: 230px;
    height: 230px;
    right: -110px;
    top: -130px;
    border-radius: 50%;
    background: #a362f517;
    filter: blur(5px);
}

.popup-close {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid #48315b;
    border-radius: 50%;
    background: #180a23;
    color: #dacfe5;
    cursor: pointer;
}

.popup-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-logo-shell {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #221031;
}

.popup-logo {
    width: 42px;
    height: 38px;
    object-fit: contain;
}

.popup-brand small,.popup-brand strong {
    display: block;
}

.popup-brand small {
    color: #836f94;
    font-size: 9px;
    letter-spacing: .17em;
}

.popup-brand strong {
    font-size: 14px;
}

.popup-kicker {
    display: block;
    margin-top: 24px;
    color: var(--mint);
    font-size: 9px;
    letter-spacing: .13em;
    font-weight: 900;
}

.popup h2 {
    margin: 7px 0;
    font-size: 32px;
    line-height: 1;
}

.popup h2 strong {
    color: var(--mint);
}

.popup p {
    color: #9e90ab;
    font-size: 13px;
}

.popup-benefits {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.popup-benefits span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #1e0d2d;
    color: #ceaef6;
    font-size: 10px;
}

.popup .btn {
    width: 100%;
}

.popup-return {
    display: block;
    margin: 10px auto 0;
    border: 0;
    background: transparent;
    color: #8a7998;
    font-size: 11px;
    cursor: pointer;
}

.pulse {
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0%,100% {
        box-shadow: 0 0 0 0 #a362f538;
    }

    55% {
        box-shadow: 0 0 0 13px #a362f500;
    }

}

@media(max-width:1120px) {
    .top-nav {
        display: none;
    }

    .sidebar {
        grid-template-columns: auto auto 1fr auto;
    }

    .sidebar>nav a:nth-child(n+6) {
        display: none;
    }

    .side-bottom>a:last-child {
        display: none;
    }

    .games-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .providers-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .hero {
        grid-template-columns: .72fr 1.28fr;
    }

    .hero-copy {
        padding-right: 40px;
    }

    .footer-grid {
        grid-template-columns: 1.3fr repeat(2,1fr);
    }

    .footer-grid nav:last-child {
        display: none;
    }

}

@media(max-width:820px) {
    .header {
        padding: 0 16px;
        min-height: 66px;
    }

    .telegram-btn span,.head-actions>.login {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu[open]>div {
        position: absolute;
        right: 0;
        top: 44px;
        width: 240px;
        padding: 10px;
        display: grid;
        gap: 4px;
        background: #160821;
        border: 1px solid #3b244d;
        border-radius: 14px;
        box-shadow: var(--shadow);
    }

    .mobile-menu[open]>div a {
        padding: 10px;
        border-radius: 9px;
        color: #c3b8cd;
        font-size: 12px;
    }

    .sidebar {
        width: calc(100% - 28px);
        margin-top: 12px;
        display: flex;
        overflow-x: auto;
    }

    .sidebar>nav {
        display: flex;
        justify-content: flex-start;
    }

    .sidebar>nav a {
        white-space: nowrap;
    }

    .online,.side-login,.side-switch,.side-bottom {
        display: none;
    }

    .page-frame main,.page-frame footer {
        width: calc(100% - 28px);
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        order: 1;
        padding: 46px 28px 34px;
    }

    .hero-visual {
        order: 2;
        min-height: 250px;
    }

    .hero-visual:before {
        left: 28px;
        bottom: -8px;
        font-size: 210px;
    }

    .hero-visual:after {
        display: none;
    }

    .orbit.one {
        right: 28px;
        top: 28px;
    }

    .orbit.two {
        right: 130px;
        bottom: 30px;
    }

    .win-chip {
        left: 28px;
        bottom: 28px;
    }

    .quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .intro,.two-col {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        grid-template-columns: 190px 1fr;
    }

    .providers-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .banners {
        grid-template-columns: 1fr;
    }

    .banners>a {
        min-height: 200px;
    }

    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: relative;
        top: auto;
        grid-template-columns: repeat(2,1fr);
    }

    .toc>b,.toc hr,.toc .btn {
        grid-column: 1/-1;
    }

    .page-hero,.game-hero {
        padding: 36px 28px;
    }

    .game-hero-grid {
        grid-template-columns: 1fr;
    }

    .game-hero-grid>img {
        width: 100%;
        height: 260px;
    }

    .final-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid>div {
        grid-column: 1/-1;
    }

    .footer-bottom {
        flex-direction: column;
    }

}

@media(max-width:520px) {
    body {
        font-size: 15px;
    }

    .top-note {
        justify-content: flex-start;
        padding: 7px 12px;
        overflow: hidden;
    }

    .top-note p span,.top-note a {
        display: none;
    }

    .header .brand strong {
        font-size: 13px;
    }

    .header .brand img {
        width: 35px;
    }

    .head-actions>.register {
        padding: 9px 11px;
        font-size: 11px;
    }

    .hero {
        border-radius: 21px;
    }

    .hero-copy {
        padding: 34px 20px 26px;
    }

    .hero h1,.page-hero h1,.game-hero h1 {
        font-size: 38px;
    }

    .hero-copy>p,.page-hero>p,.game-hero p {
        font-size: 15px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 210px;
    }

    .hero-visual:before {
        font-size: 175px;
        left: 18px;
    }

    .orbit.one {
        width: 74px;
        height: 74px;
        right: 18px;
        top: 20px;
    }

    .orbit.two {
        display: none;
    }

    .win-chip {
        left: 20px;
        bottom: 20px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        margin-top: 54px;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        grid-template-columns: 1fr;
    }

    .game-image {
        min-height: 190px;
    }

    .providers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,.game-hero {
        padding: 29px 20px;
        border-radius: 20px;
    }

    .article-main {
        padding: 20px;
    }

    .toc {
        grid-template-columns: 1fr;
    }

    .final-cta {
        padding: 27px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid nav {
        display: grid!important;
    }

    .footer-grid>div {
        grid-column: auto;
    }

    .popup {
        padding: 22px 18px;
    }

}

/* Editorial verification cards: not user testimonials */
.trust-grid .review-head>span {
    font-weight: 900;
}

.trust-grid article {
    min-height: 0;
}

.trust-grid small {
    opacity: .72;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #897898;
    font-size: 11px;
}

.breadcrumbs a {
    color: #9e8eac;
}

.breadcrumbs a:hover {
    color: var(--mint);
}

.breadcrumbs b {
    color: #d1c7db;
    font-weight: 800;
}

.article-checks {
    margin: 14px 0 8px;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
}

.article-checks li {
    position: relative;
    padding: 11px 13px 11px 34px;
    border: 1px solid #351d49;
    border-radius: 12px;
    background: #1a0a26;
    color: #b5a8c1;
}

.article-checks li:before {
    content: "✓";
    position: absolute;
    left: 13px;
    color: var(--mint);
    font-weight: 900;
}

/* Global UI hardening and purple theme */
html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
}

img,svg,video {
    display: block;
    max-width: 100%;
}

button,input,textarea,select {
    font: inherit;
}

a,button,summary {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}

::selection {
    background: #8b47d9;
    color: #fff;
}

.header {
    isolation: isolate;
}

.brand {
    min-width: 0;
    flex-shrink: 1;
}

.brand strong {
    min-width: 0;
}

.brand i {
    white-space: nowrap;
}

.top-nav,.head-actions {
    min-width: 0;
}

.top-nav a {
    white-space: nowrap;
}

.top-age {
    flex: 0 0 auto;
}

.sidebar {
    min-width: 0;
}

.sidebar>nav {
    overflow: hidden;
}

.sidebar>nav a {
    min-width: 0;
}

.hero,.page-hero,.game-hero,.article-main,.toc,.project-card,.game-card,.provider-card,.review-card,.reviews-grid>article,.faq-grid details,.final-cta,footer {
    box-shadow: 0 20px 55px #08000f66;
}

.hero {
    isolation: isolate;
}

.hero-copy,.hero-visual,.game-card>div,.article-main,.toc {
    min-width: 0;
}

.hero h1,.page-hero h1,.game-hero h1,.section-title h2,.article-main h2 {
    overflow-wrap: anywhere;
}

.hero-visual:before {
    color: #2b1540;
    text-shadow: 0 0 1px #a268e0;
}

.hero-visual:after {
    color: #7f63a2;
}

.orbit {
    background: #1d0d2acc;
    border-color: #70489a;
    color: #eadcff;
    box-shadow: inset 0 0 25px #a85fff1a;
}

.win-chip {
    background: #130a1de8;
}

.btn,.telegram-btn {
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: linear-gradient(135deg,#c77dff,#9b5cff 55%,#7c50e8);
    color: #14071f;
    box-shadow: 0 12px 30px #a45cff38;
}

.btn.primary:hover {
    filter: brightness(1.08) saturate(1.05);
}

.btn.secondary,.btn.login {
    background: #1c1029;
    border-color: #4a3161;
    color: #f8f1ff;
}

.telegram-btn {
    background: #1a1029;
    border-color: #4f3770;
    color: #eee3ff;
}

.side-switch a:first-child {
    background: #35204b;
    color: #e8d5ff;
}

.online span {
    box-shadow: 0 0 14px #b86cff;
}

.quick-grid a,.project-card,.game-card,.reviews-grid>article,.faq-grid details,.article-main,.toc {
    background-color: #180d24;
}

.quick-grid a:hover,.game-card:hover {
    border-color: #7651a0;
}

.quick-grid i {
    background: #29163a;
}

.table-wrap {
    background: #12091c;
}

th {
    background: #2a173c;
    color: #ead8ff;
}

tbody tr:nth-child(even) {
    background: #160b22;
}

tbody tr:hover {
    background: #221230;
}

.game-card>div {
    overflow: hidden;
}

.game-card h3,.game-card p,.project-card b,.project-card em {
    overflow-wrap: anywhere;
}

.game-image {
    background: #12091c;
}

.game-image>span {
    background: #100818e8;
    border-color: #62427d;
    color: #f0e4ff;
}

.faq-grid summary {
    list-style: none;
}

.faq-grid summary::-webkit-details-marker {
    display: none;
}

.faq-grid details[open] {
    border-color: #68468b;
    background: #1d102b;
}

.faq-grid details[open] summary {
    color: #fff;
}

.article-checks li {
    background: #1a0e27;
    border-color: #432b5b;
}

.editor-note {
    background: #21112f!important;
    border-color: #59406f!important;
}

.final-cta {
    background: radial-gradient(circle at 92% 20%,#3b1755 0,transparent 30%),linear-gradient(100deg,#241234,#12091c);
}

footer {
    background: #100818;
}

.popup-backdrop {
    background: #09020fd6;
}

.popup {
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
}

.popup-logo-shell {
    background: #281638;
}

.popup-benefits span {
    background: #2b173d;
    color: #ead8ff;
}

.popup-close {
    background: #1b0e28;
    border-color: #5a3d72;
}

/* Tablet navigation */
@media(max-width:1120px) {
    .mobile-menu {
        display: block;
    }

    .mobile-menu[open]>div {
        position: absolute;
        right: 0;
        top: 44px;
        width: min(260px,calc(100vw - 32px));
        padding: 10px;
        display: grid;
        gap: 4px;
        background: #170c23;
        border: 1px solid #4b3261;
        border-radius: 14px;
        box-shadow: var(--shadow);
    }

    .mobile-menu[open]>div a {
        padding: 10px;
        border-radius: 9px;
        color: #d8cbea;
        font-size: 12px;
    }

    .mobile-menu[open]>div a:hover {
        background: #241334;
        color: #fff;
    }

    .footer-grid {
        grid-template-columns: 1.2fr repeat(3,1fr);
    }

    .footer-grid nav:last-child {
        display: grid;
    }

}

@media(max-width:900px) {
    .header {
        gap: 14px;
    }

    .head-actions {
        gap: 6px;
    }

    .sidebar {
        scrollbar-width: none;
    }

    .sidebar::-webkit-scrollbar {
        display: none;
    }

    .game-card {
        grid-template-columns: 170px minmax(0,1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid>div {
        grid-column: 1/-1;
    }

}

@media(max-width:820px) {
    .header {
        padding-left: max(16px,env(safe-area-inset-left));
        padding-right: max(16px,env(safe-area-inset-right));
    }

    .mobile-menu[open]>div {
        top: 42px;
    }

    .sidebar {
        overscroll-behavior-x: contain;
    }

    .toc {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    }

    .final-cta .btn {
        width: 100%;
    }

    .footer-grid nav:last-child {
        display: grid;
    }

}

@media(max-width:620px) {
    .header .brand i {
        display: none;
    }

    .head-actions>.register {
        display: none;
    }

    .brand strong {
        font-size: 13px;
        letter-spacing: .055em;
    }

    .mobile-menu {
        margin-left: auto;
    }

}

@media(max-width:520px) {
    .header {
        gap: 8px;
    }

    .header .brand {
        gap: 8px;
    }

    .header .brand img {
        width: 34px;
        height: 32px;
    }

    .mobile-menu summary i {
        width: 20px;
    }

    .page-frame main,.page-frame footer {
        width: calc(100% - 24px);
    }

    .sidebar {
        width: calc(100% - 24px);
    }

    .hero-copy {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero h1,.page-hero h1,.game-hero h1 {
        font-size: clamp(32px,10vw,38px);
        letter-spacing: -.04em;
    }

    .quick-grid a {
        padding: 15px;
    }

    .game-card {
        grid-template-columns: 1fr;
    }

    .game-card>div {
        padding: 15px;
    }

    .providers-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,.game-hero {
        padding: 26px 18px;
    }

    .article-main {
        padding: 18px;
    }

    .toc {
        grid-template-columns: 1fr;
    }

    .final-cta {
        padding: 24px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid>div {
        grid-column: auto;
    }

    .popup {
        width: min(420px,100%);
        padding: 20px 16px;
        border-radius: 20px;
    }

}

@media(max-width:380px) {
    .top-note {
        font-size: 11px;
    }

    .header .brand strong {
        font-size: 12px;
    }

    .hero-facts {
        gap: 6px;
    }

    .hero-facts span {
        padding: 7px 9px;
    }

    .page-frame main,.page-frame footer,.sidebar {
        width: calc(100% - 18px);
    }

}

/* Utility navigation and overflow protection */
/* Global overflow protection */
.header,.sidebar,.page-frame,main,footer,.hero,.quick-grid,.content-section,.games-grid,.banners,.reviews-grid,.faq-grid,.article-layout,.final-cta {
    max-width: 100%;
}

.header>*,.sidebar>*,.hero>*,.quick-grid>*,.games-grid>*,.article-layout>* {
    min-width: 0;
}

.sidebar a,.header a,.quick-grid a,.project-card a,.footer-grid a {
    overflow-wrap: normal;
    word-break: normal;
}

/* Desktop utility navigation */
@media(min-width:1121px) {
    .sidebar {
        grid-template-columns: auto auto auto 1fr;
        grid-template-areas: "online verify switch bottom" "nav nav nav nav";
        column-gap: 10px;
        row-gap: 9px;
        padding: 10px 12px 12px;
    }

    .sidebar>.online {
        grid-area: online;
    }

    .sidebar>.side-login {
        grid-area: verify;
    }

    .sidebar>.side-switch {
        grid-area: switch;
    }

    .sidebar>nav {
        grid-area: nav;
        display: grid;
        grid-template-columns: repeat(9,minmax(0,1fr));
        gap: 6px;
        width: 100%;
        overflow: visible;
        padding-top: 9px;
        border-top: 1px solid #352047;
    }

    .sidebar>nav a {
        justify-content: center;
        min-width: 0;
        width: 100%;
        padding: 8px 7px;
        border: 1px solid transparent;
        background: #12091b80;
        white-space: nowrap;
        text-align: center;
        line-height: 1.15;
    }

    .sidebar>nav a:hover {
        border-color: #4d3265;
    }

    .sidebar>nav a span {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar>.side-bottom {
        grid-area: bottom;
        justify-self: end;
        min-width: 0;
    }

    .side-bottom>a {
        min-width: 0;
    }

}

/* Medium desktop utility navigation */
@media(min-width:821px) and (max-width:1120px) {
    .sidebar {
        grid-template-columns: auto auto 1fr;
        grid-template-areas: "online verify bottom" "switch switch switch" "nav nav nav";
        row-gap: 8px;
        padding: 10px 11px 12px;
    }

    .sidebar>.online {
        grid-area: online;
    }

    .sidebar>.side-login {
        grid-area: verify;
    }

    .sidebar>.side-switch {
        grid-area: switch;
        justify-self: start;
    }

    .sidebar>.side-bottom {
        grid-area: bottom;
        justify-self: end;
    }

    .sidebar>nav {
        grid-area: nav;
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        gap: 6px;
        width: 100%;
        overflow: visible;
        padding-top: 8px;
        border-top: 1px solid #352047;
    }

    .sidebar>nav a, .sidebar>nav a:nth-child(n+6) {
        display: flex !important;
        justify-content: center;
        min-width: 0;
        padding: 8px 6px;
        border: 1px solid transparent;
        background: #12091b80;
        white-space: nowrap;
        text-align: center;
        line-height: 1.15;
    }

    .sidebar>nav a span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .side-bottom>a:last-child {
        display: block;
    }

}

/* Mobile utility navigation */
@media(max-width:820px) {
    .sidebar {
        align-items: stretch;
        gap: 0;
        padding: 7px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar>nav {
        flex: 0 0 auto;
        width: max-content;
        overflow: visible;
        gap: 5px;
    }

    .sidebar>nav a, .sidebar>nav a:nth-child(n+6) {
        display: flex !important;
        flex: 0 0 auto;
        min-width: max-content;
        padding: 9px 11px;
        white-space: nowrap;
        scroll-snap-align: start;
    }

}

/* Notebook and desktop hero sizing */
@media(min-width:1121px) and (max-width:1380px) {
    .hero {
        grid-template-columns: minmax(330px,.78fr) minmax(0,1.22fr);
    }

    .hero-copy {
        padding: 62px 40px 58px 24px;
    }

    .hero h1 {
        font-size: clamp(46px,5vw,64px);
    }

    .hero-copy>p {
        font-size: 17px;
    }

    .hero-facts span {
        font-size: 10px;
    }

}

/* Header breakpoint safety */
@media(min-width:1121px) and (max-width:1260px) {
    .header {
        gap: 16px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .top-nav {
        gap: 14px;
    }

    .top-nav a {
        font-size: 12px;
    }

    .head-actions {
        gap: 6px;
    }

    .btn,.telegram-btn {
        padding-left: 13px;
        padding-right: 13px;
    }

}

/* Card overflow protection */
.quick-grid a b,.quick-grid a span,.project-card a b,.project-card a em,.game-card h3,.game-card p,.provider-card,.review-head>div,.faq-grid summary {
    min-width: 0;
    max-width: 100%;
}

.quick-grid a b,.quick-grid a span,.project-card a b,.project-card a em,.game-card h3,.game-card p {
    overflow-wrap: anywhere;
}

.review-head {
    min-width: 0;
}

.review-head>div {
    overflow: hidden;
}

.review-head h3,.review-head small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.final-cta>div {
    min-width: 0;
}

.final-cta h2,.final-cta p {
    overflow-wrap: anywhere;
}

/* Decorative layer overflow protection */
.hero-glow,.hero:before,.page-hero:after,.game-hero:after,.popup-shine {
    pointer-events: none;
}

/* Typography, homepage spacing and mobile CTA */
body {
    font-family: "Segoe UI Variable Text","Segoe UI",Inter,Arial,Helvetica,sans-serif;
    line-height: 1.58;
}

.hero h1,.page-hero h1,.game-hero h1,.section-title h2,.article-main h2,.final-cta h2 {
    font-family: "Segoe UI Variable Display","Segoe UI",Inter,Arial,Helvetica,sans-serif;
    font-weight: 800;
    letter-spacing: -.035em;
}

strong,b {
    font-weight: 800;
}

.top-note {
    min-height: 30px;
    padding: 6px 16px;
    font-size: 11px;
    color: #c7bdd2;
}

.header {
    min-height: 72px;
    gap: 18px;
    background: #0d0715f0;
    border-bottom-color: #271337;
}

.top-nav {
    gap: 18px;
}

.top-nav a {
    font-size: 12px;
    color: #c9bfd2;
}

.btn,.telegram-btn {
    border-radius: 13px;
}

.sidebar {
    margin-top: 16px;
    padding: 10px;
    background: #130a1c;
    border-color: #2d1840;
    box-shadow: 0 8px 24px #09021040;
}

.side-login,.side-switch a,.side-bottom>a,.sidebar>nav a {
    background: #1a0f27;
}

.hero {
    min-height: 510px;
    border-radius: 28px;
    background: radial-gradient(circle at 18% 16%,#472063 0,transparent 30%),radial-gradient(circle at 82% 18%,#241143 0,transparent 24%),linear-gradient(145deg,#160a22,#0d0715 72%);
}

.hero:before {
    background-size: 52px 52px;
    opacity: .4;
    mask-image: linear-gradient(90deg,#000 0,transparent 58%);
}

.hero-glow {
    right: -120px;
    top: -170px;
    width: 450px;
    height: 450px;
    opacity: .55;
}

.hero-copy {
    padding: 66px 56px 56px 26px;
}

.hero h1,.page-hero h1,.game-hero h1 {
    font-size: clamp(42px,4.9vw,68px);
    line-height: 1.02;
}

.hero-title span {
    margin-top: 12px;
    font-size: .54em;
    color: #e5dbee;
    line-height: 1.12;
}

.hero-copy>p,.page-hero>p,.game-hero p {
    font-size: 17px;
    color: #c2b7ce;
}

.hero-actions {
    margin-top: 24px;
}

.hero-facts {
    margin-top: 20px;
    gap: 10px;
}

.hero-facts span {
    padding: 9px 12px;
    background: #170d22;
    border-color: #3a2550;
    color: #b1a5bf;
    font-size: 11px;
}

.hero-facts b {
    color: #f2e9ff;
}

.hero-visual:before {
    left: 60px;
    bottom: 30px;
    font-size: min(24vw,280px);
    color: #24112f;
    text-shadow: none;
    opacity: .75;
}

.hero-visual:after {
    left: 60px;
    top: 82px;
    opacity: .5;
}

.orbit.one {
    right: 64px;
    top: 92px;
    width: 78px;
    height: 78px;
    font-size: 11px;
    border-color: #634288;
    background: #1a0d25d9;
}

.orbit.two {
    display: none;
}

.win-chip {
    left: 56px;
    bottom: 40px;
    max-width: 250px;
    padding: 13px 15px;
    border-left-width: 2px;
    background: #120918cc;
    backdrop-filter: blur(8px);
}

.final-cta {
    align-items: center;
}

.popup-backdrop {
    padding: 12px;
}

.popup {
    width: min(420px,calc(100vw - 24px));
    max-width: 420px;
    max-height: min(640px,calc(100dvh - 24px));
    padding: 24px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popup::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.popup h2 {
    font-size: 26px;
    line-height: 1.03;
}

.popup p {
    font-size: 14px;
    line-height: 1.55;
}

.popup .btn {
    max-width: 100%;
    white-space: normal;
}

.popup-shine {
    right: -90px;
    top: -110px;
    width: 200px;
    height: 200px;
}

.popup-return {
    padding-bottom: 2px;
}

@media(min-width:821px) and (max-width:1120px) {
    .hero {
        min-height: 490px;
    }

    .hero-copy {
        padding: 54px 34px 48px 22px;
    }

    .hero h1 {
        font-size: clamp(40px,5vw,56px);
    }

    .hero-copy>p {
        font-size: 16px;
    }

    .win-chip {
        display: none;
    }

}

@media(max-width:820px) {
    .sidebar {
        scroll-snap-type: x proximity;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        order: 1;
        padding: 32px 22px 26px;
    }

    .hero-visual {
        order: 2;
        min-height: 170px;
    }

    .hero-visual:before {
        left: 22px;
        bottom: 10px;
        font-size: 150px;
        opacity: .55;
    }

    .hero-visual:after {
        left: 28px;
        top: 28px;
        font-size: 9px;
        letter-spacing: .35em;
    }

    .orbit.one {
        right: 24px;
        top: 18px;
        width: 64px;
        height: 64px;
        font-size: 10px;
    }

    .win-chip {
        display: none;
    }

}

@media(max-width:620px) {
    .top-note {
        justify-content: flex-start;
        padding-inline: 12px;
    }

    .head-actions>.login {
        display: none;
    }

    .head-actions>.register {
        display: inline-flex;
        min-height: 40px;
        padding: 9px 13px;
        font-size: 12px;
    }

    .head-actions>.telegram-btn {
        display: none;
    }

    .mobile-menu {
        display: block;
        margin-left: 0;
    }

    .hero-copy {
        padding: 28px 18px 22px;
    }

    .hero h1 {
        font-size: clamp(34px,10vw,42px);
    }

    .hero-title span {
        font-size: .58em;
    }

    .hero-copy>p {
        font-size: 15px;
        line-height: 1.55;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-actions .btn.primary {
        min-height: 48px;
        font-size: 15px;
    }

    .hero-facts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-facts span {
        font-size: 11px;
    }

    .popup {
        padding: 20px 16px;
        border-radius: 20px;
    }

}

@media(max-width:420px) {
    .header {
        gap: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand strong {
        font-size: 12px;
        letter-spacing: .05em;
    }

    .head-actions>.register {
        padding: 8px 11px;
        font-size: 11px;
    }

    .hero {
        border-radius: 22px;
    }

    .hero-visual {
        min-height: 150px;
    }

    .popup h2 {
        font-size: 24px;
    }

}

/* Premium homepage hero */
.hero-premium {
    min-height: 430px;
    grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr);
    align-items: stretch;
    padding: 0;
    background: radial-gradient(circle at 100% 0%, rgba(129,88,255,.14), transparent 26%), linear-gradient(135deg,#12091c 0%,#171024 52%,#12091c 100%);
    border: 1px solid #362049;
    box-shadow: 0 22px 60px #07010f52;
}

.hero-premium:before, .hero-premium .hero-glow, .hero-premium .hero-visual, .hero-premium .orbit, .hero-premium .win-chip {
    display: none!important;
}

.hero-premium .hero-copy {
    padding: 54px 48px 48px 48px;
    order: initial;
}

.hero-premium .eyebrow {
    margin-bottom: 14px;
    color: #b982ff;
    font-size: 12px;
    letter-spacing: .16em;
}

.hero-premium .hero-title strong {
    font-size: clamp(46px,5vw,70px);
    line-height: .98;
}

.hero-premium .hero-title span {
    font-size: .42em;
    line-height: 1.15;
    color: #e8dff1;
    margin-top: 12px;
}

.hero-premium .hero-copy>p {
    max-width: 680px;
    margin-top: 10px;
    color: #c9bfd3;
    font-size: 18px;
    line-height: 1.65;
}

.hero-premium .hero-facts {
    margin-top: 18px;
}

.hero-premium .hero-facts span {
    background: #181021;
    border: 1px solid #38254a;
    color: #b9aec5;
    padding: 9px 12px;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-left: 1px solid #2b1a3b;
    background: linear-gradient(180deg,#120a1b 0%,#100818 100%);
}

.hero-panel-card {
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg,#171021 0%,#130b1c 100%);
    border: 1px solid #302040;
}

.hero-panel-card small {
    display: block;
    margin-bottom: 10px;
    color: #b883ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-panel-main h3, .hero-panel-note h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.hero-panel-main p, .hero-panel-note p {
    margin: 0;
    color: #b8acc7;
    font-size: 14px;
    line-height: 1.55;
}

.hero-panel-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.hero-panel-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    background: #1d1329;
    border: 1px solid #38234d;
    color: #f6efff;
    font-weight: 750;
    transition: .2s;
}

.hero-panel-links a:after {
    content: '→';
    color: #b982ff;
}

.hero-panel-links a:hover {
    transform: translateY(-1px);
    border-color: #7149a0;
    background: #211631;
}

.hero-panel-note ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.hero-panel-note li {
    position: relative;
    padding-left: 18px;
    color: #c5bad2;
    font-size: 14px;
    line-height: 1.45;
}

.hero-panel-note li:before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b982ff;
    box-shadow: 0 0 0 4px rgba(185,130,255,.12);
}

.quick-grid-clean {
    margin-top: 16px;
    gap: 14px;
}

.quick-grid-clean a {
    grid-template-columns: 44px 1fr;
    padding: 20px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg,#171021 0%,#120a1b 100%);
    border: 1px solid #312041;
}

.quick-grid-clean i {
    width: 44px;
    height: 44px;
    background: #211532;
    color: #c694ff;
    font-size: 12px;
}

.quick-grid-clean b {
    font-size: 17px;
    letter-spacing: -.01em;
}

.quick-grid-clean span {
    font-size: 13px;
    color: #9488a5;
}

.intro .project-card {
    background: linear-gradient(180deg,#171021 0%,#110917 100%);
}

@media(max-width:1180px) {
    .hero-premium {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-panel {
        border-left: 0;
        border-top: 1px solid #2b1a3b;
        padding: 18px 22px 24px;
    }

    .hero-premium .hero-copy {
        padding: 42px 32px 32px;
    }

}

@media(max-width:820px) {
    .hero-premium .hero-copy {
        padding: 30px 22px 24px;
    }

    .hero-premium .hero-title strong {
        font-size: clamp(36px,11vw,48px);
    }

    .hero-premium .hero-title span {
        font-size: .5em;
    }

    .hero-premium .hero-copy>p {
        font-size: 15px;
        line-height: 1.58;
    }

    .hero-panel {
        padding: 16px 16px 18px;
        gap: 12px;
    }

    .hero-panel-card {
        padding: 18px 16px;
    }

    .hero-panel-main h3 {
        font-size: 20px;
    }

    .hero-panel-links a {
        padding: 13px 14px;
    }

    .quick-grid-clean {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quick-grid-clean b {
        font-size: 16px;
    }

    .quick-grid-clean span {
        font-size: 12px;
    }

}

/* Bright purple color layer */
:root {
    --surface: #1a0f27;
    --surface-2: #231235;
    --card: #221132;
    --line: #5d3387;
    --muted: #c6b7d4;
    --mint: #cf7cff;
    --aqua: #b08cff;
    --shadow: 0 22px 60px rgba(9,0,18,.42);
}

body {
    background: radial-gradient(circle at 18% 0,#351257 0,transparent 30%), radial-gradient(circle at 90% 8%,rgba(149,83,255,.10) 0,transparent 26%), linear-gradient(180deg,#0b0612 0,#13091f 38%,#10081a 100%);
}

.header {
    background: #12091bf2;
    border-bottom-color: #44205f;
}

.top-note {
    background: #0e0516;
    border-bottom-color: #3d1d56;
}

.sidebar {
    background: #180b25;
    border-color: #4a236b;
    box-shadow: 0 12px 34px rgba(14,0,25,.28);
}

.side-login,.side-switch a,.side-bottom>a,.sidebar>nav a,.quick-grid-clean a,.project-card,.game-card,.reviews-grid>article,.faq-grid details,.article-main,.toc {
    border-color: #4b286d;
}

.btn.primary {
    background: linear-gradient(135deg,#da8bff 0%,#b96bff 48%,#9a58ff 100%);
    color: #190725;
    box-shadow: 0 14px 34px rgba(185,107,255,.34);
}

.btn.primary:hover {
    filter: brightness(1.12) saturate(1.06);
}

.btn.secondary,.btn.login {
    background: #211131;
    border-color: #5b3780;
    color: #fcf7ff;
}

.telegram-btn {
    background: #201032;
    border-color: #67429a;
    color: #f7eeff;
}

.top-nav a:hover,.section-title>a,.text-link,.eyebrow,.popup-kicker,.hero-panel-card small {
    color: #cf7cff;
}

.top-nav a:after {
    background: #cf7cff;
}

.hero-premium {
    background: radial-gradient(circle at 100% 0%, rgba(180,110,255,.20), transparent 25%), radial-gradient(circle at 0% 0%, rgba(118,61,206,.25), transparent 34%), linear-gradient(135deg,#160a22 0%,#1a0f2a 52%,#13091e 100%);
    border-color: #56307f;
    box-shadow: 0 26px 70px rgba(11,0,21,.42);
}

.hero-premium .hero-copy>p {
    color: #d4c7e0;
}

.hero-premium .hero-facts span {
    background: #1e122d;
    border-color: #59347e;
    color: #c6b7d4;
}

.hero-panel {
    background: linear-gradient(180deg,#150b21 0%,#12091c 100%);
    border-left-color: #4a286a;
}

.hero-panel-card {
    background: linear-gradient(180deg,#1e1330 0%,#150c21 100%);
    border-color: #55307b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.hero-panel-links a {
    background: #25163a;
    border-color: #62398d;
    color: #fff;
}

.hero-panel-links a:after {
    color: #d18cff;
}

.hero-panel-links a:hover {
    background: #2b1a43;
    border-color: #8454bb;
}

.hero-panel-note li:before {
    background: #d18cff;
    box-shadow: 0 0 0 4px rgba(209,140,255,.18);
}

.quick-grid-clean a {
    background: linear-gradient(180deg,#1d122d 0%,#150c20 100%);
    box-shadow: 0 12px 28px rgba(8,0,14,.18);
}

.quick-grid-clean a:hover {
    border-color: #8a59bf;
    background: linear-gradient(180deg,#221536 0%,#170d23 100%);
}

.quick-grid-clean i {
    background: #2c1a42;
    color: #d59bff;
}

.quick-grid-clean span {
    color: #aa98be;
}

.game-image>span,.hero-facts span,.popup-benefits span {
    background: #231237;
}

.table-wrap {
    border-color: #4a286d;
    background: #150b20;
}

th {
    background: #31184a;
    color: #f0dcff;
}

tbody tr:hover {
    background: #29163d;
}

.final-cta {
    background: radial-gradient(circle at 92% 20%,rgba(147,80,255,.22) 0,transparent 28%), linear-gradient(100deg,#2a153f,#150b21);
}

.popup {
    border-color: #70439d;
    background: radial-gradient(circle at 95% 0,#6c2ca0 0,transparent 34%),linear-gradient(145deg,#241134,#140a1e);
    box-shadow: 0 34px 100px rgba(2,0,5,.65);
}

.popup-benefits span {
    background: #31184a;
    color: #f0dcff;
}

.popup-close {
    background: #241136;
    border-color: #7347a3;
}

footer {
    background: #12081b;
}

.footer-grid a:hover {
    color: #d08cff;
}

/* Production CTA: compact, non-blocking replacement for the modal overlay. */
.promo-toast {
  position: fixed;
  z-index: 110;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 52px 16px 18px;
  border: 1px solid #70439d;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(39, 18, 57, .97), rgba(18, 9, 28, .98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .44);
  backdrop-filter: blur(16px);
}
.promo-toast[hidden] { display: none; }
.promo-toast-copy { min-width: 0; }
.promo-toast-copy small,
.promo-toast-copy strong,
.promo-toast-copy span { display: block; }
.promo-toast-copy small {
  margin-bottom: 4px;
  color: #cf7cff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}
.promo-toast-copy strong { font-size: 15px; }
.promo-toast-copy span {
  margin-top: 2px;
  color: #bcaecb;
  font-size: 12px;
  line-height: 1.35;
}
.promo-toast .btn { min-height: 40px; padding: 9px 14px; }
.promo-toast-close {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 30px;
  height: 30px;
  border: 1px solid #654282;
  border-radius: 50%;
  background: #1d102a;
  color: #dfd2ea;
  cursor: pointer;
}
@media (max-width: 620px) {
  .promo-toast {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 44px 12px 14px;
    border-radius: 16px;
  }
  .promo-toast-copy small { display: none; }
  .promo-toast-copy span { font-size: 11px; }
  .promo-toast .btn { min-height: 38px; padding: 8px 12px; font-size: 12px; }
}

/* Homepage visual patch — mellstroygame6.best */
.hero-premium {
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
    min-height: 500px;
    overflow: hidden;
}

.hero-premium .hero-copy {
    position: relative;
    z-index: 2;
    padding: 58px 46px 52px 48px;
    align-self: center;
}

.hero-banner {
    position: relative;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    border-left: 1px solid #43245d;
    background: #160b22;
    isolation: isolate;
}

.hero-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 62% center;
    transform: scale(1.015);
}

.hero-banner::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 9, 28, .64) 0%, rgba(18, 9, 28, .14) 24%, transparent 48%),
        linear-gradient(180deg, transparent 68%, rgba(10, 4, 16, .30) 100%);
    pointer-events: none;
}

.hero-banner-shade {
    position: absolute;
    z-index: 2;
    inset: auto 18px 18px auto;
    width: 74px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d98aff, #795dff);
    box-shadow: 0 0 24px rgba(185, 107, 255, .65);
    pointer-events: none;
}

@media (max-width: 1180px) {
    .hero-premium {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-premium .hero-copy {
        padding: 42px 32px 32px;
    }

    .hero-banner {
        min-height: 360px;
        aspect-ratio: 16 / 8.5;
        border-left: 0;
        border-top: 1px solid #43245d;
    }

    .hero-banner img {
        object-position: 58% 42%;
    }

    .hero-banner::before {
        background: linear-gradient(180deg, rgba(15, 7, 24, .16) 0%, transparent 35%, rgba(10, 4, 16, .18) 100%);
    }
}

@media (max-width: 820px) {
    .hero-premium .hero-copy {
        padding: 30px 22px 26px;
    }

    .hero-banner {
        min-height: 270px;
        aspect-ratio: 16 / 9;
    }

    .hero-banner img {
        object-position: 60% center;
        transform: scale(1.01);
    }

    .hero-banner-shade {
        right: 14px;
        bottom: 14px;
        width: 58px;
    }
}

@media (max-width: 520px) {
    .hero-banner {
        min-height: 215px;
        border-radius: 0 0 20px 20px;
    }

    .hero-banner img {
        object-position: 64% center;
    }
}
