:root {
  --paper: #f6f1e8;
  --paper-deep: #ebe3d5;
  --ink: #1f293d;
  --muted: #687081;
  --line: #c8c0b2;
  --navy: #263963;
  --coral: #c45843;
  --sage: #b9cdbd;
  --lavender: #d7c6e6;
  --peach: #ebc4aa;
  --focus: #a33d2b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.55 Arial, "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-width { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); }
.header-inner { display: flex; min-height: 78px; align-items: center; gap: 34px; }
.brand { flex: 0 0 auto; font: 800 24px/.9 Georgia, "Songti SC", serif; letter-spacing: -.08em; }
.desktop-nav { display: flex; gap: 25px; color: var(--muted); font-size: 14px; }
.desktop-nav a:hover { color: var(--coral); }
.search-form { display: flex; width: 266px; min-height: 42px; margin-left: auto; border: 1px solid var(--ink); background: #fffdf8; }
.search-form input { width: 100%; min-width: 0; padding: 0 12px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search-form input::placeholder { color: #8d9199; }
.search-form button { padding: 0 14px; color: #fffaf1; background: var(--navy); border: 0; font-size: 13px; font-weight: 800; }
.account-actions { display: flex; align-items: center; gap: 8px; }
.account-button, .logout-button { min-height: 40px; padding: 0 12px; color: var(--ink); background: transparent; border: 1px solid var(--ink); font-size: 13px; font-weight: 800; white-space: nowrap; }
.account-button:hover { color: #fffaf2; background: var(--coral); border-color: var(--coral); }
.logout-button { color: var(--muted); border-color: var(--line); }
.logout-button:hover { color: var(--ink); border-color: var(--ink); }

.categorybar { border-bottom: 1px solid var(--line); background: #fffaf2; }
.categorybar-inner { display: flex; min-height: 48px; align-items: stretch; }
.category-button { min-width: 72px; padding: 0 14px; color: var(--muted); background: transparent; border: 0; font-size: 14px; transition: color 180ms ease, background 180ms ease; }
.categorybar .category-button:hover, .categorybar .category-button.is-active { color: var(--ink); background: var(--sage); box-shadow: inset 0 -2px var(--ink); }

main { padding: 28px 0 56px; }
.editorial-hero { display: grid; min-height: 410px; grid-template-columns: 1.02fr .98fr; overflow: hidden; border: 1px solid var(--ink); background: #fffaf2; }
.editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: 58px 30px 54px 62px; }
.eyebrow { margin: 0 0 8px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.05em; }
.editorial-copy h1 { max-width: 550px; margin-bottom: 19px; font: 700 clamp(45px, 5.5vw, 73px)/.91 Georgia, "Songti SC", serif; }
.editorial-copy h1 em { color: var(--coral); font-style: normal; }
.hero-description { max-width: 382px; margin-bottom: 26px; color: var(--muted); }
.hero-action { display: inline-flex; width: fit-content; min-height: 46px; align-items: center; gap: 20px; padding: 0 15px; color: #fffaf2; background: var(--navy); font-size: 14px; font-weight: 800; transition: background 180ms ease, transform 180ms ease; }
.hero-action:hover { background: var(--coral); transform: translateY(-2px); }
.hero-action span { font-size: 20px; }
.editorial-art { position: relative; overflow: hidden; background: #dca07c; }
.sun { position: absolute; top: 54px; right: 82px; width: 156px; height: 156px; border-radius: 50%; background: #ffe077; }
.arch { position: absolute; right: 145px; bottom: -67px; width: 230px; height: 288px; border: 24px solid var(--navy); border-bottom: 0; border-radius: 130px 130px 0 0; }
.leaf { position: absolute; bottom: 55px; left: 65px; width: 170px; height: 72px; border-radius: 100% 0 100% 0; background: #4d897d; transform: rotate(-27deg); }
.dot-grid { position: absolute; right: 34px; bottom: 31px; width: 70px; height: 70px; background-image: radial-gradient(var(--ink) 2px, transparent 2.5px); background-size: 14px 14px; }

.discovery, .featured-section { margin-top: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2, .weekly-list h2 { margin: 0; font: 700 30px/.98 Georgia, "Songti SC", serif; }
.section-note { color: var(--muted); font-size: 13px; }
.sort-controls { display: flex; gap: 8px; }
.sort-controls button { min-height: 40px; padding: 0 15px; color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.sort-controls button.is-active { color: #fffaf2; background: var(--coral); border-color: var(--coral); font-weight: 800; }
.category-tags { display: grid; gap: 9px; }
.category-tag-row { display: flex; flex-wrap: wrap; gap: 9px; }
.category-tags .category-button { min-width: auto; min-height: 40px; padding: 0 15px; color: var(--ink); background: #fffaf2; border: 1px solid var(--line); }
.category-tags .category-button:hover, .category-tags .category-button.is-active { background: var(--lavender); border-color: var(--ink); font-weight: 800; }

.featured-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; margin-top: 48px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.game-card { width: 100%; padding: 0; overflow: hidden; color: var(--ink); text-align: left; background: #fffaf2; border: 1px solid var(--line); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.game-card:hover, .game-card:focus-visible { border-color: var(--ink); box-shadow: 7px 7px 0 var(--paper-deep); outline: 0; transform: translateY(-4px); }
.game-cover { position: relative; display: grid; min-height: 154px; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--cover-color), var(--paper) 60%); font: 900 36px/.8 Georgia, "Songti SC", serif; letter-spacing: -.08em; }
.game-cover::after { position: absolute; width: 76px; height: 76px; content: ""; border-radius: 50%; background: rgb(255 255 255 / 42%); transform: translate(33px, 31px); }
.game-cover-art { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: .12; mix-blend-mode: multiply; }
.game-cover > span { position: relative; z-index: 1; }
.game-card-body { display: block; padding: 14px; }
.game-category { color: var(--coral); font-size: 12px; font-weight: 700; }
.game-title { display: block; margin-top: 3px; overflow: hidden; font-size: 17px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.game-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.game-hot { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.game-play { flex: 0 0 auto; color: var(--navy); font-size: 12px; font-weight: 800; }
.featured-games .game-card:nth-child(1) .game-cover { background: var(--sage); }.featured-games .game-card:nth-child(2) .game-cover { background: var(--lavender); }.featured-games .game-card:nth-child(3) .game-cover { background: var(--peach); }
.featured-games .game-cover { min-height: 202px; }.featured-games .game-title { font-size: 19px; }

.weekly-list { align-self: start; padding: 25px; color: #fffaf2; background: var(--navy); }
.weekly-list .eyebrow { color: #f4d874; }.weekly-list h2 { color: #fffaf2; }
.weekly-prompts { display: grid; gap: 16px; padding: 0; margin: 24px 0; list-style: none; }
.weekly-prompts li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.weekly-prompts span { color: #f4d874; font-weight: 800; }
.weekly-prompts button { display: grid; grid-template-columns: 28px 1fr; gap: 10px; width: 100%; color: inherit; font: inherit; text-align: left; }
.paper-note { display: grid; gap: 3px; padding: 13px; color: var(--ink); background: #f4e5c7; font-size: 12px; }
.paper-note strong { font: 700 17px/1.15 Georgia, "Songti SC", serif; }
.side-divider { height: 1px; margin: 26px 0; background: rgb(255 255 255 / 28%); }
.recommendation-list { display: grid; }.recommendation-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 0; color: #e7e9f3; text-align: left; background: transparent; border: 0; border-bottom: 1px solid rgb(255 255 255 / 16%); }
.recommendation-item:hover { color: #f4d874; }.recommendation-badge { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; color: var(--ink); background: #f4d874; font-size: 11px; font-weight: 900; }.recommendation-copy { min-width: 0; display: flex; gap: 7px; align-items: baseline; }.recommendation-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.recommendation-copy small { color: #bdc5e0; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 27px; }.page-button { min-width: 42px; min-height: 42px; color: var(--ink); background: #fffaf2; border: 1px solid var(--line); }.page-button.is-active { color: #fffaf2; background: var(--navy); border-color: var(--navy); font-weight: 800; }.empty-state { grid-column: 1 / -1; padding: 54px 16px; color: var(--muted); text-align: center; border: 1px dashed var(--line); }.empty-state button { min-height: 40px; padding: 0 14px; color: #fffaf2; background: var(--navy); border: 0; font-weight: 800; }.site-footer { padding: 20px 0 84px; color: var(--muted); font-size: 12px; text-align: center; }.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; padding: 12px 16px; color: #fffaf2; background: var(--navy); box-shadow: 5px 5px 0 var(--peach); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity 180ms ease, transform 180ms ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }.mobile-bottom-nav { display: none; }
.auth-dialog { width: min(100% - 32px, 430px); padding: 0; color: var(--ink); background: #fffaf2; border: 1px solid var(--ink); box-shadow: 9px 9px 0 var(--peach); }
.auth-dialog::backdrop { background: rgb(31 41 61 / 58%); }
.auth-form { display: grid; gap: 15px; padding: 26px; }
.auth-dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.auth-dialog-heading h2 { margin: 0; font: 700 27px/.98 Georgia, "Songti SC", serif; }
.dialog-close { min-height: 32px; padding: 0 8px; color: var(--muted); background: transparent; border: 0; font-weight: 800; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.auth-tab { min-height: 40px; color: var(--muted); background: transparent; border: 0; font-weight: 800; }
.auth-tab.is-active { color: #fffaf2; background: var(--navy); }
.auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.auth-form input { min-height: 43px; padding: 0 11px; color: var(--ink); background: #fffdf8; border: 1px solid var(--line); }
.auth-form input:focus { border-color: var(--navy); }
.auth-error { margin: 0; padding: 9px 10px; color: #8b2f25; background: #f7ded9; font-size: 13px; }
.auth-submit { min-height: 44px; color: #fffaf2; background: var(--coral); border: 0; font-weight: 800; }
.auth-submit:disabled { cursor: wait; opacity: .62; }

@media (max-width: 900px) { .site-width { width: min(100% - 32px, 720px); }.desktop-nav { display: none; }.editorial-hero { grid-template-columns: 1fr .78fr; }.editorial-copy { padding-left: 36px; }.content-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 20px; }.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.arch { right: 80px; } }
@media (max-width: 680px) { .header-inner { gap: 8px; }.account-button { min-height: 40px; padding: 0 8px; font-size: 0; }.account-button::after { content: "账户"; font-size: 12px; }.logout-button { display: none; } }
@media (max-width: 680px) { body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }.site-width { width: calc(100% - 28px); }.header-inner { min-height: 64px; gap: 14px; }.brand { font-size: 20px; }.search-form { width: auto; min-height: 40px; flex: 1; }.search-form button { padding: 0 10px; }.categorybar-inner { width: 100%; overflow-x: auto; }.categorybar .category-button { min-width: 68px; }main { padding-top: 14px; }.editorial-hero { min-height: 470px; grid-template-columns: 1fr; }.editorial-copy { padding: 38px 26px 27px; }.editorial-copy h1 { font-size: 51px; }.editorial-art { min-height: 180px; }.sun { top: 21px; right: 49px; width: 108px; height: 108px; }.arch { right: 110px; bottom: -50px; width: 169px; height: 200px; border-width: 18px; }.leaf { bottom: 30px; left: 40px; width: 126px; height: 54px; }.dot-grid { right: 22px; bottom: 21px; }.discovery, .featured-section { margin-top: 27px; }.section-heading { align-items: start; }.section-heading h2, .weekly-list h2 { font-size: 25px; }.section-note { display: none; }.sort-controls button, .category-tags .category-button { min-height: 44px; }.category-tags { gap: 8px; }.category-tag-row { display: contents; }.featured-games { grid-template-columns: 1fr; }.featured-games .game-card { display: grid; grid-template-columns: 132px 1fr; }.featured-games .game-cover { min-height: 120px; }.featured-games .game-card-body { display: flex; flex-direction: column; justify-content: center; }.content-layout { display: block; margin-top: 35px; }.game-grid { gap: 12px; }.game-cover { min-height: 126px; }.game-card-body { padding: 11px; }.game-title { font-size: 15px; }.game-meta { display: block; margin-top: 7px; }.game-play { display: inline-block; margin-top: 5px; }.weekly-list { margin-top: 28px; }.site-footer { display: none; }.mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fffaf2; }.mobile-bottom-nav button { min-height: 60px; color: var(--muted); background: transparent; border: 0; }.mobile-bottom-nav button.is-active { color: var(--coral); font-weight: 800; }.toast { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); left: 14px; text-align: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
 .profile-entitlements { display: grid; gap: 8px; margin: 4px 0 18px; } .profile-entitlements p { margin: 0; padding: 10px 12px; background: var(--paper); border-left: 3px solid var(--coral); } .redeem-form { display: grid; gap: 12px; } .redeem-form select { width: 100%; min-height: 42px; padding: 8px; color: var(--ink); background: #fff; border: 1px solid var(--line); font: inherit; }
