@charset "UTF-8";
:root {
  --ink: #243c35;
  --muted: #52665a;
  --green: #27664c;
  --green-dark: #194b36;
  --line: #b6c4b4;
  --white: #fffefa;
  --radius: 20px;
  --shadow: 0 4px 0 #dce4d7;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #eeeae2;
  font-synthesis: none;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { max-width: 520px; min-height: 100dvh; margin: 0 auto; background: #f8f4ec; font-size: 16px; line-height: 1.65; padding-bottom: env(safe-area-inset-bottom); }
button, input, textarea { font: inherit; }
button, input, a, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #7550b4; outline-offset: 3px; }
button:disabled { cursor: not-allowed; }
.wrap { width: calc(100% - 32px); max-width: 480px; margin-inline: auto; }
main:focus { outline: none; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 40; padding: 12px; background: white; border: 2px solid var(--green); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.preview-banner { padding: 10px 16px; border-bottom: 1px solid #cfb780; background: #fff0ce; color: #69511e; text-align: center; font-size: 13px; line-height: 1.55; }
.preview-banner span { padding: 0 4px; }
.site-header { min-height: 84px; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-block: 14px; border-bottom: 2px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.brand img { width: 36px; height: 36px; border-radius: 11px; }
.brand-dot { display: none; }
.site-header nav { display: flex; gap: 8px; }
.nav-button { min-width: 52px; min-height: 48px; padding: 10px 12px; border: 1.5px solid #8ca18b; border-radius: 12px; background: var(--white); color: var(--green-dark); font-size: 14px; font-weight: 650; }
.nav-button:active { background: #e4ecdd; }
.hero { display: flex; flex-direction: column; gap: 16px; padding: 22px 0 0; }
.hero-copy { background: var(--white); border: 2px solid #a8baa4; border-radius: 22px; padding: 22px 20px; box-shadow: var(--shadow); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 8px; border: 1px solid #bfceb4; background: #edf3e6; color: #385a40; font-size: 13px; font-weight: 650; }
.tiny-star { color: #7e623a; font-size: 16px; }
.hero h1 { font-size: clamp(30px, 8.2vw, 38px); line-height: 1.35; letter-spacing: -.045em; margin: 18px 0 14px; font-weight: 850; }
.highlight { color: var(--green); white-space: nowrap; }
.hero-lead { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0; }
.hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; border: 2px solid transparent; border-radius: 13px; padding: 12px 16px; font-size: 16px; line-height: 1.4; font-weight: 700; text-align: center; transition: background .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.primary, .resource-cta { color: #fff; background: var(--green); border-color: var(--green-dark); box-shadow: 0 3px 0 #194b3622; }
.primary:hover, .resource-cta:hover { background: var(--green-dark); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 14px; border: 1.5px solid #91a68f; border-radius: 12px; background: #fffefa; color: var(--green-dark); font-size: 15px; line-height: 1.5; font-weight: 600; }
.hero-note { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 16px 0 0; }
.small-check { color: var(--green); font-weight: 800; }
.note-sep { margin: 0 3px; }
.hero-visual { margin: 0; padding: 8px 8px 14px; background: #f1eee4; border: 1.5px solid #c5bdab; border-radius: 20px; text-align: center; }
.hero-visual img { width: 100%; max-height: 220px; object-fit: contain; }
.visual-caption { display: block; margin-top: 0; padding: 0 6px; font-size: 14px; color: #655c4c; }
.resources, .how-to, .faq-section { margin-top: 32px; scroll-margin-top: 18px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.section-kicker { font-size: 13px; color: var(--muted); margin: 0 0 3px; font-weight: 600; letter-spacing: .06em; }
.section-heading h2, .receive-guide h2 { font-size: 23px; line-height: 1.4; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.small-label, .hand-note { font-size: 13px; color: var(--muted); }
.search-box { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 3px 4px 3px 14px; border: 2px solid #91a68f; border-radius: 14px; background: #fffefa; }
.search-icon { width: 14px; height: 14px; border: 2px solid #637d66; border-radius: 50%; position: relative; flex-shrink: 0; margin-right: 4px; }
.search-icon:after { content: ''; height: 6px; width: 2px; position: absolute; background: #637d66; right: -3px; bottom: -5px; transform: rotate(-40deg); }
.search-box input { width: 100%; min-width: 0; border: 0; background: none; padding: 10px 0; font-size: 16px; color: var(--ink); outline: none; }
.search-box input::placeholder { color: #687868; }
.search-box:focus-within { outline: 3px solid #b8cda9; outline-offset: 2px; }
.search-box button { min-width: 54px; min-height: 48px; flex-shrink: 0; padding: 10px; background: #e5eddf; border: 1px solid #a6b79d; color: var(--green-dark); border-radius: 10px; font-weight: 700; font-size: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.filter-chip { min-height: 48px; border: 1.5px solid #a8b5a2; border-radius: 12px; padding: 10px 13px; background: #fffefa; color: #4c604f; font-size: 14px; font-weight: 600; }
.filter-chip.active { color: #fff; background: var(--green); border-color: var(--green-dark); }
.result-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.resource-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px 12px; align-items: start; padding: 18px; background: var(--white); border: 2px solid #9fb399; border-radius: 20px; box-shadow: var(--shadow); }
.game-icon { width: 56px; height: 56px; border-radius: 16px; }
.resource-info { min-width: 0; }
.resource-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.resource-title-line h3 { font-size: 18px; line-height: 1.5; margin: 0; font-weight: 800; }
.free-tag { display: inline-block; white-space: nowrap; padding: 3px 7px; border: 1px solid #a7bd9e; background: #e9f0e2; color: #355e38; border-radius: 6px; font-size: 12px; line-height: 1.5; font-weight: 700; }
.resource-info > p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 9px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span { background: #f2f1e8; border: 1px solid #d2d2bf; border-radius: 6px; padding: 3px 7px; font-size: 12px; color: #576347; }
.resource-cta { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
.empty-state { padding: 24px 16px; border: 2px solid var(--line); border-radius: 18px; background: var(--white); text-align: center; }
.empty-state > span { color: #5e7b5c; font-size: 32px; }
.empty-state h3 { font-size: 18px; margin: 8px 0; }
.empty-state p { color: var(--muted); font-size: 15px; }
.play-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.play-steps article { position: relative; padding: 18px 16px 18px 64px; background: #fffefa; border: 1.5px solid #b0bea9; border-radius: 16px; }
.step-num { position: absolute; top: 17px; left: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #e4ecdc; border: 1px solid #9eb293; color: #375b39; font-size: 14px; font-weight: 750; }
.play-steps h3 { font-size: 17px; margin: 0 0 5px; }
.play-steps p { font-size: 15px; line-height: 1.7; margin: 0; color: var(--muted); }
.invite-strip { display: grid; gap: 16px; padding: 20px; margin-top: 28px; border: 1.5px solid #bda891; border-radius: 20px; background: #f2e8da; }
.invite-strip > div { position: relative; padding-left: 26px; }
.invite-spark { position: absolute; left: 0; top: -2px; color: #7b643e; font-size: 22px; }
.invite-strip h2 { font-size: 18px; line-height: 1.55; margin: 0 0 6px; }
.invite-strip p { font-size: 15px; color: #695a46; margin: 0; }
.secondary { background: #fffdf7; border-color: #9c866c; color: #5a4934; }
.site-footer { display: grid; gap: 16px; padding: 24px 0 28px; margin-top: 32px; border-top: 2px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 750; }
.footer-tagline { font-size: 13px; color: var(--muted); font-weight: 400; }
.footer-links { display: flex; gap: 12px; }
.footer-links button { min-height: 48px; flex: 1; border: 1.5px solid #a8b6a3; border-radius: 12px; background: #fffefa; padding: 10px 14px; color: #465e48; font-size: 14px; }
.site-footer > p { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0; }
.floating-help { display: none; }
.back-link { display: inline-flex; align-items: center; min-height: 48px; border: 1.5px solid #9fb098; border-radius: 12px; padding: 10px 14px; background: #fffefa; margin-top: 20px; font-size: 15px; font-weight: 600; color: #36573c; }
.receive-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.receive-intro h1 { font-size: clamp(28px, 7.9vw, 34px); line-height: 1.4; letter-spacing: -.04em; margin: 14px 0 12px; }
.receive-intro p { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0 0 20px; }
.download-card { padding: 18px; border: 2px solid #9db393; border-radius: 20px; background: #fffefa; box-shadow: var(--shadow); }
.download-game { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding-bottom: 18px; border-bottom: 1.5px solid var(--line); }
.download-game > img { width: 48px; height: 48px; border-radius: 14px; }
.download-game h2 { font-size: 17px; line-height: 1.5; margin: 0; }
.download-game p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 5px 0 0; }
.download-game > .free-tag { margin-top: 2px; padding: 3px 5px; }
.download-note { display: flex; gap: 9px; margin: 18px 0; padding: 14px 12px; background: #eff3e8; border: 1px solid #b6c5aa; border-radius: 12px; }
.download-note > span { font-size: 20px; color: var(--green); flex-shrink: 0; }
.download-note p { font-size: 16px; color: #415a40; margin: 0; }
.download-note strong { color: var(--green-dark); }
.download-note small { display: block; margin-top: 7px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.download-button { width: 100%; min-height: 54px; }
.download-button[aria-disabled=true], button:disabled { background: #e1e7dc; border-color: #b2bfa9; color: #58674f; box-shadow: none; opacity: 1; }
.copy-link-button { width: 100%; display: block; min-height: 48px; margin-top: 12px; padding: 10px 14px; border: 1.5px solid #91a585; border-radius: 12px; color: #3e5d36; font-size: 15px; font-weight: 650; }
.download-disclosure { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 18px 0 0; border-top: 1.5px solid var(--line); padding-top: 16px; }
.file-meta { font-size: 14px; color: var(--muted); line-height: 1.7; padding-top: 16px; overflow-wrap: anywhere; }
.extraction { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f2f4eb; font-size: 15px; }
.extraction button { min-height: 48px; min-width: 56px; padding: 10px 12px; border: 1.5px solid #98ae8e; border-radius: 10px; background: #fffefa; color: var(--green-dark); font-size: 14px; }
.receive-share { width: 100%; margin-top: 14px; }
.receive-guide { padding: 20px 18px; background: #fffefa; border: 1.5px solid var(--line); border-radius: 18px; }
.download-steps { display: grid; gap: 18px; list-style: none; padding: 0; margin: 22px 0; }
.download-steps > li { display: flex; gap: 12px; align-items: start; }
.download-steps > li > span { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; border: 1px solid #99ae8c; background: #e8efdf; color: #426738; font-size: 14px; font-weight: 750; }
.download-steps h3 { font-size: 16px; margin: 1px 0 6px; }
.download-steps p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
.guide-help { width: 100%; min-height: 52px; border: 1.5px solid #92a78b; border-radius: 12px; background: #eef3e7; padding: 12px 14px; text-align: left; color: #415f39; font-size: 15px; font-weight: 600; }
.guide-help span { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; }
.faq-list { display: grid; gap: 10px; }
details { border: 1.5px solid var(--line); border-radius: 14px; background: #fffefa; overflow: hidden; }
summary { position: relative; min-height: 56px; padding: 16px 42px 16px 15px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 650; line-height: 1.65; }
summary::-webkit-details-marker { display: none; }
summary:after { content: '+'; position: absolute; right: 15px; top: 12px; color: var(--green); font-size: 24px; font-weight: 400; }
details[open] summary { border-bottom: 1px solid var(--line); background: #f0f4e9; }
details[open] summary:after { content: '−'; }
details p { padding: 14px 15px 17px; margin: 0; font-size: 15px; line-height: 1.75; color: var(--muted); }
dialog { width: min(460px, calc(100% - 24px)); max-height: 88dvh; max-width: none; overflow-y: auto; padding: 20px; background: #fffefa; color: var(--ink); border: 2px solid #92a68d; border-radius: 20px; box-shadow: 0 18px 70px #13291e4d; overscroll-behavior: contain; }
dialog::backdrop { background: #18372ac4; backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-bottom: 1.5px solid var(--line); padding-bottom: 15px; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 20px; line-height: 1.5; margin: 0; }
.close-dialog { min-width: 48px; min-height: 48px; flex-shrink: 0; padding: 0; border: 1.5px solid #8da184; border-radius: 12px; background: #edf3e5; color: #365c2b; font-size: 28px; line-height: 1; }
.dialog-copy { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 14px 0; }
.dialog-action { width: 100%; margin-top: 16px; }
.history-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.history-list li { border: 1px solid var(--line); background: #f2f5ec; border-radius: 12px; padding: 14px; }
.history-list strong { display: block; font-size: 16px; }
.history-list time { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.history-list a { display: flex; align-items: center; min-height: 48px; margin-top: 8px; color: var(--green); font-size: 15px; font-weight: 600; }
.dialog-help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.dialog-help-list li { font-size: 15px; line-height: 1.75; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.dialog-help-list strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 7px; }
.copy-text { width: 100%; min-height: 140px; resize: vertical; padding: 14px; border: 2px solid #9aac91; border-radius: 12px; background: #f5f7f0; color: var(--ink); font-size: 16px; line-height: 1.7; }
.dialog-footnote { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 16px 0 0; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 14px 18px; border: 1px solid #fff9; border-radius: 14px; box-shadow: 0 8px 24px #132b2538; background: #193d2ef5; color: #fff; font-size: 15px; line-height: 1.6; text-align: center; }
.not-found { padding: 64px 0; text-align: center; }
.not-found h1 { font-size: 26px; }
.not-found p { font-size: 16px; color: var(--muted); }
.noscript-note { padding: 20px; border: 2px solid #ad8a38; background: #fff0c6; color: #584514; text-align: center; }
@media (min-width: 521px) { body { border-inline: 1px solid #c7cebf; box-shadow: 0 0 40px #52634c13; } }
@media (max-width: 359px) {
  .wrap { width: calc(100% - 24px); }
  .site-header { gap: 8px; }
  .brand { font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .nav-button { min-width: 48px; padding-inline: 9px; }
  .site-header nav { gap: 6px; }
  .hero-copy { padding: 20px 16px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15px; }
  .resource-card, .download-card { padding: 16px; }
  .filter-chip { padding-inline: 10px; }
  .result-count { font-size: 12px; }
  .download-game { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; }
  .download-game > img { width: 44px; height: 44px; }
  .download-game h2 { font-size: 16px; }
  .footer-tagline { width: 100%; padding-left: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
  .button:active { transform: none; }
}

/* Resource collection: a single readable list on every phone. */
.catalog-hero { padding-top: 16px; }
.catalog-hero .hero-copy { padding: 16px; }
.catalog-hero h1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 24px; margin: 0 0 6px; line-height: 1.4; }
.catalog-hero h1 > span { color: #8b6e40; font-size: 23px; }
.catalog-hero .hero-lead { font-size: 15px; }
.catalog-hero + .resources { margin-top: 22px; }
.catalog-overview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.catalog-overview span { padding: 6px 9px; border: 1px solid #a5b59b; border-radius: 8px; background: #edf2e5; color: #3d5c37; font-size: 13px; font-weight: 600; }
.catalog-game-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 12px; border: 1.5px solid #9bae91; border-radius: 12px; background: #fffefa; color: #3b5f33; font-size: 14px; font-weight: 600; }
.catalog-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.catalog-filters .filter-chip { padding-inline: 5px; min-width: 48px; }
.catalog-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.catalog-status #resultCount { font-weight: 700; color: #38583b; }
.resource-list { display: grid; gap: 16px; }
.resource-kind { display: inline-block; padding: 3px 7px; background: #edf2e7; border: 1px solid #b5c3a8; border-radius: 6px; color: #47613c; font-size: 12px; font-weight: 600; }
.resource-status { grid-column: 1 / -1; margin: 0; border-top: 1px solid #bfccb9; padding-top: 12px; color: #52665a; font-size: 14px; line-height: 1.6; }
.resource-cta.secondary-entry { background: #edf3e7; border-color: #8fa783; color: #2d5431; box-shadow: none; }
.resource-cta.secondary-entry:active { background: #dfe9d6; }
.resource-detail-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.resource-detail-head img { width: 64px; height: 64px; flex-shrink: 0; }
.resource-detail-head .dialog-copy { margin: 0; }
.miniapp-name { padding: 16px; border: 1.5px solid #9db18f; border-radius: 12px; background: #f1f5e9; margin-top: 16px; }
.miniapp-name span { display: block; color: #52665a; font-size: 14px; margin-bottom: 4px; }
.miniapp-name strong { display: block; font-size: 24px; color: #27664c; }
.resource-pending-title { border: 1px solid #bca67d; border-radius: 10px; padding: 12px; background: #fff0d0; font-size: 15px; color: #6b5220; font-weight: 700; }
.dialog-status { margin-top: 14px; padding: 12px 14px; border: 1px solid #153e2b; border-radius: 12px; background: #27664c; color: #fff; font-size: 15px; line-height: 1.6; }
@media (max-width: 359px) { .catalog-hero .hero-copy { padding: 14px; } .catalog-hero h1 { font-size: 22px; } .catalog-status { font-size: 13px; } }
