@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;900&family=Oswald:wght@600;700&display=swap");

:root {
    --ink: #132236;
    --muted: #647187;
    --paper: #fffdf5;
    --line: rgba(19, 34, 54, 0.12);
    --blue: #1677d2;
    --green: #11a772;
    --yellow: #ffd05a;
    --red: #e84d4f;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Nunito", sans-serif;
    background:
        linear-gradient(90deg, rgba(19, 34, 54, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(19, 34, 54, 0.04) 1px, transparent 1px),
        #f8f3e7;
    background-size: 28px 28px;
}

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

img {
    max-width: 100%;
}

.shell {
    width: min(calc(100% - 32px), var(--shell));
    margin: 0 auto;
}

h1,
h2,
h3,
.game-cabinet-brand {
    font-family: "Oswald", sans-serif;
    letter-spacing: 0;
}

.game-cabinet-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #132236;
    color: #fff;
    border-bottom: 5px solid var(--yellow);
}

.game-cabinet-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 78px;
}

.game-cabinet-brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.game-cabinet-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.game-cabinet-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.game-cabinet-nav a {
    padding: 10px 12px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 900;
}

.game-cabinet-nav a.is-active,
.game-cabinet-nav a:hover {
    color: var(--ink);
    background: var(--yellow);
    border-color: var(--yellow);
}

.game-cabinet-action,
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    font-weight: 900;
    cursor: pointer;
}

.game-cabinet-action,
.button-primary {
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 0 10px 0 rgba(19, 34, 54, 0.16);
}

.button-secondary {
    color: #fff;
    background: var(--blue);
}

.button-muted {
    color: var(--muted);
    background: rgba(19, 34, 54, 0.08);
}

.full {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 2px solid rgba(255, 255, 255, 0.24);
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 6px auto;
    background: #fff;
}

.game-stage {
    padding: 54px 0 30px;
    background:
        linear-gradient(90deg, rgba(9, 21, 39, 0.96) 0%, rgba(9, 21, 39, 0.82) 42%, rgba(9, 21, 39, 0.08) 100%),
        url("./visuals/apk-library-hero.png") right center / cover no-repeat,
        linear-gradient(135deg, #15375b, #1d7b8a 60%, #11a772);
    color: #fff;
}

.game-stage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: center;
}

.game-kicker {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.game-stage .game-kicker,
.game-feature-card > span {
    color: var(--yellow);
}

.game-stage h1 {
    margin: 8px 0 16px;
    font-size: clamp(3.6rem, 8vw, 7rem);
    line-height: 0.92;
}

.game-stage p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
    line-height: 1.8;
}

.game-stage-actions,
.game-detail-actions,
.vip-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.game-feature-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    color: var(--ink);
    background: var(--paper);
    border: 4px solid #132236;
    box-shadow: 12px 12px 0 rgba(255, 208, 90, 0.42);
}

.game-feature-card img {
    width: 124px;
    height: 124px;
    object-fit: contain;
}

.game-feature-card h2 {
    margin: 0;
    font-size: 2rem;
}

.game-feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

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

.game-leds b {
    min-height: 54px;
    padding: 10px;
    color: #fff;
    background: var(--ink);
    text-align: center;
    display: grid;
    place-items: center;
}

.game-lanes {
    padding: 18px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.game-lane-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.game-lane {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 2px solid var(--line);
    background: #fef8df;
}

.game-lane span,
.game-lane em {
    color: var(--muted);
    font-style: normal;
}

.game-lane strong {
    font-size: 1.5rem;
}

.section {
    padding: 34px 0;
}

.game-section-head {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.game-section-head h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

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

.game-shelf-grid-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-tile {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto auto;
    gap: 10px;
    min-height: 350px;
    padding: 16px;
    background: #fff;
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(19, 34, 54, 0.1);
}

.game-tile img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.game-tile > span {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.game-tile h3 {
    margin: 0;
    font-size: 1.55rem;
}

.game-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.game-tile-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.game-tile-meta strong {
    color: var(--red);
}

.game-tile-meta em {
    color: var(--muted);
    font-style: normal;
}

.game-tile button {
    min-height: 46px;
    border: 0;
    color: var(--ink);
    background: var(--yellow);
    font-weight: 900;
    cursor: pointer;
}

.game-lower-grid,
.game-detail-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.game-list-panel,
.game-info-panel,
.game-faq-item {
    padding: 20px;
    background: #fff;
    border: 2px solid var(--line);
}

.game-list-panel h2,
.game-info-panel h2 {
    margin: 6px 0 14px;
}

.game-list-panel a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.game-library-mast,
.game-detail-stage {
    padding: 44px 0 28px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 18%, rgba(255, 208, 90, 0.24), transparent 26%),
        linear-gradient(135deg, #132236, #1677d2);
}

.game-library-mast h1,
.game-detail-stage h1 {
    max-width: 920px;
    margin: 8px 0 12px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.94;
}

.game-library-mast p,
.game-detail-stage p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
}

.game-search input {
    width: min(100%, 520px);
    min-height: 52px;
    padding: 0 14px;
    border: 2px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    font: inherit;
}

.game-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: center;
}

.breadcrumbs {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.game-detail-cabinet {
    padding: 22px;
    background: var(--paper);
    border: 4px solid var(--ink);
}

.game-detail-cabinet img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.game-detail-panels {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    align-items: start;
}

.game-info-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.game-apk-table {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
    overflow: hidden;
    border: 1px solid var(--line);
}

.game-apk-table span,
.game-apk-table strong {
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.game-apk-table span {
    color: var(--muted);
    background: #fef8df;
}

.game-apk-table strong {
    word-break: break-word;
}

.game-apk-table span:nth-last-child(2),
.game-apk-table strong:last-child {
    border-bottom: 0;
}

.game-check {
    padding: 12px;
    background: #fef8df;
    border-left: 5px solid var(--yellow);
}

.game-related-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.game-related-row img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.game-faq {
    display: grid;
    gap: 12px;
}

.game-faq-item summary {
    cursor: pointer;
    font-weight: 900;
}

.game-faq-item p {
    color: var(--muted);
    line-height: 1.65;
}

.game-score-footer {
    margin-top: 30px;
    padding: 24px 0;
    color: #fff;
    background: var(--ink);
}

.game-score-grid {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.game-score-grid strong {
    margin-right: auto;
    font-family: "Oswald", sans-serif;
    font-size: 1.4rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-search-card].is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .game-stage-grid,
    .game-detail-grid,
    .game-detail-panels {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 920px) {
    .game-cabinet-bar {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .game-cabinet-action {
        display: none;
    }

    .game-cabinet-nav {
        position: fixed;
        inset: 86px 16px auto;
        display: grid;
        padding: 14px;
        background: var(--ink);
        border: 2px solid var(--yellow);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    body.nav-open .game-cabinet-nav {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 720px) {
    .game-stage h1,
    .game-library-mast h1,
    .game-detail-stage h1 {
        font-size: 3.2rem;
    }

    .game-lane-grid,
    .game-shelf-grid,
    .game-shelf-grid-wide,
    .game-lower-grid,
    .game-leds {
        grid-template-columns: 1fr;
    }
}

.spin-game-site .blog-teaser-section {
    padding-top: 36px;
}

.spin-game-site .blog-teaser-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: 22px;
    color: #fff;
    background: var(--ink);
    border: 4px solid var(--yellow);
    box-shadow: 10px 10px 0 rgba(19, 34, 54, 0.12);
}

.spin-game-site .blog-kicker {
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.spin-game-site .blog-teaser-head h2,
.spin-game-site .blog-page-hero h1,
.spin-game-site .blog-article-copy h2 {
    margin: 8px 0 0;
}

.spin-game-site .blog-teaser-head p,
.spin-game-site .blog-page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.spin-game-site .blog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.spin-game-site .blog-card,
.spin-game-site .blog-article {
    background: var(--paper);
    border: 4px solid var(--ink);
    box-shadow: 10px 10px 0 rgba(255, 208, 90, 0.34);
}

.spin-game-site .blog-card {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.spin-game-site .blog-card-meta,
.spin-game-site .blog-article-meta {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.spin-game-site .blog-card h3 {
    margin: 0;
    font-size: 1.45rem;
}

.spin-game-site .blog-card p,
.spin-game-site .blog-article-copy p {
    color: var(--muted);
    line-height: 1.6;
}

.spin-game-site .blog-view-all,
.spin-game-site .blog-card a {
    color: var(--yellow);
    font-weight: 900;
}

.spin-game-site .blog-page-hero {
    padding: 50px 0 28px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(9, 21, 39, 0.96), rgba(9, 21, 39, 0.8)),
        linear-gradient(135deg, var(--blue), var(--green));
}

.spin-game-site .blog-page-hero h1 {
    max-width: 920px;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.94;
}

.spin-game-site .blog-article-list {
    display: grid;
    gap: 18px;
}

.spin-game-site .blog-article {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
}

.spin-game-site .blog-article-meta {
    display: grid;
    align-content: start;
    gap: 8px;
}

.spin-game-site .blog-article-meta em {
    color: var(--blue);
    font-style: normal;
}

.spin-game-site .blog-point-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.spin-game-site .blog-point-list span {
    padding: 12px 14px;
    color: var(--ink);
    line-height: 1.55;
    background: #fff;
    border-left: 6px solid var(--yellow);
}

@media (max-width: 920px) {
    .spin-game-site .blog-card-grid,
    .spin-game-site .blog-article,
    .spin-game-site .blog-teaser-head {
        grid-template-columns: 1fr;
    }
}

.blog-list-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--muted, #64748b);
}

.blog-list-summary span {
    color: var(--blue, #2563eb);
    font-weight: 900;
    text-transform: uppercase;
}

.blog-list-item .blog-article-copy h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-read-more,
.blog-back-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--blue, #2563eb);
    font-weight: 900;
    text-decoration: none;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    color: var(--blue, #2563eb);
    font-weight: 900;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.blog-detail-card,
.blog-related {
    background: var(--card, #fff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 24px;
    box-shadow: var(--shadow, 0 18px 40px rgba(15, 23, 42, 0.08));
}

.blog-detail-card {
    padding: clamp(24px, 4vw, 44px);
    opacity: 1;
    transform: none;
}

.blog-detail-content {
    color: var(--text, #0f172a);
    font-size: 1.02rem;
    line-height: 1.78;
}

.blog-detail-content h2,
.blog-detail-content h3 {
    margin: 1.8em 0 0.55em;
    line-height: 1.2;
}

.blog-detail-content p,
.blog-detail-content ul,
.blog-detail-content ol {
    margin: 0 0 1.1em;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.blog-related {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
    padding: 22px;
}

.blog-related a {
    display: grid;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line, #e2e8f0);
    color: inherit;
    text-decoration: none;
}

.blog-related small {
    color: var(--muted, #64748b);
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.blog-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 999px;
    background: var(--card, #fff);
    color: var(--text, #0f172a);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.blog-pagination a.is-active {
    background: var(--blue, #2563eb);
    border-color: var(--blue, #2563eb);
    color: #fff;
}

@media (max-width: 920px) {
    .blog-detail-layout,
    .blog-list-summary {
        grid-template-columns: 1fr;
        display: grid;
    }

    .blog-related {
        position: static;
    }
}
