/* FreeGameHost theme layer (2026-11-04): brings the older pages in line with the premium pages.
   Loaded after each page's inline CSS. fx- classes are new elements; the rest restyle existing markup. */
:root{--fx-card:#0d111d;--fx-line:rgba(255,255,255,.07);--fx-line2:rgba(255,255,255,.13);--fx-grass:#6bb944;--fx-gold:#f2c94c;--fx-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}

/* hero: pixel grid + soft glow behind the art */
html body .hero-section,html body section.hero{position:relative;isolation:isolate}
html body .hero-section::after,html body section.hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(45% 60% at 78% 45%,rgba(107,185,68,.12),transparent 70%),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:auto,32px 32px,32px 32px;-webkit-mask-image:radial-gradient(75% 85% at 60% 45%,#000,transparent 80%);mask-image:radial-gradient(75% 85% at 60% 45%,#000,transparent 80%)}
html body .hero-badge{font-family:var(--fx-mono);font-size:.74rem;letter-spacing:.14em;background:none;border:0;padding:0;border-radius:0}
html body .hero-badge::before{width:8px;height:8px;border-radius:0;box-shadow:3px 3px 0 rgba(0,232,181,.35);animation:none}

/* new hero art */
.fx-art{position:relative;display:flex;justify-content:center;align-items:center;min-height:400px}
.fx-scene{width:min(100%,440px);height:auto;image-rendering:pixelated;filter:drop-shadow(0 30px 50px rgba(0,0,0,.55));animation:fx-float 6s ease-in-out infinite}
.fx-scene.fx-wide{width:min(100%,520px)}
@keyframes fx-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
.fx-chip{position:absolute;left:-.5rem;bottom:9%;display:flex;gap:.7rem;align-items:center;background:rgba(13,17,29,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid var(--fx-line2);border-radius:12px;padding:.7rem .9rem;box-shadow:0 14px 40px rgba(0,0,0,.45);max-width:290px}
.fx-chip i{width:10px;height:10px;border-radius:2px;background:var(--fx-grass);box-shadow:0 0 0 4px rgba(107,185,68,.18);flex:none}
.fx-chip b{display:block;font-family:var(--fx-mono);font-size:.8rem;color:#fff;font-weight:600;line-height:1.3}
.fx-chip span{display:block;font-size:.75rem;color:#8b94ad;line-height:1.35}
.fx-art-center{margin:0 auto 1.5rem;min-height:0}
.fx-art-center .fx-scene{width:min(70%,320px)}

/* cards: one radius, one surface, one hover */
html body :is(.spec-card,.step,.cmp-card,.related-card,.mod-card,.tool-card,.hosting-card,.review-card,.guide-card,.feature-card,.setup-block,.faq-item){border-radius:14px}
html body :is(.spec-card,.tool-card,.hosting-card,.review-card,.guide-card,.related-card,.feature-card){background:var(--fx-card)!important;transition:transform .2s,border-color .2s,box-shadow .2s}
html body :is(.spec-card,.tool-card,.hosting-card,.related-card,.guide-card,.feature-card):hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(0,0,0,.35)}
html body .faq-item{background:var(--fx-card)}

/* pixel-block icons that replace line icons */
.fx-blk{width:44px;height:44px;image-rendering:pixelated;display:block;flex:none;transition:transform .3s}
.spec-card .fx-blk{margin-bottom:.8rem}
.hcard-top .fx-blk{width:52px;height:52px;margin-bottom:1rem}
.tool-card .fx-blk{width:40px;height:40px;margin-bottom:.9rem}
:is(.spec-card,.tool-card,.hosting-card):hover .fx-blk{transform:translateY(-3px) rotate(-4deg)}

/* section headings: sentence case everywhere, like the premium pages */
html body main :is(h2,.section-title,.cta-title){text-transform:none!important}

/* buttons */
html body :is(.btn-primary,.btn-secondary,.cta-btn){border-radius:10px}
html body .btn-primary:hover{box-shadow:0 8px 24px rgba(0,232,181,.25)}

/* panel mockup (replaces the old panel screenshot) */
.fx-win{max-width:900px;margin:0 auto;text-align:left;background:#0a0d16;border:1px solid var(--fx-line2);border-radius:14px;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.5)}
.fx-win-bar{display:flex;align-items:center;gap:.4rem;padding:.65rem .9rem;border-bottom:1px solid var(--fx-line);background:#0d111d}
.fx-win-bar i{width:10px;height:10px;border-radius:50%;background:#2a3047;display:block}
.fx-win-bar span{margin-left:.6rem;font-family:var(--fx-mono);font-size:.74rem;color:#8b94ad}
.fx-win-nav{display:flex;gap:.25rem;padding:.6rem .7rem;border-bottom:1px solid var(--fx-line);flex-wrap:wrap}
.fx-win-nav span{font-size:.78rem;font-weight:700;color:#8b94ad;padding:.35rem .65rem;border-radius:6px}
.fx-win-nav span.on{color:#fff;background:rgba(255,255,255,.06)}
.fx-win-body{display:grid;grid-template-columns:1.7fr 1fr;gap:.8rem;padding:.9rem}
.fx-con{background:#05070c;border:1px solid var(--fx-line);border-radius:8px;padding:.8rem;font-family:var(--fx-mono);font-size:.76rem;line-height:1.75;color:#aab3c8;min-height:220px;overflow:hidden}
.fx-con .g{color:var(--fx-grass)}.fx-con .t{color:#00e8b5}.fx-con .y{color:var(--fx-gold)}
.fx-stats{display:grid;gap:.55rem;align-content:start}
.fx-stat{background:#0d111d;border:1px solid var(--fx-line);border-radius:8px;padding:.6rem .75rem}
.fx-stat small{display:block;font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;color:#8b94ad}
.fx-stat b{font-family:var(--fx-mono);font-size:.88rem;color:#fff}
.fx-meter{height:4px;border-radius:2px;background:rgba(255,255,255,.07);margin-top:.35rem;overflow:hidden}
.fx-meter i{display:block;height:100%;background:#00e8b5}

/* premium band */
.fx-prem{padding:3.5rem 1.5rem}
.fx-prem-in{max-width:1080px;margin:0 auto;position:relative;overflow:hidden;border-radius:20px;border:1px solid rgba(242,201,76,.3);background:linear-gradient(120deg,rgba(242,201,76,.09),rgba(107,185,68,.06) 50%,#0d111d);padding:2.2rem 2.5rem;display:grid;grid-template-columns:auto 1fr auto;gap:2rem;align-items:center}
.fx-prem-blocks{display:flex;align-items:flex-end}
.fx-prem-blocks img{width:64px;height:64px;image-rendering:pixelated;margin-left:-8px}
.fx-prem-blocks img:nth-child(2){transform:translateY(-14px)}
.fx-prem-blocks img:nth-child(3){transform:translateY(-28px)}
.fx-prem-k{font-family:var(--fx-mono);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--fx-gold);margin-bottom:.4rem}
.fx-prem h2{font-family:var(--ff-display,'Barlow Condensed',sans-serif);font-weight:800;font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.05;color:#fff;margin:0 0 .45rem;letter-spacing:-.01em}
.fx-prem p{color:#8b94ad;margin:0;font-size:.95rem;max-width:640px}
.fx-prem p b{color:#e4e8f5}
.fx-prem-btn{display:inline-flex;align-items:center;gap:.5rem;background:var(--fx-gold);color:#1d1503;font-weight:800;text-decoration:none;padding:.85rem 1.3rem;border-radius:10px;white-space:nowrap;transition:transform .15s,box-shadow .15s}
.fx-prem-btn:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(242,201,76,.25)}

/* about page */
.fx-about-hero{display:grid;grid-template-columns:1fr 340px;gap:2rem;align-items:center;margin-bottom:2rem}
.fx-about-hero .fx-art{min-height:0}
.fx-about-hero .fx-scene{width:100%}

@media (max-width:1100px){
  html body .hero-section .fx-art,html body section.hero .fx-art{order:-1;min-height:0;margin:0 auto -.5rem}
  .fx-scene{width:min(62%,300px)}
  .fx-scene.fx-wide{width:min(80%,380px)}
  .fx-chip{display:none}
}
@media (max-width:860px){
  .fx-prem-in{grid-template-columns:1fr;padding:1.8rem;gap:1.2rem}
  .fx-prem-blocks{display:none}
  .fx-win-body{grid-template-columns:1fr}
  .fx-about-hero{grid-template-columns:1fr}
  .fx-about-hero .fx-art{order:-1}
  .fx-about-hero .fx-scene{width:min(60%,260px)}
}
@media (prefers-reduced-motion:reduce){.fx-scene{animation:none}.fx-blk{transition:none}}

/* 404: decorative glow was wider than phone screens */
html body .hero-404{overflow-x:clip}

/* ===== per-page hero components (round 2) ===== */
.fx-art{width:100%}
.fx-tm{max-width:1100px;margin:0 auto;padding:0 1.5rem 1.4rem;font-size:.72rem;color:#5d667f;text-align:center;line-height:1.5}

/* app window (plugins / mods / modpacks) */
.fx-app{width:100%;max-width:440px;background:#0b0e18;border:1px solid var(--fx-line2);border-radius:16px;box-shadow:0 30px 70px rgba(0,0,0,.5);overflow:hidden;text-align:left}
.fx-app-bar{display:flex;align-items:center;gap:.55rem;padding:.8rem 1rem;border-bottom:1px solid var(--fx-line);background:#0f1322}
.fx-app-bar img{image-rendering:pixelated}
.fx-app-bar b{color:#fff;font-size:.95rem}
.fx-app-bar span{margin-left:auto;font-family:var(--fx-mono);font-size:.72rem;color:#8b94ad;background:rgba(255,255,255,.05);padding:.2rem .5rem;border-radius:6px}
.fx-app-search{margin:.75rem 1rem .35rem;padding:.55rem .75rem;border-radius:9px;background:#05070c;border:1px solid var(--fx-line);color:#5d667f;font-size:.8rem}
.fx-row{display:flex;align-items:center;gap:.75rem;padding:.6rem 1rem}
.fx-row + .fx-row{border-top:1px solid rgba(255,255,255,.04)}
.fx-row img{image-rendering:pixelated;flex:none}
.fx-row b{display:block;color:#fff;font-size:.88rem;line-height:1.25}
.fx-row small{display:block;color:#8b94ad;font-size:.75rem;line-height:1.3}
.fx-row > div{flex:1;min-width:0}
.fx-pill{font-size:.7rem;font-weight:800;padding:.28rem .6rem;border-radius:7px;white-space:nowrap}
.fx-ok{color:#6bb944;background:rgba(107,185,68,.12);border:1px solid rgba(107,185,68,.3)}
.fx-btn{color:#04120e;background:#00e8b5}
.fx-prog{width:72px;height:6px;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden;flex:none}
.fx-prog i{display:block;height:100%;background:linear-gradient(90deg,#00e8b5,#6bb944);animation:fx-load 2.4s ease-in-out infinite alternate}
@keyframes fx-load{from{filter:brightness(.8)}to{filter:brightness(1.3)}}

/* discord chat */
.fx-dc{width:100%;max-width:440px;background:#313338;border-radius:14px;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.55);text-align:left;font-family:var(--ff-body,'Manrope',sans-serif)}
.fx-dc-top{display:flex;align-items:center;gap:.6rem;padding:.75rem 1rem;background:#2b2d31;border-bottom:1px solid #1f2023}
.fx-dlogo{width:22px;height:22px;flex:none}
.fx-dc-top b{color:#f2f3f5;font-size:.9rem}
.fx-dc-on{margin-left:auto;display:flex;align-items:center;gap:.35rem;font-size:.72rem;color:#b5bac1}
.fx-dc-on i{width:8px;height:8px;border-radius:50%;background:#23a55a}
.fx-dc-msgs{padding:.9rem 1rem .4rem;display:grid;gap:.9rem}
.fx-dc-msg{display:flex;gap:.75rem}
.fx-av{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;font-style:normal;font-weight:800;color:#1d1503;overflow:hidden}
.fx-av-bot{background:#5865f2}
.fx-av-bot img{image-rendering:pixelated}
.fx-dc-msg b{color:#f2f3f5;font-size:.88rem;font-weight:700}
.fx-dc-msg b em{font-style:normal;font-size:.6rem;font-weight:800;background:#5865f2;color:#fff;border-radius:4px;padding:.05rem .3rem;margin-left:.25rem;vertical-align:2px}
.fx-dc-msg time{font-size:.68rem;color:#949ba4;margin-left:.45rem}
.fx-dc-msg p{margin:.1rem 0 0;color:#dbdee1;font-size:.86rem}
.fx-dc-msg p b{font-size:.86rem}
.fx-slash{color:#c9cdfb;background:rgba(88,101,242,.3);border-radius:4px;padding:0 .25rem;font-weight:600}
.fx-embed{margin-top:.4rem;border-left:4px solid #00e8b5;background:#2b2d31;border-radius:4px;padding:.5rem .7rem}
.fx-embed b{display:block;font-size:.78rem}
.fx-embed span{font-size:.76rem;color:#b5bac1}
.fx-dc-input{margin:.6rem 1rem 1rem;background:#383a40;border-radius:8px;padding:.65rem .8rem;color:#80848e;font-size:.82rem}
.fx-term{position:absolute;right:-.75rem;bottom:-1.5rem;background:#05070c;border:1px solid var(--fx-line2);border-radius:10px;padding:.65rem .85rem;font-family:var(--fx-mono);font-size:.72rem;line-height:1.7;color:#aab3c8;box-shadow:0 16px 40px rgba(0,0,0,.5)}
.fx-term .g{color:#6bb944}.fx-term .t{color:#00e8b5}

/* terraria */
.fx-terra{flex-direction:column;gap:.4rem}
.fx-tlogo{width:min(88%,380px);height:auto;image-rendering:pixelated;filter:drop-shadow(0 10px 24px rgba(0,0,0,.6));position:relative;z-index:2;margin-bottom:-1.4rem}
.fx-terra .fx-scene{animation-duration:7s}
.fx-badges{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;margin-top:.4rem}
.fx-badges span{display:inline-flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:700;color:#dfe5f2;background:rgba(13,17,29,.9);border:1px solid var(--fx-line2);border-radius:8px;padding:.3rem .6rem}
.fx-badges img{width:22px;height:auto}

/* factorio */
.fx-fact{flex-direction:column;gap:1.2rem;margin-bottom:2rem}
.fx-flogo{width:min(90%,520px);height:auto;filter:drop-shadow(0 12px 28px rgba(0,0,0,.6))}
.fx-belt{width:min(92%,560px);height:38px;border-radius:6px;overflow:hidden;position:relative;background:repeating-linear-gradient(90deg,#2a2c31 0 14px,#d9a521 14px 22px);background-size:22px 100%;animation:fx-belt 1.2s linear infinite;border:3px solid #3b3e44;box-shadow:inset 0 0 0 2px rgba(0,0,0,.35)}
@keyframes fx-belt{to{background-position:22px 0}}
.fx-belt-items{position:absolute;top:3px;left:0;display:flex;gap:10px;animation:fx-items 9s linear infinite;width:max-content}
.fx-belt-items img{width:26px;height:26px;image-rendering:pixelated}
@keyframes fx-items{from{transform:translateX(-50%)}to{transform:translateX(0)}}

/* hytale */
.fx-hyt{min-height:420px}
.fx-hglow{position:absolute;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(242,201,76,.28),rgba(79,142,255,.12) 50%,transparent 70%);filter:blur(10px)}
.fx-hlogo{position:relative;width:min(56%,230px);height:auto;filter:drop-shadow(0 20px 40px rgba(0,0,0,.6));animation:fx-float 6s ease-in-out infinite}
.fx-orbit{position:absolute;inset:0;pointer-events:none}
.fx-orbit span{position:absolute;left:var(--x);top:var(--y);font-size:.78rem;font-weight:700;color:#e4e8f5;background:rgba(13,17,29,.92);border:1px solid var(--fx-line2);border-radius:999px;padding:.4rem .8rem;box-shadow:0 10px 26px rgba(0,0,0,.4);white-space:nowrap}

/* geyser crossplay */
.fx-xplay{width:100%;max-width:460px;display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:center;gap:.6rem}
.fx-xside{background:#0d111d;border:1px solid var(--fx-line2);border-radius:14px;padding:.85rem .75rem;text-align:center;box-shadow:0 18px 40px rgba(0,0,0,.4)}
.fx-xh{font-family:var(--ff-display,'Barlow Condensed',sans-serif);font-weight:800;font-size:1.15rem;color:#fff;margin-bottom:.3rem}
.fx-xside > span{display:block;font-size:.76rem;color:#c3cadb}
.fx-xside small{display:block;margin-top:.5rem;font-family:var(--fx-mono);font-size:.68rem;color:#00e8b5}
.fx-devs{display:flex;flex-wrap:wrap;gap:.25rem;justify-content:center}
.fx-devs span{font-size:.66rem;font-weight:700;color:#dfe5f2;background:rgba(255,255,255,.05);border-radius:5px;padding:.15rem .35rem}
.fx-xmid{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.35rem}
.fx-xmid img{image-rendering:pixelated;filter:drop-shadow(0 14px 24px rgba(0,0,0,.6));animation:fx-float 6s ease-in-out infinite}
.fx-xmid b{font-family:var(--fx-mono);font-size:.72rem;color:#fff}
.fx-xmid small{font-size:.66rem;color:#8b94ad}
.fx-xl,.fx-xr{position:absolute;top:28%;width:30%;height:2px;background:repeating-linear-gradient(90deg,#00e8b5 0 6px,transparent 6px 10px);animation:fx-dash .8s linear infinite}
.fx-xl{left:-18%}.fx-xr{right:-18%}
@keyframes fx-dash{to{background-position:10px 0}}

/* minecraft server list entry */
.fx-mclist{position:absolute;left:-.5rem;bottom:6%;display:flex;align-items:center;gap:.7rem;background:rgba(10,12,20,.94);border:1px solid var(--fx-line2);border-radius:10px;padding:.55rem .75rem;box-shadow:0 14px 40px rgba(0,0,0,.5);min-width:300px}
.fx-mclist img{image-rendering:pixelated;flex:none}
.fx-mcl-t{display:flex;flex-direction:column;line-height:1.3;font-family:var(--fx-mono)}
.fx-mcl-t b{color:#fff;font-size:.8rem}
.fx-mcl-t .m1{color:#6bb944;font-size:.72rem}
.fx-mcl-t .m2{color:#f2c94c;font-size:.72rem}
.fx-mcl-r{margin-left:auto;display:flex;align-items:flex-start;gap:.4rem;font-family:var(--fx-mono);font-size:.7rem;color:#aab3c8;align-self:flex-start}
.fx-bars{display:flex;gap:2px;align-items:flex-end;height:12px}
.fx-bars i{width:3px;background:#6bb944;display:block}
.fx-bars i:nth-child(1){height:4px}.fx-bars i:nth-child(2){height:6px}.fx-bars i:nth-child(3){height:8px}.fx-bars i:nth-child(4){height:10px}.fx-bars i:nth-child(5){height:12px}

/* homepage game bento */
.fx-bento{width:100%;max-width:470px;display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:repeat(4,96px);gap:.7rem}
.fx-tile{position:relative;border-radius:16px;border:1px solid var(--fx-line2);background:#0d111d;overflow:hidden;text-decoration:none;display:flex;align-items:center;justify-content:center;transition:transform .2s,border-color .2s,box-shadow .2s}
.fx-tile:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.25);box-shadow:0 18px 40px rgba(0,0,0,.4)}
.fx-tile > span{position:absolute;left:.75rem;bottom:.6rem;line-height:1.15}
.fx-tile b{display:block;color:#fff;font-size:.88rem}
.fx-tile small{display:block;color:#a3abc2;font-size:.7rem}
.fx-tile-mc{grid-row:span 4;background:radial-gradient(80% 60% at 50% 40%,rgba(107,185,68,.22),transparent 70%),#0d111d}
.fx-tile-mc img{width:88%;height:auto;image-rendering:pixelated;margin-top:-2.5rem;animation:fx-float 6s ease-in-out infinite;filter:drop-shadow(0 20px 30px rgba(0,0,0,.55))}
.fx-tile-terra{background:linear-gradient(180deg,#1b3a5c,#0d111d)}
.fx-tile-terra img{width:78%;height:auto;image-rendering:pixelated;margin-top:-1.2rem}
.fx-tile-dc{background:#5865f2;border-color:#5865f2}
.fx-tile-dc small{color:#e0e3ff}
.fx-dlogo-big{width:56px;height:56px;margin-top:-1.2rem}
.fx-tile-fact{background:linear-gradient(180deg,#3a2a12,#0d111d)}
.fx-tile-fact img{width:84%;height:auto;margin-top:-1.2rem}
.fx-tile-hyt{background:linear-gradient(180deg,#2b2140,#0d111d)}
.fx-tile-hyt img{height:62px;width:auto;margin-top:-1.2rem}
.fx-tile > span{text-align:left}

@media (max-width:1100px){
  .fx-term{right:0;bottom:-1rem}
  .fx-mclist{position:static;margin:-1rem auto 0;min-width:0;max-width:340px}
  html body .hero-section .fx-art,html body section.hero .fx-art{flex-direction:column}
  .fx-orbit{display:none}
  .fx-bento{max-width:420px;margin:0 auto}
  .fx-dc,.fx-app,.fx-xplay{margin:0 auto}
  .fx-tlogo{width:min(80%,320px)}
}
@media (max-width:520px){
  .fx-bento{grid-template-rows:repeat(4,78px);gap:.5rem}
  .fx-term{display:none}
  .fx-xplay{grid-template-columns:1fr;max-width:300px}
  .fx-xl,.fx-xr{display:none}
  .fx-hyt{min-height:0}
}
@media (prefers-reduced-motion:reduce){.fx-belt,.fx-belt-items,.fx-xl,.fx-xr,.fx-prog i,.fx-hlogo,.fx-xmid img,.fx-tile-mc img{animation:none}}
/* phones: big mockups go under the headline; scenes/logos stay on top */
@media (max-width:1100px){
  html body .hero-section .fx-art:has(.fx-app,.fx-dc,.fx-xplay,.fx-bento),html body section.hero .fx-art:has(.fx-app,.fx-dc,.fx-xplay,.fx-bento){order:2;margin:1.5rem auto 0}
}
@media (max-width:520px){
  .fx-bento{grid-template-rows:repeat(4,88px)}
  .fx-tile-terra img,.fx-tile-fact img,.fx-tile-hyt img,.fx-dlogo-big{margin-top:-1.9rem}
  .fx-tile-terra img{width:70%}.fx-tile-fact img{width:76%}.fx-tile-hyt img{height:50px}.fx-dlogo-big{width:44px;height:44px}
  .fx-tile > span{left:.6rem;bottom:.45rem}
  .fx-tile b{font-size:.8rem}.fx-tile small{font-size:.64rem}
}
/* bento tiles: logo on top, label underneath (no overlap) */
.fx-bento{grid-template-rows:repeat(4,100px)}
.fx-tile:not(.fx-tile-mc){align-items:flex-start;padding-top:14px}
.fx-tile-terra img,.fx-tile-fact img,.fx-tile-hyt img,.fx-dlogo-big{margin-top:0!important;width:auto!important}
.fx-tile-terra img{height:40px!important}
.fx-tile-fact img{height:26px!important;margin-top:6px!important}
.fx-tile-hyt img{height:42px!important}
.fx-dlogo-big{height:40px!important;width:40px!important}
@media (max-width:520px){
  .fx-bento{grid-template-rows:repeat(4,90px)}
  .fx-tile:not(.fx-tile-mc){padding-top:10px}
  .fx-tile-terra img{height:32px!important}.fx-tile-fact img{height:20px!important}.fx-tile-hyt img{height:34px!important}.fx-dlogo-big{height:32px!important;width:32px!important}
}

/* ===== clean homepage (hx-) on the premium design system ===== */
.hx{background:#07090f}
.hx .pm-sec{padding:5rem 0}
.hx-hero-lead a{color:#00e8b5;text-decoration:none;border-bottom:1px solid rgba(0,232,181,.35)}
.hx-hero-lead a:hover{border-bottom-color:#00e8b5}
.hx .pm-hero .fx-art{display:flex;justify-content:center}
.hx-stats{border-top:1px solid var(--pm-line,rgba(255,255,255,.07));border-bottom:1px solid var(--pm-line,rgba(255,255,255,.07));background:rgba(255,255,255,.015)}
.hx-stats-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));text-align:center}
.hx-stats-row > div{padding:1.6rem .5rem}
.hx-stats-row > div + div{border-left:1px solid rgba(255,255,255,.07)}
.hx-stats-row b{display:block;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:2.1rem;line-height:1;color:#fff}
.hx-stats-row b span,.hx-stats-row b strong{color:inherit;font-weight:inherit}
.hx-stats-row > div > span{display:block;margin-top:.4rem;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:#8b94ad}
.hx-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.hx-grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.hx-mt{margin-top:1rem}
.hx-card{background:#0d111d;border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:1.4rem;display:flex;flex-direction:column;text-decoration:none;color:inherit;transition:border-color .2s,transform .2s,box-shadow .2s}
a.hx-card:hover,.hx-game:hover{border-color:rgba(255,255,255,.14);transform:translateY(-3px);box-shadow:0 18px 40px rgba(0,0,0,.35)}
.hx-card h3{font-size:1.05rem;font-weight:800;color:#fff;margin:.9rem 0 .35rem}
.hx-card p{font-size:.9rem;color:#8b94ad;margin:0 0 1rem;line-height:1.6}
.hx-card p a{color:#00e8b5;text-decoration:none}
.hx-blk{image-rendering:pixelated;display:block;transition:transform .3s}
.hx-card:hover .hx-blk{transform:translateY(-3px) rotate(-4deg)}
.hx-dl{margin:0 0 1.2rem;padding:.9rem 0 0;border-top:1px dashed rgba(255,255,255,.12);display:grid;gap:.45rem}
.hx-dl > div{display:flex;justify-content:space-between;gap:1rem;font-size:.86rem}
.hx-dl dt{color:#8b94ad}
.hx-dl dd{margin:0;color:#e4e8f5;font-weight:600;text-align:right}
.hx-more{margin-top:auto;display:inline-flex;align-items:center;gap:.4rem;color:#00e8b5;font-weight:700;font-size:.88rem;text-decoration:none}
.hx-more svg{width:16px;height:16px;transition:transform .15s}
.hx-card:hover .hx-more svg,.hx-more:hover svg{transform:translateX(3px)}
.hx-split{display:grid;grid-template-columns:1.15fr .85fr;gap:3rem;align-items:start}
.hx-prose p{color:#a3abc2;font-size:.98rem;line-height:1.75;margin:0 0 1rem}
.hx-prose p a,.hx-prose strong{color:#e4e8f5}
.hx-prose p a{color:#00e8b5;text-decoration:none}
.hx-guides{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin-top:1.4rem}
.hx-guide{display:flex;flex-direction:column;gap:.25rem;padding:1rem 1.1rem;border-radius:12px;background:#0d111d;border:1px solid rgba(255,255,255,.07);text-decoration:none;transition:border-color .2s}
.hx-guide:hover{border-color:rgba(0,232,181,.4)}
.hx-guide span{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:#00e8b5}
.hx-guide b{color:#fff;font-size:.92rem;line-height:1.35}
.hx-guide em{font-style:normal;font-size:.8rem;color:#8b94ad}
.hx-panel{background:#0d111d;border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:1.2rem}
.hx-panel-h{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#8b94ad;margin:0 0 .6rem .2rem}
.hx-row{display:flex;gap:.9rem;padding:.9rem .2rem}
.hx-row + .hx-row{border-top:1px solid rgba(255,255,255,.06)}
.hx-row .pm-ico{margin:0;flex:none}
.hx-row h3{font-size:.95rem;color:#fff;margin:0 0 .2rem;font-weight:800}
.hx-row p{font-size:.86rem;color:#8b94ad;margin:0;line-height:1.55}
.hx-num{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.9rem;font-weight:700;color:#00e8b5;background:rgba(0,232,181,.08);border:1px solid rgba(0,232,181,.2);border-radius:8px;padding:.25rem .55rem;align-self:flex-start}
.hx-step p strong{color:#e4e8f5}
.hx-time{margin-top:auto;display:inline-flex;align-items:center;gap:.4rem;font-size:.8rem;color:#8b94ad}
.hx-time svg{width:15px;height:15px;color:#6bb944}
.hx .pm-inc .pm-feat p{line-height:1.6}
.hx-tbl{min-width:760px}
.hx .pm-tbl.hx-tbl td:nth-child(2),.hx .pm-tbl.hx-tbl th:nth-child(2){background:rgba(0,232,181,.05);color:#e8fff8!important;font-weight:700}
.hx .pm-tbl.hx-tbl thead th:nth-child(2){color:#00e8b5}
.hx .pm-tbl.hx-tbl td:last-child{background:none;color:#8b94ad}
.hx .pm-tbl.hx-tbl thead th:last-child{color:#8b94ad}
.hx .pm-tbl.hx-tbl td:nth-child(n+3){color:#8b94ad}
.hx-tbl th span,.hx-tbl td span{font-size:.62rem;font-weight:800;margin-left:.35rem;padding:.1rem .35rem;border-radius:4px;background:#00e8b5;color:#04120e;vertical-align:2px}
.hx-links{margin:1.4rem 0 0;color:#8b94ad;font-size:.9rem;text-align:center}
.hx-links a{color:#00e8b5;text-decoration:none;font-weight:600}
.hx-links a:hover{text-decoration:underline}
.hx-links span{margin:0 .35rem;color:#3d4459}
.hx-rating{display:inline-flex;align-items:center;gap:.5rem;margin:-1.2rem 0 1.6rem;font-size:.9rem;color:#a3abc2;background:#0d111d;border:1px solid rgba(255,255,255,.07);border-radius:999px;padding:.45rem .9rem}
.hx-rating strong{color:#fff}
.hx-stars{color:#00b67a;letter-spacing:.1em}
.hx-rev{margin:0}
.hx-rev blockquote{margin:.8rem 0 1.2rem;color:#dfe5f2;font-size:.95rem;line-height:1.65}
.hx-rev figcaption{margin-top:auto;display:flex;align-items:center;gap:.7rem}
.hx-rev figcaption i{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:800;font-size:.78rem;color:#04120e;background:#6bb944}
.hx-rev figcaption b{display:block;color:#fff;font-size:.88rem}
.hx-rev figcaption small{color:#8b94ad;font-size:.76rem}
.hx-prem{display:grid;grid-template-columns:auto 1fr auto;gap:2rem;align-items:center;border-radius:20px;border:1px solid rgba(242,201,76,.3);background:linear-gradient(120deg,rgba(242,201,76,.08),rgba(13,17,29,1) 60%);padding:2.2rem 2.4rem}
.hx-prem .pm-h2{font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:.4rem}
.hx-prem-blocks{display:flex;align-items:flex-end}
.hx-prem-blocks img{margin-left:-6px}
.hx-prem-blocks img:nth-child(2){transform:translateY(-12px)}
.hx-prem-blocks img:nth-child(3){transform:translateY(-24px)}
.hx-gold{color:#f2c94c}.hx-gold::before{box-shadow:3px 3px 0 rgba(242,201,76,.35)}
.hx-btn-gold{background:#f2c94c;color:#1d1503}
.hx-btn-gold:hover{background:#ffd966;transform:translateY(-1px)}
/* locations widget: sit on the same canvas */
.hx .locations-section{background:none!important;border-top:1px solid rgba(255,255,255,.07)}
.hx .pm-sec + .locations-section,.hx .locations-section + .pm-sec{border-top:1px solid rgba(255,255,255,.07)}
@media (max-width:1100px){.hx-grid4{grid-template-columns:repeat(2,minmax(0,1fr))}.hx-split{grid-template-columns:1fr}}
@media (max-width:900px){.hx-grid3{grid-template-columns:1fr}.hx-stats-row{grid-template-columns:repeat(3,1fr)}.hx-stats-row > div:nth-child(4){border-left:0}.hx-prem{grid-template-columns:1fr;padding:1.8rem}.hx-prem-blocks{display:none}.hx .pm-sec{padding:3.8rem 0}}
@media (max-width:560px){.hx-grid4,.hx-guides{grid-template-columns:1fr}.hx-stats-row{grid-template-columns:repeat(2,1fr)}.hx-stats-row > div{border-left:0!important;border-top:1px solid rgba(255,255,255,.06)}.hx-rating{flex-wrap:wrap;border-radius:12px}}

.hx #features .pm-inc{grid-template-columns:repeat(3,minmax(0,1fr))}
.hx .locations-section{padding:5rem 0!important}
.hx .locations-section > .wrap{max-width:1200px!important;padding:0 1.5rem!important;margin:0 auto}
.hx .locations-section .fgh-eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:#00e8b5;background:none;border:0;padding:0}
.hx .locations-section .fgh-eyebrow-dot{width:8px;height:8px;border-radius:0;background:#00e8b5;box-shadow:3px 3px 0 rgba(0,232,181,.35);animation:none}
.hx .locations-section h2.st{font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:clamp(2rem,4.2vw,3rem);line-height:1.05;letter-spacing:-.01em;margin:.6rem 0 .9rem!important}
.hx .locations-section .sd{color:#8b94ad;font-size:1.04rem;max-width:640px}
@media (max-width:1100px){.hx #features .pm-inc{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.hx #features .pm-inc{grid-template-columns:1fr}}

/* ===== round 4: old page components on the clean system (.hx .hx-old) ===== */
.hx{--blue:#00e8b5;--lavender:#00e8b5;--lav:#00e8b5;--surface:#0d111d;--surface2:#111628;--surface3:#161d30;--ink:#07090f;--wire2:rgba(255,255,255,.1)}
.hx .blue,.hx .lav,.hx em.blue{color:#00e8b5!important}
.hx > section.hx-old,.hx section.pm-sec.hx-old{background:none!important;padding:5rem 0!important;border-top:1px solid rgba(255,255,255,.07)!important;margin:0!important;max-width:none!important}
.hx .hx-old > .pm-wrap,.hx .hx-old .pm-wrap{max-width:1200px!important;margin:0 auto!important;padding:0 1.5rem!important;width:auto!important}
.hx .hx-old .pm-h2{font-family:'Barlow Condensed',sans-serif!important;font-weight:800!important;font-size:clamp(2rem,4.2vw,3rem)!important;line-height:1.05!important;letter-spacing:-.01em!important;color:#fff!important;margin:0 0 .9rem!important;text-align:left}
.hx .hx-old .pm-h2 .pm-hl,.hx .hx-old .pm-h2 em{color:#00e8b5;font-style:normal}
.hx .hx-old .pm-lead{color:#8b94ad!important;font-size:1.04rem!important;max-width:640px;margin:0 0 2.5rem!important;line-height:1.6}
.hx .hx-old .pm-eyebrow{display:inline-flex}
.hx .hx-center{text-align:center}
.hx .hx-center > .pm-h2,.hx .hx-center > .pm-lead{text-align:center!important;margin-left:auto!important;margin-right:auto!important}
.hx .hx-center > .pm-eyebrow{justify-content:center}
.hx .breadcrumb,.hx .breadcrumb-bar,.hx .breadcrumbs,body > nav.breadcrumb,body > nav.breadcrumb-bar,nav.breadcrumbs{background:none!important;border:0!important}
.hx-hero{padding-top:3rem}
.hx-hero .pm-h1{font-size:clamp(2.4rem,5.4vw,4rem)}
.hx-hero-center{text-align:center}
.hx-hero-center .pm-lead{margin-left:auto;margin-right:auto;max-width:720px}
.hx-hero-center .pm-hero-cta{justify-content:center}
.hx-hero-center .fx-fact{margin-bottom:2rem}
.hx-stats-row{grid-template-columns:repeat(var(--n,5),minmax(0,1fr))}
.hx-stats-row b em,.hx-stats-row b span{color:inherit!important;font-style:normal}
/* cards */
.hx .hx-old :is(.feat,.spec-card,.step,.cmp-card,.related-card,.mod-card,.setup-block,.uc-card,.feature-card,.mode-card,.plat-card,.platform-card,.editorial-col,.detail-card,.modding-card,.seo-card,.use-card){background:#0d111d!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:16px!important;box-shadow:none}
.hx .hx-old :is(.feat-grid,.features-grid,.steps-grid,.comparison-grid,.related-grid,.mods-grid,.uc-grid,.modes-grid,.specs-right){gap:1rem!important;border:0!important;background:none!important}
.hx .hx-old .feat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.hx .hx-old .feat{padding:1.4rem!important;border-radius:16px!important}
.hx .hx-old :is(.feat-icon,.mod-icon,.stack-icon,.uc-icon,.mode-icon){width:42px!important;height:42px!important;padding:10px;border-radius:10px;background:rgba(0,232,181,.08);border:1px solid rgba(0,232,181,.18);color:#00e8b5!important;flex:none;box-sizing:border-box}
.hx .hx-old .feat h3,.hx .hx-old .mod-card h3,.hx .hx-old .step h3,.hx .hx-old .related-title,.hx .hx-old .feature-title{color:#fff!important;font-weight:800!important}
.hx .hx-old .step{padding:1.4rem!important}
.hx .hx-old .step-n{font-family:ui-monospace,Menlo,Consolas,monospace!important;font-size:.9rem!important;font-weight:700!important;color:#00e8b5!important;background:rgba(0,232,181,.08);border:1px solid rgba(0,232,181,.2);border-radius:8px;padding:.25rem .55rem;display:inline-block;line-height:1.3!important;-webkit-text-stroke:0!important;opacity:1!important}
.hx .hx-old .step-time{color:#8b94ad!important}
.hx .hx-old .spec-card{padding:1.3rem!important}
.hx .hx-old .spec-val{font-family:'Barlow Condensed',sans-serif!important;font-weight:800!important;color:#fff!important}
.hx .hx-old .cmp-card.featured,.hx .hx-old .cmp-card.best{border-color:rgba(0,232,181,.45)!important;background:linear-gradient(180deg,rgba(0,232,181,.06),#0d111d 40%)!important}
.hx .hx-old :is(.plugin-tag,.mod-tag,.uc-tag,.related-tag,.plat-tag,.guide-tag){background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.08)!important;color:#cbd2e3!important;border-radius:7px!important}
.hx .hx-old .related-tag{color:#00e8b5!important}
.hx .hx-old a:not(.pm-btn):not(.related-card):not(.hx-card){color:#00e8b5}
.hx .hx-old p,.hx .hx-old li{color:#a3abc2}
.hx .hx-old strong{color:#e4e8f5}
.hx .hx-old .check-icon{color:#00e8b5!important}
.hx .hx-old table{border-collapse:collapse;width:100%}
.hx .hx-old :is(.comp-table-wrap,.cmp-table-wrap,.table-wrap){border:1px solid rgba(255,255,255,.07)!important;border-radius:16px!important;background:#0d111d!important;overflow-x:auto}
.hx .hx-old :is(th,td){border-color:rgba(255,255,255,.07)!important}
.hx .hx-old .setup-block{overflow:hidden}
.hx .hx-old .tip-inline{background:rgba(0,232,181,.06)!important;border:1px solid rgba(0,232,181,.18)!important;border-radius:10px}
.hx .hx-old .platform-grid{gap:3rem!important}
.hx .hx-old .platform-text h2{margin-bottom:.9rem!important}
.hx .hx-old .fx-win{margin-top:.5rem}
.hx .hx-old .screenshot-cap{color:#8b94ad!important}
.hx .hx-about{max-width:820px}
.hx .hx-about h2{font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:2rem;color:#fff;margin:2.2rem 0 .7rem}
.hx .hx-about ul{padding-left:1.2rem;color:#a3abc2;line-height:1.8}
.hx .hx-about a{color:#00e8b5}
@media (max-width:900px){.hx .hx-old .feat-grid{grid-template-columns:1fr!important}.hx > section.hx-old{padding:3.8rem 0!important}}
/* round 4b: page shells + Factorio's own theme variables */
html body main.pm.hx{max-width:none!important;margin:0!important;padding:0!important;background:#07090f!important;border:0!important;border-radius:0!important;box-shadow:none!important;width:auto!important}
.hx{--bg-main:#07090f;--bg-card:#0d111d;--card-border:rgba(255,255,255,.07);--card-radius:16px;--text-main:#e4e8f5;--text-link:#00e8b5;--accent:#00e8b5;--factorio-yellow:#00e8b5;--factorio-green:#00e8b5;--factorio-orange:#00e8b5;--factorio-bright:#00e8b5;--factorio-dark:#0d111d;--factorio-metal:#111628;--gradient:linear-gradient(90deg,#00e8b5,#6bb944)}
.hx .hx-old{font-family:'Manrope',system-ui,sans-serif}
.hx .hx-old :is(h3,h4,.feature-title,.spec-label,.spec-value,.mod-card h3){text-transform:none!important;letter-spacing:normal!important;font-family:'Manrope',system-ui,sans-serif!important;color:#fff!important}
.hx .hx-old :is(h3,h4) em{color:#00e8b5}
.hx .hx-old :is(.feature-desc,.mod-card p,.mod-card li,.mods-footer,.specs-section p){font-family:'Manrope',system-ui,sans-serif!important;color:#a3abc2!important}
.hx .hx-old .spec-value{font-family:'Barlow Condensed',sans-serif!important;font-size:1.8rem!important}
.hx .hx-old .spec-label{color:#8b94ad!important;font-size:.76rem!important;text-transform:uppercase!important;letter-spacing:.06em!important}
.hx .hx-old .features-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.hx .hx-old .mods-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
.hx .hx-old :is(.feature-card,.mod-card){padding:1.4rem!important}
.hx .hx-hero .pm-h1{color:#fff}
@media (max-width:900px){.hx .hx-old :is(.features-grid,.mods-grid){grid-template-columns:1fr!important}}
.hx .hx-old .cmp-badge{background:#00e8b5!important;color:#04120e!important}
.hx .fx-about-hero h1.pm-h1{color:#fff!important;background:none!important;-webkit-text-fill-color:#fff!important}
.hx .pm-hero + .pm-sec:has(.hx-about){padding-top:0}
/* round 4c: phone fixes for the rebuilt heroes + stats */
@media (max-width:1100px){
  .pm-hero .fx-art{flex-direction:column;align-items:center}
  .pm-hero .fx-mclist{position:static;margin:-1rem auto 0;min-width:0;width:min(100%,340px)}
  .pm-hero .fx-art:has(.fx-app,.fx-dc,.fx-xplay,.fx-bento){margin-top:1.5rem}
}
@media (max-width:900px){.hx-stats-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}.hx-stats-row > div:nth-child(4){border-left:0}}
@media (max-width:560px){.hx-stats-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hx-stats-row > div{border-left:0!important}}
