@import url("./normal.css");

:root {
    --brand: #f97316;
    --brand-dark: #ea580c;
    --ink: #1f2937;
    --ink-soft: #526173;
    --navy: #202c39;
    --navy-light: #2d3b4a;
    --paper: #f6f8fb;
    --surface: #ffffff;
    --line: #e5eaf0;
    --success: #168f7a;
    --shadow: 0 12px 30px rgba(32, 44, 57, 0.08);
    --radius: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: Cabin, Arial, sans-serif;
    line-height: 1.55;
}

body.nav-is-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.announcement-bar {
    background: var(--navy);
    color: #d9e2ea;
    font-size: 13px;
}

.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    gap: 20px;
}

.announcement-inner span:first-child {
    color: #ffffff;
}

.announcement-link {
    color: #ffc18d;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(32, 44, 57, 0.04);
}

.nav-shell {
    display: flex;
    align-items: center;
    min-height: 74px;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--brand);
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    color: var(--navy);
    font-size: 20px;
    letter-spacing: 0.2px;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 2px;
    margin-left: auto;
}

.primary-nav > a,
.nav-dropdown > summary {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding: 0 13px;
    border: 0;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    list-style: none;
    transition: color 160ms ease, background 160ms ease;
}

.primary-nav > a:hover,
.primary-nav > a[aria-current="page"],
.nav-dropdown > summary:hover {
    color: var(--brand-dark);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > summary {
    cursor: pointer;
}

.nav-dropdown > summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown > summary::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.category-menu {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.category-menu a {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 14px;
}

.category-menu a:hover {
    background: #fff4eb;
    color: var(--brand-dark);
}

.header-search {
    display: flex;
    align-items: center;
    width: 220px;
    height: 40px;
    margin-left: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfd;
    overflow: hidden;
}

.header-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}

.header-search button {
    width: 40px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font-size: 18px;
}

.header-search:focus-within {
    border-color: #fdba74;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--navy);
    font-size: 22px;
    line-height: 1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--brand);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    background: var(--brand-dark);
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.2);
    transform: translateY(-1px);
}

.button-secondary {
    border-color: var(--line);
    background: var(--surface);
    color: var(--navy);
}

.button-secondary:hover {
    border-color: #fdba74;
    background: #fff8f2;
    color: var(--brand-dark);
}

.button-small {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 12px;
}

.site-footer {
    margin-top: 72px;
    background: var(--navy);
    color: #bdc9d4;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding: 52px 0 40px;
}

.footer-brand .brand-copy strong {
    color: #ffffff;
}

.footer-brand .brand-copy small,
.footer-copy {
    color: #9caebe;
}

.footer-copy {
    max-width: 360px;
    margin: 18px 0 0;
    font-size: 14px;
}

.footer-title {
    margin: 2px 0 14px;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 9px;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffc18d;
}

.footer-bottom {
    padding: 17px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #93a2b2;
    font-size: 12px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    margin: 28px 0 0;
    border: 1px dashed #d9e0e7;
    border-radius: 10px;
    background: #fbfcfd;
    color: #9aa7b5;
    font-size: 11px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.page-hero {
    padding: 54px 0 42px;
    background: var(--navy);
    color: #ffffff;
}

.page-hero h1 {
    margin-top: 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

.page-kicker {
    margin: 10px 0 0;
    color: #ffc18d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page-hero p {
    max-width: 650px;
    margin: 14px 0 0;
    color: #c6d0da;
    font-size: 16px;
}

.eyebrow {
    color: #ffc18d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #aebbc7;
    font-size: 13px;
}

.breadcrumb a:hover {
    color: #ffc18d;
}

.content-section {
    padding: 52px 0 0;
}

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

.section-heading h2 {
    color: var(--navy);
    font-size: 25px;
    line-height: 1.2;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.section-link {
    flex: 0 0 auto;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.section-link:hover {
    color: var(--navy);
}

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

.game-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 4px 14px rgba(32, 44, 57, 0.035);
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.game-card:hover {
    border-color: #fdba74;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.game-card-media {
    position: relative;
    aspect-ratio: 1.36 / 1;
    background: #e9eef3;
    overflow: hidden;
}

.game-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.game-card:hover .game-card-media img {
    transform: scale(1.04);
}

.game-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(32, 44, 57, 0.86);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.game-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 15px 15px;
}

.game-card-category {
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.game-card-title {
    display: -webkit-box;
    margin: 6px 0 13px;
    overflow: hidden;
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.game-card-meta {
    color: var(--ink-soft);
    font-size: 12px;
}

.empty-state {
    display: none;
    padding: 40px 20px;
    border: 1px dashed #cdd7e1;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink-soft);
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 28px;
}

.legal-layout {
    padding: 54px 0 72px;
}

.legal-card {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.legal-card h1 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.legal-card .legal-title {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.legal-card .updated {
    margin-bottom: 30px;
    color: var(--ink-soft);
    font-size: 13px;
}

.legal-card h2 {
    margin: 32px 0 10px;
    color: var(--navy);
    font-size: 20px;
}

.legal-card p,
.legal-card li {
    color: var(--ink-soft);
    font-size: 15px;
}

.legal-card ul {
    margin: 10px 0 0 20px;
}

.legal-card li {
    margin: 7px 0;
}

.legal-card a {
    color: var(--brand-dark);
    font-weight: 700;
}

.contact-box {
    margin-top: 22px;
    padding: 20px;
    border-left: 3px solid var(--brand);
    background: #fff7ef;
}

.contact-box p {
    margin: 5px 0 0;
}

.detail-layout {
    padding: 52px 0 10px;
}

.game-detail-panel {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 34px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.game-detail-cover {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #e9eef3;
}

.game-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 12px 12px 12px 0;
}

.detail-category {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.game-detail-copy h1 {
    margin: 9px 0 13px;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.detail-description {
    max-width: 620px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.detail-actions .button.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.detail-status {
    margin: 12px 0 0;
    color: #83919e;
    font-size: 12px;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 620px;
    margin-top: 28px;
}

.detail-fact {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.detail-fact strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
}

.detail-fact span {
    display: block;
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 12px;
}

.related-section {
    padding-top: 48px;
}

.detail-information {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-top: 44px;
}

.detail-info-block {
    padding-top: 16px;
    border-top: 2px solid var(--line);
}

.detail-info-block h2 {
    margin: 10px 0 8px;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
}

.detail-info-block p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.play-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 22px;
    background: var(--navy);
    color: #ffffff;
}

.play-header .brand-copy strong {
    color: #ffffff;
}

.play-header .brand-copy small {
    color: #a9b9c8;
}

.player-page {
    min-height: calc(100vh - 64px);
    padding: 20px;
    background: #111820;
}

.player-shell {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.player-frame-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    border: 1px solid #374653;
    border-radius: 14px;
    background: #070b0f;
    overflow: hidden;
}

.player-frame {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

.player-empty {
    display: grid;
    position: absolute;
    inset: 0;
    place-items: center;
    padding: 20px;
    color: #b4c1cc;
    text-align: center;
}

.player-empty-content {
    display: grid;
    justify-items: center;
    gap: 14px;
    max-width: 420px;
}

.player-empty-content p {
    margin: 0;
}

.player-note {
    margin: 15px 0 0;
    color: #83919e;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1040px) {
    .nav-shell {
        gap: 18px;
    }

    .primary-nav > a,
    .nav-dropdown > summary {
        padding: 0 8px;
    }

    .header-search {
        width: 180px;
    }

    .game-detail-panel {
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .primary-nav {
        display: none;
        position: fixed;
        top: 109px;
        right: 20px;
        left: 20px;
        align-items: stretch;
        flex-direction: column;
        height: auto;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .nav-is-open .primary-nav {
        display: flex;
    }

    .primary-nav > a,
    .nav-dropdown > summary {
        min-height: 44px;
        padding: 0 12px;
        border-radius: 8px;
    }

    .primary-nav > a:hover,
    .primary-nav > a[aria-current="page"],
    .nav-dropdown > summary:hover {
        background: #fff4eb;
    }

    .nav-dropdown {
        display: block;
    }

    .category-menu {
        position: static;
        margin: 0 8px 8px;
        border: 0;
        border-radius: 8px;
        background: #fbfcfd;
        box-shadow: none;
    }

    .header-search {
        width: min(260px, 35vw);
        margin-left: auto;
    }

    .mobile-toggle {
        display: block;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .announcement-inner {
        min-height: 40px;
        font-size: 12px;
    }

    .announcement-inner span:last-child {
        display: none;
    }

    .nav-shell {
        min-height: 68px;
        gap: 10px;
    }

    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .header-search {
        width: auto;
        max-width: 160px;
    }

    .header-search input {
        padding: 0 8px;
    }

    .page-hero {
        padding: 42px 0 34px;
    }

    .detail-layout {
        padding-top: 34px;
    }

    .game-detail-panel {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 14px;
    }

    .game-detail-cover {
        aspect-ratio: 1.35 / 1;
    }

    .game-detail-copy {
        padding: 0 6px 10px;
    }

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

    .detail-information {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 34px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .game-card {
        border-radius: 12px;
    }

    .game-card-body {
        padding: 12px;
    }

    .game-card-title {
        font-size: 14px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 38px 0 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom-inner {
        align-items: start;
        flex-direction: column;
        gap: 6px;
    }

    .player-page {
        padding: 10px;
    }

    .player-frame-wrap,
    .player-frame {
        min-height: 260px;
    }
}

@media (max-width: 430px) {
    .header-search input {
        display: none;
    }

    .header-search {
        width: 40px;
    }

    .header-search button {
        width: 40px;
    }
}
