/* Site-wide typography follows the original Calcula page. */
body, body :is(h1,h2,h3,h4,h5,h6,p,a,span,div,label,button,input,select,textarea,summary,li,td,th,legend,figcaption), svg text { font-family: Nunito, "Segoe UI", sans-serif !important; }
body :is(pre,code,kbd,samp),body :is(pre,code,kbd,samp) * {font-family: ui-monospace, Consolas, monospace !important;}
/* Legacy game headings keep their title and description, without a pre-title label. */
:is(.heading-kicker,.vf-kicker,.cs-kicker,.eyebrow):has(+ h1),.game-view .studio-heading .eyebrow {display:none !important;}

body textarea:is(#code,#agent-before,#agent-after){font-family:ui-monospace,Consolas,monospace !important;}

/* The game title treatment is shared by every built-in game page. */
body :is(.game-page,.game-template,.royale,.vf,.cs,#ct-game,.game-view main) h1{font-size:clamp(2rem,4vw,2.8rem)!important;font-weight:800!important;line-height:1.2!important;letter-spacing:normal!important;color:#0875ac!important;text-align:center!important;margin:0 0 12px!important;}
body :is(.game-page-intro,.royale-heading,.vf-heading,.cs-heading,.game-view .studio-heading){text-align:center!important;}
body :is(.royale-heading,.vf-heading,.cs-heading,.game-view .studio-heading){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:16px!important;padding:0 20px 26px!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;}
body :is(.royale-heading,.vf-heading,.cs-heading,.game-view .studio-heading)>div{width:100%;max-width:820px;margin-inline:auto;}
body :is(.game-page-intro,.royale-heading,.vf-heading,.cs-heading,#ct-game .hero) p{font-size:1.1rem!important;line-height:1.7!important;color:#16476a!important;margin:0!important;}
body :is(.royale,.vf,.cs){box-sizing:border-box;width:100%;max-width:1100px;}
body :is(.cs-tag,.vf-tag,.cg-game-badge){display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:0!important;padding:8px 15px!important;border:1px solid white!important;border-radius:999px!important;background:linear-gradient(#faffff,#d9efff)!important;color:#086591!important;box-shadow:inset 0 1px white,0 3px 10px #176b9820;font-size:.7rem;font-weight:900;letter-spacing:normal;}
body .cg-game-title-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;}
body .royale-heading>a,body .cg-game-title-actions>a{font-size:.85rem;color:#086591;text-decoration:underline;text-underline-offset:3px;}
body #ct-game .hero{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;text-align:center;padding-top:0;}
body #ct-game .hero>div:first-child{width:100%;max-width:820px;margin-inline:auto;}
body #ct-game .hero .row{justify-content:center;}
body #ct-game .hero .map-wrap{width:min(100%,800px);margin-inline:auto;}
body #ct-game .game-top{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;}
body #ct-game .game-top .row{justify-content:center;}
@media(max-width:720px){body :is(.game-page-intro,.royale-heading,.vf-heading,.cs-heading,#ct-game .hero) p{font-size:1rem!important;}body :is(.royale-heading,.vf-heading,.cs-heading,.game-view .studio-heading){padding:0 12px 24px!important;gap:14px!important;}}

body #ct-game .hero p{max-width:820px;margin-inline:auto!important;}
