body:has(#app > .thimzi-home) #app {
  max-width: 1120px;
  margin-top: 12px;
  padding-inline: 24px;
}
.thimzi-home { text-align: left; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: center;
  gap: 18px;
  padding: 12px 0 27px;
}
.home-hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.home-hero p { margin: 14px 0 8px; }
.home-challenge-jump {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 8px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  text-underline-offset: 4px;
}
.home-hero .intro-art { width: 285px; height: 196px; max-width: 100%; margin: 0; }
.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.home-section-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3.3vw, 34px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.home-section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-section-heading svg { width: 16px; height: 16px; }
.home-games { max-width: 850px; margin-inline: auto; }
.home-games .home-section-heading { margin-bottom: 6px; }
.home-games .home-section-heading h2 { font-size: clamp(20px, 2.5vw, 25px); }
.home-games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding: 3px 3px 6px;
  margin-inline: -3px;
  scrollbar-width: thin;
  scrollbar-color: #bec6b4 transparent;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 3px;
}
.home-game {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #d9dbcf;
  border-radius: 11px;
  text-decoration: none;
  scroll-snap-align: start;
}
.home-game:hover { border-color: #839472; background: #f2f5e9; }
.home-game:focus-visible { outline-offset: 0; }
.home-game-art { display: block; width: 100%; height: 62px; object-fit: cover; background: #193838; }
.home-game h3 { flex: 1; display: grid; place-items: center; margin: 0; padding: 8px 6px; text-align: center; font-size: .84rem; line-height: 1.18; }
.home-game .tz-gallery-trio { width: 64%; gap: 5px; }
.home-game .tz-gallery-art::before { inset: 4px; border-radius: 7px; }
.home-game .tz-gallery-die { translate: none; }
.home-challenges, .thimzi-home .home-about { max-width: 850px; margin-inline: auto; }
.home-challenges { margin-top: 26px; scroll-margin-top: 14px; }
.thimzi-home .mode-grid { margin: 0; }
.thimzi-home .mode-card { min-height: 114px; padding: 14px 16px; }
.thimzi-home .mode-card > span:first-child { margin-bottom: 4px; }
.thimzi-home #rejoin-party { margin: 0 0 12px; }
.thimzi-home .home-about { text-align: center; }
.thimzi-home #live-error:empty { display: none; }
@media (max-width: 760px) {
  body:has(#app > .thimzi-home) #app { padding-inline: 14px; margin-top: 5px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding: 10px 0 15px; gap: 0; }
  .home-hero h1 { font-size: clamp(37px, 10vw, 60px); }
  .home-hero p { max-width: 36ch; font-size: .9rem; margin: 9px 0 2px; }
  .home-hero .intro-art { display: none; }
  .home-challenges { margin-top: 29px; }
}
