:root {
    --hokx-bg: #04090e;
    --hokx-panel: #08131c;
    --hokx-panel-raised: #0d1b27;
    --hokx-line: #29404e;
    --hokx-text: #f5f7fa;
    --hokx-muted: #aab6c4;
    --hokx-green: #87f04a;
    --hokx-violet: #c679ff;
    --hokx-blue: #65b8f0;
    --hokx-header-height: 84px;
}

html {
    scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--hokx-bg);
    color: var(--hokx-text);
}

/* The contact renderer supplies the visible, descriptive H1. Remove the
   zero-sized legacy page title from layout and the accessibility tree. */
body.hokx-contact-page .entry-title {
    display: none !important;
}

body * {
    box-sizing: border-box;
}

body a:focus-visible,
body button:focus-visible,
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible,
body summary:focus-visible {
    outline: 3px solid var(--hokx-green);
    outline-offset: 3px;
}

.hokx-container {
    width: min(1384px, calc(100% - 40px));
}

.hokx-site-header {
    top: 0;
    min-height: var(--hokx-header-height);
    border-bottom-color: #1b303b;
    background: rgba(3, 8, 12, .96);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .24);
}

.admin-bar .hokx-site-header {
    top: 32px;
}

.hokx-header-inner {
    min-height: var(--hokx-header-height);
    gap: 18px;
}

.hokx-brand {
    flex: 0 0 auto;
    gap: 12px;
}

.hokx-brand-logo,
.hokx-brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    object-fit: cover;
}

.hokx-brand-name {
    font-size: 24px;
    letter-spacing: -.5px;
}

.hokx-brand-slogan {
    color: #aab6c4;
    font-size: 12px !important;
    letter-spacing: .02em;
}

.hokx-nav {
    gap: 8px;
}

.hokx-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 14px;
    border-radius: 9px;
    color: #dbe4e9;
    font-size: 14px;
    font-weight: 750;
}

.hokx-nav a:hover,
.hokx-nav a:focus-visible {
    background: rgba(135, 240, 74, .08);
    color: var(--hokx-green);
}

.hokx-nav .hokx-nav-highlight {
    color: var(--hokx-green);
}

.hokx-menu-toggle {
    display: none !important;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid #385161;
    border-radius: 10px;
    background: #0e1c27;
    cursor: pointer;
}

.hokx-menu-toggle span,
.hokx-menu-toggle span::before,
.hokx-menu-toggle span::after {
    display: block;
    width: 21px;
    height: 2px;
    margin: auto;
    border-radius: 9px;
    background: #fff;
    content: "";
    transition: transform .18s ease, opacity .18s ease;
}

.hokx-menu-toggle span::before {
    transform: translateY(-7px);
}

.hokx-menu-toggle span::after {
    transform: translateY(5px);
}

.hokx-menu-toggle[aria-expanded="true"] span {
    background: transparent;
}

.hokx-menu-toggle[aria-expanded="true"] span::before {
    transform: translateY(0) rotate(45deg);
}

.hokx-menu-toggle[aria-expanded="true"] span::after {
    transform: translateY(-2px) rotate(-45deg);
}

.hokx-skip-link {
    position: fixed;
    z-index: 100000;
    top: 10px;
    left: 10px;
    padding: 11px 15px;
    border-radius: 8px;
    background: var(--hokx-green);
    color: #071006;
    font-weight: 900;
    transform: translateY(-180%);
}

.hokx-skip-link:focus {
    transform: translateY(0);
}

/* Fixed manual ad geometry. */
.hokx-ad-slot,
.hokx-guide-ad-slot {
    display: grid;
    width: min(728px, 100%);
    min-height: 90px;
    margin-inline: auto;
    place-items: center;
    overflow: hidden;
}

.hokx-ad-unit,
.hokx-ad-unit .adsbygoogle {
    width: 728px !important;
    height: 90px !important;
    max-width: 100% !important;
}

/* Homepage: approved center + community rails composition. */
.hokx-home {
    background: radial-gradient(circle at 58% 10%, rgba(50, 108, 42, .14), transparent 32%), var(--hokx-bg);
}

.hokx-home-community-shell {
    padding-top: 18px !important;
}

.hokx-home-community-left,
.hokx-home-community-right {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

.hokx-home-community-main {
    min-width: 0;
}

.hokx-home-community-main .hokx-hero {
    min-height: 320px;
    padding: 40px 0;
    border: 1px solid #1d3440;
    border-radius: 14px;
    background: radial-gradient(circle at 84% 22%, rgba(135, 240, 74, .17), transparent 33%), linear-gradient(145deg, #0a141d, #07120d);
    overflow: hidden;
}

.hokx-home-community-main .hokx-hero .hokx-container,
.hokx-home-community-main .hokx-section .hokx-container,
.hokx-home-community-main .hokx-home-ad .hokx-container,
.hokx-home-community-main .hokx-ad-placeholder .hokx-container {
    width: calc(100% - 48px);
}

.hokx-home .hokx-hero h1 {
    max-width: 760px;
    font-size: clamp(48px, 4.2vw, 64px);
    line-height: .98;
    letter-spacing: -2.2px;
}

.hokx-home .hokx-hero-text {
    margin: 20px 0 22px;
    color: #bdc8cf;
    font-size: 16px;
    line-height: 1.58;
}

.hokx-button,
.hokx-guides-button,
.hokx-copy-guide-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 850;
}

.hokx-section {
    padding: 34px 0;
}

.hokx-section-heading {
    margin-bottom: 22px;
}

.hokx-section-heading h2 {
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -1px;
}

.hokx-section-heading p,
.hokx-game-card p,
.hokx-xp-grid p,
.hokx-guide-card p {
    color: var(--hokx-muted);
    font-size: 14px;
    line-height: 1.5;
}

.hokx-game-grid {
    gap: 14px;
}

.hokx-game-card {
    min-height: 220px;
    padding: 22px;
    border-color: var(--hokx-line);
    border-radius: 12px;
    background: linear-gradient(145deg, #0c1924, #08131b);
}

.hokx-game-card h3 {
    font-size: 22px;
}

.hokx-game-label,
.hokx-live-pill,
.hokx-secondary-pill,
.hokx-xp-value,
.hokx-campaign-kicker,
.hokx-guide-card > span {
    font-size: 12px !important;
}

/* Editorial article and archive templates. */
.hokx-editorial-page {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.hokx-editorial-grid {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr) 230px;
    grid-template-areas: "left content right";
    gap: 16px;
    align-items: start;
}

.hokx-editorial-left {
    grid-area: left;
}

.hokx-editorial-content {
    grid-area: content;
    min-width: 0;
}

.hokx-editorial-right {
    grid-area: right;
}

.hokx-editorial-left,
.hokx-editorial-right {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    position: sticky;
    top: calc(var(--hokx-header-height) + 18px);
    max-height: calc(100vh - var(--hokx-header-height) - 36px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.hokx-editorial-card {
    overflow: hidden;
    border: 1px solid var(--hokx-line);
    border-radius: 14px;
    background: #08131b;
    box-shadow: 0 20px 52px rgba(0, 0, 0, .26);
}

.hokx-editorial-hero {
    padding: 30px 34px 24px;
    border-bottom: 1px solid var(--hokx-line);
    background: radial-gradient(circle at 90% 0, rgba(135, 240, 74, .14), transparent 36%), #0b1720;
}

.hokx-editorial-eyebrow,
.hokx-archive-eyebrow {
    margin: 0 0 8px;
    color: var(--hokx-violet);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hokx-editorial-hero h1,
.hokx-archive-header h1 {
    margin: 0;
    color: var(--hokx-text);
    font-size: clamp(36px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.hokx-editorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 13px;
    color: var(--hokx-muted);
    font-size: 12px;
}

.hokx-editorial-media {
    margin: 22px 28px;
    overflow: hidden;
    border: 1px solid #334d5b;
    border-radius: 10px;
    background: #071018;
    aspect-ratio: 16 / 9;
}

.hokx-editorial-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hokx-editorial-copy {
    padding: 0 34px 34px;
    color: #c1cbd1;
    font-size: 16px;
    line-height: 1.7;
}

.hokx-editorial-copy > p:first-child {
    color: #e6ecef;
    font-size: 17px;
}

.hokx-editorial-copy a {
    color: #9ceb72;
}

.hokx-editorial-copy h2 {
    margin: 34px 0 12px;
    color: #fff;
    font-size: 28px;
    line-height: 1.18;
}

.hokx-editorial-copy h3 {
    margin: 28px 0 10px;
    color: #fff;
    font-size: 22px;
}

.hokx-editorial-copy img,
.hokx-editorial-copy video,
.hokx-editorial-copy iframe {
    max-width: 100%;
}

.hokx-editorial-copy iframe {
    width: 100%;
    border: 0;
    aspect-ratio: 16 / 9;
}

.hokx-editorial-discussion {
    margin-top: 16px;
    padding: 28px 32px;
    border: 1px solid var(--hokx-line);
    border-radius: 14px;
    background: var(--hokx-panel);
}

.hokx-archive-header {
    margin-bottom: 18px;
    padding: 28px 32px;
    border: 1px solid var(--hokx-line);
    border-radius: 14px;
    background: radial-gradient(circle at 90% 0, rgba(135, 240, 74, .12), transparent 38%), var(--hokx-panel);
}

.hokx-archive-description {
    margin: 11px 0 0;
    color: var(--hokx-muted);
    font-size: 15px;
    line-height: 1.55;
}

.hokx-archive-list {
    display: grid;
    gap: 12px;
}

.hokx-story-card {
    display: grid;
    grid-template-columns: 249px minmax(0, 1fr);
    min-height: 140px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--hokx-line);
    border-radius: 11px;
    background: #0a1620;
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease;
}

.hokx-story-card:hover,
.hokx-story-card:focus-within {
    border-color: #547080;
    transform: translateY(-2px);
}

.hokx-story-thumb {
    min-height: 140px;
    background: linear-gradient(135deg, #173042, #09141d);
    aspect-ratio: 16 / 9;
}

.hokx-story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hokx-story-placeholder {
    display: grid;
    height: 100%;
    place-items: center;
    color: #8ca8b8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.hokx-story-copy {
    align-self: center;
    padding: 16px 18px;
}

.hokx-story-copy h2 {
    margin: 6px 0 7px;
    color: #fff;
    font-size: 19px;
    line-height: 1.24;
    text-align: left !important;
}

.hokx-story-copy h2 a {
    color: #fff !important;
    text-decoration: none !important;
}

.hokx-story-copy p {
    margin: 0;
    color: var(--hokx-muted);
    font-size: 14px;
    line-height: 1.45;
}

.hokx-story-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    color: #81939e;
    font-size: 12px;
}

.hokx-pagination {
    margin-top: 20px;
}

.hokx-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hokx-pagination a,
.hokx-pagination span {
    display: inline-grid;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    place-items: center;
    border: 1px solid var(--hokx-line);
    border-radius: 8px;
    background: var(--hokx-panel);
    color: #dbe4e9;
}

.hokx-pagination .current {
    border-color: var(--hokx-green);
    color: var(--hokx-green);
}

/* Legal/support and focused pages keep contextual content, not leaderboards. */
body.hokx-legal-body .hokx-legal-page {
    max-width: none;
    margin: 0;
    padding: 30px 34px 38px;
    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    color: #c2ccd2;
    font-size: 16px;
    line-height: 1.7;
}

.hokx-legal-content {
    padding: 0 !important;
}

body.hokx-legal-body .hokx-legal-main {
    border-color: #33375c;
    background: linear-gradient(145deg, #111426, #091721);
}

body.hokx-legal-body .hokx-legal-main .hokx-editorial-hero h1 {
    font-size: clamp(36px, 5vw, 48px);
    letter-spacing: -1.4px;
}

body.hokx-legal-body .hokx-legal-page h2 {
    margin: 30px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--hokx-violet);
    color: #fff !important;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.2;
    text-align: left !important;
}

body.hokx-legal-body .hokx-legal-page p,
body.hokx-legal-body .hokx-legal-page li {
    color: #c2ccd2 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

body.hokx-legal-body .hokx-legal-page a {
    color: #9ceb72;
}

.hokx-legal-help {
    margin: 0 34px 38px;
    padding: 20px;
    border: 1px solid #35455b;
    border-radius: 10px;
    background: rgba(198, 121, 255, .055);
}

.hokx-legal-help h2 {
    margin-top: 0 !important;
}

.hokx-legal-help .hokx-account-button {
    display: inline-flex;
    width: auto;
    min-height: 44px;
    align-items: center;
    margin-top: 6px;
    padding: 0 18px;
    text-decoration: none;
}

/* About: replace the obsolete parent-theme page with a clear community story. */
.hokx-about-copy {
    padding-top: 26px;
}

.hokx-about-copy section > h2 {
    text-align: left !important;
}

.hokx-about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.hokx-about-grid section {
    padding: 18px;
    border: 1px solid #2d4553;
    border-radius: 10px;
    background: rgba(255, 255, 255, .018);
}

.hokx-about-grid span {
    color: var(--hokx-violet);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
}

.hokx-about-grid h3 {
    margin: 8px 0;
    font-size: 19px;
    text-align: left !important;
}

.hokx-about-grid p {
    margin: 0;
    color: var(--hokx-muted);
    font-size: 14px;
    line-height: 1.5;
}

.hokx-about-independent {
    margin-top: 28px;
    padding: 20px;
    border-left: 4px solid var(--hokx-green);
    border-radius: 8px;
    background: rgba(135, 240, 74, .045);
}

.hokx-about-independent h2 {
    margin-top: 0;
}

.hokx-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hokx-about-actions a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 850;
    text-decoration: none;
}

.hokx-about-actions .hokx-account-button {
    width: auto;
}

.hokx-about-secondary {
    border: 1px solid #385160;
    color: #dce5ea !important;
    background: #0c1922;
}

/* Guides: remove the remaining undersized labels and excessive fixed gaps. */
.hokx-guides-page,
.hokx-guide-detail {
    color: var(--hokx-text);
}

.hokx-guides-eyebrow,
.hokx-guides-overview-kicker,
.hokx-guide-toc-kicker,
.hokx-guide-notice strong,
.hokx-related-guide-grid span,
.hokx-related-guide-grid p,
.hokx-related-guide-grid strong,
.hokx-guide-toc p {
    font-size: 12px !important;
}

.hokx-guide-entry-content {
    font-size: 16px;
}

.hokx-copy-guide-link {
    min-height: 44px;
    font-size: 12px;
}

.hokx-related-guide-grid a {
    min-height: 146px;
}

/* Compact footer with one legal/disclaimer line. */
.hokx-site-footer {
    padding: 30px 0 24px;
    border-top-color: #20313c;
    background: #05090c;
}

.hokx-footer-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px 28px;
    align-items: center;
}

.hokx-footer-brand strong {
    font-size: 22px;
}

.hokx-footer-brand p {
    margin: 3px 0 0;
    color: var(--hokx-muted);
    font-size: 12px;
}

.hokx-footer-nav {
    gap: 8px 16px;
}

.hokx-footer-nav a,
.hokx-footer-consent {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #c8d1d7;
    font-size: 12px;
}

.hokx-footer-copy {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 14px;
    color: #8fa0aa;
    font-size: 12px;
    line-height: 1.5;
}

.hokx-footer-copy a {
    color: #cbd6dc;
}

@media (max-width: 1279px) {
    .hokx-editorial-grid {
        display: block;
    }

    .hokx-editorial-left,
    .hokx-editorial-right {
        display: none;
    }

    .hokx-home-community-main .hokx-hero {
        min-height: 300px;
    }
}

@media (max-width: 900px) {
    :root {
        --hokx-header-height: 72px;
    }

    .admin-bar .hokx-site-header {
        top: 46px;
    }

    .hokx-header-inner {
        position: relative;
        min-height: var(--hokx-header-height) !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 16px !important;
    }

    .hokx-brand-logo,
    .hokx-brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .hokx-brand-name {
        font-size: 20px;
    }

    .hokx-menu-toggle {
        display: block !important;
        flex: 0 0 46px !important;
        align-self: center !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
    }

    .hokx-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none !important;
        padding: 10px;
        border: 1px solid var(--hokx-line);
        border-radius: 0 0 12px 12px;
        background: rgba(4, 10, 15, .99);
        box-shadow: 0 20px 40px rgba(0, 0, 0, .44);
    }

    .hokx-menu-open .hokx-nav {
        display: grid !important;
    }

    .hokx-nav a {
        width: 100%;
        min-height: 48px;
    }

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

    .hokx-footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 699px) {
    .hokx-container,
    .hokx-editorial-page {
        width: calc(100% - 24px);
    }

    .hokx-ad-slot,
    .hokx-guide-ad-slot {
        width: min(320px, 100%) !important;
        min-height: 100px !important;
        height: 100px !important;
    }

    .hokx-ad-preview-kicker,
    .hokx-ad-preview-note,
    .hokx-rank-path small,
    .hokx-new-pill {
        font-size: 12px !important;
    }

    .hokx-ad-unit,
    .hokx-ad-unit .adsbygoogle {
        width: 320px !important;
        height: 100px !important;
    }

    .hokx-home-community-main .hokx-hero {
        min-height: 0;
        padding: 24px 0;
        border-radius: 12px;
    }

    .hokx-home-community-main .hokx-hero .hokx-container,
    .hokx-home-community-main .hokx-section .hokx-container,
    .hokx-home-community-main .hokx-home-ad .hokx-container,
    .hokx-home-community-main .hokx-ad-placeholder .hokx-container {
        width: calc(100% - 32px);
    }

    .hokx-home .hokx-hero h1 {
        font-size: clamp(34px, 10.5vw, 40px);
        letter-spacing: -1px;
    }

    .hokx-home .hokx-hero-text {
        font-size: 14px;
    }

    .hokx-game-buttons,
    .hokx-guides-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hokx-game-grid,
    .hokx-xp-grid,
    .hokx-community-proof {
        grid-template-columns: 1fr !important;
    }

    .hokx-about-grid {
        grid-template-columns: 1fr;
    }

    .hokx-game-card {
        min-height: 0;
        padding: 20px;
    }

    .hokx-section {
        padding: 28px 0;
    }

    .hokx-editorial-page {
        padding: 14px 0 38px;
    }

    .hokx-editorial-hero,
    .hokx-archive-header {
        padding: 22px 20px;
    }

    .hokx-editorial-hero h1,
    .hokx-archive-header h1 {
        font-size: clamp(34px, 10vw, 40px);
        letter-spacing: -.9px;
    }

    .hokx-editorial-media {
        margin: 14px;
    }

    .hokx-editorial-copy,
    .hokx-editorial-discussion {
        padding: 0 20px 24px;
        font-size: 15px;
    }

    .hokx-editorial-discussion {
        padding-top: 22px;
    }

    .hokx-story-card {
        grid-template-columns: 120px minmax(0, 1fr);
        min-height: 112px;
    }

    .hokx-story-thumb {
        width: 112px;
        min-height: 63px;
        height: 63px;
        margin: auto 0 auto 8px;
        border-radius: 7px;
    }

    .hokx-story-copy {
        padding: 11px 12px;
    }

    .hokx-story-copy h2 {
        display: -webkit-box;
        overflow: hidden;
        font-size: 15px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .hokx-story-copy p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 12px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .hokx-story-meta {
        display: none;
    }

    .hokx-guides-hero h1,
    .hokx-guide-detail-hero h1 {
        font-size: clamp(34px, 10.5vw, 42px);
    }

    .hokx-guide-entry-content {
        font-size: 15px;
    }

    body.hokx-legal-body .hokx-legal-page {
        padding: 24px 20px;
    }

    .hokx-legal-help {
        margin: 0 20px 24px;
    }

    .hokx-site-footer {
        padding-top: 24px;
    }
}

@media (max-width: 782px) {
    .admin-bar .hokx-site-header {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
