.heart-home {
  --heart-red: #9a414a;
  --heart-red-deep: #6f2d39;
  --heart-gold: #f6c453;
  --heart-mint: #dff3e7;
  --heart-sky: #dff4f5;
  --heart-ink: #123b53;
  display: grid;
  gap: 17px;
  margin: clamp(30px, 6vw, 58px) 0;
  padding: clamp(22px, 4vw, 40px);
  overflow: clip;
  color: var(--heart-ink);
  background:
    radial-gradient(circle at 92% 7%, rgba(246, 196, 83, .34), transparent 25%),
    radial-gradient(circle at 4% 97%, rgba(104, 56, 91, .14), transparent 28%),
    linear-gradient(145deg, #edf8fa, #fff8e9);
  border: 3px solid rgba(18, 59, 83, .1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.heart-home [hidden] { display: none !important; }

.heart-home__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  align-items: center;
}

.heart-home__mark,
.heart-home__summary-icon {
  display: grid;
  place-items: center;
  color: #fff8e8;
  background: linear-gradient(145deg, var(--heart-red), var(--heart-red-deep));
  border: 5px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(93, 39, 50, .2);
  line-height: 1;
}

.heart-home__mark { width: 64px; height: 64px; font-size: 2rem; }
.heart-home__heading h3 {
  margin: 4px 0 5px;
  color: var(--heart-ink);
  font: 800 clamp(1.85rem, 3.5vw, 2.6rem)/1.03 var(--font-title);
}
.heart-home__heading p { max-width: 790px; margin: 0; color: var(--muted); }

.heart-home__panel {
  overflow: clip;
  background: rgba(255, 255, 255, .97);
  border: 2px solid rgba(18, 59, 83, .13);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(18, 59, 83, .1);
}

.heart-home__panel > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 88px;
  align-items: center;
  padding: 16px 20px;
  color: var(--heart-ink);
  cursor: pointer;
  list-style: none;
}
.heart-home__panel > summary::-webkit-details-marker { display: none; }
.heart-home__panel > summary:hover { background: rgba(223, 244, 245, .55); }
.heart-home__panel > summary:focus-visible { outline: 4px solid rgba(17, 106, 141, .44); outline-offset: -4px; }
.heart-home__summary-icon { width: 52px; height: 52px; border-width: 3px; font-size: 1.55rem; }
.heart-home__panel > summary strong,
.heart-home__panel > summary small { display: block; }
.heart-home__panel > summary strong { font: 800 clamp(1.16rem, 2vw, 1.45rem)/1.12 var(--font-title); }
.heart-home__panel > summary small { margin-top: 4px; color: var(--muted); font-size: .9rem; font-weight: 800; }
.heart-home__chevron {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--fjord);
  font-size: 1.65rem;
  font-weight: 900;
  transition: transform 180ms ease;
}
.heart-home__panel[open] > summary { background: rgba(223, 244, 245, .62); }
.heart-home__panel[open] .heart-home__chevron { transform: rotate(180deg); }

.heart-home__body { padding: clamp(12px, 2.5vw, 24px); border-top: 2px solid rgba(18, 59, 83, .08); }
.heart-home__no-js {
  margin: 0 0 18px;
  padding: 13px 15px;
  color: var(--heart-ink);
  background: var(--heart-sky);
  border-radius: var(--radius-sm);
  font-weight: 800;
}
.heart-home[data-game-ready="true"] .heart-home__no-js,
.heart-home[data-game-ready="true"] .heart-home__fallback { display: none; }
.heart-home__fallback { padding: 18px; background: #fffaf0; border: 2px solid rgba(18, 59, 83, .1); border-radius: 18px; }
.heart-home__fallback h4 { margin: 0 0 10px; font-family: var(--font-title); }
.heart-home__fallback ol { margin: 0; padding-left: 1.35em; }
.heart-home__fallback li + li { margin-top: 9px; }

.heart-home__app {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f9fdfe, #fffaf0);
  border: 3px solid rgba(18, 59, 83, .1);
  border-radius: 22px;
}

.heart-home__toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 10px 12px;
  background: #123b53;
  border-bottom: 3px solid rgba(255, 255, 255, .18);
}
.heart-home__collection { display: flex; min-width: 0; gap: 12px; align-items: center; color: #fff; }
.heart-home__collection > strong { flex: 0 0 auto; font: 800 .9rem/1.1 var(--font-title); }
.heart-home__count-short { display: none; }
.heart-home__collection ol { display: flex; min-width: 0; gap: 6px; margin: 0; padding: 0; list-style: none; }
.heart-home__collection li {
  display: grid;
  width: 48px;
  min-height: 50px;
  place-items: center;
  align-content: center;
  color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .1);
  border: 2px solid rgba(255, 255, 255, .17);
  border-radius: 14px;
  filter: grayscale(1);
  transition: transform 180ms ease, background 180ms ease, filter 180ms ease;
}
.heart-home__collection li span { font-size: 1.18rem; line-height: 1; }
.heart-home__collection li small { margin-top: 2px; font-size: .55rem; font-weight: 900; line-height: 1; }
.heart-home__collection li.is-found {
  color: var(--heart-ink);
  background: var(--heart-gold);
  border-color: #fff1b7;
  filter: none;
  transform: translateY(-2px);
}
.heart-home__tools { display: flex; flex: 0 0 auto; gap: 6px; }
.heart-home__tools button,
.heart-home__objective button {
  display: inline-flex;
  gap: 6px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--heart-ink);
  background: #fff;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .14);
  font: 900 .78rem/1 var(--font-text);
  cursor: pointer;
}
.heart-home__tools button:focus-visible,
.heart-home__objective button:focus-visible,
.heart-home__dpad button:focus-visible,
.heart-home__challenge-play button:focus-visible { outline: 5px solid var(--heart-gold); outline-offset: 3px; }

.heart-home__screen { min-width: 0; padding: clamp(14px, 2.5vw, 26px); }

.heart-home__start {
  display: grid;
  grid-template-columns: minmax(270px, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  min-height: 540px;
  align-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(246, 196, 83, .28), transparent 27%),
    linear-gradient(145deg, #e6f5f4, #fff7df 68%, #f4e8ee);
}
.heart-home__portraits {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 34px 6px;
}
.heart-home__portraits::before {
  position: absolute;
  width: min(90%, 430px);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(246, 196, 83, .52), rgba(255, 255, 255, .2) 54%, transparent 55%);
  border-radius: 50%;
}
.heart-home__portraits img {
  position: relative;
  width: min(49%, 230px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 7px solid #fff8e8;
  border-radius: 46% 46% 22% 22%;
  box-shadow: 0 18px 38px rgba(18, 59, 83, .24);
}
.heart-home__portraits img:first-child { margin-right: -7%; object-position: 62% center; transform: rotate(-4deg); }
.heart-home__portraits img:last-child { margin-left: -7%; object-position: 48% center; transform: rotate(4deg); }
.heart-home__portraits > span {
  position: relative;
  z-index: 2;
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff8e8;
  background: linear-gradient(145deg, var(--heart-red), var(--heart-red-deep));
  border: 6px solid #fff8e8;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(93, 39, 50, .3);
  font-size: 2rem;
}
.heart-home__start-copy { max-width: 620px; }
.heart-home__chapter-tag {
  display: inline-flex;
  padding: 7px 11px;
  color: var(--heart-red-deep);
  background: #f7e6eb;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.heart-home__start h4,
.heart-home__finish h4 {
  margin: 12px 0 10px;
  color: var(--heart-ink);
  font: 800 clamp(2rem, 4vw, 3.3rem)/.98 var(--font-title);
}
.heart-home__start-copy > p { max-width: 600px; margin: 0; font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.55; }
.heart-home__start-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.heart-home__start-features li { padding: 9px 12px; background: #fff; border: 2px solid rgba(18, 59, 83, .1); border-radius: 999px; font-size: .87rem; font-weight: 900; }
.heart-home__start-button { min-height: 58px; padding-inline: 23px; border: 0; box-shadow: 0 6px 0 #d99a20; font-size: 1.02rem; cursor: pointer; }
.heart-home__start-help { margin-top: 15px !important; color: var(--muted); font-size: .84rem !important; }

.heart-home__map-screen {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, .7), transparent 20%),
    linear-gradient(145deg, #e4f4f3, #fff8e5);
}
.heart-home__map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 14px; align-items: stretch; }
.heart-home__map-column {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 174px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.heart-home__objective {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  min-width: 0;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .96);
  border: 2px solid rgba(18, 59, 83, .11);
  border-radius: 18px;
  box-shadow: 0 7px 18px rgba(18, 59, 83, .08);
}
.heart-home__objective-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  background: var(--heart-gold);
  border-radius: 15px;
  font-size: 1.55rem;
}
.heart-home__objective div > span,
.heart-home__challenge-head div > span { color: var(--plum); font-size: .68rem; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.heart-home__objective h4 { margin: 1px 0 0; font: 800 clamp(1.1rem, 2.4vw, 1.5rem)/1.05 var(--font-title); }
.heart-home__objective button { color: #fff; background: var(--fjord); border-color: var(--fjord); box-shadow: 0 4px 0 #08465e; }

.heart-home__board-shell {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
  padding: 8px;
  background: rgba(18, 59, 83, .08);
  border-radius: 22px;
}
.heart-home__board {
  display: grid;
  width: min(100%, 510px);
  aspect-ratio: 1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 9px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, .78), transparent 20%),
    linear-gradient(155deg, #89cad0, #4a9bb4 58%, #2d7595);
  border: 5px solid #fff;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(18, 59, 83, .24), inset 0 0 0 3px rgba(18, 59, 83, .12);
  outline: none;
  touch-action: manipulation;
}
.heart-home__board:focus-visible { outline: 6px solid var(--heart-gold); outline-offset: 4px; }
.heart-home__tile {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 27%;
  user-select: none;
}
.heart-home__tile.is-path {
  cursor: pointer;
  background: linear-gradient(145deg, #fffdf3, #e9ddbd);
  border: 2px solid rgba(111, 77, 44, .18);
  box-shadow: 0 4px 0 rgba(65, 72, 70, .19), inset 0 2px 0 #fff;
}
.heart-home__tile.is-scenery { opacity: .76; }
.heart-home__tile.is-scenery::before { color: rgba(255, 255, 255, .74); font-size: clamp(.7rem, 2vw, 1.2rem); }
.heart-home__tile[data-scenery="leaf"]::before { content: "❋"; color: rgba(39, 101, 72, .72); }
.heart-home__tile[data-scenery="water"]::before { content: "≈"; }
.heart-home__tile[data-scenery="stone"]::before { content: "●"; color: rgba(18, 59, 83, .25); }
.heart-home__beacon {
  display: grid;
  width: 72%;
  aspect-ratio: 1;
  place-items: center;
  color: var(--heart-ink);
  background: #fff;
  border: 3px solid rgba(18, 59, 83, .16);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(18, 59, 83, .2);
  font: normal 900 clamp(.78rem, 2.4vw, 1.28rem)/1 var(--font-text);
}
.heart-home__tile.is-target .heart-home__beacon {
  background: var(--heart-gold);
  border-color: #fff4c7;
  box-shadow: 0 0 0 6px rgba(246, 196, 83, .27), 0 5px 12px rgba(18, 59, 83, .24);
  animation: heart-home-glow 1.7s ease-in-out infinite;
}
.heart-home__tile.is-complete .heart-home__beacon { color: #fff; background: var(--leaf); border-color: #dff3e7; }
.heart-home__tile.is-future .heart-home__beacon { width: 48%; color: rgba(18, 59, 83, .52); background: rgba(255, 255, 255, .58); box-shadow: none; font-size: .72rem; }
.heart-home__traveler {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 76%;
  aspect-ratio: 1;
  place-items: center;
  color: #fff8e8;
  background: linear-gradient(145deg, #b94f54, #7c2e3d);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(83, 34, 46, .35);
  font-size: clamp(.9rem, 2.8vw, 1.45rem);
  animation: heart-home-arrive 180ms ease-out;
}
.heart-home__tile.is-hint { box-shadow: 0 0 0 5px var(--heart-gold), 0 4px 0 rgba(65, 72, 70, .19); }
.heart-home__tile.is-hint-next::after {
  position: absolute;
  z-index: 4;
  inset: -5px;
  content: "";
  border: 4px dashed #9b6700;
  border-radius: 32%;
}
.heart-home__map-key { display: flex; gap: 12px; margin-top: 7px; color: var(--muted); font-size: .7rem; font-weight: 900; }

.heart-home__dpad {
  display: grid;
  width: 174px;
  align-self: center;
  justify-self: center;
  grid-template-columns: repeat(3, 54px);
  grid-template-rows: repeat(3, 54px);
  gap: 5px;
  place-content: center;
  padding: 8px;
  background: rgba(255, 255, 255, .82);
  border: 2px solid rgba(18, 59, 83, .12);
  border-radius: 26px;
  box-shadow: 0 10px 22px rgba(18, 59, 83, .13);
}
.heart-home__dpad button {
  display: grid;
  min-width: 54px;
  min-height: 54px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: linear-gradient(145deg, #247899, #0d5875);
  border: 3px solid #fff;
  border-radius: 17px;
  box-shadow: 0 5px 0 #083f56;
  font: 900 1.45rem/1 var(--font-text);
  cursor: pointer;
}
.heart-home__dpad button:active { transform: translateY(3px); box-shadow: 0 2px 0 #083f56; }
.heart-home__dpad [data-heart-home-move="up"] { grid-area: 1 / 2; }
.heart-home__dpad [data-heart-home-move="left"] { grid-area: 2 / 1; }
.heart-home__dpad [data-heart-home-move="right"] { grid-area: 2 / 3; }
.heart-home__dpad [data-heart-home-move="down"] { grid-area: 3 / 2; }
.heart-home__dpad-heart {
  display: grid;
  grid-area: 2 / 2;
  place-items: center;
  color: var(--heart-red);
  background: #f7e6eb;
  border-radius: 17px;
  font-size: 1.3rem;
}

.heart-home__guide {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
  padding: 20px 16px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 5%, rgba(246, 196, 83, .28), transparent 34%),
    linear-gradient(155deg, #174d67, #0d3044);
  border: 4px solid rgba(255, 255, 255, .65);
  border-radius: 24px;
  box-shadow: 0 12px 26px rgba(18, 59, 83, .2);
}
.heart-home__guide-number {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--heart-ink);
  background: var(--heart-gold);
  border: 5px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  font: 900 1.75rem/1 var(--font-title);
}
.heart-home__guide strong { display: block; margin-top: 13px; font: 800 1.25rem/1.05 var(--font-title); }
.heart-home__guide p { margin: 9px 0 0; font-size: .88rem; line-height: 1.45; }

.heart-home__challenge {
  display: grid;
  min-height: 560px;
  place-items: center;
  background:
    radial-gradient(circle at 10% 8%, rgba(246, 196, 83, .38), transparent 23%),
    radial-gradient(circle at 90% 92%, rgba(104, 56, 91, .15), transparent 26%),
    linear-gradient(145deg, #e8f5f4, #fff8e5);
}
.heart-home__challenge-card {
  display: grid;
  width: min(100%, 900px);
  gap: 12px;
  padding: clamp(16px, 3vw, 28px);
  background: rgba(255, 255, 255, .97);
  border: 4px solid rgba(18, 59, 83, .12);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(18, 59, 83, .18);
}
.heart-home__challenge-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.heart-home__challenge-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  background: var(--heart-gold);
  border: 4px solid #fff1bd;
  border-radius: 19px;
  box-shadow: 0 6px 0 #dfa426;
  font-size: 1.8rem;
}
.heart-home__challenge h4 { margin: 2px 0 0; font: 800 clamp(1.5rem, 3vw, 2.25rem)/1 var(--font-title); }
.heart-home__challenge-prompt { margin: 0; color: var(--muted); font-weight: 800; }
.heart-home__challenge-play { display: grid; min-height: 244px; place-items: center; padding: 12px; background: linear-gradient(145deg, #edf7f7, #fff9ea); border: 2px solid rgba(18, 59, 83, .09); border-radius: 20px; }
.heart-home__search-grid,
.heart-home__garden-grid { display: grid; width: min(100%, 480px); grid-template-columns: repeat(3, minmax(70px, 1fr)); gap: 9px; }
.heart-home__helper-grid { display: grid; width: min(100%, 660px); grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px; }
.heart-home__lanterns { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 12px; }
.heart-home__challenge-play button {
  display: grid;
  min-width: 0;
  min-height: 78px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 9px;
  color: var(--heart-ink);
  background: #fff;
  border: 3px solid rgba(18, 59, 83, .14);
  border-radius: 17px;
  box-shadow: 0 5px 0 rgba(18, 59, 83, .16);
  font: 900 .88rem/1.15 var(--font-text);
  cursor: pointer;
}
.heart-home__challenge-play button span { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1; }
.heart-home__challenge-play button small { font-size: .68rem; line-height: 1.18; }
.heart-home__challenge-play button:disabled { cursor: default; opacity: .62; }
.heart-home__challenge-play button.is-found,
.heart-home__challenge-play button.is-lit,
.heart-home__challenge-play button.is-complete { color: #174332; background: var(--heart-mint); border-color: #64a179; box-shadow: 0 5px 0 #437754; opacity: 1; }
.heart-home__challenge-play button.is-lit { color: #5f3d00; background: #fff1b9; border-color: #e2ae32; box-shadow: 0 5px 0 #bd8420; }
.heart-home__challenge-play button.is-helped { outline: 6px solid var(--heart-gold); outline-offset: 3px; animation: heart-home-help 1s ease-in-out infinite; }
.heart-home__lanterns button { min-height: 164px; }
.heart-home__lanterns button span { filter: grayscale(1); opacity: .55; font-size: 2.5rem; }
.heart-home__lanterns button small { display: block; max-width: 180px; color: var(--muted); font-weight: 750; }
.heart-home__lanterns button.is-lit span { filter: none; opacity: 1; }
.heart-home__helper-grid button { min-height: 112px; }

.heart-home__home-way { display: grid; width: 100%; grid-template-columns: 126px minmax(0, 1fr) 126px; gap: 12px; align-items: center; }
.heart-home__first-light,
.heart-home__home {
  display: grid;
  min-height: 126px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 10px;
  text-align: center;
  background: #fff;
  border: 3px solid rgba(18, 59, 83, .14);
  border-radius: 50% 50% 26% 26%;
}
.heart-home__first-light { color: #664600; background: #fff3c4; border-color: #e0ad31; box-shadow: 0 0 0 8px rgba(246, 196, 83, .2); }
.heart-home__first-light span,
.heart-home__home span { font-size: 2.2rem; }
.heart-home__first-light small { font-size: .62rem; font-weight: 850; }
.heart-home__home { color: rgba(18, 59, 83, .52); }
.heart-home__home.is-reached { color: #fff; background: var(--leaf); border-color: #dff3e7; box-shadow: 0 0 0 8px rgba(79, 125, 89, .18); }
.heart-home__home-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(62px, 1fr)); gap: 7px; }
.heart-home__home-steps::before { position: absolute; top: 50%; right: 0; left: 0; height: 7px; content: ""; background: #d7c99d; transform: translateY(-50%); }
.heart-home__home-steps button { position: relative; z-index: 1; min-height: 82px; border-radius: 50%; }
.heart-home__home-steps button.is-current { color: #fff; background: var(--heart-red); border-color: #fff; box-shadow: 0 0 0 6px rgba(154, 65, 74, .2), 0 5px 0 var(--heart-red-deep); }

.heart-home__challenge-result { padding: 13px 15px; color: #174332; background: var(--heart-mint); border-left: 7px solid var(--leaf); border-radius: 10px 16px 16px 10px; }
.heart-home__challenge-result strong { font: 800 1.12rem/1.1 var(--font-title); }
.heart-home__challenge-result p { margin: 4px 0 0; line-height: 1.42; }
.heart-home__challenge-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: space-between; }
.heart-home__challenge-actions button { min-height: 50px; border: 0; cursor: pointer; }
.heart-home__challenge-actions [data-heart-home-continue] { margin-left: auto; }

.heart-home__finish {
  display: grid;
  min-height: 560px;
  place-items: center;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(246, 196, 83, .4), transparent 28%),
    linear-gradient(145deg, #e9f6f4, #fff8e6 62%, #f7e9ee);
}
.heart-home__finish > * { max-width: 760px; }
.heart-home__finish-glow { position: relative; display: grid; width: 116px; height: 116px; place-items: center; margin-bottom: 10px; }
.heart-home__finish-glow > span { position: relative; z-index: 2; display: grid; width: 92px; height: 92px; place-items: center; color: #fff8e8; background: linear-gradient(145deg, var(--heart-red), var(--heart-red-deep)); border: 7px solid #fff; border-radius: 50%; box-shadow: 0 13px 32px rgba(93, 39, 50, .3); font-size: 2.5rem; }
.heart-home__finish-glow i { position: absolute; inset: 0; border: 3px solid rgba(246, 196, 83, .7); border-radius: 50%; animation: heart-home-ripple 2.2s ease-out infinite; }
.heart-home__finish-glow i:nth-child(3) { animation-delay: .65s; }
.heart-home__finish-glow i:nth-child(4) { animation-delay: 1.3s; }
.heart-home__finish h4 { margin-top: 9px; }
.heart-home__finish-lead { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.heart-home__finish blockquote { margin: 16px auto; padding: 14px 18px; color: var(--heart-red-deep); background: rgba(255, 255, 255, .78); border-left: 7px solid var(--heart-gold); border-radius: 12px 18px 18px 12px; font: 800 clamp(1.05rem, 2.4vw, 1.35rem)/1.35 var(--font-title); }
.heart-home__prayer { margin: 0; line-height: 1.5; }
.heart-home__finish-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.heart-home__finish-actions .button { min-height: 52px; border: 0; cursor: pointer; }

.heart-home__board.is-bumped { animation: heart-home-bump 180ms ease-in-out; }
@keyframes heart-home-glow { 50% { transform: translateY(-2px); box-shadow: 0 0 0 9px rgba(246, 196, 83, .17), 0 7px 14px rgba(18, 59, 83, .26); } }
@keyframes heart-home-arrive { from { transform: scale(.7); opacity: .5; } }
@keyframes heart-home-help { 50% { outline-width: 9px; } }
@keyframes heart-home-ripple { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.15); opacity: 0; } }
@keyframes heart-home-bump { 35% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }

/* Fullskjerm: samme spill, uten resten av siden. */
.heart-home.is-game-viewport { display: block !important; }
.heart-home.is-game-viewport > .heart-home__heading,
.heart-home.is-game-viewport > .heart-home__panel > summary { display: none !important; }
.heart-home.is-game-viewport > .heart-home__panel {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.heart-home.is-game-viewport .heart-home__body { width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; }
.heart-home.is-game-viewport .heart-home__app { height: 100%; grid-template-rows: auto minmax(0, 1fr); border: 0; border-radius: 0; }
.heart-home.is-game-viewport .heart-home__screen { grid-row: 2; min-height: 0; height: 100%; overflow: auto; }
.heart-home.is-game-viewport .heart-home__map-screen { overflow: hidden; }
.heart-home.is-game-viewport .heart-home__map-layout { height: 100%; }
.heart-home.is-game-viewport .heart-home__map-column { min-height: 0; }
.heart-home.is-game-viewport .heart-home__board-shell { min-height: 0; }
.heart-home.is-game-viewport .heart-home__board { width: auto; max-width: 100%; height: min(100%, 540px); max-height: 100%; }

@media (max-width: 960px) {
  .heart-home__map-layout { grid-template-columns: 1fr; }
  .heart-home__guide { grid-template-columns: auto minmax(0, 1fr); gap: 13px; justify-items: start; padding: 11px 15px; text-align: left; }
  .heart-home__guide-number { width: 50px; height: 50px; border-width: 3px; font-size: 1.35rem; }
  .heart-home__guide strong { margin-top: 0; font-size: 1.05rem; }
  .heart-home__guide p { margin-top: 3px; font-size: .78rem; }
}

@media (max-width: 760px) {
  .heart-home__start { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .heart-home__portraits { max-width: 510px; justify-self: center; padding-block: 14px; }
  .heart-home__portraits img { width: min(43%, 175px); }
  .heart-home__portraits > span { width: 62px; height: 62px; font-size: 1.55rem; }
  .heart-home__start-copy { justify-self: center; }
  .heart-home__start-features,
  .heart-home__finish-actions { justify-content: center; }
  .heart-home__collection > strong { max-width: 68px; }
  .heart-home__collection li { width: 43px; min-height: 46px; }
  .heart-home__tools button span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .heart-home__tools button { width: 48px; padding: 7px; }
  .heart-home__lanterns { grid-template-columns: 1fr; }
  .heart-home__lanterns button { min-height: 104px; }
  .heart-home__home-way { grid-template-columns: 1fr; }
  .heart-home__first-light,
  .heart-home__home { width: min(100%, 230px); min-height: 88px; justify-self: center; border-radius: 22px; }
}

@media (max-width: 620px) {
  .heart-home {
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 14px 8px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .heart-home__heading { grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding-inline: 5px; }
  .heart-home__mark { width: 50px; height: 50px; border-width: 3px; font-size: 1.45rem; }
  .heart-home__heading h3 { font-size: 1.8rem; }
  .heart-home__panel > summary { min-height: 78px; gap: 9px; padding: 12px; }
  .heart-home__summary-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .heart-home__chevron { width: 28px; }
  .heart-home__body { padding: 7px; }
  .heart-home__app { border-radius: 17px; }
  .heart-home__toolbar { gap: 6px; padding: 7px; }
  .heart-home__collection { gap: 6px; }
  .heart-home__collection > strong { font-size: .69rem; }
  .heart-home__count-long { display: none; }
  .heart-home__count-short { display: inline; }
  .heart-home__collection ol { gap: 3px; }
  .heart-home__collection li { width: 33px; min-height: 41px; border-radius: 10px; }
  .heart-home__collection li small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .heart-home__tools { gap: 3px; }
  .heart-home__tools button { width: 44px; min-height: 44px; }
  .heart-home__screen { padding: 9px; }
  .heart-home__start { gap: 10px; padding-block: 18px; }
  .heart-home__start h4,
  .heart-home__finish h4 { font-size: 2rem; }
  .heart-home__start-features { display: grid; grid-template-columns: 1fr; max-width: 260px; margin-inline: auto; }
  .heart-home__map-column { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 8px; }
  .heart-home__objective { grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; padding: 7px; border-radius: 14px; }
  .heart-home__objective-icon { width: 43px; height: 43px; border-radius: 12px; font-size: 1.25rem; }
  .heart-home__objective h4 { font-size: 1rem; }
  .heart-home__objective button { width: 48px; min-height: 48px; padding: 7px; }
  .heart-home__objective button span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .heart-home__board-shell { padding: 3px; border-radius: 16px; }
  .heart-home__board { width: min(100%, 330px); gap: 4px; padding: 6px; border-width: 4px; border-radius: 19px; }
  .heart-home__map-key { display: none; }
  .heart-home__dpad { grid-row: 3; width: 170px; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 52px); padding: 5px; }
  .heart-home__dpad button { min-width: 52px; min-height: 52px; }
  .heart-home__guide { display: none; }
  .heart-home__challenge { min-height: 0; }
  .heart-home__challenge-card { gap: 9px; padding: 12px; border-width: 3px; border-radius: 20px; }
  .heart-home__challenge-icon { width: 50px; height: 50px; border-radius: 15px; font-size: 1.45rem; }
  .heart-home__challenge h4 { font-size: 1.45rem; }
  .heart-home__challenge-prompt { font-size: .85rem; }
  .heart-home__challenge-play { min-height: 220px; padding: 7px; }
  .heart-home__search-grid,
  .heart-home__garden-grid { grid-template-columns: repeat(3, minmax(58px, 1fr)); gap: 6px; }
  .heart-home__helper-grid { grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 7px; }
  .heart-home__challenge-play button { min-height: 66px; padding: 6px; }
  .heart-home__helper-grid button { min-height: 82px; }
  .heart-home__home-steps { grid-template-columns: repeat(4, minmax(54px, 1fr)); gap: 4px; }
  .heart-home__home-steps button { min-height: 66px; }
  .heart-home__finish { min-height: 0; padding-block: 22px; }
  .heart-home__finish-glow { width: 92px; height: 92px; }
  .heart-home__finish-glow > span { width: 74px; height: 74px; font-size: 2rem; }
}

@media (max-width: 360px) {
  .heart-home__toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    justify-items: center;
  }
  .heart-home__collection {
    width: 100%;
    justify-content: center;
  }
  .heart-home__collection > strong {
    max-width: none;
    font-size: .68rem;
  }
  .heart-home__collection li {
    width: 32px;
    min-height: 36px;
  }
  .heart-home__tools {
    width: 100%;
    justify-content: center;
  }
  .heart-home__tools button {
    width: 48px;
    min-height: 48px;
  }
}

@media (max-height: 650px) {
  .heart-home.is-game-viewport .heart-home__toolbar { padding-block: 4px; }
  .heart-home.is-game-viewport .heart-home__collection li { min-height: 38px; }
  .heart-home.is-game-viewport .heart-home__screen { padding: 6px; }
  .heart-home.is-game-viewport .heart-home__objective { padding-block: 4px; }
  .heart-home.is-game-viewport .heart-home__objective-icon { width: 40px; height: 40px; }
  .heart-home.is-game-viewport .heart-home__map-column { grid-template-rows: auto minmax(0, 1fr) auto; }
  .heart-home.is-game-viewport .heart-home__board { max-height: 100%; }
  .heart-home.is-game-viewport .heart-home__dpad {
    display: flex;
    width: 100%;
    max-width: 310px;
    gap: 5px;
    padding: 3px;
    border-radius: 15px;
  }
  .heart-home.is-game-viewport .heart-home__dpad button { min-width: 48px; min-height: 48px; flex: 1; border-radius: 13px; }
  .heart-home.is-game-viewport .heart-home__dpad-heart { display: none; }
  .heart-home.is-game-viewport .heart-home__challenge-card { padding: 10px; }
  .heart-home.is-game-viewport .heart-home__challenge-play { min-height: 175px; }
  .heart-home.is-game-viewport .heart-home__finish-glow { display: none; }
}

@media (max-height: 520px) and (min-width: 621px) {
  .heart-home.is-game-viewport .heart-home__collection li { width: 40px; }
  .heart-home.is-game-viewport .heart-home__collection li small { display: none; }
  .heart-home.is-game-viewport .heart-home__tools button { min-height: 42px; }
  .heart-home.is-game-viewport .heart-home__map-layout { grid-template-columns: 1fr; }
  .heart-home.is-game-viewport .heart-home__map-column { grid-template-columns: minmax(0, 1fr) 162px; grid-template-rows: auto minmax(0, 1fr); }
  .heart-home.is-game-viewport .heart-home__objective { grid-column: 1 / -1; }
  .heart-home.is-game-viewport .heart-home__board-shell { padding: 2px; }
  .heart-home.is-game-viewport .heart-home__board { width: 185px; height: 185px; }
  .heart-home.is-game-viewport .heart-home__map-key { display: none; }
  .heart-home.is-game-viewport .heart-home__dpad { display: grid; width: 162px; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); align-self: center; }
  .heart-home.is-game-viewport .heart-home__dpad button { min-width: 48px; min-height: 48px; }
  .heart-home.is-game-viewport .heart-home__dpad-heart { display: grid; }
  .heart-home.is-game-viewport .heart-home__guide { display: none; }
  .heart-home.is-game-viewport .heart-home__challenge { display: block; overflow: auto; }
  .heart-home.is-game-viewport .heart-home__challenge-card { width: 100%; }
  .heart-home.is-game-viewport .heart-home__challenge-head { float: left; width: 31%; margin-right: 2%; }
  .heart-home.is-game-viewport .heart-home__challenge-prompt { float: left; width: 31%; margin-right: 2%; }
  .heart-home.is-game-viewport .heart-home__challenge-play { min-height: 170px; }
  .heart-home.is-game-viewport .heart-home__start { grid-template-columns: .8fr 1.2fr; min-height: 100%; text-align: left; }
  .heart-home.is-game-viewport .heart-home__portraits { padding: 0; }
  .heart-home.is-game-viewport .heart-home__start-features { margin-block: 8px; }
  .heart-home.is-game-viewport .heart-home__start-help { display: none; }
  .heart-home.is-game-viewport .heart-home__finish { padding: 10px; }
  .heart-home.is-game-viewport .heart-home__finish h4 { font-size: 1.8rem; }
  .heart-home.is-game-viewport .heart-home__finish blockquote { margin-block: 7px; padding: 8px 12px; }
  .heart-home.is-game-viewport .heart-home__finish-actions { margin-top: 8px; }
}

html[data-calm="true"] .heart-home *,
html[data-calm="true"] .heart-home *::before,
html[data-calm="true"] .heart-home *::after {
  animation: none !important;
  scroll-behavior: auto !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .heart-home *,
  .heart-home *::before,
  .heart-home *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
