/* G-EIGHT × CobyPlay: the few colours CobyPlay's own modules write inline, which 志文's recoloured
   stylesheets cannot reach. His v1.2.0 changed the same values in his copies of these scripts; ours
   are shared with CobyPlay, so the site's palette is applied here instead. Loaded after
   geight-theme.css. */
.game .cover.has-art.art-cover { background-color: #f4f6f9 !important; }
#gameArt.has-art, .game-visual.has-art { background-color: #f5f7f9 !important; }
#cpAltTitles { color: #526d7b !important; }

/* 成人專區 (Jason, 2026-11-03): the header's way to LateFind, which carries the show's 18+ line-up —
   a nav item like the others, marked off in the KV's blush with the pixel frame the theme uses. */
.cp-app .cp-site-header>.cp-primary-nav>a.gx-adult-zone{--gx-c:var(--gx-blush-ink);color:var(--gx-blush-ink);margin-inline-start:6px;box-shadow:0 0 0 2px var(--gx-blush-ink) inset}
.cp-app .cp-site-header>.cp-primary-nav>a.gx-adult-zone:hover{color:#fff;background:var(--gx-blush-ink)}
.gx-adult-zone b{margin-inline-start:6px;padding:0 5px;background:var(--gx-blush-ink);color:#fff;border-radius:0;font:400 12px/1.6 var(--gx-label)}
.gx-adult-zone:hover b{background:#fff;color:var(--gx-blush-ink)}
.cp-mobile-menu a.gx-adult-zone{color:var(--gx-blush-ink)!important}

/* 隱私權政策 (Jason, 2026-11-04): the site's own policy opens on the KV snow strip, like 收藏's
   heading, with the title in the display face; the body stays a plain reading column. */
.cp-app .cp-privacy-layout .gx-policy-hero{position:relative;margin:0 calc(50% - 50vw) 32px;padding:36px max(var(--cp-shell-gutter,16px),calc(50vw - 425px)) 52px;background:var(--gx-sky) url('assets/geight/kv-scene-strip.webp') center 60%/cover no-repeat}
.cp-app .cp-privacy-layout .gx-policy-hero>div{padding:18px 22px;background:rgba(255,255,255,.92);box-shadow:0 0 0 2px var(--gx-edge)}
.cp-app .cp-privacy-layout .gx-policy-hero h1{font-family:var(--gx-display);font-weight:400;letter-spacing:.5px;line-height:1.4;color:var(--gx-ink)}
.cp-app .cp-privacy-layout .gx-policy-hero .cp-reading-dek{margin:0;color:var(--gx-muted)}
.cp-app .cp-privacy-layout{padding-top:0}
.cp-app .cp-privacy-body h2{color:var(--gx-ink);padding-inline-start:12px;box-shadow:inset 4px 0 0 var(--gx-slate)}
.cp-app .cp-privacy-body a{color:var(--gx-slate);text-decoration:underline;text-underline-offset:3px}
@media (max-width:640px){.cp-app .cp-privacy-layout .gx-policy-hero{padding-block:22px 32px}.cp-app .cp-privacy-layout .gx-policy-hero h1{font-size:24px}}

/* Phones (Jimmy, 11/04): the header's 簽到區 lives in the menu below 700px, so the KV carries it
   under the G-EIGHT mark; and Discord gets an icon beside 登入 (cobyplay-social.js builds it only
   when an invitation is set). Above 700px the nav has both, and neither shows. */
.gx-hero-checkin,.cp-site-header .cp-discord-icon{display:none}
@media(max-width:700px){
  .gx-hero-checkin{--gx-c:var(--gx-amber-ink);display:inline-flex;align-items:center;gap:5px;margin-top:10px;padding:5px 14px;background:var(--gx-amber);color:var(--gx-ink);font:400 14px/1.4 var(--gx-display);text-decoration:none;box-shadow:-2px 0 0 0 var(--gx-c),2px 0 0 0 var(--gx-c),0 -2px 0 0 var(--gx-c),0 2px 0 0 var(--gx-c),0 4px 0 0 var(--gx-c)}
  .gx-hero-checkin:active{transform:translateY(2px)}
  .cp-app .cp-site-header:has(.cp-discord-icon){grid-template-columns:minmax(0,1fr) auto auto auto!important;gap:8px!important}
  .cp-app .cp-site-header .cp-discord-icon{grid-column:2;grid-row:1;display:block;width:32px;height:32px}
  .cp-app .cp-site-header:has(.cp-discord-icon) .cp-header-login{grid-column:3}
  .cp-app .cp-site-header:has(.cp-discord-icon) .cp-mobile-menu-toggle{grid-column:4}
  .cp-app .cp-site-header:has(.cp-discord-icon) .cp-header-login{padding:0 10px}
  .cp-app .cp-site-header:has(.cp-discord-icon) .gx-partner-logo{height:20px}
  .cp-app .cp-site-header .cp-discord-icon img{display:block;width:32px;height:32px}
  /* …and when the brand no longer fits beside them (QA 2026-11-12 C-3 / S2-2: signed in, or ja ログイン,
     de Anmelden), geight-scene.js sets .gx-header-tight: the narrowest-phone lockup (no G-EIGHT mark, as
     below 360px), tighter gaps, and a member's name cut to an ellipsis sooner. Labels are not shortened. */
  .cp-app .cp-site-header.gx-header-tight{gap:6px!important}
  .cp-app .cp-site-header.gx-header-tight .gx-logo-mark{display:none}
  .cp-app .cp-site-header.gx-header-tight .brand-logo{width:66px!important;height:9px!important}
  .cp-app .cp-site-header.gx-header-tight .gx-partner{gap:5px}
  .cp-app .cp-site-header.gx-header-tight .cp-header-login[data-member-in]{max-width:96px}
}

/* Header on two rows when one row is short (Jimmy, 11/11: ja 跑版). geight-scene.js sets
   .gx-header-stacked only above 1000px and only when the nav or the tools overflow; the layout is the
   one the shell uses below 1000px — brand and tools on top, the nav underneath. */
.cp-app .cp-site-header.gx-header-stacked{height:auto!important;min-height:112px!important;grid-template-columns:auto minmax(0,1fr)!important;padding:12px 0!important;row-gap:8px!important}
.cp-app .cp-site-header.gx-header-stacked>.cp-primary-nav{grid-row:2;grid-column:1/-1;margin-inline-start:0!important}
.cp-app .cp-site-header.gx-header-stacked .cp-site-tools{grid-row:1;grid-column:2}
/* …and a nav longer than the whole width (ru, 1024px and below) wraps instead of running off the page. */
@media(min-width:701px){.cp-app .cp-site-header.gx-header-stacked>.cp-primary-nav{flex-wrap:wrap;row-gap:4px}}
@media(min-width:701px) and (max-width:1000px){.cp-app .cp-site-header>.cp-primary-nav{flex-wrap:wrap;row-gap:4px}}
