:root {
  --paper: #f6f5ef;
  --ink: #2d463c;
  --muted: #677568;
  --line: #dce1d5;
  --green: #345e4b;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
button, input { font: inherit; }
button, a, input, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #a77a40; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.skip-link { position: fixed; z-index: 50; top: 8px; left: 12px; padding: 10px 18px; background: var(--green); color: white; transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header, main { width: min(100% - 80px, 1240px); margin-inline: auto; }
.site-header { height: 96px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.identity { display: flex; align-items: center; gap: 13px; flex: none; }
.identity-mark { position: relative; width: 41px; height: 42px; display: block; }
.identity-mark i { position: absolute; inset: 4px 3px; background: #afbd9c; border: 2px solid var(--paper); border-radius: 8px; transform: rotate(-15deg); }
.identity-mark i:nth-child(2) { transform: rotate(8deg); background: var(--green); }
.identity-mark b { position: absolute; inset: 7px 0 0 7px; color: var(--paper); font-size: 24px; font-weight: 400; }
.identity-name { font-size: 24px; font-weight: 650; letter-spacing: 2px; line-height: 1.3; }
.identity-name small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .7px; color: var(--muted); margin-top: 6px; }
.header-nav { display: flex; align-items: center; gap: 25px; font-size: 13px; }
.nav-link, .quiet-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; background: transparent; }
.quiet-button { color: var(--muted); padding: 8px 0; }
.quiet-button > span { border: 1px solid #aeb8a4; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 11px; }
.intro { padding: 44px 0 37px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.intro-note { color: var(--muted); font-size: 12px; margin-bottom: 9px; }
.intro h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 650; letter-spacing: .5px; line-height: 1.4; }
.intro-subtitle { color: var(--muted); font-size: 14px; margin-top: 11px; }
.browse-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; padding: 8px 0 8px 12px; white-space: nowrap; font-size: 13px; }
.browse-link span { font-size: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .planned-heading h2 { font-size: 22px; font-weight: 600; letter-spacing: .3px; }
.section-heading p, .planned-heading p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.section-aside { color: var(--muted); font-size: 12px; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.reveal-item { min-width: 0; }
.reveal-item > .featured-card, .reveal-item > .game-card, .reveal-item > .planned-card { height: 100%; }
.sage { --tint: #e0e8d5; --art: #67805d; --subtle: #c1cfb4; }
.blue { --tint: #e1ebed; --art: #648b97; --subtle: #c4d7db; }
.sand { --tint: #eee6d3; --art: #a18455; --subtle: #ded0ad; }
.lavender { --tint: #e8e4ee; --art: #9285a6; --subtle: #d1c9dc; }
.rose { --tint: #eee2db; --art: #a58273; --subtle: #e1cdc0; }
.mint { --tint: #e0eae0; --art: #719674; --subtle: #c3d7c4; }
.featured-card { min-width: 0; border-radius: 18px; overflow: hidden; border: 1px solid #d8e0cf; background: #fcfcf7; }
.featured-grid[data-count="1"] .featured-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.featured-art { background: var(--tint); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 29px 35px 22px; min-height: 230px; }
.featured-art .card-art { width: 100%; max-width: 420px; }
.art-caption { font-size: 12px; color: #526947; margin-top: 5px; }
.featured-copy { padding: 27px 30px 28px; }
.topic-label { font-size: 11px; color: var(--muted); }
.featured-copy h3 { font-size: 28px; line-height: 1.4; font-weight: 600; margin-top: 5px; }
.featured-question { font-size: 17px; margin-top: 7px; }
.featured-description { font-size: 13px; color: var(--muted); line-height: 1.9; margin-top: 10px; max-width: 46em; }
.knowledge-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 15px; }
.knowledge-tags span { background: #edf0e7; color: #5e7254; border-radius: 4px; padding: 3px 8px; font-size: 11px; }
.featured-action { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 21px; }
.primary-button, .secondary-button { min-height: 45px; padding: 11px 18px; border-radius: 9px; font-size: 14px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; cursor: pointer; }
.primary-button { background: var(--green); color: #fafbf4; }
.primary-button > span { font-size: 18px; line-height: 1; }
.secondary-button { background: #e9eee2; color: var(--green); }
.duration { font-size: 11px; color: var(--muted); }
.library-section { margin-top: 49px; scroll-margin-top: 25px; }
.count-badge { vertical-align: middle; display: inline-block; margin-left: 7px; font-size: 12px; font-weight: 500; color: #607653; background: #e7ecdf; border-radius: 14px; padding: 1px 9px; }
.library-heading { flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.category-anchor { height: 0; scroll-margin-top: 0; }
.library-toolbar { position: sticky; top: 0; z-index: 20; padding: 10px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.categories { display: flex; align-items: center; flex-wrap: nowrap; gap: 5px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 7px; margin: -7px; }
.categories::-webkit-scrollbar { display: none; }
.categories button { flex: none; background: transparent; color: var(--muted); border-radius: 22px; padding: 10px 14px; min-height: 42px; font-size: 12px; white-space: nowrap; }
.categories button.selected { background: var(--green); color: #f7f8ef; }
.search-box { display: flex; align-items: center; gap: 9px; background: #fcfcf8; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 258px; min-height: 44px; }
.search-box:focus-within { border-color: #78926c; box-shadow: 0 0 0 3px #78926c1f; }
.search-box svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #7a8974; stroke-width: 1.7; }
.search-box input { width: 100%; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); font-size: 12px; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: #7b8677; }
.result-summary { font-size: 12px; color: var(--muted); padding: 16px 0; min-height: 51px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.game-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #dce2d3; border-radius: 13px; overflow: hidden; background: #fcfcf8; transition: border-color 150ms ease, box-shadow 150ms ease; }
.game-art { position: relative; background: var(--tint); padding: 12px 25px; aspect-ratio: 1.95; display: grid; place-items: center; }
.game-art .card-art { height: 100%; max-height: 174px; width: 100%; }
.play-mark { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ffffffab; border-radius: 50%; background: #f7faefad; color: #526b47; }
.game-copy { padding: 16px 18px 17px; flex: 1; display: flex; flex-direction: column; }
.game-copy h3 { font-size: 21px; font-weight: 600; line-height: 1.45; margin-top: 3px; }
.game-question { font-size: 12px; color: #657460; line-height: 1.7; margin-top: 7px; flex: 1; }
.game-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; color: var(--muted); font-size: 10px; margin-top: 17px; padding-top: 12px; border-top: 1px solid #e7ebdf; }
.card-art { display: block; overflow: visible; }
.card-art .art-road { fill: none; stroke: var(--art); stroke-linecap: round; stroke-linejoin: round; }
.card-art .art-node { fill: var(--tint); stroke: var(--art); stroke-width: 2.5; }
.card-art .art-label { font: 12px "Segoe UI", sans-serif; fill: var(--art); text-anchor: middle; }
.card-art .art-fill { fill: var(--art); }
.card-art .art-subtle { fill: var(--subtle); }
.card-art .art-cream { fill: #fafbf2; }
.card-art text { pointer-events: none; }
.empty-state { border: 1px dashed #ccd5c2; border-radius: 13px; padding: 28px 18px; text-align: center; }
.empty-symbol { display: block; color: #93a286; font-size: 32px; line-height: 1.2; }
.empty-state h3 { font-size: 18px; font-weight: 500; margin-top: 9px; }
.empty-state p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.empty-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.text-button { padding: 10px 8px; min-height: 44px; background: transparent; color: var(--green); font-size: 13px; }
.planned-section { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 27px; scroll-margin-top: 24px; }
.planned-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px 24px; }
.planned-heading h2 { font-size: 19px; }
.planned-count { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 9px; display: inline-block; }
.check-control { position: relative; display: inline-flex; gap: 9px; align-items: center; min-height: 44px; cursor: pointer; color: #5b6f51; font-size: 12px; }
.check-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.check-visual { width: 20px; height: 20px; border: 1px solid #93a286; border-radius: 5px; display: grid; place-items: center; background: #fcfcf7; transition: background-color 120ms ease, border-color 120ms ease; flex: none; }
.check-visual svg { width: 18px; height: 18px; fill: none; stroke: #fafbf4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check-visual path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 200ms var(--ease-out); }
.check-input:checked + .check-visual { background: var(--green); border-color: var(--green); }
.check-input:checked + .check-visual path { stroke-dashoffset: 0; }
.check-input:focus-visible + .check-visual { outline: 3px solid #a77a40; outline-offset: 4px; }
.planned-filter-note { font-size: 12px; color: var(--muted); margin: 23px 0 16px; }
.planned-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.planned-card { min-width: 0; border: 1px solid #e0e4d8; border-radius: 12px; padding: 17px 19px 19px; background: #f9f9f3; }
.planned-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.planned-label { font-size: 10px; color: #78836e; border: 1px solid #dce3d2; border-radius: 10px; padding: 1px 7px; }
.planned-art { width: 100%; height: 108px; display: flex; align-items: center; justify-content: center; margin: 8px 0 12px; }
.planned-art .card-art { width: 100%; height: 100%; }
.planned-card h3 { font-size: 18px; font-weight: 550; }
.planned-card > p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.planned-model { display: block; font-size: 10px; color: #7a8771; margin-top: 13px; }
.planned-empty { font-size: 13px; color: var(--muted); padding: 15px 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 37px; padding: 24px 0 29px; color: var(--muted); font-size: 11px; }
.site-footer i { color: #a3af98; margin: 0 9px; font-style: normal; }
.pressable { transform-origin: center; touch-action: manipulation; }
.pressable.is-pressed { transform: scale(.96); }
dialog { width: min(540px, calc(100% - 36px)); max-height: 85vh; overflow: auto; border: 1px solid #d8dfce; border-radius: 17px; background: var(--paper); padding: 33px; color: var(--ink); box-shadow: 0 24px 80px #233e332d; }
dialog::backdrop { background: #233e3359; backdrop-filter: blur(3px); }
.close-dialog { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; background: transparent; color: var(--muted); font-size: 27px; }
dialog h2 { margin: 7px 20px 23px 0; font-size: 25px; font-weight: 600; }
dialog ol { display: grid; gap: 20px; padding-left: 24px; }
dialog li { padding-left: 5px; font-size: 14px; }
dialog li::marker { color: #789169; }
dialog li p { font-size: 13px; line-height: 1.9; color: var(--muted); margin-top: 5px; }
.dialog-note { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 24px; font-size: 12px; color: var(--muted); }
dialog .primary-button { width: 100%; margin-top: 22px; }
.no-script { padding: 30px; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .game-card:hover { border-color: #9eaf91; box-shadow: 0 6px 18px #374d3310; }
  .primary-button:hover { background: #294d3c; }
  .secondary-button:hover { background: #e0e8d6; }
  .categories button:hover:not(.selected) { background: #e9eee2; }
  .nav-link:hover, .browse-link:hover, .text-button:hover { color: #1c4d31; }
}
@media (min-width: 1440px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .site-header, main { width: calc(100% - 48px); }
  .featured-grid[data-count="1"] .featured-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .featured-art { padding: 22px; }
  .featured-copy { padding: 24px; }
  .featured-copy h3 { font-size: 25px; }
  .featured-question { font-size: 16px; }
  .featured-action { gap: 12px; }
  .library-heading .search-box { min-width: 0; }
  .game-grid, .planned-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-header { height: 83px; }
  .identity-name { font-size: 22px; }
  .identity-name small { font-size: 10px; }
  .header-nav { gap: 16px; font-size: 12px; }
  .intro { padding: 30px 0; }
  .intro h1 { font-size: 29px; }
  .intro-subtitle { font-size: 13px; }
  .browse-link { display: none; }
  .section-heading h2 { font-size: 20px; }
  .section-heading p { font-size: 12px; }
  .section-heading { margin-bottom: 15px; }
  .featured-grid[data-count="1"] .featured-card { grid-template-columns: 1fr; }
  .featured-grid:not([data-count="1"]) {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(86%, 340px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 2px 12px;
    gap: 13px;
  }
  .featured-grid:not([data-count="1"]) .reveal-item { scroll-snap-align: start; }
  .featured-art { min-height: 170px; padding: 16px 27px 13px; }
  .featured-art .card-art { max-width: 325px; height: 151px; }
  .art-caption { font-size: 11px; margin-top: 3px; }
  .featured-copy { padding: 22px; }
  .featured-copy h3 { font-size: 26px; }
  .featured-description { font-size: 12px; }
  .featured-action { margin-top: 18px; }
  .library-section { margin-top: 33px; }
  .categories { gap: 3px; }
  .categories button { padding: 8px; min-height: 40px; font-size: 11px; }
  .library-heading .search-box { width: 100%; }
  .game-grid, .planned-grid { gap: 13px; }
  .game-art { padding: 7px 9px; aspect-ratio: 1.6; }
  .play-mark { width: 23px; height: 23px; right: 8px; bottom: 8px; font-size: 12px; }
  .game-copy { padding: 12px; }
  .game-copy h3 { font-size: 18px; }
  .game-question { font-size: 11px; }
  .game-meta { margin-top: 12px; padding-top: 9px; gap: 3px; flex-direction: column; align-items: flex-start; }
  .topic-label { font-size: 10px; }
  .planned-section { margin-top: 32px; padding-top: 22px; }
  .planned-heading { align-items: flex-start; gap: 10px; }
  .planned-heading h2 { font-size: 18px; }
  .planned-heading p { font-size: 12px; }
  .planned-count { font-size: 10px; margin-left: 5px; }
  .planned-card { padding: 12px; }
  .planned-art { height: 85px; }
  .planned-card h3 { font-size: 16px; }
  .planned-card > p { font-size: 11px; }
  .site-footer { font-size: 10px; padding-top: 20px; margin-top: 27px; }
  .site-footer i { margin: 0 5px; }
  dialog { padding: 27px 23px; }
}
@media (max-width: 380px) {
  .site-header, main { width: calc(100% - 32px); }
  .header-nav { gap: 10px; }
  .quiet-button { font-size: 11px; }
  .nav-link { font-size: 11px; }
  .identity { gap: 8px; }
  .intro h1 { font-size: 25px; }
  .intro-subtitle { font-size: 12px; }
  .game-grid, .planned-grid { grid-template-columns: 1fr; }
  .game-art { aspect-ratio: 2; }
  .game-meta { flex-direction: row; gap: 12px; }
  .planned-art { height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item { transform: none !important; opacity: 1 !important; }
  .pressable.is-pressed { transform: none; }
  .check-visual path { transition: none; }
  .check-visual { transition-duration: 80ms; }
  .game-card { transition: none; }
}
