/* FamiClash identity and readable, pre-rendered game pages. */
a{color:inherit}a.btn,a.play-card,.brand,.game-card h3 a,.game-card-visual,.footer-brand{text-decoration:none}
.brand{gap:9px;white-space:nowrap;flex-shrink:0}.brand-mark{width:53px;height:40px;object-fit:contain;display:block}.brand-word{font-size:29px;letter-spacing:-1.3px;font-weight:850;line-height:1}.brand-word>span{color:var(--purple)}
.header-nav .nav-link{text-decoration:none;display:inline-flex;align-items:center;min-height:44px}.site-header{padding-top:22px;padding-bottom:22px}.nav-link:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #7664cf;outline-offset:5px;border-radius:6px}
.hero h1{font-size:clamp(2.6rem,4.7vw,4.4rem);line-height:1.04;letter-spacing:-2.3px;max-width:740px}.hero-copy{font-size:1.1rem;max-width:580px;line-height:1.7}.hero .eyebrow{font-size:.76rem;letter-spacing:1.5px}.hero-actions{flex-wrap:wrap}.text-btn{box-shadow:none;background:transparent;border-color:transparent;padding-left:4px;padding-right:4px}.hero-foot{flex-wrap:wrap;font-size:.81rem;gap:14px}.hero-badge{white-space:nowrap}
.game-card-visual .game-cover{display:block;width:100%;height:100%;object-fit:cover;object-position:center 55%}.game-landing-art:has(.game-cover){padding:0;overflow:hidden}.game-landing-art .game-cover{display:block;width:100%;height:100%;min-height:inherit;object-fit:cover}.game-landing-art:has(.game-cover) .preview-caption{display:none}.game-card-visual{display:block;width:100%;overflow:hidden}.game-card-visual>span[aria-hidden]{display:block;width:100%;height:100%}.game-card h3 a:hover{color:var(--purple)}.game-card h3 a{display:block}.game-card-desc{font-size:.95rem;line-height:1.6}.game-card-bottom .play-card{min-height:44px}.game-family{font-size:.75rem}.game-card h3{line-height:1.3}.game-card-info{display:flex;flex-direction:column;flex:1}.game-card{display:flex;flex-direction:column}.game-card-bottom{margin-top:auto}.game-card-visual{flex-shrink:0}.catalog-filters .filter{font-size:.875rem}
.home-explainer{margin-top:76px;padding:45px 0;display:grid;grid-template-columns:1fr 1.5fr;gap:55px;border-top:1px solid var(--border)}.home-explainer h2{font-size:2.1rem;line-height:1.13;letter-spacing:-1px;margin:12px 0 18px}.home-explainer p,.how-cards p{font-size:1rem;line-height:1.75;color:var(--muted)}.how-cards{display:grid;gap:24px}.how-cards article{position:relative;padding-left:54px}.how-cards article>span{position:absolute;left:0;top:0;width:38px;height:38px;border-radius:12px;background:#eee9fa;display:grid;place-items:center;color:var(--purple)}.how-cards h3{font-size:1.1rem;margin:0 0 6px}.home-faq{max-width:890px;margin:42px auto 60px}.home-faq h2{font-size:1.8rem;letter-spacing:-.7px;margin:0 0 22px}.home-faq details{border-bottom:1px solid #e0e3ed;padding:0 2px}.home-faq summary{font-size:1rem;font-weight:700;line-height:1.5;cursor:pointer;min-height:60px;padding:18px 22px 18px 0}.home-faq details p{font-size:1rem;line-height:1.75;color:var(--muted);max-width:760px;padding:0 0 22px;margin:0}.home-faq details[open] summary{color:var(--purple)}
.famiclash-footer{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:28px 0 10px}.famiclash-footer .footer-brand{font-size:1.35rem;font-weight:850;letter-spacing:-.7px;color:var(--ink)}.famiclash-footer p{font-size:.875rem;margin:0}.famiclash-footer nav{display:flex;gap:20px;flex-wrap:wrap;margin-left:auto}.famiclash-footer nav a{font-size:.875rem;min-height:44px;display:inline-flex;align-items:center}.famiclash-footer small{width:100%;font-size:.8rem;color:var(--muted)}
.breadcrumbs{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.875rem;color:var(--muted);margin:10px 0 35px}.breadcrumbs a{text-decoration:none;min-height:34px;display:inline-flex;align-items:center}.breadcrumbs a:hover{text-decoration:underline;color:var(--purple)}.breadcrumbs [aria-current]{color:var(--ink)}
.game-landing{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:center;gap:65px;margin-bottom:58px}.game-landing h1{font-size:clamp(2.4rem,4.2vw,4.1rem);line-height:1.06;letter-spacing:-2px;margin:16px 0 17px}.game-lead{font-size:1.25rem;font-weight:650;line-height:1.6;max-width:640px;margin:0 0 14px}.game-intro{font-size:1rem;line-height:1.8;color:var(--muted);margin:0;max-width:650px}.game-facts{display:flex;flex-wrap:wrap;gap:13px 20px;margin-top:24px}.game-facts span{display:inline-flex;align-items:center;gap:6px;font-size:.875rem;color:var(--muted)}.game-launch-actions{display:flex;gap:12px;flex-wrap:wrap;margin:27px 0 16px}.game-launch-actions .btn{min-height:52px;font-size:1rem;padding:13px 20px}.game-rules-link{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;text-underline-offset:4px;color:var(--muted)}.game-landing-art{min-width:0;width:100%;max-width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px solid rgba(32,42,69,.06);border-radius:34px;position:relative;overflow:hidden;min-height:310px;aspect-ratio:1.16;box-shadow:0 18px 50px #202a4507;transform:rotate(2deg)}.game-landing-art>svg{width:100%;height:auto;max-height:340px}.preview-caption{font-size:.875rem;background:#ffffffc9;border:1px solid #ffffffdd;border-radius:24px;padding:10px 17px;margin:0 16px 20px;position:relative;text-align:center}.game-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;scroll-margin-top:20px}.guide-card{background:white;border:1px solid #e4e6ef;border-radius:22px;padding:30px;min-width:0}.guide-card h2{font-size:1.35rem;line-height:1.4;letter-spacing:-.5px;margin:9px 0 16px}.guide-card p,.guide-card li{font-size:1rem;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}.guide-card p{margin:0}.guide-card .guide-note{font-size:.875rem;margin-top:18px;border-top:1px solid #ececf4;padding-top:16px}.guide-card ul{margin:0;padding-left:20px;display:grid;gap:12px}.guide-card .eyebrow{font-size:.75rem}.guide-controls{background:#f1eef9;border-color:#e7e1f4}.game-faq{margin:55px auto}.related-games{padding-top:12px}.related-games .catalog-head{gap:20px;flex-wrap:wrap}.related-games .catalog-head h2{font-size:1.7rem;letter-spacing:-.7px}.related-games .catalog-head>a{font-size:.875rem;min-height:44px;display:inline-flex;align-items:center;color:var(--purple)}
.playing .play-brand .brand-word{font-size:23px}.playing .play-brand .brand-mark{width:43px;height:32px}.offline-page{max-width:650px;margin:10vh auto;padding:30px;text-align:center}.offline-page h1{font-size:2rem;margin:25px 0}.offline-page p{font-size:1rem;line-height:1.75;color:var(--muted)}.offline-page .brand{justify-content:center}.noscript{margin:15px auto;max-width:800px;font-size:1rem;line-height:1.7}
@media(min-width:1600px){.hero-art{max-width:500px}}
@media(max-width:1100px){.brand-word{font-size:26px}.brand-mark{width:46px;height:35px}.site-header{gap:18px}.header-actions{gap:7px}.header-nav{gap:12px}.game-landing{gap:35px}.game-landing-art{min-height:270px}.game-landing h1{font-size:3.1rem}.home-explainer{gap:30px}.famiclash-footer nav{margin-left:0;width:100%}}
@media(max-width:850px){.hero h1{font-size:3rem}.game-landing{grid-template-columns:1.2fr 1fr;gap:25px}.game-landing h1{font-size:2.7rem}.game-landing-art{min-height:220px;border-radius:25px}.game-facts{gap:10px}.game-launch-actions{gap:9px}.game-launch-actions .btn{font-size:.95rem;padding:12px 14px}.home-explainer{grid-template-columns:1fr;gap:30px;margin-top:45px}.how-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.how-cards article{padding-left:0;padding-top:50px}.guide-card{padding:24px}}
@media(max-width:650px){.brand-word{font-size:24px;letter-spacing:-1px}.brand-mark{width:43px;height:32px}.brand{gap:7px}.site-header{padding:17px 18px;gap:8px}.header-actions{gap:4px}.profile-button{padding:5px}.profile-button .avatar-mini{width:25px;height:25px}.hero h1{font-size:2.8rem;max-width:none;letter-spacing:-1.8px}.hero-copy{font-size:1rem;max-width:500px}.hero-actions .text-btn{padding-left:0;min-height:40px}.hero-actions .btn{font-size:.9rem}.hero-foot{font-size:.8rem}.game-card-desc{font-size:.9rem}.game-card h3{font-size:1.1rem}.game-family{font-size:.75rem}.catalog-filters .filter{font-size:.8rem}.home-explainer{padding-top:32px}.home-explainer h2{font-size:1.9rem}.how-cards{grid-template-columns:1fr}.how-cards article{padding:0 0 0 54px}.home-faq{margin:28px auto 38px}.home-faq h2{font-size:1.55rem}.famiclash-footer{gap:12px}.famiclash-footer nav{gap:0 19px}.breadcrumbs{font-size:.8rem;gap:9px;margin:7px 0 21px}.game-landing{grid-template-columns:1fr;gap:25px;margin-bottom:30px}.game-landing h1{font-size:2.8rem;letter-spacing:-1.5px}.game-lead{font-size:1.1rem}.game-intro{font-size:1rem;line-height:1.7}.game-landing-art{aspect-ratio:1.8;min-height:180px;max-height:240px;transform:none}.game-landing-art>svg{width:78%;max-height:180px}.preview-caption{font-size:.8rem;padding:7px 13px;margin:0 10px 14px}.game-guide{grid-template-columns:1fr;gap:14px}.guide-card{padding:23px 20px;border-radius:18px}.guide-card h2{font-size:1.3rem}.game-facts{font-size:.85rem}.game-launch-actions{margin-top:22px}.game-launch-actions .btn{flex:1;font-size:.94rem;padding:12px 8px;white-space:nowrap}.game-rules-link{font-size:.875rem}.related-games .catalog-head h2{font-size:1.45rem}.playing .play-brand .brand-word{display:none}.playing .play-brand .brand-mark{width:40px;height:29px}}
@media(max-width:370px){.site-header{padding:14px 12px}.brand-word{font-size:21px}.brand-mark{width:35px;height:27px}.brand{gap:5px}.header-actions .icon-btn{width:28px}.header-actions{gap:2px}.profile-button .avatar-mini{width:22px;height:24px;font-size:16px}.hero h1{font-size:2.45rem}.game-launch-actions{flex-direction:column}.game-launch-actions .btn{flex:auto}.game-landing h1{font-size:2.4rem}.game-card h3{font-size:1.03rem}.game-card-desc{font-size:.875rem}}
.collection-links{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 32px}
.collection-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid #e4dff2;border-radius:22px;background:#fff;color:#55429d;text-decoration:none;font-size:.875rem;font-weight:700}
.collection-links a:hover{background:#eee9fa;text-decoration:underline}
.collection-intro{max-width:760px;margin:0 0 36px}
.collection-intro h1{font-size:clamp(2rem,4.8vw,3.8rem);line-height:1.08;letter-spacing:-.04em;margin:0 0 16px}
.collection-intro p,.collection-page .home-faq p{color:var(--muted);font-size:1.05rem;line-height:1.65}
.collection-page #collection-games{margin-bottom:20px}
.collection-guide{margin-top:42px}

.collection-jump{margin-top:-12px}
.collection-game-group h2{scroll-margin-top:24px}
.collection-game-group>p{max-width:760px;margin:6px 0 20px;line-height:1.55;color:var(--muted)}
.collection-game-group+.collection-game-group{margin-top:40px}

.family-feature{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(120px,24%,250px);
  align-items:stretch;
  max-width:100%;
  margin:0 0 24px;
  overflow:hidden;
  border:1px solid #dcd1f6;
  border-radius:20px;
  background:#f0eafb;
  color:var(--ink);
  text-decoration:none;
}
.family-feature-copy{padding:18px 24px;min-width:0}
.family-feature-copy :is(h2,h3){margin:0 0 5px;font-size:clamp(1.25rem,2.4vw,1.65rem);line-height:1.2}
.family-feature-copy p{margin:0 0 9px;color:#494263;line-height:1.45}
.family-feature-link{color:#4d3585;font-size:.95rem;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.family-feature-link span{display:inline-block;margin-left:4px}
.family-feature:hover{background:#e8dff8;border-color:#a997d7}
.family-feature .game-cover{width:100%;height:100%;min-height:0;object-fit:cover;display:block}
.guide-controls-illustrated{display:grid;grid-template-columns:minmax(0,1fr) min(31%,145px);gap:18px;align-items:start}
.guide-controls-illustrated figure{margin:0;min-width:0}
.guide-controls-illustrated img{display:block;width:100%;height:auto;border-radius:10px}
.guide-controls-illustrated figcaption{font-size:.77rem;line-height:1.4;margin-top:8px;color:var(--muted)}
@media(max-width:620px){
  .family-feature{grid-template-columns:minmax(0,1fr) clamp(76px,24%,130px);border-radius:16px}
  .family-feature-copy{padding:15px 13px}
  .family-feature-copy p{font-size:.875rem}
  .guide-controls-illustrated{gap:12px}
}

.collection-intro .collection-back{display:inline-flex;align-items:center;margin-top:12px}

@media(max-width:600px){
 .home-collections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:6px 0 20px}
 .home-collections a{justify-content:center;text-align:center;padding:8px;line-height:1.15;border-radius:12px}
 .home-main>.hero{padding-bottom:14px}
}

.first-play-guide{margin:0 0 1.5rem}.first-play-guide ol{margin:.75rem 0 0;padding-inline-start:1.55rem;line-height:1.55}.first-play-guide li{padding-inline-start:.15rem}.first-play-guide li+li{margin-top:.55rem}

.mower-page-setup{
  max-width:32rem;
  margin:16px 0;
  padding:12px;
  background:#ebf4ef;
  border:1px solid #d5e5db;
  border-radius:16px;
}
.mower-page-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(9.75rem,100%),1fr));gap:10px}
.mower-page-fields .field-label{color:#2c5748}
.mower-page-fields .field{appearance:auto;background:white;border-color:#cddfd4;padding-inline:8px;padding-right:7px!important}
.mower-page-setup a{display:inline-flex;align-items:center;min-height:32px;margin-top:3px;color:#245a47;font-size:.81rem;font-weight:700;text-underline-offset:3px}
.mower-page-setup a[hidden]{display:none}

.game-play-actions{display:contents}
@media (max-width:650px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){
  html:has(.game-page){scroll-padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .game-page.home-main{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .game-launch-actions{margin:12px 0 2px}
  .game-play-actions{
    position:fixed;
    z-index:12;
    inset:auto 0 0;
    display:flex;
    justify-content:center;
    gap:8px;
    padding:9px max(12px,env(safe-area-inset-right,0px)) calc(9px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
    border-top:1px solid #e4e6ef;
    background:#fff;
    box-shadow:0 -4px 20px #20284214;
  }
  .game-launch-actions .game-play-actions .btn{
    flex:1 1 0;
    min-width:0;
    max-width:280px;
    min-height:48px;
    padding:8px;
    gap:6px;
    text-align:center;
    white-space:normal;
    line-height:1.2;
  }
  .game-play-actions .btn svg{flex:none}
  .game-play-actions.farm-play-actions .btn{overflow-wrap:anywhere;min-height:54px}
  .game-play-actions.farm-play-actions:not(:has([data-launch="family"]:not([hidden]))) [data-launch="solo"]{max-width:560px}
  .game-launch-actions .game-play-actions .btn:only-child{max-width:560px}
  .game-play-actions:has([data-launch="duo"][hidden]) [data-launch="solo"]{max-width:560px}
}

.home-spotlight{
  min-width:0;
  padding:clamp(12px,1.3vw,20px);
  border:1px solid #ded7ed;
  border-radius:28px;
  background:#eae5f5;
}
.spotlight-farm{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  min-height:clamp(160px,17vw,232px);
  overflow:hidden;
  border-radius:18px;
  color:#fff;
  text-decoration:none;
  background:#184945;
}
.spotlight-farm .game-cover{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 52%;
  z-index:-2;
}
.spotlight-farm::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,#10342ff5 0%,#123b33dd 34%,#123b3344 75%),linear-gradient(0deg,#102f2fd9,transparent 58%);
}
.spotlight-farm-copy{display:grid;justify-items:start;gap:6px;max-width:19rem;padding:clamp(12px,2vw,24px)}
.spotlight-farm-copy>span{padding:4px 8px;border-radius:20px;background:#d7f0bc;color:#173b2b;font-size:.76rem;font-weight:800}
.spotlight-farm-copy strong{font-size:clamp(1.35rem,2.4vw,2rem);line-height:1.04;letter-spacing:-.025em}
.spotlight-farm-copy small{color:#f2f8e9;font-size:.88rem;line-height:1.45}
.spotlight-classics{margin-top:14px}
.spotlight-classics h2{margin:0 0 8px;color:#332753;font-size:.94rem;line-height:1.2}
.spotlight-classics ul{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0;padding:0;list-style:none}
.spotlight-classics a{
  display:grid;
  grid-template-rows:auto 1fr;
  height:100%;
  min-width:0;
  gap:4px;
  padding:4px;
  border:1px solid #dcd4ed;
  border-radius:11px;
  background:#fff;
  color:#30274d;
  font-size:.78rem;
  font-weight:750;
  line-height:1.22;
  text-align:center;
  text-decoration:none;
}
.spotlight-classics a>span:last-child{align-self:center;padding:2px 0 4px;overflow-wrap:anywhere}
.spotlight-visual{display:block;min-width:0;aspect-ratio:1.48;border-radius:6px;overflow:hidden}
.spotlight-visual svg,.spotlight-visual img{display:block;width:100%;height:100%;object-fit:cover}
.spotlight-classics a:hover{border-color:#a193cb;background:#faf6ff}
.spotlight-classics .spotlight-catalogue{border-color:#cfc1ee;background:#f8f3ff;color:#4b348a}
.spotlight-classics .spotlight-catalogue:hover{border-color:#a193cb;background:#efe5ff}
.spotlight-catalogue-icon{display:grid;place-items:center;background:#e8dcfa}
.spotlight-catalogue-icon svg{width:26px;height:26px}
.spotlight-farm:hover strong{text-decoration:underline;text-underline-offset:.14em}
@media (min-width:651px) and (max-width:1100px){
  .spotlight-classics ul{grid-template-columns:repeat(3,minmax(0,1fr))}
  .spotlight-visual{max-height:42px}
}
@media (max-width:650px){
  .home-spotlight{margin-top:20px;border-radius:20px}
  .spotlight-farm{min-height:135px;border-radius:13px}
  .spotlight-farm-copy{max-width:15rem}
  .spotlight-classics ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .spotlight-classics a{min-height:44px;font-size:.82rem}
  .spotlight-visual{justify-self:center;width:min(100%,64px)}
}
