/* Page-specific styles */
body{font-family:'Nunito','Segoe UI',system-ui,sans-serif;background:#fff;color:#2a2a2a;min-height:100vh;overflow-x:hidden;}

/* =====================================================================
   /ai-STYLE LANDING-PAGE FORMAT (green/light variant — matches FuzzNet)
   These classes are scoped with cf- prefix so they don't collide with
   the existing in-game styling. They turn the lobby into a full
   marketing landing page parallel to the /ai page for FuzzNet Labs.
   ===================================================================== */

/* Hide the simple in-page top-nav once the marketing header is present */
body.cf-landing-active #top-nav{display:none;}
body.cf-landing-active{padding-top:0;}

/* HEADER */
.cf-header{background:#fafdf2;border-bottom:3px solid #62b517;padding:0 40px;height:68px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 16px rgba(98,181,23,0.18);position:sticky;top:0;z-index:100;}
.cf-header-logo{display:flex;align-items:center;gap:6px;text-decoration:none;}
.cf-header-logo img{height:50px;width:auto;object-fit:contain;display:block;}
.cf-logo-text{font-size:16px;font-weight:800;color:#62b517;letter-spacing:0.5px;}
.cf-logo-sub{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;display:block;line-height:1;color:#888;}
.cf-nav{display:flex;align-items:center;gap:4px;}
.cf-nav a{font-size:15px;font-weight:700;color:#4a8c11;text-decoration:none;padding:8px 16px;border-radius:8px;transition:background 0.15s,color 0.15s;}
.cf-nav a:hover{background:rgba(98,181,23,0.12);color:#2a3a10;}
.cf-nav a.active{color:#2a3a10;background:rgba(98,181,23,0.12);}
.cf-nav a.cf-nav-cta-buy{background:#62b517;color:#fff;margin-left:4px;box-shadow:0 2px 6px rgba(98,181,23,0.32);}
.cf-nav a.cf-nav-cta-buy:hover{background:#4a8c11;color:#fff;}
.cf-nav-dropdown{position:relative;display:flex;align-items:center;}
.cf-nav-dropdown-trigger{font-size:15px;font-weight:700;color:#4a8c11;background:none;border:none;padding:8px 16px;border-radius:8px;cursor:pointer;font-family:inherit;transition:background 0.15s,color 0.15s;}
.cf-nav-dropdown-trigger.open{background:rgba(98,181,23,0.12);color:#2a3a10;}
.cf-nav-dropdown-menu{position:absolute;top:calc(100% + 4px);left:0;background:#fff;border:1.5px solid #a8c96a;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,0.12);padding:6px;min-width:200px;display:none;flex-direction:column;gap:2px;z-index:200;}
.cf-nav-dropdown-menu.open{display:flex;}
.cf-nav-dropdown-menu a{display:block;padding:8px 14px;border-radius:7px;font-size:14px;font-weight:700;color:#4a8c11;text-decoration:none;transition:all 0.15s;white-space:nowrap;}
.cf-nav-dropdown-menu a:hover,.cf-nav-dropdown-menu a.active{background:rgba(98,181,23,0.14);color:#2a3a10;}
.cf-nav-sub-dropdown{position:relative;}.cf-nav-sub-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 14px;border-radius:7px;font-size:14px;font-weight:700;color:#4a8c11;background:none;border:none;cursor:pointer;font-family:inherit;text-align:left;transition:background 0.15s,color 0.15s;white-space:nowrap;}.cf-nav-sub-trigger:hover,.cf-nav-sub-dropdown:hover .cf-nav-sub-trigger{background:rgba(98,181,23,0.14);color:#2a3a10;}.cf-nav-sub-menu{position:absolute;left:100%;top:-6px;background:#fff;border:1.5px solid #a8c96a;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,0.12);padding:6px;min-width:200px;display:none;flex-direction:column;gap:2px;z-index:300;}.cf-nav-sub-dropdown:hover .cf-nav-sub-menu{display:flex;}

/* HERO */
@keyframes cf-hero-drift{from{transform:translate(0,0);}to{transform:translate(30px,30px);}}
@keyframes cf-fade-up{from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:translateY(0);}}
@keyframes cf-underline-grow{from{transform:scaleX(0);}to{transform:scaleX(1);}}
.cf-hero{position:relative;overflow:hidden;padding:64px 24px 56px;text-align:center;background:linear-gradient(160deg,#f8faf2 0%,#edf2e0 60%,#e2ecd0 100%);border-bottom:1px solid #dde8c8;}
.cf-hero::before{content:'';position:absolute;inset:-56px;background-image:radial-gradient(circle,rgba(98,181,23,0.13) 1.5px,transparent 1.5px);background-size:30px 30px;animation:cf-hero-drift 22s linear infinite;pointer-events:none;z-index:0;}
.cf-hero-badge{display:inline-block;background:rgba(209,219,36,0.25);border:1px solid #d1db24;color:#4a8c11;font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;padding:5px 14px;border-radius:20px;margin-bottom:24px;position:relative;z-index:1;animation:cf-fade-up 0.4s ease both;}
.cf-hero h1{font-size:clamp(36px,6vw,58px);font-weight:900;line-height:1.1;padding-bottom:32px;margin-bottom:40px;color:#2a2a2a;position:relative;z-index:1;overflow:visible;animation:cf-fade-up 0.45s 0.1s ease both;}
.cf-hero h1 .cf-game-name{color:#62b517;position:relative;}
.cf-hero h1 .cf-game-name::after{content:'';position:absolute;left:0;right:0;bottom:0;height:4px;background:#d1db24;border-radius:3px;transform:scaleX(0);transform-origin:left center;animation:cf-underline-grow 0.4s 0.5s ease forwards;}
.cf-hero-subtitle{font-size:17px;font-weight:600;color:#555;margin:0 auto 12px;max-width:600px;line-height:1.55;position:relative;z-index:1;animation:cf-fade-up 0.45s 0.22s ease both;}
.cf-hero-subtitle.cf-secondary{font-size:13px;opacity:0.85;max-width:560px;margin-bottom:32px;color:#666;}
.cf-hero-subtitle a{color:#4a8c11;font-weight:800;}
.cf-hero-subtitle strong{color:#2a3a10;}
.cf-hero-visual{position:relative;z-index:1;width:220px;height:220px;margin:0 auto;animation:cf-fade-up 0.45s 0.3s ease both;}
.cf-hero-visual svg{width:100%;height:100%;display:block;}

/* FEATURES STRIP */
.cf-features{display:flex;justify-content:center;gap:0;flex-wrap:wrap;background:#fafdf2;border-bottom:1px solid #dde8c8;padding:0;}
.cf-feature{display:flex;flex-direction:column;align-items:center;gap:8px;padding:28px 32px;flex:1;min-width:160px;max-width:260px;border-right:1px solid #e3e7d6;text-align:center;}
.cf-feature:last-child{border-right:none;}
.cf-feature-icon{width:48px;height:48px;border-radius:12px;background:#f4fae8;border:1px solid #a8c96a;display:flex;align-items:center;justify-content:center;font-size:24px;}
.cf-feature h3{font-size:13px;font-weight:800;color:#2a3a10;letter-spacing:0.3px;}
.cf-feature p{font-size:12px;color:#777;line-height:1.4;}

/* CTA BUTTONS BAR */
.cf-cta-buttons-bar{display:flex;justify-content:center;align-items:center;gap:16px;padding:28px 24px;background:#fafdf2;border-bottom:1px solid #dde8c8;flex-wrap:wrap;}
.cf-btn-play-now{display:inline-flex;align-items:center;gap:8px;background:#62b517;color:#fff;text-decoration:none;text-align:center;padding:14px 32px;border-radius:10px;font-size:16px;font-weight:800;transition:all 0.15s;cursor:pointer;border:none;font-family:inherit;box-shadow:0 4px 14px rgba(98,181,23,0.28);}
.cf-btn-play-now:hover{background:#4a8c11;transform:scale(1.02);box-shadow:0 6px 18px rgba(98,181,23,0.38);}
.cf-btn-buy-physical{display:inline-flex;align-items:center;gap:8px;background:transparent;color:#4a8c11;text-decoration:none;text-align:center;padding:12px 28px;border-radius:10px;font-size:15px;font-weight:800;border:2px solid #a8c96a;transition:all 0.15s;cursor:pointer;font-family:inherit;}
.cf-btn-buy-physical:hover{background:#f4fae8;border-color:#62b517;color:#2a3a10;}

/* GAME INFO BAR */
.cf-game-info-bar{display:flex;justify-content:center;align-items:center;gap:0;background:rgba(98,181,23,0.07);border-bottom:1px solid #dde8c8;padding:0;flex-wrap:wrap;}
.cf-game-info-item{display:flex;align-items:center;gap:8px;padding:14px 28px;font-size:13px;font-weight:700;color:#4a8c11;border-right:1px solid #e3e7d6;}
.cf-game-info-item:last-child{border-right:none;}
.cf-game-info-item svg{flex-shrink:0;}

/* MAIN COLUMN INSIDE DEEP SECTIONS */
.cf-main{max-width:860px;margin:0 auto;width:100%;padding:0 24px;}
.cf-info-col{padding:48px 0 52px;}
.cf-info-col h2{font-size:26px;font-weight:900;color:#2a3a10;margin-bottom:16px;line-height:1.2;}
.cf-info-col h2 em{font-style:normal;color:#62b517;}
.cf-info-col > p{font-size:14px;color:#555;line-height:1.7;margin-bottom:28px;}
.cf-learn-section-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:2px;color:#62b517;border-left:4px solid #62b517;padding-left:10px;margin-bottom:14px;}

/* CONCEPT CARDS (deep learning section) */
.cf-concept-list{list-style:none;display:flex;flex-direction:column;margin-bottom:28px;}
.cf-concept-list li{display:block;padding:0;}
.cf-concept-card{border-radius:12px;padding:16px 18px;margin-bottom:12px;border:2px solid #dde8c8;background:#fff;box-shadow:0 2px 8px rgba(98,181,23,0.08);}
.cf-concept-card-top{display:flex;align-items:center;gap:10px;margin-bottom:8px;}
.cf-concept-card-top strong{font-size:14px;font-weight:900;color:#2a3a10;}
.cf-concept-icon{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:20px;background:#f4fae8;border:1px solid #a8c96a;border-radius:8px;}
.cf-concept-explain{font-size:13px;color:#555;line-height:1.65;margin-bottom:0 !important;}
.cf-concept-explain em{color:#4a8c11;font-style:italic;}
.cf-concept-explain strong{color:#2a3a10;}

/* LEARNING SECTION (lighter elevated section with subtle K-NN dot/edge pattern) */
.cf-learning-bg{background:#e8edd8 url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%2362b517' stroke-opacity='0.18' stroke-width='1.4' fill='none' stroke-linecap='round'%3E%3Ccircle cx='25' cy='25' r='2.5' fill='%2362b517' fill-opacity='0.2'/%3E%3Ccircle cx='75' cy='40' r='2.5' fill='%23a8c96a' fill-opacity='0.22'/%3E%3Ccircle cx='40' cy='75' r='2.5' fill='%2362b517' fill-opacity='0.2'/%3E%3Ccircle cx='80' cy='80' r='2.5' fill='%23a8c96a' fill-opacity='0.22'/%3E%3Cline x1='25' y1='25' x2='75' y2='40'/%3E%3Cline x1='25' y1='25' x2='40' y2='75'/%3E%3Cline x1='75' y1='40' x2='80' y2='80'/%3E%3Cline x1='40' y1='75' x2='80' y2='80'/%3E%3C/g%3E%3C/svg%3E") repeat;background-size:120px 120px;}
.cf-learning-bg .cf-info-col h2{color:#2a3a10;}
.cf-learning-bg .cf-info-col h2 em{color:#62b517;}
.cf-learning-bg .cf-info-col > p{color:#555;}

/* WORKSHOP SECTION (elevated tinted) */
.cf-workshop{background:#fafdf2;border-top:1px solid #dde8c8;border-bottom:1px solid #dde8c8;padding:48px 24px;}
.cf-workshop-cta-link{display:inline-flex;align-items:center;gap:8px;background:#62b517;color:#fff;font-weight:800;font-size:14px;padding:12px 22px;border-radius:10px;text-decoration:none;transition:all 0.15s;box-shadow:0 3px 12px rgba(98,181,23,0.28);}
.cf-workshop-cta-link:hover{background:#4a8c11;transform:translateY(-1px);box-shadow:0 5px 16px rgba(98,181,23,0.38);}

/* PLAY ONLINE SECTION (the embedded Create/Join cards) */
.cf-play-online{background:#f4fae8;padding:48px 24px 40px;}
.cf-play-online .cf-main{max-width:900px;}

/* FOOTER */
.cf-footer{background:#2a3a10;padding:18px 24px;text-align:center;font-size:12px;color:#a8c96a;}
.cf-footer a{color:#d1db24;text-decoration:none;font-weight:700;}
.cf-footer a:hover{text-decoration:underline;}

/* When the lobby uses the new landing-page format, override the old centered/padded layout */
#lobby.cf-landing{padding:0 !important;align-items:stretch;display:block;background:#fff;}
#lobby.cf-landing.screen.active{display:block;}
#lobby.cf-landing > .lobby-container{display:block;max-width:none;padding:0;gap:0;width:100%;}
#lobby.cf-landing .lobby-section{margin:0;}

/* RESPONSIVE LANDING-PAGE TWEAKS */
@media(max-width:820px){
  .cf-main{padding:0 16px;}
  .cf-feature{padding:20px 16px;}
  .cf-header{padding:8px 16px 6px;height:auto;flex-direction:column;gap:6px;}
  .cf-cta-buttons-bar{flex-direction:column;align-items:stretch;padding:20px 16px;}
  .cf-btn-play-now,.cf-btn-buy-physical{justify-content:center;}
  .cf-nav a,.cf-nav-dropdown-trigger{padding:6px 10px;font-size:13px;}
  .cf-feature{flex:1 1 45%;border-bottom:1px solid #e3e7d6;}
  .cf-feature:nth-child(2){border-right:none;}
}
