#kf-account{box-sizing:border-box;max-width:560px;margin:30px auto 48px;padding:0 16px;color:#f5eee8;font-family:system-ui,-apple-system,sans-serif}
#kf-account *{box-sizing:border-box}
#kf-account .kf-card{background:linear-gradient(150deg,#15263a,#1d2337 65%,#332639);border:1px solid #bd8265;border-radius:22px;box-shadow:0 18px 55px #0c142866;padding:clamp(22px,4vw,36px)}
#kf-account .kf-brand{display:flex;align-items:center;gap:14px;color:#e8ab79;font-size:13px;font-weight:800;letter-spacing:.13em}
#kf-account .kf-brand img{border-radius:50%;object-fit:cover}
#kf-account h1{color:#fff5e9;font-size:clamp(28px,5vw,38px);line-height:1.15;margin:22px 0}
#kf-account p{line-height:1.5;margin:14px 0;color:#eee2d7}
#kf-account .kf-form{display:grid;gap:10px}
#kf-account .kf-form>label{font-weight:700;color:#fff1e3;margin-top:8px}
#kf-account .kf-field{display:flex;position:relative}
#kf-account .kf-field input{width:100%;min-height:48px;padding:10px 92px 10px 14px;background:#f6f3ee;color:#182235;border:2px solid transparent;border-radius:10px;font:inherit}
#kf-account .kf-field input[type=email]{padding-right:14px}
#kf-account .kf-password-toggle{position:absolute;right:4px;top:4px;bottom:4px;border:0;background:transparent;color:#27354a;padding:0 10px;cursor:pointer}
#kf-account .kf-remember{display:flex;gap:9px;align-items:center;font-size:14px}
#kf-account .kf-submit,#kf-account .kf-action{display:inline-block;background:#bd704b;color:#fff;border:1px solid #edb48e;border-radius:10px;font:inherit;font-weight:800;text-decoration:none;text-align:center;padding:13px 18px;cursor:pointer}
#kf-account .kf-submit:disabled{opacity:.7;cursor:wait}
#kf-account .kf-links{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin-top:20px}
#kf-account a{color:#ffd1aa}
#kf-account :is(a,button,input):focus-visible{outline:3px solid #ffdb8f;outline-offset:3px}
#kf-account .kf-hint,#kf-account .kf-privacy{font-size:14px;color:#d5c9c0}
#kf-account .kf-error{background:#5f2532;border:1px solid #ee8795;border-radius:9px;padding:10px;color:#fff;overflow-wrap:anywhere}
#kf-account .kf-success{background:#184739;border:1px solid #76d9ab;border-radius:9px;padding:10px;color:#fff;overflow-wrap:anywhere}
.kf-mars-frame-wrap{width:100%;max-width:100vw}.kf-mars-frame{width:100%;min-height:820px;border:0;display:block}
@media(max-width:600px){#kf-account{margin:12px auto 28px;padding:0 10px}#kf-account .kf-card{padding:20px 16px}.kf-mars-frame{min-height:860px}}
body.kf-mars-game-page{background:#0b1424;color:#f7eee7}
body.kf-mars-game-page #wrapper{background:radial-gradient(circle at 12% 18%,#6b3b36 0 1px,transparent 2px),radial-gradient(circle at 73% 40%,#d6a376 0 1px,transparent 2px),linear-gradient(155deg,#102036,#091320 60%,#231b2a);background-size:211px 217px,307px 313px,auto;min-height:100vh}
body.kf-mars-game-page :is(#masthead,.entry-hero,#colophon){display:none!important}
body.kf-mars-game-page :is(#inner-wrap,#primary,#main,.content-container,.content-wrap,.entry-content-wrap,.entry-content){width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
body.kf-mars-game-page article.entry{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.kf-mars-game-page .kf-mars-frame-wrap{width:100%;max-width:none;margin:0 auto;padding:0 12px 12px;box-sizing:border-box}
.kf-mars-site-bar{height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px;background:#111d2e;border:1px solid #725747;border-bottom:0;border-radius:14px 14px 0 0;color:#eab188;font:700 16px/1.2 system-ui,-apple-system,sans-serif}
.kf-mars-site-bar a{display:inline-flex;align-items:center;gap:10px;color:#fff3e6!important;text-decoration:none!important}
.kf-mars-site-bar a:hover{text-decoration:underline!important}
.kf-mars-site-bar img{display:block;width:36px;height:36px;border-radius:50%;object-fit:cover}
.kf-mars-site-actions{display:flex;align-items:center;gap:18px;min-width:0}
.kf-mars-share{display:flex;align-items:center;min-height:36px}
.kf-mars-share .addtoany_shortcode,.kf-mars-share .a2a_kit{display:flex;align-items:center;gap:5px;line-height:1}
.kf-mars-share .a2a_kit a{min-width:32px;min-height:32px;justify-content:center}
.kf-mars-share-fallback{border:1px solid #b87650;border-radius:7px;padding:7px 12px;font-size:14px}
body.kf-mars-game-page .kf-mars-frame{height:calc(100vh - 78px);height:calc(100dvh - 78px);min-height:620px;border:1px solid #725747;border-top:0;border-radius:0 0 14px 14px;background:#101827;box-sizing:border-box}
@media(max-width:600px){body.kf-mars-game-page .kf-mars-frame-wrap{padding:0 0 8px}.kf-mars-site-bar{height:54px;border-radius:0;padding:0 12px;font-size:14px}.kf-mars-site-actions{gap:6px}.kf-mars-site-actions>span:first-child{display:none}.kf-mars-share .a2a_kit a{min-width:30px;min-height:30px}body.kf-mars-game-page .kf-mars-frame{height:calc(100vh - 62px);height:calc(100dvh - 62px);min-height:0;border-radius:0}}
@media(max-height:500px){.kf-mars-site-bar{height:44px;padding:0 10px;font-size:12px;border-radius:0}.kf-mars-site-bar img{width:27px;height:27px}.kf-mars-site-actions{gap:7px}.kf-mars-share-fallback{padding:4px 8px;font-size:12px}body.kf-mars-game-page .kf-mars-frame-wrap{padding:0 0 6px}body.kf-mars-game-page .kf-mars-frame{height:calc(100vh - 50px);height:calc(100dvh - 50px);min-height:0;border-radius:0}}
.kf-mars-hero{position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;width:100%;max-width:1200px;min-height:clamp(280px,32vw,400px);margin:24px auto 38px;border:1px solid #b87650;border-radius:18px;background:#111e2e;color:#fff;box-shadow:0 18px 38px #101b2a3b}
.kf-mars-hero *{box-sizing:border-box}
.kf-mars-hero picture,.kf-mars-hero picture img{position:absolute;inset:0;width:100%;height:100%;display:block}
.kf-mars-hero picture img{object-fit:cover;object-position:67% 53%}
.kf-mars-hero:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#0a1222ed 0%,#0a1222ce 34%,#0a122249 72%,#0a12220d)}
.kf-mars-hero-content{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:min(60%,660px);min-height:inherit;padding:clamp(24px,4vw,54px);font-family:system-ui,-apple-system,sans-serif}
.kf-mars-hero-content p:first-child{margin:0 0 12px;color:#edb17e;font-size:clamp(11px,1.1vw,15px);font-weight:800;letter-spacing:.12em}
.kf-mars-hero-content h2{margin:0;color:#fff8ee;font-size:clamp(28px,3.1vw,48px);line-height:1.08}
.kf-mars-hero-content p:nth-of-type(2){margin:14px 0 22px;color:#f4e9df;font-size:clamp(16px,1.4vw,20px)}
.kf-mars-hero-content a{display:inline-flex;min-height:48px;align-items:center;justify-content:center;padding:0 28px;border:1px solid #f0b58e;border-radius:10px;background:#b96843;color:#fff!important;font-weight:800;text-decoration:none!important}
.kf-mars-hero-content a:hover,.kf-mars-hero-content a:focus-visible{background:#d17b51;color:#fff!important}
.kf-mars-hero-content a:focus-visible{outline:3px solid #fff;outline-offset:3px}
.kf-mars-hero-content small{margin-top:9px;color:#ecd7c6;font-size:13px}
@media(max-width:640px){.kf-mars-hero{min-height:330px;margin:16px auto 26px;border-radius:12px}.kf-mars-hero picture img{object-position:72% 50%}.kf-mars-hero:before{background:linear-gradient(180deg,#0a1222ed 0%,#0a1222aa 55%,#0a122233)}.kf-mars-hero-content{justify-content:flex-start;width:100%;padding:24px}.kf-mars-hero-content h2{max-width:12ch;font-size:clamp(27px,7vw,37px)}.kf-mars-hero-content p:nth-of-type(2){margin:9px 0 14px}.kf-mars-hero-content a{min-height:46px}}
/* The homepage cover sits immediately after Kadence's shared header. */
body.home .kf-mars-hero{width:100%;max-width:none;min-height:clamp(330px,36vw,520px);margin:0;border:0;border-radius:0;box-shadow:none}
body.home .kf-mars-hero-content h1{margin:0;color:#fff8ee;font-size:clamp(30px,3.5vw,55px);line-height:1.08}
body.home .entry-hero.page-hero-section{background:#030916!important}
body.home .entry-hero .hero-section-overlay{display:none}
body.home #kf-hero-home .kf-hero-photo,body.home #kf-hero-home .kf-hero-overlay,body.home #kf-hero-home .kf-hub-eyebrow,body.home #kf-hero-home .kf-hub-heading,body.home #kf-hero-home .kf-today-credit{display:none!important}
body.home #kf-hero-home .kf-hub-wrap{padding-top:clamp(16px,2vw,28px)}
@media(max-width:640px){body.home .kf-mars-hero{min-height:530px;margin:0;border-radius:0}body.home .kf-mars-hero picture,body.home .kf-mars-hero picture img{top:auto;bottom:0;height:220px}body.home .kf-mars-hero picture img{object-fit:cover;object-position:center}body.home .kf-mars-hero:before{background:linear-gradient(180deg,#0a1222 0%,#0a1222 52%,#0a122200 76%)}body.home .kf-mars-hero-content{min-height:0}body.home .kf-mars-hero-content h1{max-width:15ch;font-size:clamp(29px,7vw,40px)}body.home .kf-mars-hero-content p:nth-of-type(2){max-width:30ch}}

/* The share strip stays outside the game and never forces the iframe wider. */
body.kf-mars-game-page .kf-mars-site-bar{box-sizing:border-box;min-width:0;overflow:hidden}
body.kf-mars-game-page .kf-mars-site-bar>a{flex:0 1 auto;min-width:0;white-space:nowrap}
body.kf-mars-game-page .kf-mars-site-bar>a>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.kf-mars-game-page .kf-mars-site-actions{flex:0 0 auto;max-width:70%;min-width:0}
body.kf-mars-game-page .kf-mars-share{min-width:0;overflow:hidden}
@media(max-width:1024px){
  body.kf-mars-game-page .kf-mars-site-bar{height:44px;min-height:44px;padding:0 10px;gap:8px;border-radius:0}
  body.kf-mars-game-page .kf-mars-site-bar img{width:28px;height:28px;flex:none}
  body.kf-mars-game-page .kf-mars-site-bar>a>span{font-size:13px}
  body.kf-mars-game-page .kf-mars-site-actions>span:first-child{display:none}
  body.kf-mars-game-page .kf-mars-share-fallback{display:inline-flex;align-items:center;min-height:32px;padding:4px 9px;font-size:12px;white-space:nowrap}
  body.kf-mars-game-page .kf-mars-share .addtoany_shortcode,
  body.kf-mars-game-page .kf-mars-share .a2a_kit{display:none!important}
  body.kf-mars-game-page .kf-mars-frame{height:calc(100vh - 48px);height:calc(100dvh - 48px);min-height:0;border-radius:0}
  body.kf-mars-game-page .kf-mars-frame-wrap{padding:0 0 4px}
}
@media(max-width:1024px) and (max-height:500px){
  body.kf-mars-game-page .kf-mars-site-bar{height:36px;min-height:36px}
  body.kf-mars-game-page .kf-mars-site-bar img{width:24px;height:24px}
  body.kf-mars-game-page .kf-mars-frame{height:calc(100vh - 38px);height:calc(100dvh - 38px)}
  body.kf-mars-game-page .kf-mars-frame-wrap{padding-bottom:2px}
}
/* The browser already reserves its own toolbar/safe area. In touch landscape,
   remove the separate site strip so the embedded race fills that viewport. */
@media (hover:none) and (pointer:coarse) and (orientation:landscape){
  body.kf-mars-game-page .kf-mars-site-bar{display:none}
  body.kf-mars-game-page .kf-mars-frame-wrap{padding:0}
  body.kf-mars-game-page .kf-mars-frame{height:100vh;height:100dvh;min-height:0}
}
/* Keep the editorial cards directly beneath the cover when AdSense inserts
   an automatic placement before Kadence's page hero. The ad remains below it. */
body.home #inner-wrap{display:flex;flex-direction:column}
body.home #inner-wrap>.entry-hero{order:-1}
/* Automatic ad placement must not push the playable iframe below the fold. */
body.kf-mars-game-page #inner-wrap>.google-auto-placed{display:none!important}
@media (hover:none) and (pointer:coarse) and (orientation:landscape){
  html:has(body.kf-mars-game-page){margin-top:0!important}
  body.kf-mars-game-page #wpadminbar{display:none!important}
}
