@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');
:root{font-family:'Noto Sans SC',system-ui,sans-serif;color:#182d2b;background:#f6f7f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{max-width:1360px;margin:auto;height:88px;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dbe3dd}a{color:inherit;text-decoration:none}.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:19px}.brand small{font-size:10px;letter-spacing:2px;color:#74847e;margin-left:12px}.logo{display:grid;place-items:center;width:34px;height:34px;background:#155e49;color:white;border-radius:10px}.source{font-size:12px;color:#677771}main{max-width:1360px;padding:0 48px;margin:auto}.hero{display:flex;justify-content:space-between;align-items:center;padding:64px 0 44px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.4px;color:#497368;display:flex;gap:9px;align-items:center}.dot{width:7px;height:7px;border-radius:50%;background:#388965}h1{font-size:clamp(36px,4.2vw,58px);line-height:1.3;letter-spacing:-2px;margin:22px 0}h1 em{font-style:normal;color:#28765b}.hero p{font-size:13px;line-height:2;color:#71817a}.hero-meta{border-left:1px solid #d2dfd6;padding-left:48px;margin-right:50px}.hero-meta>span{font-size:11px;color:#71817a}.hero-meta strong{font-size:68px;display:block;font-weight:500;line-height:1.3}.stats{display:grid;grid-template-columns:repeat(4,1fr);padding:24px 0;background:#eaf0e8;border:1px solid #dce6d9;border-radius:12px}.stats>div{padding-left:30px;border-right:1px solid #d3dfd1}.stats>div:last-child{border:0}.stats span{font-size:11px;color:#6a7a71;display:block}.stats strong{font-size:30px;margin-top:8px;display:block;font-weight:600}.stats .date-stat{font-size:22px;padding-top:8px}.workspace{padding:48px 0}.section-heading{display:flex;justify-content:space-between;align-items:flex-end}h2{font-size:25px;margin:9px 0 20px}.section-heading p{font-size:11px;color:#7c8982;margin-bottom:24px}.filters{display:flex;gap:16px;padding:20px;background:#fff;border:1px solid #e0e6de;border-radius:12px}label{font-size:10px;color:#73827b;display:flex;flex-direction:column;gap:7px;min-width:145px}.search{flex:1}select,input{font:inherit;font-size:12px;color:#253b31;border:1px solid #dfe5dd;border-radius:7px;background:#fafbf8;padding:11px;min-width:0;width:100%}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid #328366;outline-offset:3px}.results-line{display:flex;justify-content:space-between;font-size:11px;color:#89968b;margin:22px 0}.results-line span:first-child{color:#3e5b49;font-weight:600}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.card{background:#fff;border:1px solid #e0e6de;border-radius:14px;overflow:hidden;transition:transform .2s}.card:hover{transform:translateY(-3px)}.cover{height:184px;background:linear-gradient(135deg,#c8d9cc,#eaf0d9);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.cover>img{width:100%;height:100%;object-fit:cover}.cover>img.icon-cover{width:84px;height:84px;border-radius:20px;box-shadow:0 8px 30px #244b3322}.badge{position:absolute;top:14px;left:14px;background:#fffef1ee;border-radius:5px;padding:4px 8px;font-size:10px;font-weight:600}.cover button{border:0;padding:0;width:100%;height:100%;background:transparent;cursor:zoom-in}.cover button img{width:100%;height:100%;object-fit:cover}.body{padding:20px}.identity{display:flex;gap:12px;align-items:center}.identity img{width:42px;height:42px;border-radius:11px}.identity div{min-width:0}h3{font-size:16px;margin:0 0 4px;line-height:1.5}.developer{font-size:10px;color:#859187;overflow-wrap:anywhere}.description{font-size:12px;line-height:1.9;color:#6c7a71;white-space:pre-line}.store-dates{display:flex;gap:8px 18px;flex-wrap:wrap;font-size:11px;color:#5e6e64;margin:16px 0}.observed-date{font-size:10px;color:#718578;margin:12px 0}.chips{display:flex;gap:6px;flex-wrap:wrap}.chip{font-size:10px;padding:4px 7px;border-radius:5px;background:#edf4eb;color:#456c50}.facts{display:flex;gap:15px;margin:16px 0;font-size:11px;color:#5e6e64}.screens{display:flex;gap:6px;overflow-x:auto;margin:16px 0}.screens button{padding:0;border:1px solid #e5e9e2;border-radius:5px;background:#f4f7f0;flex-shrink:0;cursor:zoom-in}.screens img{display:block;width:48px;height:74px;object-fit:cover;border-radius:5px}.card-bottom{border-top:1px solid #eef1ea;padding-top:13px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#9ba59c}.store{font-weight:600;color:#267054;font-size:11px}details{font-size:11px;color:#7b887f;margin-top:12px}details p{line-height:1.9;overflow-wrap:anywhere}#status{text-align:center;font-size:13px;color:#6e7d70;margin:30px 0}#status:empty{display:none}footer{border-top:1px solid #dee5d9;padding:25px 0 32px;display:flex;justify-content:space-between;color:#83917f;font-size:10px}dialog{border:0;border-radius:14px;padding:30px;max-width:90vw;background:#fff}dialog::backdrop{background:#13271ddd}dialog img{max-width:80vw;max-height:76vh;object-fit:contain}dialog button{position:absolute;right:8px;top:5px;background:transparent;border:0;font-size:28px;cursor:pointer}dialog p{font-size:12px;margin-bottom:0}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-meta{margin-right:0}.filters{flex-wrap:wrap}label{flex:1}.search{flex-basis:40%}}@media(max-width:640px){header{padding:0 20px;height:70px}main{padding:0 20px}.brand small{display:none}.hero{padding:36px 0}.hero-meta{display:none}.stats{grid-template-columns:repeat(2,1fr);gap:20px}.stats>div{padding-left:20px}.stats>div:nth-child(2){border:0}.stats .date-stat{font-size:18px}.grid{grid-template-columns:1fr}.section-heading{display:block}.section-heading p{margin-top:0}.filters{gap:12px;padding:15px}label{min-width:110px}.search{flex-basis:100%}.results-line{gap:10px;line-height:1.7}.results-line span:last-child{max-width:180px;text-align:right}.cover{height:220px}footer{line-height:2;display:block}footer span{display:block}}

.date-filter{min-width:240px;display:flex;flex-direction:column;gap:7px}.date-filter label{min-width:0}.date-navigation{display:flex;align-items:stretch;gap:6px}.date-navigation select{flex:1;width:150px}.date-navigation button{width:32px;flex-shrink:0;border:1px solid #dfe5dd;border-radius:7px;background:#fafbf8;color:#28765b;font-size:24px;cursor:pointer}.date-navigation button:hover:enabled{background:#eaf0e8}.date-navigation button:disabled{opacity:.35;cursor:default}@media(max-width:1000px){.date-filter{flex:1}}@media(max-width:640px){.date-filter{flex-basis:100%;min-width:0}}
/* Keep the controls and game list close to the top. */
header{height:56px}.hero{padding:16px 0;gap:20px}.hero h1{font-size:24px;line-height:1.4;letter-spacing:-.5px;margin:0}.hero p{margin:0;font-size:11px}.stats{padding:12px 0}.stats>div{display:flex;align-items:center;gap:16px;padding-left:22px}.stats strong,.stats .date-stat{font-size:20px;margin:0;padding:0}.workspace{padding:20px 0}.section-heading .eyebrow{display:none}h2{font-size:21px;margin:0 0 12px}.section-heading p{margin:0 0 12px}.filters{padding:12px;gap:12px}.results-line{margin:16px 0}.persistent-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:12px;margin-top:10px;background:#edf2eb;border:1px solid #dce6d9;border-radius:10px}.persistent-filters label{min-width:180px}.persistent-filters button,.bottom-navigation>button{font:inherit;font-size:12px;padding:11px 16px;border:1px solid #ccdace;border-radius:7px;background:white;color:#28765b;cursor:pointer}.persistent-filters p{flex:1;min-width:220px;font-size:10px;line-height:1.7;color:#697d6e;margin:0}.bottom-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding:16px;background:#eaf0e8;border:1px solid #dce6d9;border-radius:12px}.bottom-navigation .date-filter{flex:none}.cover .cover-arrow{position:absolute;top:50%;transform:translateY(-50%);width:32px;height:44px;background:#143326cc;color:white;border-radius:7px;font-size:28px;cursor:pointer;z-index:1}.previous{left:8px}.next{right:8px}.image-position{position:absolute;bottom:10px;right:12px;padding:3px 8px;border-radius:5px;background:#143326cc;color:white;font-size:10px;pointer-events:none}.badge{pointer-events:none}.cover>button:not(.cover-arrow) img{object-fit:contain}.viewer-arrow{top:50%;transform:translateY(-50%);background:#143326dd;color:white;border-radius:7px;width:38px;height:48px}.viewer-arrow.previous{left:5px;right:auto}.viewer-arrow.next{right:5px}dialog{padding:30px 48px}dialog img{display:block;max-width:calc(90vw - 96px)}button:hover:enabled{filter:brightness(.96)}
@media(max-width:1000px){.stats>div{gap:8px;padding-left:12px}.stats .date-stat{font-size:16px}.hero{align-items:flex-start;flex-direction:column;gap:4px}.bottom-navigation .date-filter{min-width:220px}}
@media(max-width:640px){header{height:52px}.hero{padding:12px 0}.hero h1{font-size:21px}.hero p{font-size:10px}.stats{gap:12px;padding:12px 0}.stats>div{padding-left:12px}.stats strong,.stats .date-stat{font-size:17px}.workspace{padding:16px 0}.section-heading p{line-height:1.7}.persistent-filters label{flex:1;min-width:120px}.persistent-filters p{flex-basis:100%}.bottom-navigation{padding:12px;gap:8px}.bottom-navigation .date-filter{min-width:0;flex:1}.bottom-navigation>button{padding:11px 9px;white-space:nowrap}.bottom-navigation .date-navigation select{width:120px}.grid{gap:16px}dialog{padding:30px 40px}dialog img{max-width:calc(90vw - 80px)}}

@media(max-width:640px){.filters .search{order:3}}

/* ---------- Card actions: poster / Feishu / favorite ---------- */
.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto;margin-right:20px}
.pill-button{font:inherit;font-size:12px;font-weight:600;padding:8px 14px;border-radius:20px;border:1px solid #cfdcd3;background:#fff;color:#267054;cursor:pointer;white-space:nowrap}
.pill-button:hover{background:#eaf0e8}
#favorite-count{display:inline-block;min-width:18px;margin-left:4px;padding:0 5px;border-radius:9px;background:#e6f2ea;color:#267054;font-size:10px;line-height:16px;text-align:center}
.card-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #eef1ea;padding-top:12px;margin-top:14px}
.card-actions .action{flex:1 1 auto}
.action{font:inherit;font-size:11px;font-weight:600;padding:8px 10px;border-radius:7px;border:1px solid #d9e2da;background:#fafbf8;color:#2c5b47;cursor:pointer;white-space:nowrap;text-align:center}
.action:hover:enabled{background:#eef4ec;border-color:#c3d6c8}
.action:disabled{opacity:.65;cursor:progress}
.action.favorite.on{background:#fdeef0;border-color:#f0c2c9;color:#b3263d}
.favorited-at{font-size:10px;color:#8a9a8d;margin:12px 0}

/* ---------- Settings and favorites dialogs ---------- */
dialog.sheet{width:min(560px,calc(100vw - 32px));max-height:86vh;padding:0;border-radius:16px;overflow:hidden;flex-direction:column;background:#f6f7f3}
dialog.sheet[open]{display:flex}
dialog.sheet-wide{width:min(1120px,calc(100vw - 32px))}
.sheet button{position:static;right:auto;top:auto;font-size:12px;border-radius:7px;cursor:pointer}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #e6ece3;background:#fbfcf9;flex-shrink:0}
.sheet-head h2{margin:0;font-size:18px}
.sheet-head p{margin:4px 0 0}
.sheet-head-actions{display:flex;align-items:center;gap:8px}
.sheet-head-actions input{width:220px;padding:8px 10px;font-size:12px}
.sheet-close{width:34px;height:34px;flex-shrink:0;border:1px solid #dfe5dd;border-radius:9px;background:#fff;color:#3b5a4a;font-size:20px;line-height:1;cursor:pointer}
.sheet-body{padding:18px 20px;overflow:auto}
.setting-block{border:1px solid #e6ece3;border-radius:12px;padding:16px;margin-bottom:14px;background:#fff}
.setting-block:last-child{margin-bottom:0}
.setting-block h3{margin:0 0 6px;font-size:14px}
.setting-block .hint{font-size:11px;line-height:1.8;color:#7b887f;margin:0 0 12px}
.setting-block code{padding:1px 5px;border-radius:4px;background:#eef4ec;color:#2c5b47;font-size:10px}
.setting-block label{display:flex;flex-direction:column;gap:6px;min-width:0;margin-bottom:12px;font-size:10px;color:#73827b}
.setting-block label.inline{flex-direction:row;align-items:center;gap:10px;margin:0;font-size:12px;color:#5e6e64}
.setting-block label.inline input{flex:1;max-width:220px}
.setting-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.setting-row button{font:inherit;font-size:12px;font-weight:600;padding:9px 14px;border:1px solid #ccdace;border-radius:7px;background:#fff;color:#28765b;cursor:pointer}
.setting-row button.primary{background:#27715a;border-color:#27715a;color:#fff}
.setting-status{font-size:11px;color:#7b887f}
.setting-status.ok{color:#1f7a4f}
.setting-status.warn{color:#b3541e}
.favorites-grid{margin-top:14px}
.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);max-width:min(560px,92vw);padding:11px 16px;border-radius:10px;background:#14332aee;color:#f4f8f1;font-size:12px;line-height:1.6;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:60}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast.warn{background:#8a3b1fee}
@media(max-width:640px){.source{display:none}.header-actions{margin-right:0;gap:6px}.pill-button{padding:7px 10px}.sheet-head-actions input{width:120px}.sheet-body{padding:14px}}
