/* V31.4: homepage only. Preserve every link, text and form field. */
@media (max-width: 640px) {
  body.cg8-home { background:#edf6fa; }
  .cg8-home .site-header { border-top-width:3px; }
  .cg8-home .header-inner { min-height:56px; padding:7px 12px; }
  .cg8-home .cg8-brand { font-size:22px; }
  .cg8-home .header-cta { min-height:42px; padding:8px 13px; }
  .cg8-home .cg22-topicnav { padding:5px 8px; background:#e9f4f9; }
  .cg8-home .cg22-topicnav-inner { gap:5px; }
  .cg8-home .cg22-topicnav a, .cg8-home .cg22-topicnav a:last-child { background:#fff; border:1px solid #c8dfe9; border-radius:11px; min-height:48px; padding:5px 2px; gap:3px; font-size:11px; }
  .cg8-home .cg22-topicnav a:hover { background:#d8edf8; }
  .cg8-home .cg22-topicnav svg { width:17px;height:17px;color:#096b96; }
  .cg8-home main { padding:0 10px; }
  .cg8-home .hero { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; padding:0; margin:10px auto 0; background:none; border-radius:0; overflow:visible; }
  .cg8-home .hero::before { display:none; }
  .cg8-home .hero-copy { position:relative; isolation:isolate; overflow:hidden; padding:15px 15px 13px; border-radius:17px; background:linear-gradient(135deg,#075579,#0876a9); }
  .cg8-home .hero-copy::before { content:''; position:absolute; z-index:-1; pointer-events:none; width:230px;height:230px;border-radius:50%;right:-128px;top:-150px;box-shadow:0 0 0 35px #ffffff0b,0 0 0 70px #ffffff09; border:1px solid #ffffff25; }
  .cg8-home .hero .eyebrow { font-size:10px;letter-spacing:1.35px; margin:0 0 6px; }
  .cg8-home .hero h1 { font-size:clamp(25px,7vw,34px);line-height:1.12;letter-spacing:-.7px;margin:0 0 9px; }
  .cg8-home .hero .lead { font-size:14px;line-height:1.45;margin:0 0 10px;color:#e3f2fa; }
  .cg8-home .hero .benefits { gap:4px; }
  .cg8-home .hero .benefits li { font-size:12px;line-height:1.4;gap:6px; }
  .cg8-home .hero .join-card { width:100%;border:1px solid #bcdbe8;border-radius:17px;box-shadow:0 5px 18px #123e5510;scroll-margin-top:12px; }
  .cg8-home .join-head { padding:11px 13px;gap:9px;background:linear-gradient(120deg,#e1f1f8,#f1f9fc); }
  .cg8-home .join-icon { width:36px;height:36px;flex-basis:36px; }
  .cg8-home .join-icon img { width:36px;height:36px; }
  .cg8-home .join-head strong { font-size:16px; }
  .cg8-home .join-head small { font-size:12px;margin:2px 0 0;line-height:1.35; }
  .cg8-home #hpJoinForm { padding:12px 13px 14px;gap:9px; }
  .cg8-home #hpJoinForm .fields { grid-template-columns:minmax(0,1fr) minmax(84px,98px);gap:8px; }
  .cg8-home #hpJoinForm .form-label { margin-bottom:4px; }
  .cg8-home #hpJoinForm #hpNick,.cg8-home #hpJoinForm #hpAge { height:46px;min-height:46px;border-color:#bad5e3;border-radius:10px; }
  .cg8-home #hpJoinForm .legend { margin-bottom:5px;line-height:1.35; }
  .cg8-home #hpJoinForm .gender-row { gap:5px; }
  .cg8-home #hpJoinForm .gender-btn { min-height:44px;padding:4px 2px;gap:4px;font-size:12px;line-height:1.2;white-space:normal;background:#f7fbfd;border:1px solid #d5e5ee; }
  .cg8-home #hpJoinForm .gender-btn[aria-pressed=true] { border-color:currentColor;background:#e6f3fa; }
  .cg8-home #hpJoinForm #nicknameHelp { line-height:1.35; }
  .cg8-home #hpJoinForm .consent { font-size:12px;line-height:1.45; }
  .cg8-home #hpJoinForm #hpJoinBtn { min-height:48px;border-radius:11px;background:linear-gradient(120deg,#086a98,#087eaf);font-size:16px; }
  .cg8-home #hpJoinForm .form-hint { line-height:1.4; }
  .cg8-home .cg8-steps { margin-top:12px; }
  html:has(body.cg8-home) { scroll-padding-top:124px; }
}
@media (max-width: 350px) {
  .cg8-home .hero-copy { padding:12px; }
  .cg8-home #hpJoinForm { padding:11px; }
  .cg8-home #hpJoinForm .gender-btn { font-size:11px;gap:3px; }
  .cg8-home .header-inner { padding-inline:9px; }
  .cg8-home .cg8-brand { font-size:20px; }
}
@media (prefers-reduced-motion: reduce) { html:has(body.cg8-home) { scroll-behavior:auto; } }

/* V31.5: explicit, accessible age and terms confirmation. */
.cg8-home #hpJoinForm .consent { cursor:pointer; padding:8px; border:1px solid #c5dce7; border-radius:10px; background:#f3f9fc; gap:9px; transition:background .15s,border-color .15s; }
.cg8-home #hpJoinForm #hpConsent { appearance:none; -webkit-appearance:none; display:grid; place-content:center; flex:0 0 24px; width:24px; height:24px; margin:0; border:2px solid #668b9e; border-radius:6px; background:#fff; cursor:pointer; }
.cg8-home #hpJoinForm #hpConsent:checked { background:#0877a4; border-color:#0877a4; }
.cg8-home #hpJoinForm #hpConsent::before { content:""; width:12px; height:7px; border-left:3px solid white; border-bottom:3px solid white; transform:translateY(-1px) rotate(-45deg) scale(0); }
.cg8-home #hpJoinForm #hpConsent:checked::before { transform:translateY(-1px) rotate(-45deg) scale(1); }
.cg8-home #hpJoinForm #hpConsent:focus-visible { outline:3px solid #1877b1; outline-offset:3px; }
.cg8-home #hpJoinForm .consent:has(#hpConsent:checked) { background:#e5f5ec; border-color:#81ba9d; }
@media (forced-colors:active) { .cg8-home #hpJoinForm #hpConsent { appearance:auto; -webkit-appearance:auto; } .cg8-home #hpJoinForm #hpConsent::before { display:none; } }
@media (max-width:640px) {
  .cg8-home #hpJoinForm .consent { padding:4px; margin-bottom:0; gap:7px; }
}
@media (max-width:640px) {
  .cg8-home #hpJoinForm { gap:7px; }
  .cg8-home #hpJoinForm #nicknameHelp { margin-bottom:5px !important; }
}
