:root {
    --ink: #24143f;
    --text: #2c2340;
    --muted: #65597a;
    --paper: #f6f2fb;
    --card: #ffffff;
    --line: #e4d8f3;
    --orchid: #6d28d9;
    --gold: #e8b23a;
    --gold-ink: #3a2a08;
    --teal: #0f766e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: Outfit, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

a { color: var(--orchid); }

h1, h2, h3 {
    font-family: Fraunces, Georgia, serif;
    font-weight: 560;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
}

p { margin: 0 0 14px; }

.cb-wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.cb-top {
    background: var(--ink);
    color: #f7f1ff;
    position: relative;
}

.cb-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
}

.cb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.cb-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
    background: transparent;
}

.cb-brand strong,
.cb-brand small {
    display: block;
}

.cb-brand strong {
    font-size: 14px;
    letter-spacing: 0.04em;
}

.cb-brand small {
    color: #e7c56a;
    font-size: 13px;
}

.cb-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cb-nav-link {
    color: #f4edff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
}

.cb-nav-link:hover,
.cb-nav-link.is-on {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cb-nav-btn {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-weight: 700;
}

.cb-banner,
.cb-photo,
.cb-emblem-wrap {
    margin: 0;
}

.cb-banner img,
.cb-photo img,
.cb-gallery img,
.cb-emblem,
.cb-pay {
    display: block;
    object-fit: contain;
    background: transparent;
}

.cb-intro {
    padding: 28px 0 10px;
}

.cb-intro-copy,
.cb-section {
    padding-bottom: 12px;
}

.cb-section {
    padding-top: 18px;
    padding-bottom: 28px;
}

.cb-section-alt {
    background: #efe7f8;
}

.cb-kicker {
    margin: 0 0 6px;
    color: var(--orchid);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.cb-lead {
    font-size: 18px;
    max-width: 46rem;
}

.cb-game-name {
    margin: 0 0 10px;
    color: var(--teal);
    font-weight: 700;
}

.cb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 8px;
}

.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.cb-btn-play {
    background: var(--gold);
    color: var(--gold-ink);
}

.cb-btn-apk,
.cb-btn-line {
    background: transparent;
    color: var(--orchid);
    border: 2px solid var(--orchid);
}

.cb-btn-play:hover { filter: brightness(1.05); }
.cb-btn-apk:hover,
.cb-btn-line:hover { background: #f3eaff; }

.cb-grid,
.cb-points,
.cb-culture {
    display: grid;
    gap: 14px;
}

.cb-grid,
.cb-culture { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cb-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cb-card,
.cb-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 18px 8px;
}

.cb-card h3,
.cb-panel h3 { margin: 0 0 8px; font-size: 22px; }
.cb-card p:last-child,
.cb-panel p:last-child { margin-bottom: 12px; }

.cb-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: start;
}

.cb-photo img {
    width: 220px;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.cb-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.cb-gallery img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.cb-feature {
    display: grid;
    gap: 12px;
}

.cb-feature article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
}

.cb-feature b {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3e8ff;
    color: var(--orchid);
}

.cb-feature h3 { margin: 0 0 4px; font-size: 20px; }
.cb-feature p { margin: 0; }

.cb-directory {
    width: min(760px, 100%);
    margin: 28px auto 10px;
    padding: 32px 28px 22px;
    border-radius: 28px;
    color: #f7f1ff;
    background:
        radial-gradient(circle at 12% 18%, rgba(232, 178, 58, 0.28), transparent 24%),
        radial-gradient(circle at 92% 84%, rgba(45, 212, 191, 0.18), transparent 26%),
        #2a1450;
}

.cb-directory h1,
.cb-directory h2,
.cb-directory p { color: #f7f1ff; }

.cb-emblem {
    width: 148px;
    height: auto;
    margin: 0 auto 12px;
    border-radius: 28px;
}

.cb-directory .cb-kicker { color: #f0d48a; text-align: center; }
.cb-directory h1 { text-align: center; margin: 0 0 8px; }
.cb-directory .cb-lead { margin-left: auto; margin-right: auto; text-align: center; }

.cb-facts {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.cb-facts li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cb-facts svg {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 50%;
    border: 1px solid rgba(240, 212, 138, 0.7);
    fill: none;
    stroke: #f0d48a;
    stroke-width: 1.8;
}

.cb-facts span {
    display: block;
    color: #d9c8ef;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cb-facts strong {
    display: block;
    font-weight: 600;
    color: #fff;
}

.cb-facts a { color: #fff; }

.cb-directory .cb-actions { justify-content: center; }
.cb-directory .cb-btn-apk {
    color: #fff;
    border-color: #fff;
}
.cb-directory .cb-btn-apk:hover { background: rgba(255, 255, 255, 0.08); }

.cb-foot {
    margin-top: 20px;
    padding: 28px 0 36px;
    background: #fff;
    border-top: 1px solid var(--line);
    text-align: center;
}

.cb-legal-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.cb-legal-nav a {
    color: var(--muted);
    font-size: 14px;
}

.cb-pay {
    width: min(560px, 100%);
    margin: 16px auto 0;
}

.cb-copy {
    color: var(--muted);
    font-size: 14px;
    margin-top: 12px;
}

.cb-legal {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 10px;
}

.cb-legal h1,
.cb-legal h2,
.cb-legal h3 { color: var(--ink); }

.cb-legal .container,
.cb-legal .row,
.cb-legal .col-lg-12 { width: auto; max-width: none; padding: 0; margin: 0; }

.cb-legal ul,
.cb-legal ol { margin: 0 0 16px 1.2em; }

@media (max-width: 900px) {
    .cb-grid,
    .cb-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cb-points,
    .cb-culture,
    .cb-split { grid-template-columns: 1fr; }
    .cb-photo img { width: min(220px, 70%); }
}

@media (max-width: 760px) {
    .cb-nav-btn { display: inline-flex; }
    .cb-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 16px 14px;
        background: #1b0e33;
    }
    .cb-nav.is-open { display: flex; }
    .cb-brand strong { font-size: 12px; }
    .cb-grid,
    .cb-gallery { grid-template-columns: 1fr; }
    .cb-gallery img,
    .cb-photo img { width: min(280px, 100%); margin-left: auto; margin-right: auto; }
}
