/* One type scale across search, editorial, collections and fortunes. */
body.cp-app{
  --cp-font-caption:13px;--cp-font-small:14px;--cp-font-body:16px;--cp-font-lead:18px;
  --cp-font-card:20px;--cp-font-section:26px;--cp-font-title:36px;
  --cp-font-family:'Noto Sans TC','Microsoft JhengHei',sans-serif;
  font-family:var(--cp-font-family);font-size:var(--cp-font-body);line-height:1.7;
  -webkit-text-size-adjust:100%;
}
.cp-app :is(input,select,button,textarea){font-family:var(--cp-font-family)}
.cp-app :is(.cp-search-lead h1,.cp-ep-intro h1,.cp-library-heading h1,.cp-fortune-intro>h1,.cp-reading-header h1){font-family:var(--cp-font-family);font-size:var(--cp-font-title);font-weight:750;line-height:1.45;letter-spacing:-.5px}
.cp-app :is(.cp-ep-section-head h2,.cp-fortune-journal h2,.cp-home-fortune h2,.section-head h2){font-family:var(--cp-font-family);font-size:var(--cp-font-section);line-height:1.5;letter-spacing:-.3px}
.cp-app :is(.cp-content-card h3,.cp-editorial-home .cp-content-card h3,.cp-home-scenario h3,.cp-library-card h2,.cp-fortune-game h3){font-family:var(--cp-font-family);font-size:var(--cp-font-card);line-height:1.6}
.cp-app :is(.cp-ep-intro p,.cp-search-lead>p,.cp-fortune-lead,.cp-library-heading>p,.cp-content-card p,.cp-content-page .cp-content-card p,.cp-home-scenario p){font-size:var(--cp-font-body);line-height:1.8}
.cp-app :is(.cp-content-meta,.cp-content-type,.cp-journal-result-count,.cp-content-duration,.cp-short-copy small,.cp-crumb,.cp-content-footer,.cp-member-kicker,.cp-ep-label,.cp-library-account p,.cp-library-toolbar,.cp-fortune-topline,.cp-fortune-steps,.cp-fortune-draw-actions p,.cp-fortune-disclaimer,.cp-fortune-game p,.cp-fortune-game .cp-fortune-demo,.cp-fortune-feedback small){font-size:var(--cp-font-caption);line-height:1.7}
.cp-app :is(.cp-ep-label,.cp-member-kicker){letter-spacing:1.5px}
.cp-app :is(.cp-content-tabs button,.cp-content-topics button,.cp-content-toolbar select,.cp-content-button,.cp-collect,.cp-library-account button,.cp-library-toolbar input,.cp-library-toolbar select,.cp-moods button,.cp-fortune-result-actions button,.cp-fortune-feedback button,.cp-journal-toolbar select,.cp-journal-footer button){font-family:var(--cp-font-family);font-size:var(--cp-font-small);line-height:1.5}
.cp-app :is(.cp-content-tabs button,.cp-content-topics button){min-height:36px}
.cp-app .cp-content-card-body{padding:20px}
.cp-app .cp-content-card .cp-content-meta{gap:8px 12px}
.cp-app .cp-content-toc summary{font-size:var(--cp-font-body)}
.cp-app .cp-content-toc a{font-size:var(--cp-font-small);line-height:1.8}
.cp-app .cp-reading-header .cp-reading-dek{font-size:var(--cp-font-lead);line-height:1.9}
.cp-app .cp-reading-body{font-size:var(--cp-font-lead);line-height:1.95}
.cp-app .cp-reading-body h2{font-size:var(--cp-font-section);line-height:1.6}
.cp-app .cp-reading-tags li{font-size:var(--cp-font-small)}
.cp-app .cp-video-info h1{font-size:30px;line-height:1.5}
.cp-app .cp-video-info p{font-size:var(--cp-font-body);line-height:1.9}
.cp-app .cp-video-info .cp-video-sidenote{font-size:var(--cp-font-small)}
.cp-app :is(.cp-short-copy h3,.cp-editorial-home .cp-short-copy h3){font-size:var(--cp-font-lead);line-height:1.6}
.cp-app .cp-home-fortune p{font-size:var(--cp-font-small)!important;line-height:1.8}
.cp-app .cp-home-fortune h2{font-size:24px}
.cp-app .cp-fortune-steps{gap:18px}
.cp-app .cp-fortune-game>a{align-items:center}
.cp-app .cp-fortune-paper h2{font-size:26px;line-height:1.6}
.cp-app .cp-fortune-reading{font-size:var(--cp-font-small);line-height:1.9}
.cp-app :is(.cp-paper-top,.cp-fortune-reading b,.cp-fortune-reading small){font-size:var(--cp-font-caption)}
.cp-app .cp-fortune-paper .cp-paper-number{font-size:var(--cp-font-small)}
.cp-app .cp-fortune-feedback>b{font-size:var(--cp-font-small)}
.cp-app .cp-library-heading h1{margin-bottom:14px}
.cp-app :is(.cp-member-dialog h2){font-size:28px;line-height:1.5}
.cp-app .cp-member-dialog p{font-size:var(--cp-font-body);line-height:1.8}
.cp-app .cp-member-dialog .cp-member-note{font-size:var(--cp-font-caption)}
.cp-app .cp-search-panel .cp-search-lead h1{font-size:32px}
.cp-app .cp-search-panel #searchInput{font-size:var(--cp-font-body);line-height:1.6}
.cp-app :is(.cp-search-panel .quick button,.cp-search-panel .preference-chip,.cp-search-panel .cp-scope-date-chip,.cp-search-panel .preference-toggle,.cp-search-panel .preference-heading strong,.filter-chip,.date-chip,.sort,.reset,.drawer-tag,.drawer-actions button,.drawer-actions a){font-size:var(--cp-font-small);line-height:1.5}
.cp-app :is(.cp-search-panel .preference-group-label,.cp-search-panel .quick>span,.cp-search-action>p,.cp-search-banner-head>span,.cp-banner-kicker,.cp-banner-tags span,.filter-head small,.filter-title small,.genres,.game .meta,.drawer-top span,.drawer-metric small,.drawer-play span,.filter-section-label,.range-labels,.price-values,.count,.explore-intro){font-size:var(--cp-font-caption);line-height:1.65}
.cp-app .cp-search-panel .cp-quick-scope .preference-group{grid-template-columns:96px minmax(0,1fr)}
.cp-app :is(.cp-search-action .enter,.cp-banner-open,.cp-search-banner-head h2,.filter-title,.ai-summary strong,.drawer-play strong){font-size:var(--cp-font-body);line-height:1.6}
.cp-app .cp-banner-carousel .cp-banner-title{font-family:var(--cp-font-family);font-size:24px;line-height:1.4}
.cp-app .cp-banner-carousel .cp-banner-description{font-size:var(--cp-font-small);line-height:1.9}
.cp-app .game-name{font-size:var(--cp-font-body);line-height:1.6}
.cp-app .title-row h2{font-family:var(--cp-font-family);font-size:24px;line-height:1.5}
.cp-app :is(.ai-summary,.drawer-intro){font-size:var(--cp-font-body);line-height:1.85}
.cp-app :is(.drawer-title,.drawer-art h2){font-family:var(--cp-font-family);font-size:28px;line-height:1.4}
.cp-app .summary h1{font-family:'Space Grotesk',var(--cp-font-family);font-size:36px;line-height:1.25;overflow-wrap:anywhere}
.cp-app .summary p{font-size:var(--cp-font-body);line-height:1.85}
.cp-app :is(.section-head p,.review-snippet p,.related-card p,.requirement-row,.requirement-row b,.fact strong,.info strong){font-size:var(--cp-font-small);line-height:1.75}
.cp-app :is(.fact small,.info small,.info em,.metric span,.metric small,.review-snippet small,.review-snippet .reviewer,.requirement-note,.requirement-head span,.related-card small,.badge){font-size:var(--cp-font-caption);line-height:1.65}
.cp-app .section-head p{max-width:68ch}
.cp-app :is(.summary .actions a,.summary .actions button){font-size:var(--cp-font-small)}
.cp-app .requirement-head h3{font-family:var(--cp-font-family);font-size:var(--cp-font-lead)}
.cp-app .metric strong{font-family:'Space Grotesk',var(--cp-font-family);font-size:30px;line-height:1.3}
@media(max-width:700px){
 body.cp-app{--cp-font-title:30px;--cp-font-section:24px}
 .cp-app .cp-search-panel .cp-search-lead h1{font-size:28px}
 .cp-app .cp-search-panel .cp-quick-scope .preference-group{grid-template-columns:90px minmax(0,1fr)}
 .cp-app :is(.cp-fortune-intro>h1,.cp-library-heading h1){font-size:30px}
 .cp-app .cp-reading-header h1{font-size:28px;text-wrap:balance}
 .cp-app .cp-video-info h1{font-size:26px}
 .cp-app .summary h1{font-size:30px}
 .cp-app .cp-fortune-steps{gap:14px;flex-wrap:wrap}
 .cp-app .cp-home-fortune h2{font-size:20px}
 .cp-app .cp-search-panel .cp-quick-scope .preference-group-label{white-space:nowrap;letter-spacing:0}
}
.cp-app .cp-short-dialog{zoom:1}
.cp-app .cp-short-card .cp-short-copy h3{font-size:16px}
@media(max-width:700px){.cp-app .cp-short-card .cp-short-copy h3{font-size:15px}}
/* QA 2026-11-05 #6: the scope labels are sized for zh (「作業系統」). Other languages run past the 90-96px
   column and sit on the first chip — en 「Operating system」 111px, ja 「プラットフォーム」 103px, de
   「Betriebssystem」. Up to tablet width they go above their chip row instead; zh keeps the design's
   side column. Wider screens wrap the label inside its column. */
html:not(:lang(zh)) .cp-app .cp-search-panel .cp-quick-scope .preference-group-label{white-space:normal;overflow-wrap:anywhere;hyphens:auto}
@media(max-width:900px){
 html:not(:lang(zh)) .cp-app .cp-search-panel .cp-quick-scope .preference-group{grid-template-columns:minmax(0,1fr);gap:5px}
 html:not(:lang(zh)) .cp-app .cp-search-panel .cp-quick-scope .preference-group-label{padding-top:0}
}
/* QA 2026-11-05 #13: touch targets under 44px on a phone — the 靈感 chips (30px), the scope chips (33-38),
   the carousel's ‹ › ⏸ (25), the pager (36), 「← 回到探索遊戲」 (24) and, on G-EIGHT, the hero's 簽到區
   button, 「送出簽到」 and the roster's 分享／檢舉. Each gets an invisible hit area of at least 44×44
   centred on it; nothing it draws changes. QA 2026-11-12 C-19 added 「清除 AI 自動條件」 (19px tall). */
@media(max-width:900px){
 .cp-app :is(.quick button,.cp-quick-scope .preference-chip,.cp-quick-scope .cp-scope-date-chip,.cp-banner-controls button,
   .cp-pager .cp-page,.cp-pager .cp-page-arrow,a.back,.gx-hero-checkin,#submit-checkin-btn,.gx-ci-guest-actions button,#cpAutoClear){position:relative}
 .cp-app :is(.quick button,.cp-quick-scope .preference-chip,.cp-quick-scope .cp-scope-date-chip,.cp-banner-controls button,
   .cp-pager .cp-page,.cp-pager .cp-page-arrow,a.back,.gx-hero-checkin,#submit-checkin-btn,.gx-ci-guest-actions button,#cpAutoClear)::after{
   content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
 /* The two chip rows scroll sideways, which clips anything outside them vertically too: room for the hit
    area inside, given back outside, so the rows sit where they did. */
 .cp-app .quick{padding-top:7px;padding-bottom:7px;margin-top:-7px;margin-bottom:-7px}
 .cp-app.cp-home-page .cp-search-panel .quick{padding-bottom:10px}
 .cp-app .cp-quick-scope .preference-list{padding-top:7px;padding-bottom:9px;margin-top:-7px;margin-bottom:-7px}
}
