/* ============================================================
   BitArk Theme — Typecho 1.3
   Bright & warm gradient / indie game developer landing page
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg: #f4fbf9;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-hi: #e9f7f3;
    --stroke: rgba(10, 51, 45, .12);
    --stroke-hi: rgba(10, 51, 45, .22);

    --accent: #0fb5a3;
    --accent2: #0ea5e9;
    --accent3: #0fae7c;
    --gold: #34d399;
    --pink: #f43f5e;

    --text: #0e2220;
    --text-dim: #3d5551;
    --muted: #6b8681;

    --shadow-sm: 0 2px 10px -3px rgba(8, 62, 54, .1);
    --shadow-md: 0 16px 36px -18px rgba(8, 62, 54, .26);
    --shadow-lg: 0 28px 60px -26px rgba(8, 62, 54, .34);

    --radius: 20px;
    --radius-sm: 14px;
    --wrap: 1180px;
    --wrap-narrow: 800px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
            "Noto Sans CJK SC", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    margin: 0;
    background:
        radial-gradient(ellipse 110% 62% at 50% -6%, #e0f4ee 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 100% 100%, #def3ed 0%, transparent 58%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }

h1, h2, h3, h4, h5 {
    margin: 0;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

::selection { background: rgba(15, 181, 163, .2); color: var(--text); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #dcf2ec; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(15,181,163,.75), rgba(14,165,233,.75));
    border-radius: 10px;
    border: 2px solid #f4fbf9;
}

/* ---------- Background layers ---------- */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(15, 181, 163, .085) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 181, 163, .085) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 38%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 38%, transparent 78%);
    animation: gridDrift 26s linear infinite;
}

@keyframes gridDrift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(56px, 56px, 0); }
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .8;
}

.bg-glow-1 {
    width: 720px; height: 720px;
    top: -280px; left: -160px;
    background: radial-gradient(circle, rgba(15, 181, 163, .32), transparent 68%);
    animation: float1 18s ease-in-out infinite;
}

.bg-glow-2 {
    width: 680px; height: 680px;
    top: -200px; right: -200px;
    background: radial-gradient(circle, rgba(14, 165, 233, .28), transparent 68%);
    animation: float2 22s ease-in-out infinite;
}

.bg-glow-3 {
    width: 560px; height: 560px;
    top: 62%; left: 46%;
    background: radial-gradient(circle, rgba(52, 211, 153, .26), transparent 70%);
    animation: float1 26s ease-in-out reverse infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(50px, 40px) scale(1.09); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-45px, 55px) scale(1.12); }
}

/* ---------- Layout helpers ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.wrap-narrow { max-width: var(--wrap-narrow); }

main#main { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
    background: rgba(244, 251, 249, .82);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--stroke);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: padding .3s var(--ease);
}

.nav.is-scrolled .nav-inner { padding: 11px 24px; }

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: .02em;
    margin-right: auto;
}

.nav-logo { height: 30px; width: auto; }

.nav-mark {
    display: inline-flex;
    align-items: center;
}

.nav-mark img { display: block; filter: drop-shadow(0 2px 5px rgba(8, 62, 54, .22)); }

.nav-title {
    background: linear-gradient(92deg, #0fb5a3 10%, #0ea5e9 58%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu { display: flex; align-items: center; gap: 4px; }

.nav-link {
    position: relative;
    padding: 8px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dim);
    border-radius: 999px;
    transition: color .2s var(--ease), background .2s var(--ease);
}

.nav-link:hover { color: var(--accent); background: #e3f5f0; }

.nav-link.is-current { color: var(--accent); }

.nav-link.is-current::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 2px;
    width: 16px; height: 2px;
    margin-left: -8px;
    border-radius: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 11px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .28s var(--ease), opacity .2s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
    white-space: nowrap;
}

.btn-sm { padding: 9px 18px; font-size: 14px; }

.btn-primary {
    color: #fff;
    background: linear-gradient(96deg, var(--gold) 0%, var(--accent) 48%, var(--accent2) 100%);
    box-shadow: 0 10px 26px -10px rgba(15, 181, 163, .6);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(15, 181, 163, .72);
    color: #fff;
}

.btn-ghost {
    color: var(--text);
    background: var(--surface);
    border-color: var(--stroke-hi);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 181, 163, .5);
    color: var(--accent);
    background: #e2f5ef;
}

.btn:active { transform: translateY(0); }

/* ---------- Reveal animation ---------- */
/* 仅在 JS 可用时才先隐藏（html.js），无 JS 环境直接完整显示 */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .bg-grid, .bg-glow { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 128px 0 96px;
    text-align: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    background: rgba(15, 181, 163, .09);
    border: 1px solid rgba(15, 181, 163, .3);
    color: #0d7d70;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hero-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(15, 181, 163, .6);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    70%  { box-shadow: 0 0 0 9px rgba(15, 181, 163, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 181, 163, 0); }
}

.hero-title {
    font-size: clamp(2.4rem, 6.2vw, 4.6rem);
    font-weight: 900;
    letter-spacing: -.03em;
    background: linear-gradient(96deg, #08554c 6%, #0c9a8c 46%, #0fae7c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 20ch;
}

.hero-desc {
    max-width: 620px;
    color: var(--text-dim);
    font-size: clamp(.98rem, 1.6vw, 1.1rem);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 760px;
    margin-top: 42px;
    padding: 22px 10px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fbfefd, #e6f6f1);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-sm);
}

.stat { padding: 4px 12px; }
.stat + .stat { border-left: 1px solid var(--stroke); }

.stat-num {
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    font-weight: 900;
    font-family: var(--mono);
    letter-spacing: -.02em;
    background: linear-gradient(180deg, #0a8a7d, #0fb5a3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: .04em;
    margin-top: 2px;
}

.hero-scroll {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 1.5px solid var(--stroke-hi);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.hero-scroll span {
    width: 3px; height: 8px;
    border-radius: 2px;
    background: var(--accent);
    animation: scrollHint 1.9s ease-in-out infinite;
}

@keyframes scrollHint {
    0%   { transform: translateY(0); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
    position: relative;
    padding: 104px 0;
}

.section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 181, 163, .055), transparent);
    pointer-events: none;
}

.inner-page { padding: 132px 0 96px; }

.sec-head {
    text-align: center;
    margin-bottom: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sec-tag {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    color: #0d7d70;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(15, 181, 163, .1);
    border: 1px solid rgba(15, 181, 163, .26);
}

.sec-title {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 850;
    background: linear-gradient(180deg, #0e2220 38%, #115e59 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sec-sub { color: var(--muted); margin: 0; font-size: 15px; }
.back-home { color: var(--accent); }
.back-home:hover { text-decoration: underline; }

/* ---------- Game cards ---------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 22px;
}

.game-card {
    position: relative;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--stroke);
    overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
    will-change: transform;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        hsl(var(--hue) 84% 56% / .75), transparent 42%, hsl(calc(var(--hue) + 60) 84% 56% / .5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s var(--ease);
    pointer-events: none;
    z-index: 2;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--stroke-hi);
    box-shadow: var(--shadow-lg);
}

.game-card:hover::before { opacity: 1; }

.game-cover {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 20%, hsl(var(--hue) 92% 62% / .30), transparent 58%),
        radial-gradient(circle at 80% 80%, hsl(calc(var(--hue) + 45) 92% 62% / .24), transparent 58%),
        linear-gradient(145deg, #eefaf7, #d7f2ea);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(.35) contrast(.97);
    transition: transform .55s var(--ease), filter .5s var(--ease);
}

.game-card:hover .game-cover img {
    transform: scale(1.05);
    filter: saturate(1) contrast(1);
}

.game-cover-ph {
    transition: transform .5s var(--ease);
}

.game-card:hover .game-cover-ph { transform: scale(1.08); }

.game-cover-ph img {
    display: block;
    width: 44%;
    height: auto;
    opacity: .42;
    filter: saturate(.85);
    transition: opacity .4s var(--ease), filter .4s var(--ease), transform .5s var(--ease);
}

.game-card:hover .game-cover-ph img { opacity: .9; filter: saturate(1.05); }

.game-body {
    padding: 24px 22px 26px;
    text-align: center;
}

.game-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .01em;
    margin-bottom: 12px;
}

/* spux 式「细线压顶」分类标签 */
.game-tag {
    display: inline-block;
    padding: 10px 16px 0;
    border-top: 2px solid var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.game-desc {
    color: var(--muted);
    font-size: 14.2px;
    line-height: 1.72;
    margin-bottom: 16px;
    min-height: 50px;
}

.game-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.game-link:hover { gap: 11px; }

/* ---------- Features ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 30px 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--stroke);
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 181, 163, .45);
    background: var(--surface-hi);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(8, 62, 54, .16));
}

.feature-title { font-size: 17.5px; margin-bottom: 9px; }

.feature-desc {
    color: var(--muted);
    font-size: 14.2px;
    margin: 0;
    line-height: 1.72;
}

/* ---------- News list ---------- */
.news-list { display: flex; flex-direction: column; gap: 12px; }

.news-item {
    display: grid;
    grid-template-columns: 74px 1fr 30px;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--stroke);
    transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.news-item:hover {
    transform: translateX(5px);
    border-color: rgba(15, 181, 163, .45);
    background: var(--surface-hi);
    box-shadow: var(--shadow-sm);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 18px;
    border-right: 1px solid var(--stroke);
    font-family: var(--mono);
}

.news-date b {
    font-size: 24px;
    line-height: 1.1;
    color: var(--accent);
}

.news-date span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

.news-title {
    font-size: 16.5px;
    font-weight: 750;
    margin-bottom: 4px;
    transition: color .2s var(--ease);
}

.news-item:hover .news-title { color: var(--accent); }

.news-excerpt {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-arrow { color: var(--muted); display: flex; justify-content: flex-end; }
.news-item:hover .news-arrow { color: var(--accent); }

/* ---------- About ---------- */
.about-wrap {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 44px;
    align-items: start;
}

.about-text .sec-head { text-align: left; align-items: flex-start; margin-bottom: 26px; }

.about-p {
    color: var(--text-dim);
    line-height: 1.95;
    margin-bottom: 1.1em;
}

.about-card {
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(15, 181, 163, .1), rgba(52, 211, 153, .1));
    border: 1px solid var(--stroke-hi);
    box-shadow: var(--shadow-sm);
}

.about-card-title {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--accent);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.meta-list { list-style: none; margin: 0; padding: 0; }

.meta-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--stroke);
    font-size: 14.2px;
}

.meta-list li:last-child { border-bottom: 0; }
.meta-list span { color: var(--muted); flex: none; }
.meta-list b { font-weight: 700; text-align: right; word-break: break-all; }

/* ---------- Contact ---------- */
.contact-card {
    text-align: center;
    padding: 66px 32px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 20% 0%, rgba(15, 181, 163, .14), transparent 55%),
        radial-gradient(circle at 82% 100%, rgba(14, 165, 233, .13), transparent 55%),
        var(--surface);
    border: 1px solid var(--stroke-hi);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-title {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    background: linear-gradient(180deg, #0e2220 38%, #115e59 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-desc {
    color: var(--muted);
    max-width: 540px;
    margin: 0;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.contact-hint {
    margin: 10px 0 0;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--muted);
    background: #e9f7f3;
    border: 1px dashed var(--stroke-hi);
}

.contact-hint b { color: var(--accent); font-weight: 700; }

/* ---------- Entry (post / page) ---------- */
.entry {
    padding: 38px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--stroke);
}

.entry-head { margin-bottom: 28px; }

.entry-title {
    font-size: clamp(1.6rem, 3.4vw, 2.35rem);
    margin-bottom: 16px;
    background: linear-gradient(180deg, #0e2220 38%, #115e59 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.entry-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--muted);
    font-size: 13.5px;
}

.entry-meta li { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta a:hover { color: var(--accent); }

.entry-cover {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid var(--stroke);
}

.entry-content {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.95;
    word-wrap: break-word;
}

.entry-content > *:first-child { margin-top: 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #0e2220;
    margin: 1.9em 0 .8em;
    scroll-margin-top: 90px;
}

.entry-content h2 {
    font-size: 1.5em;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
}

.entry-content h3 { font-size: 1.22em; }
.entry-content h4 { font-size: 1.06em; }

.entry-content a {
    color: var(--accent);
    border-bottom: 1px solid rgba(15, 181, 163, .45);
}

.entry-content a:hover { border-bottom-color: var(--accent); }

.entry-content img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    margin: 8px 0;
}

.entry-content blockquote {
    margin: 1.6em 0;
    padding: 16px 20px;
    border-left: 3px solid var(--accent2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(15, 181, 163, .08);
    color: var(--text-dim);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content code {
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(15, 181, 163, .12);
    color: #0d7d70;
    font-family: var(--mono);
    font-size: .88em;
}

.entry-content pre {
    margin: 1.6em 0;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: #e9f7f3;
    border: 1px solid var(--stroke);
    overflow-x: auto;
    line-height: 1.7;
}

.entry-content pre code {
    padding: 0;
    background: none;
    color: #3d5551;
    font-size: 13.5px;
}

.entry-content ul li,
.entry-content ol li { margin-bottom: .4em; }

.entry-content li::marker { color: var(--accent); }

.entry-content hr {
    border: 0;
    height: 1px;
    margin: 2.4em 0;
    background: linear-gradient(90deg, transparent, var(--stroke-hi), transparent);
}

.entry-content table {
    width: 100%;
    margin: 1.6em 0;
    border-collapse: collapse;
    font-size: 14.5px;
}

.entry-content th,
.entry-content td {
    padding: 11px 14px;
    border: 1px solid var(--stroke);
    text-align: left;
}

.entry-content th { background: rgba(15, 181, 163, .08); color: #0e2220; }

.entry-tags {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--stroke);
    color: var(--muted);
    font-size: 14px;
}

.entry-tags a {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(15, 181, 163, .09);
    border: 1px solid rgba(15, 181, 163, .24);
    color: #0d7d70;
    font-size: 13px;
}

.entry-tags a:hover { border-color: var(--accent); }

.entry-near {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 26px 0 44px;
    color: var(--muted);
    font-size: 14px;
}

.entry-near span { max-width: 48%; }
.entry-near a:hover { color: var(--accent); }

/* ---------- Comments ---------- */
.comments {
    padding: 38px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--stroke);
}

.comments-head { font-size: 19px; margin: 0 0 22px; }

.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list li { padding: 0; margin: 0; }

.comment-list .comment-author { display: flex; align-items: center; gap: 10px; }

.comment-list img.avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--stroke-hi);
}

.comment-list cite {
    font-style: normal;
    font-weight: 700;
    color: #0e2220;
}

.comment-meta { font-size: 12.5px; color: var(--muted); }

.comment-content {
    padding: 12px 0 12px 48px;
    color: var(--text-dim);
    font-size: 14.8px;
}

.comment-reply { padding-left: 48px; }

.respond { border-top: 1px solid var(--stroke); padding-top: 26px; }
.cancel-comment-reply { font-size: 13.5px; color: var(--muted); }

.comment-form { margin-top: 18px; }

.comment-field { margin-bottom: 16px; }

.comment-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--text-dim);
}

.comment-field label.required::after {
    content: ' *';
    color: var(--pink);
}

.c-input,
.c-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    background: #f4fbf9;
    border: 1px solid var(--stroke);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.c-textarea { resize: vertical; min-height: 130px; line-height: 1.7; }

.c-input:focus,
.c-textarea:focus {
    outline: none;
    border-color: rgba(15, 181, 163, .6);
    background: #fbfefd;
    box-shadow: 0 0 0 3px rgba(15, 181, 163, .12);
}

.c-input::placeholder,
.c-textarea::placeholder { color: #9db3ae; }

.comment-submit { margin: 0; }

.comment-login { color: var(--muted); font-size: 14px; }
.comment-login a { color: var(--accent); }

/* ---------- Pager ---------- */
.pager { margin-top: 40px; text-align: center; }

.pager ol, .pager ul {
    list-style: none;
    display: inline-flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pager li {
    padding: 8px 15px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    font-size: 14px;
    transition: all .2s var(--ease);
}

.pager li:hover { border-color: rgba(15, 181, 163, .5); color: var(--accent); }
.pager li.current, .pager li.is-active { color: #fff; border-color: transparent;
    background: linear-gradient(96deg, var(--accent), var(--accent2)); }
.pager a:hover { color: var(--accent); }

/* ---------- Empty state ---------- */
.empty {
    text-align: center;
    padding: 52px 24px;
    border-radius: var(--radius);
    border: 1px dashed var(--stroke-hi);
    color: var(--muted);
}

.empty p { margin: 0 0 6px; }
.empty-hint { font-size: 14px; opacity: .85; }
.empty-hint b, .empty-hint a { color: var(--accent); }

/* ---------- 404 ---------- */
.hero-404 { min-height: 78svh; display: flex; align-items: center; }

.notfound { text-align: center; }

.notfound-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(96deg, var(--accent), var(--accent2) 55%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notfound-zero { display: inline-flex; color: var(--accent2); }
.nf-ring { transform-origin: 50% 50%; animation: spin 3.4s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.notfound-title { font-size: 1.9rem; margin: 22px 0 10px; }
.notfound-desc { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding: 62px 0 30px;
    border-top: 1px solid var(--stroke);
    background: linear-gradient(180deg, transparent, rgba(15, 181, 163, .05));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 38px;
}

.footer-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 850;
    background: linear-gradient(92deg, #0fb5a3, #0ea5e9 60%, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-name img { display: block; filter: drop-shadow(0 2px 4px rgba(8, 62, 54, .2)); }

.footer-slogan {
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }

.social-dot {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--stroke);
    transition: all .2s var(--ease);
}

.social-dot:hover {
    color: var(--accent);
    border-color: rgba(15, 181, 163, .5);
    background: #e3f5f0;
    transform: translateY(-2px);
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 {
    font-size: 12.5px;
    letter-spacing: .14em;
    color: var(--accent);
    margin-bottom: 6px;
    text-transform: uppercase;
    font-family: var(--mono);
}

.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--stroke);
    color: #7d9994;
    font-size: 13px;
}

.footer-copy, .footer-legal { margin: 0; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal span { opacity: .9; }

/* ---------- To top ---------- */
.to-top {
    position: fixed;
    right: 24px; bottom: 24px;
    z-index: 90;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text);
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--stroke-hi);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s var(--ease);
}

.to-top.is-show { opacity: 1; visibility: visible; transform: none; }

.to-top:hover {
    color: var(--accent);
    border-color: rgba(15, 181, 163, .6);
    background: #e3f5f0;
    transform: translateY(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-wrap { grid-template-columns: 1fr; gap: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%; left: 12px; right: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        border-radius: var(--radius);
        background: rgba(255, 255, 255, .97);
        border: 1px solid var(--stroke);
        backdrop-filter: blur(18px);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all .26s var(--ease);
    }

    .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }

    .nav-link { padding: 12px 14px; border-radius: 10px; }
    .nav-link.is-current::after { left: 14px; bottom: 8px; margin-left: 0; }

    .stats { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
    .stat:nth-child(odd) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--stroke); padding-top: 14px; }

    .section { padding: 76px 0; }
    .hero { min-height: 92svh; padding: 108px 0 84px; }

    .news-item { grid-template-columns: 62px 1fr; padding: 18px; gap: 14px; }
    .news-arrow { display: none; }
    .news-date { padding-right: 12px; }

    .entry, .comments { padding: 26px 20px; }
    .entry-near { flex-direction: column; gap: 8px; }
    .entry-near span { max-width: 100%; }

    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 480px) {
    body { font-size: 15.4px; }
    .wrap { padding: 0 16px; }
    .hero-badge { font-size: 11.5px; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
    .hero-actions .btn { width: 100%; }
    .game-grid { grid-template-columns: 1fr; }
    .sec-head { margin-bottom: 36px; }
    .contact-card { padding: 44px 20px; }
    .to-top { right: 14px; bottom: 14px; }
    .comment-content { padding-left: 0; }
}
