/*
 * Ileemoo Apple — final visual layer
 * Calm editorial hierarchy, system typography and restrained interaction.
 * Loaded after Ghost Code Injection so the installed theme owns its UI.
 */

:root {
    --apple-bg: #f5f5f7;
    --apple-surface: #ffffff;
    --apple-surface-soft: #fbfbfd;
    --apple-ink: #1d1d1f;
    --apple-muted: #6e6e73;
    --apple-faint: #86868b;
    --apple-line: rgb(0 0 0 / 0.09);
    --apple-line-strong: rgb(0 0 0 / 0.14);
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-radius: 22px;
    --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
        "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei",
        "Helvetica Neue", Arial, sans-serif;

    --background-color: var(--apple-bg) !important;
    --ghost-accent-color: var(--apple-blue) !important;
    --color-white: #fff;
    --color-lighter-gray: rgb(0 0 0 / 0.045);
    --color-light-gray: #e8e8ed;
    --color-mid-gray: #d2d2d7;
    --color-dark-gray: #424245;
    --color-darker-gray: var(--apple-ink);
    --color-black: var(--apple-ink);
    --color-primary-text: var(--apple-ink);
    --color-secondary-text: var(--apple-muted);
    --color-border: var(--apple-line);
    --color-dark-border: var(--apple-line-strong);
    --font-sans: var(--apple-font);
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --gh-font-heading: var(--apple-font) !important;
    --gh-font-body: var(--apple-font) !important;
    --container-width: 1180px;
    --container-gap: clamp(20px, 4vw, 48px);
    --grid-gap: clamp(24px, 3vw, 40px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

html body,
html body[class*="gh-font-"] {
    background: var(--apple-bg) !important;
    color: var(--apple-ink) !important;
    font-family: var(--apple-font) !important;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
}

html body :is(h1, h2, h3, h4, h5, h6, .is-title, .is-body),
html body[class*="gh-font-"] :is(h1, h2, h3, h4, h5, h6, .is-title, .is-body) {
    font-family: var(--apple-font) !important;
}

html body :is(h1, h2, h3, h4, h5, h6) {
    color: var(--apple-ink);
    text-wrap: balance;
}

html body p {
    text-wrap: pretty;
}

html body a {
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease,
        background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

html body a:hover {
    opacity: 1;
}

html body :is(a, button, input):focus-visible {
    outline: 3px solid rgb(0 113 227 / 0.34);
    outline-offset: 3px;
}

/* Navigation */

html body .gh-navigation {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    font-family: var(--apple-font) !important;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    background: rgb(250 250 252 / 0.78) !important;
    border-bottom: 1px solid rgb(0 0 0 / 0.06);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

html body .gh-navigation-inner {
    min-height: 64px;
}

html body .gh-navigation-logo {
    max-width: min(48vw, 520px);
    overflow: hidden;
    color: var(--apple-ink) !important;
    font-size: clamp(1.55rem, 1.5vw, 1.9rem);
    font-weight: 650;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body .gh-navigation .nav {
    gap: 24px;
}

html body .gh-navigation .nav a,
html body .gh-navigation-members > a:not(.gh-button) {
    color: #3a3a3c !important;
}

html body .gh-navigation .nav a:hover,
html body .gh-navigation-members > a:not(.gh-button):hover {
    color: var(--apple-blue) !important;
}

html body .gh-navigation .gh-button,
html body .gh-button {
    min-height: 36px;
    padding: 0.72em 1.3em;
    color: #fff !important;
    font-family: var(--apple-font) !important;
    font-size: 1.4rem;
    font-weight: 550;
    letter-spacing: -0.01em;
    background: var(--apple-blue) !important;
    border: 0;
    border-radius: 999px !important;
    box-shadow: none !important;
}

html body .gh-button:hover {
    background: var(--apple-blue-hover) !important;
    transform: translateY(-1px);
}

html body .gh-button:active {
    transform: scale(0.98);
}

html body .gh-icon-button {
    color: var(--apple-ink) !important;
    border-radius: 50%;
}

html body .gh-icon-button:hover {
    background: rgb(0 0 0 / 0.05);
}

html body .gh-dropdown {
    padding: 10px;
    background: rgb(255 255 255 / 0.9);
    border: 1px solid var(--apple-line);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgb(0 0 0 / 0.12);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

/* Homepage hero */

html body .gh-header.is-classic,
html body .gh-header.is-classic.has-image {
    display: grid;
    min-height: clamp(430px, 58vw, 650px);
    overflow: hidden;
    color: var(--apple-ink) !important;
    background:
        radial-gradient(circle at 50% 12%, #fff 0, #fafafd 38%, var(--apple-bg) 74%)
        !important;
}

html body .gh-header.is-classic::before,
html body .gh-header.is-classic.has-image::before,
html body .gh-header.is-classic .gh-header-image {
    display: none !important;
}

html body .gh-header.is-classic .gh-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    padding-block: clamp(72px, 9vw, 126px);
    text-align: center;
}

html body .gh-header-kicker {
    margin-bottom: 18px;
    color: var(--apple-blue);
    font-size: clamp(1.5rem, 1.5vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

html body .gh-header.is-classic .gh-header-title {
    max-width: min(1120px, 100%);
    color: var(--apple-ink) !important;
    font-family: var(--apple-font) !important;
    font-size: clamp(3.8rem, 5.2vw, 7rem) !important;
    font-weight: 700 !important;
    line-height: 1.08;
    letter-spacing: -0.045em !important;
    text-shadow: none !important;
    word-break: auto-phrase;
}

html body .gh-header-scroll {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 36px;
    color: var(--apple-blue) !important;
    font-size: 1.7rem;
    font-weight: 500;
}

html body .gh-header-scroll svg {
    width: 17px;
    transform: rotate(90deg);
}

html body .gh-header-scroll:hover {
    color: var(--apple-blue-hover) !important;
}

html body .gh-header-scroll:hover svg {
    transform: translateY(3px) rotate(90deg);
}

html body .home-template .gh-featured:empty,
html body .home-template .gh-cta:empty {
    display: none;
}

/* Article feed */

html body .gh-container {
    margin-top: 0 !important;
    padding-top: clamp(72px, 8vw, 112px);
    padding-bottom: clamp(48px, 6vw, 80px);
    background: var(--apple-surface);
}

html body .gh-container-inner {
    column-gap: var(--grid-gap);
}

html body .gh-container:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
    grid-column: 3 / span 12;
}

html body .gh-container-title {
    margin-bottom: 28px;
    padding-bottom: 16px;
    color: var(--apple-ink);
    font-size: clamp(2.3rem, 2.4vw, 3.2rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    text-transform: none;
    border-bottom-color: var(--apple-line);
}

html body .gh-container .gh-feed {
    gap: 0 !important;
}

html body .gh-container.is-list .gh-card {
    position: relative;
    padding-block: 26px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .gh-container.is-list .gh-card + .gh-card::before {
    top: 0;
    background: var(--apple-line);
}

html body .gh-container.is-list .gh-card-link {
    align-items: center;
    gap: clamp(22px, 3vw, 40px);
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .gh-container.is-list .gh-card-link:hover {
    transform: translateY(-2px);
}

html body .gh-container.is-list .gh-card-image {
    width: clamp(190px, 25vw, 290px);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--apple-bg);
    border-radius: 16px !important;
    box-shadow: none !important;
}

html body .gh-card-image img {
    transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html body .gh-card-link:hover .gh-card-image img {
    transform: scale(1.025);
}

html body .gh-card-wrapper {
    max-width: 640px;
}

html body .gh-card-tag {
    margin-bottom: 7px;
    color: var(--apple-blue) !important;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

html body .gh-card-title,
html body .gh-container.is-list .gh-card-title {
    color: var(--apple-ink) !important;
    font-family: var(--apple-font) !important;
    font-size: clamp(2rem, 2vw, 2.6rem) !important;
    font-weight: 650 !important;
    line-height: 1.28 !important;
    letter-spacing: -0.03em !important;
}

html body .gh-card-link:hover .gh-card-title {
    color: var(--apple-blue) !important;
}

html body .gh-card-excerpt {
    display: -webkit-box;
    margin-top: 9px !important;
    overflow: hidden;
    color: var(--apple-muted) !important;
    font-family: var(--apple-font) !important;
    font-size: 1.55rem !important;
    line-height: 1.55 !important;
    letter-spacing: -0.01em !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

html body .gh-card-meta {
    margin-top: 13px !important;
    color: var(--apple-faint) !important;
    font-family: var(--apple-font) !important;
    font-size: 1.25rem;
    font-weight: 450;
    letter-spacing: 0;
}

html body .gh-more {
    margin-top: 42px;
    font-family: var(--apple-font) !important;
    font-size: 1.6rem;
    font-weight: 550;
}

html body .gh-more a {
    width: fit-content;
    color: var(--apple-blue) !important;
}

/* Forms and subscription */

html body .gh-form {
    height: 52px;
    font-family: var(--apple-font) !important;
    background: #fff !important;
    border: 1px solid var(--apple-line-strong);
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.02);
}

html body .gh-form:hover,
html body .gh-form:focus-within {
    background: #fff !important;
    border-color: rgb(0 113 227 / 0.5);
    box-shadow: 0 0 0 4px rgb(0 113 227 / 0.1);
}

html body .gh-form-input {
    color: var(--apple-ink) !important;
    font-family: var(--apple-font) !important;
    border-radius: 14px !important;
}

html body .gh-form-input::placeholder {
    color: var(--apple-faint) !important;
}

html body .gh-form .gh-button {
    right: 5px;
    height: 40px;
    min-height: 40px;
}

/* Article page */

html body.post-template,
html body.page-template {
    background: var(--apple-surface) !important;
}

html body .gh-article {
    --container-width: 1140px;
    --content-width: 720px;
}

html body .gh-article-header {
    margin: clamp(64px, 8vw, 112px) 0 56px;
}

html body .gh-article-tag {
    margin-bottom: 16px;
    color: var(--apple-blue) !important;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

html body .gh-article-title {
    color: var(--apple-ink) !important;
    font-family: var(--apple-font) !important;
    font-size: clamp(3.8rem, 5vw, 6.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.13 !important;
    letter-spacing: -0.045em !important;
}

/* Game lobby */

html body.page-games-template .gh-viewport {
    overflow: clip;
}

html body .game-lobby {
    background:
        radial-gradient(circle at 90% 8%, rgb(0 113 227 / 0.08), transparent 30rem),
        var(--apple-bg);
}

html body .game-lobby-hero {
    display: grid;
    min-height: min(720px, calc(100dvh - 64px));
    padding: clamp(80px, 11vw, 154px) var(--container-gap) clamp(92px, 13vw, 176px);
}

html body .game-lobby-hero-inner {
    width: min(1180px, 100%);
    margin: auto;
}

html body .game-lobby-kicker {
    margin: 0 0 24px;
    color: var(--apple-blue);
    font-size: clamp(1.4rem, 1.3vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.015em;
}

html body .game-lobby-hero h1 {
    max-width: 8ch;
    margin: 0;
    font-size: clamp(6rem, 12vw, 14.4rem);
    font-weight: 730;
    line-height: 0.88;
    letter-spacing: -0.075em;
}

html body .game-lobby-intro {
    max-width: 34ch;
    margin: clamp(34px, 5vw, 64px) 0 0 auto;
    color: var(--apple-muted);
    font-size: clamp(2rem, 2.2vw, 3rem);
    font-weight: 450;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

html body .game-lobby-scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 56px;
    color: var(--apple-ink);
    font-size: 1.55rem;
    font-weight: 550;
}

html body .game-lobby-scroll span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--apple-ink);
    border-radius: 50%;
}

html body .game-lobby-scroll:hover {
    color: var(--apple-blue);
    transform: translateY(2px);
}

html body .game-lobby-list {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 42px);
    width: min(1280px, calc(100% - 2 * var(--container-gap)));
    margin: 0 auto;
    padding-bottom: clamp(96px, 12vw, 170px);
}

html body .game-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--apple-surface);
    border-radius: clamp(22px, 3vw, 34px);
    box-shadow: 0 24px 70px rgb(28 47 73 / 0.08);
}

html body .game-card--wide {
    grid-column: span 7;
}

html body .game-card--compact {
    grid-column: span 5;
}

html body .game-card--doudizhu {
    grid-column: 1 / span 5;
}

html body .game-card--tank {
    grid-column: 6 / span 7;
}

html body .game-card-visual {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8e8ed;
}

html body .game-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html body .game-card-visual:hover img {
    transform: scale(1.025);
}

html body .game-card-status {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    background: rgb(29 29 31 / 0.68);
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: 999px;
    box-shadow: inset 0 1px rgb(255 255 255 / 0.14);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

html body .game-card-status i {
    width: 7px;
    height: 7px;
    background: #79d69d;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgb(121 214 157 / 0.2);
}

html body .game-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(26px, 4vw, 48px);
}

html body .game-card-index {
    margin: 0 0 16px;
    color: var(--apple-faint);
    font-family: var(--font-mono) !important;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

html body .game-card h2 {
    margin: 0;
    font-size: clamp(3.2rem, 4.4vw, 5.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.055em;
}

html body .game-card-summary {
    max-width: 31ch;
    margin: 22px 0 0;
    color: var(--apple-muted);
    font-size: clamp(1.7rem, 1.6vw, 2.05rem);
    line-height: 1.55;
}

html body .game-card-how {
    width: 100%;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--apple-line);
}

html body .game-card-how h3 {
    margin: 0 0 13px;
    color: var(--apple-ink);
    font-size: 1.4rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

html body .game-card-how ol {
    margin: 0;
    padding-left: 2.1rem;
    color: var(--apple-muted);
    font-size: 1.45rem;
    line-height: 1.7;
}

html body .game-card-how li::marker {
    color: var(--apple-blue);
    font-family: var(--font-mono);
    font-size: 0.9em;
    font-weight: 600;
}

html body .game-card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    margin-top: 34px;
    padding: 0 20px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--apple-ink);
    border-radius: 999px;
}

html body .game-card-link span {
    font-size: 1.8rem;
    transition: transform 180ms ease;
}

html body .game-card-link:hover {
    color: #fff;
    background: var(--apple-blue);
    transform: translateY(-2px);
}

html body .game-card-link:hover span {
    transform: translate(2px, -2px);
}

html body .game-card-link:active {
    transform: scale(0.98);
}

html body .game-lobby-note {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 32px;
    width: min(1180px, calc(100% - 2 * var(--container-gap)));
    margin: 0 auto;
    padding: 42px 0 68px;
    color: var(--apple-muted);
    border-top: 1px solid var(--apple-line);
}

html body .game-lobby-note p {
    max-width: 58ch;
    margin: 0;
    font-size: 1.5rem;
}

html body .game-lobby-note a {
    flex: none;
    color: var(--apple-blue);
    font-size: 1.5rem;
    font-weight: 550;
}

html body .gh-article-excerpt {
    margin-top: 20px;
    color: var(--apple-muted) !important;
    font-family: var(--apple-font) !important;
    font-size: clamp(1.8rem, 2vw, 2.2rem) !important;
    line-height: 1.55;
    letter-spacing: -0.018em;
}

html body .gh-meta-share {
    margin-top: 28px;
}

html body .gh-article-author-image a {
    width: 44px;
    height: 44px;
    border: 2px solid #fff;
}

html body .gh-article-author-name {
    font-family: var(--apple-font) !important;
    font-size: 1.45rem;
    font-weight: 600;
}

html body .gh-article-meta-content {
    color: var(--apple-faint);
    font-family: var(--apple-font) !important;
    font-size: 1.3rem;
}

html body .gh-button-share {
    min-height: 34px;
    color: var(--apple-blue) !important;
    background: transparent !important;
    border: 1px solid rgb(0 113 227 / 0.3) !important;
}

html body .gh-button-share:hover {
    color: #fff !important;
    background: var(--apple-blue) !important;
}

html body .gh-article-image {
    margin-top: 48px;
    overflow: hidden;
    border-radius: var(--apple-radius);
}

html body .gh-content {
    color: #2c2c2e;
    font-family: var(--apple-font) !important;
    font-size: clamp(1.8rem, 1.6vw, 2rem) !important;
    line-height: 1.85;
    letter-spacing: -0.012em;
}

html body .gh-content :is(p, ul, ol, blockquote, figcaption, table) {
    font-family: var(--apple-font) !important;
}

html body .gh-content > * + * {
    margin-top: 30px;
}

html body .gh-content > [id]:not(:first-child) {
    margin-top: 64px;
}

html body .gh-content :is(h1, h2, h3) {
    font-family: var(--apple-font) !important;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

html body .gh-content h2 {
    font-size: 1.55em;
}

html body .gh-content h3 {
    font-size: 1.25em;
}

html body .gh-content a {
    color: var(--apple-blue) !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

html body .gh-content blockquote {
    padding: 4px 0 4px 24px;
    color: var(--apple-muted);
    font-size: 1.05em;
    font-style: normal;
    border-left: 3px solid var(--apple-blue);
}

html body .gh-content :is(code, pre) {
    font-family: var(--font-mono) !important;
}

html body .gh-content pre,
html body .kg-code-card {
    overflow: auto;
    background: var(--apple-bg);
    border: 1px solid var(--apple-line);
    border-radius: 14px;
}

html body .gh-content :is(img, video),
html body .kg-card img {
    border-radius: 14px;
}

/* Footer */

html body .gh-footer {
    margin-top: 0 !important;
    padding-top: clamp(76px, 9vw, 120px);
    color: var(--apple-ink) !important;
    background: var(--apple-bg) !important;
    border-top: 1px solid var(--apple-line);
}

html body .gh-footer-signup {
    margin-bottom: clamp(72px, 8vw, 108px);
}

html body .gh-footer-signup-header {
    color: var(--apple-ink) !important;
    font-family: var(--apple-font) !important;
    font-size: clamp(3.2rem, 4vw, 5rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.045em !important;
}

html body .gh-footer-signup-subhead {
    max-width: 620px;
    color: var(--apple-muted) !important;
    font-family: var(--apple-font) !important;
    font-size: 1.7rem;
    line-height: 1.55;
    opacity: 1;
}

html body .gh-footer-signup .gh-form {
    margin-top: 30px;
}

html body .gh-social-links {
    margin-bottom: 36px;
}

html body .gh-social-links a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--apple-muted) !important;
    background: rgb(0 0 0 / 0.045);
    border-radius: 50%;
}

html body .gh-social-links a:hover {
    color: var(--apple-ink) !important;
    background: rgb(0 0 0 / 0.08);
}

/* Floating tag browser */

html.has-tag-dialog {
    overflow: hidden;
}

html body .gh-tag-fab {
    position: fixed;
    left: max(22px, env(safe-area-inset-left));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 17px 0 14px;
    color: var(--apple-ink);
    font-family: var(--apple-font) !important;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    background: rgb(255 255 255 / 0.82);
    border: 1px solid rgb(0 0 0 / 0.09);
    border-radius: 15px;
    box-shadow:
        0 12px 36px rgb(0 0 0 / 0.11),
        inset 0 1px 0 rgb(255 255 255 / 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    transition: color 180ms ease, background-color 180ms ease,
        transform 180ms ease, box-shadow 180ms ease;
}

html body .gh-tag-fab:hover {
    color: var(--apple-blue);
    background: rgb(255 255 255 / 0.94);
    box-shadow:
        0 16px 42px rgb(0 0 0 / 0.14),
        inset 0 1px 0 #fff;
    transform: translateY(-2px);
}

html body .gh-tag-fab:active {
    transform: scale(0.97);
}

html body .gh-tag-fab svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

html body .gh-tag-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--apple-ink);
    background: transparent;
    border: 0;
}

html body .gh-tag-dialog::backdrop {
    background: rgb(20 20 24 / 0.24);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

html body .gh-tag-drawer {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    width: min(420px, calc(100vw - 32px));
    overflow: hidden;
    background: rgb(250 250 252 / 0.94);
    border: 1px solid rgb(255 255 255 / 0.76);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgb(0 0 0 / 0.2);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    backdrop-filter: saturate(180%) blur(30px);
    animation: gh-tag-drawer-in 260ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

html body .gh-tag-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 30px 22px;
}

html body .gh-tag-drawer-kicker {
    margin-bottom: 5px;
    color: var(--apple-blue);
    font-size: 1.25rem;
    font-weight: 600;
}

html body .gh-tag-drawer-header h2 {
    font-family: var(--apple-font) !important;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

html body .gh-tag-close {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: var(--apple-muted);
    cursor: pointer;
    background: rgb(0 0 0 / 0.055);
    border: 0;
    border-radius: 50%;
    transition: color 180ms ease, background-color 180ms ease,
        transform 180ms ease;
}

html body .gh-tag-close:hover {
    color: var(--apple-ink);
    background: rgb(0 0 0 / 0.09);
    transform: rotate(4deg);
}

html body .gh-tag-close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

html body .gh-tag-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 30px 16px;
}

html body .gh-tag-search > svg {
    position: absolute;
    left: 15px;
    z-index: 1;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--apple-faint);
    stroke-linecap: round;
    stroke-width: 1.8;
    pointer-events: none;
}

html body .gh-tag-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

html body .gh-tag-search input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 43px;
    color: var(--apple-ink);
    font-family: var(--apple-font) !important;
    font-size: 1.5rem;
    background: rgb(118 118 128 / 0.09);
    border: 1px solid transparent;
    border-radius: 13px;
    outline: none;
    appearance: none;
}

html body .gh-tag-search input:focus {
    background: #fff;
    border-color: rgb(0 113 227 / 0.42);
    box-shadow: 0 0 0 4px rgb(0 113 227 / 0.09);
}

html body .gh-tag-search input::placeholder {
    color: var(--apple-faint);
}

html body .gh-tag-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 18px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgb(0 0 0 / 0.15) transparent;
}

html body .gh-tag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 54px;
    padding: 0 12px;
    color: var(--apple-ink) !important;
    font-family: var(--apple-font) !important;
    font-size: 1.55rem;
    font-weight: 550;
    letter-spacing: -0.018em;
    border-bottom: 1px solid var(--apple-line);
    border-radius: 10px;
}

html body .gh-tag-results {
    display: contents;
}

html body .gh-tag-row:hover {
    color: var(--apple-blue) !important;
    background: rgb(0 113 227 / 0.065);
    border-bottom-color: transparent;
    transform: translateX(2px);
}

html body .gh-tag-row small {
    flex: 0 0 auto;
    color: var(--apple-faint);
    font-size: 1.2rem;
    font-weight: 450;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

html body .gh-tag-row.is-all {
    margin-bottom: 8px;
    color: var(--apple-blue) !important;
    background: rgb(0 113 227 / 0.07);
    border-bottom: 0;
}

html body .gh-tag-row.is-all svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

html body .gh-tag-row[hidden] {
    display: none;
}

html body :is(.gh-tag-loading, .gh-tag-error, .gh-tag-empty) {
    padding: 48px 20px;
    color: var(--apple-muted);
    font-size: 1.5rem;
    text-align: center;
}

@keyframes gh-tag-drawer-in {
    from {
        opacity: 0;
        transform: translateX(28px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Archive and utility pages */

html body .gh-archive {
    background: var(--apple-surface);
}

html body .gh-archive-title,
html body .gh-page-title {
    font-family: var(--apple-font) !important;
    font-weight: 700 !important;
    letter-spacing: -0.045em !important;
}

/* Responsive */

@media (min-width: 768px) {
    html body .gh-header.is-classic .gh-header-title {
        word-break: keep-all;
    }
}

@media (max-width: 991px) {
    html body .gh-navigation-logo {
        max-width: 62vw;
    }

    html body .gh-container:not(.has-sidebar) :is(.gh-container-title, .gh-main, .gh-more) {
        grid-column: 1 / -1;
    }

    html body .game-card,
    html body .game-card--doudizhu,
    html body .game-card--tank {
        grid-column: span 6;
    }
}

@media (max-width: 767px) {
    :root {
        --container-gap: 20px;
    }

    html body #gh-navigation,
    html body #gh-navigation .gh-navigation-inner,
    html body #gh-navigation .gh-navigation-brand {
        height: 58px;
        min-height: 58px;
    }

    html body #gh-navigation:not(.is-open) :is(.gh-navigation-menu, .gh-navigation-actions) {
        display: none !important;
    }

    html body .gh-navigation-logo {
        max-width: calc(100vw - 132px);
        font-size: 1.5rem;
    }

    html body .gh-tag-fab {
        left: max(14px, env(safe-area-inset-left));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 15px;
    }

    html body .gh-tag-fab span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    html body .gh-tag-drawer {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(82dvh, 720px);
        border-inline: 0;
        border-bottom: 0;
        border-radius: 27px 27px 0 0;
        animation-name: gh-tag-sheet-in;
    }

    html body .gh-tag-drawer-header {
        padding: 25px 22px 18px;
    }

    html body .gh-tag-drawer-header h2 {
        font-size: 2.7rem;
    }

    html body .gh-tag-search {
        margin: 0 22px 14px;
    }

    html body .gh-tag-list {
        padding: 0 10px calc(18px + env(safe-area-inset-bottom));
    }

    html body #gh-navigation.is-open {
        height: auto;
        min-height: 100dvh;
        background: rgb(250 250 252 / 0.97) !important;
    }

    html body #gh-navigation .gh-navigation-menu {
        padding-top: 36px;
    }

    html body #gh-navigation .gh-navigation-menu .nav {
        gap: 0;
    }

    html body #gh-navigation .gh-navigation-menu .nav a {
        padding-block: 13px;
        font-size: 2rem;
        font-weight: 600;
    }

    html body .gh-header.is-classic,
    html body .gh-header.is-classic.has-image {
        min-height: 460px;
    }

    html body .gh-header.is-classic .gh-header-inner {
        padding-block: 68px 82px;
    }

    html body .gh-header.is-classic .gh-header-title {
        max-width: 17ch;
        font-size: clamp(3.4rem, 10vw, 4.7rem) !important;
        letter-spacing: -0.05em !important;
    }

    html body .gh-header-scroll {
        margin-top: 28px;
        font-size: 1.6rem;
    }

    html body .gh-container {
        padding-top: 64px;
    }

    html body .gh-container-title {
        margin-bottom: 12px;
        font-size: 2.5rem;
    }

    html body .gh-container.is-list .gh-card {
        padding-block: 24px;
    }

    html body .gh-container.is-list .gh-card-link {
        align-items: stretch;
        gap: 18px;
    }

    html body .gh-container.is-list .gh-card-image {
        width: 100%;
        border-radius: 14px !important;
    }

    html body .gh-card-title,
    html body .gh-container.is-list .gh-card-title {
        font-size: 2.2rem !important;
        line-height: 1.32 !important;
    }

    html body .gh-card-excerpt {
        font-size: 1.5rem !important;
    }

    html body .gh-article-header {
        margin-block: 54px 40px;
    }

    html body .gh-article-title {
        font-size: clamp(3.3rem, 10vw, 4.5rem) !important;
    }

    html body .gh-article-excerpt {
        font-size: 1.8rem !important;
    }

    html body .gh-meta-share {
        align-items: flex-start;
        gap: 20px;
    }

    html body .gh-article-image {
        margin-top: 36px;
        border-radius: 14px;
    }

    html body .gh-content {
        font-size: 1.8rem !important;
        line-height: 1.8;
    }

    html body .gh-footer {
        padding-top: 72px;
    }

    html body .game-lobby-hero {
        min-height: 600px;
        padding-block: 82px 100px;
    }

    html body .game-lobby-kicker {
        margin-bottom: 20px;
    }

    html body .game-lobby-hero h1 {
        max-width: 7ch;
        font-size: clamp(5.3rem, 20vw, 8.4rem);
        line-height: 0.92;
    }

    html body .game-lobby-intro {
        margin: 38px 0 0;
        font-size: 2rem;
    }

    html body .game-lobby-scroll {
        margin-top: 40px;
    }

    html body .game-lobby-list {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-bottom: 92px;
    }

    html body .game-card,
    html body .game-card--doudizhu,
    html body .game-card--tank {
        grid-column: 1;
    }

    html body .game-card-visual {
        aspect-ratio: 4 / 3;
    }

    html body .game-card-body {
        padding: 28px 24px 32px;
    }

    html body .game-card h2 {
        font-size: 3.5rem;
    }

    html body .game-card-summary {
        font-size: 1.65rem;
    }

    html body .game-lobby-note {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 54px;
    }
}

@keyframes gh-tag-sheet-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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