.cm-page {
  --cm-muted: #60695c;
  --cm-border: var(--line, #dfdfd6);
  --cm-warm: #f5f2e9;
  color: var(--ink, #222820);
  width: min(100%, 900px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 3.5vw, 36px) 32px;
  overflow-wrap: anywhere;
}
.cm-page *, .cm-page { box-sizing: border-box; }
.cm-page [hidden] { display: none !important; }
.cm-page h1,.cm-page h2,.cm-page h3,.cm-page p,.cm-page dl { margin: 0; }
.cm-page h1,.cm-page h2,.cm-page h3 { color: inherit; line-height: 1.35; }
.cm-page a { color: inherit; text-decoration: none; }
.cm-page button,.cm-page input { font: inherit; }
.cm-page button { cursor: pointer; }
.cm-page button:focus-visible,.cm-page a:focus-visible,.cm-page input:focus-visible { outline: 3px solid #c83d13; outline-offset: 3px; }
.cm-page .cm-list-head { margin: 0 0 22px; }
.cm-page h1 { font-size: clamp(1.9rem, 5.5vw, 3.3rem); font-weight: 850; letter-spacing: -.045em; }
.cm-list-head p,.cm-detail-head > p { color: var(--cm-muted); font-size: 1rem; line-height: 1.7; margin-top: 7px; }
.cm-back { color: var(--cm-muted) !important; display: inline-flex; align-items: center; min-height: 40px; font-size: .9rem; margin: -6px 0 10px; }
.cm-back:hover,.cm-plain-btn:hover { text-decoration: underline; }
.cm-icon { flex: 0 0 18px; width: 18px; height: 18px; vertical-align: middle; }
.cm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 20px; }
.cm-filters a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 15px; border-radius: 24px; font-size: .94rem; font-weight: 650; background: white; border: 1px solid var(--cm-border); }
.cm-filters a[aria-current="page"] { background: #263027; color: white; border-color: #263027; }
.cm-directory,.cm-event-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 275px),1fr)); gap: 14px; }
.cm-group-card,.cm-event-card,.cm-panel,.cm-cup-row,.cm-cup-feature { background: white; border: 1px solid var(--cm-border); border-radius: 17px; }
.cm-group-card,.cm-event-card,.cm-cup-row,.cm-cup-feature { transition: border-color .15s,background .15s; }
.cm-group-card:hover,.cm-event-card:hover,.cm-cup-row:hover,.cm-cup-feature:hover { border-color: #929987; }
.cm-group-card { display: flex; flex-direction: column; padding: 17px; }
.cm-group-top,.cm-tag-row,.cm-card-foot,.cm-card-foot span,.cm-feature-date,.cm-contact,.cm-plain-btn,.cm-cta,.cm-section-head,.cm-meta-line { display: flex; align-items: center; gap: 8px; }
.cm-group-top,.cm-card-foot,.cm-section-head,.cm-contact { justify-content: space-between; }
.cm-group-top { margin-bottom: 12px; }
.cm-region,.cm-kind,.cm-demo { width: fit-content; font-size: .81rem; font-weight: 650; line-height: 1.35; }
.cm-region { display: inline-flex; padding: 5px 10px; border-radius: 6px; letter-spacing: .03em; color: #553722; background: #ffe2c6; }
.cm-region.green { color: #40542a; background: #deeac9; }
.cm-region.lilac { color: #514564; background: #e9e1ef; }
.cm-region.blue { color: #36535d; background: #dbecef; }
.cm-demo { padding: 3px 7px; border: 1px solid #dbddd3; border-radius: 5px; color: #656c60; background: #fff; white-space: nowrap; }
.cm-kind { color: #9a381c; }
.cm-group-card h2,.cm-page .cm-event-card h2,.cm-cup-feature h3 { font-size: 1.25rem; font-weight: 770; }
.cm-group-card > p,.cm-event-copy > p,.cm-cup-feature p,.cm-cup-row p { font-size: .94rem; color: var(--cm-muted); line-height: 1.6; margin: 7px 0 13px; }
.cm-card-foot { border-top: 1px solid #eceee6; padding-top: 12px; margin-top: auto; font-size: .85rem; color: var(--cm-muted); }
.cm-card-foot b { color: #8f361d; font-size: .88rem; }
.cm-empty { padding: 26px 16px; font-size: 1rem; line-height: 1.6; color: var(--cm-muted); text-align: center; background: var(--cm-warm); border-radius: 13px; }
.cm-detail-head { margin: 0 0 20px; }
.cm-detail-head .cm-tag-row { margin-bottom: 8px; }
.cm-detail-head .cm-group-top { justify-content: flex-start; }
.cm-panel { padding: clamp(16px, 3.5vw, 23px); margin: 15px 0; }
.cm-panel p:not(.cm-note) { font-size: 1rem; line-height: 1.75; }
.cm-section-head { margin: 0 0 11px; }
.cm-page .cm-section-head h2 { font-size: 1.24rem; letter-spacing: -.015em; }
.cm-owner,.cm-contact { display: flex; align-items: flex-start; gap: 12px; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--cm-border); }
.cm-owner small,.cm-contact small { display: block; font-size: .83rem; color: var(--cm-muted); }
.cm-owner h3 { font-size: 1.05rem; margin: 3px 0; }
.cm-owner p { color: var(--cm-muted); }
.cm-owner-symbol { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; color: #44533b; background: #e8ecdf; border-radius: 50%; }
.cm-contact { align-items: center; }
.cm-panel .cm-section-head + .cm-contact { margin-top: 0; border: 0; padding: 0; }
.cm-wechat { display: block; margin-top: 3px; user-select: all; }
.cm-plain-btn { flex-shrink: 0; white-space: nowrap; min-height: 40px; border: 1px solid #d9ddd0; border-radius: 8px; background: #fff; color: #354231; padding: 7px 10px; font-size: .87rem !important; }
.cm-plain-btn .cm-icon { width: 15px; height: 15px; flex-basis: 15px; }
.cm-cta { min-height: 46px; justify-content: center; background: #253024; border: 1px solid #253024; border-radius: 10px; color: white; font-weight: 700 !important; padding: 9px 16px; }
.cm-wide { width: 100%; }
.cm-note,.cm-dialog small { display: block; font-size: .83rem; line-height: 1.6; color: var(--cm-muted); }
.cm-panel .cm-note { margin-top: 12px; }
.cm-muted { color: var(--cm-muted); }
.cm-dialog { max-width: calc(100vw - 40px); width: 360px; max-height: calc(100dvh - 32px); color: var(--ink, #222820); border: 1px solid var(--cm-border); border-radius: 18px; padding: 0; background: #fff; margin: auto; }
.cm-dialog::backdrop { background: rgb(25 30 22 / 58%); }
.cm-dialog-inner { padding: 21px; text-align: center; }
.cm-dialog h2 { font-size: 1.35rem; }
.cm-dialog p { margin: 4px 0 12px; font-size: .96rem; color: var(--cm-muted); }
.cm-dialog img { width: min(100%,245px); height: auto; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto 8px; }
.cm-dialog .cm-cta { margin-top: 13px; }
.cm-event-card { display: flex; flex-direction: column; overflow: hidden; }
.cm-event-img { position: relative; min-height: 70px; background: #e9ecdf; }
.cm-event-img .cm-cover { width: 100%; height: auto; aspect-ratio: 2.7; object-fit: cover; display: block; }
.cm-date { position: absolute; left: 13px; top: 10px; min-width: 40px; padding: 3px 6px; border: 1px solid rgb(0 0 0 / 8%); border-radius: 8px; color: #233020; background: #fffdf7; text-align: center; }
.cm-date small,.cm-date b { display: block; }
.cm-date small { font-size: .76rem; }
.cm-date b { font-size: 1.1rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cm-event-copy { display: flex; flex-direction: column; flex: 1; padding: 15px; }
.cm-event-copy .cm-tag-row { margin-bottom: 7px; }
.cm-meta-line,.cm-feature-date { font-size: .87rem; line-height: 1.5; color: var(--cm-muted); }
.cm-event-copy .cm-meta-line { margin-top: auto; }
.cm-main-image { display: block; width: 100%; height: auto; max-height: 300px; aspect-ratio: 2.5; object-fit: cover; border-radius: 16px; }
.cm-page .cm-facts { padding: 12px 16px; margin: 16px 0; background: #eef0e5; border-radius: 14px; }
.cm-facts > div { display: grid; align-items: baseline; grid-template-columns: 18px 3em minmax(0,1fr); gap: 8px; margin: 4px 0; }
.cm-facts .cm-icon { align-self: center; }
.cm-facts dt,.cm-facts dd { font-size: .94rem; line-height: 1.6; }
.cm-facts dt { color: var(--cm-muted); }
.cm-facts dd { margin: 0; font-weight: 650; }
.cm-article p + p { margin-top: 10px; }
.cm-cup-feature { display: block; overflow: hidden; }
.cm-cup-feature .cm-cover { display: block; width: 100%; height: auto; aspect-ratio: 2.8; max-height: 240px; object-fit: cover; }
.cm-feature-copy { padding: 17px; }
.cm-feature-copy h3 { margin-top: 7px; }
.cm-archives,.cm-related { margin-top: 28px; }
.cm-archive-list { display: grid; gap: 9px; }
.cm-cup-row { display: flex; align-items: center; gap: 13px; padding: 13px; }
.cm-cup-feature + .cm-cup-row,.cm-cup-row + .cm-cup-row:not(.cm-archive-list *) { margin-top: 9px; }
.cm-edition { display: flex; align-items: baseline; justify-content: center; align-content: center; flex-wrap: wrap; padding: 7px 4px; background: #e9eddf; border-radius: 10px; min-width: 65px; min-height: 66px; color: #3f5035; }
.cm-edition small { font-size: .77rem; }
.cm-edition b { font-size: 1.65rem; line-height: 1.15; font-weight: 760; margin: 0 1px; }
.cm-row-copy { min-width: 0; }
.cm-row-copy h3 { font-size: 1.08rem; margin: 4px 0 1px; }
.cm-row-copy p { margin: 0; font-size: .86rem; }
.cm-search { display: flex; align-items: center; background: #fff; border: 1px solid var(--cm-border); min-height: 43px; padding: 0 12px; border-radius: 9px; gap: 8px; margin: 0 0 12px; color: var(--cm-muted); }
.cm-search:focus-within { border-color: #a04523; }
.cm-search input { flex: 1; width: 0; min-width: 0; height: 41px; border: 0; padding: 3px; background: transparent; color: var(--ink,#222820); font-size: 1rem; }
.cm-game-category { margin-top: 15px; }
.cm-game-category > h3 { margin-bottom: 8px; color: var(--cm-muted); font-size: .94rem; }
.cm-game-list { display: grid; gap: 10px; }
@media(max-width:370px) {
  .cm-page { padding-right: 13px; padding-left: 13px; }
  .cm-filters { gap: 5px; }
  .cm-filters a { padding: 7px 10px; }
  .cm-card-foot { gap: 5px; }
}
@media (min-width:700px) {
  .cm-page .cm-list-head { margin-bottom: 27px; }
  .cm-game-list { grid-template-columns: repeat(auto-fit, minmax(min(100%,270px),1fr)); }
}
