.home-page {
  background:
    radial-gradient(circle at 16% 8%, rgba(181, 204, 208, 0.22), transparent 22rem),
    linear-gradient(90deg, rgba(41, 43, 41, 0.025) 1px, transparent 1px),
    var(--color-paper-cream);
  background-size: auto, 18px 18px, auto;
}

.home-page .section { position: relative; }
.home-page .section > .container { min-width: 0; }
.home-page .eyebrow { font-family: var(--font-body); }
.home-page .home-badge,
.home-page .home-tip__label,
.home-page .home-clarity__ribbon {
  display: inline-flex;
  width: fit-content;
  min-height: 1.75rem;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-hero { padding-top: var(--space-7); }
.home-hero__canvas { display: flex; min-width: 0; flex-direction: column; gap: var(--space-4); }
.home-hero__postcard {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: var(--space-3);
  border: var(--border-strong-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.home-hero__postcard:hover,
.home-hero__postcard:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(41, 43, 41, 0.18); }
.home-hero__figure { width: 100%; min-width: 0; margin: 0; }
.home-hero__figure img { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); object-fit: contain; background: var(--color-concrete-gray); }
.home-hero__figure figcaption { padding-inline: var(--space-2); }
.home-hero__note,
.home-hero__bubble {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
}
.home-hero__note {
  position: absolute;
  z-index: 1;
  bottom: var(--space-6);
  left: var(--space-6);
  width: min(39%, 28.125rem);
  padding: var(--space-5);
  border: var(--border-strong-width) solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-paper-cream);
  box-shadow: var(--shadow-sm);
}
.home-hero__note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; border-top: 1px solid var(--color-border); border-left: 1px solid var(--color-border); background: var(--color-faded-yellow); clip-path: polygon(100% 0, 0 100%, 100% 100%); }
.home-hero__note h1,
.home-hero__note p { margin: 0; }
.home-hero__note h1 { padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); font-size: clamp(2rem, 4.4vw, var(--text-display)); }
.home-hero__actions { display: flex; min-width: 0; flex-wrap: wrap; gap: var(--space-3); }
.home-hero__actions > * { min-width: 0; }
.home-hero__external-group,
.home-closing__play { display: flex; min-width: 0; flex-direction: column; gap: var(--space-1); }
.home-hero__external-group small { color: var(--color-muted-ink); }
.home-hero__bubble {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: min(23%, 16.875rem);
  padding: var(--space-4);
  border: var(--border-strong-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-sky-blue);
  box-shadow: var(--shadow-sm);
}
.home-hero__bubble::after { content: ""; position: absolute; right: 22%; bottom: -15px; width: 26px; height: 26px; border-right: var(--border-strong-width) solid var(--color-border); border-bottom: var(--border-strong-width) solid var(--color-border); background: var(--color-sky-blue); transform: rotate(45deg); }
.home-hero__bubble p { margin: 0; font-size: var(--text-sm); }
.home-hero__orientation { width: 100%; max-width: 47.5rem; margin: 0; color: var(--color-muted-ink); font-size: var(--text-xs); }

.home-route__panel { padding: var(--space-6); border: var(--border-strong-width) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-sky-blue); }
.home-route__intro { width: 100%; max-width: 38.75rem; }
.home-route__intro p:last-child { margin-bottom: 0; }
.home-route__grid { display: grid; grid-template-columns: 5fr 3fr 4fr; min-width: 0; gap: var(--space-4); margin-top: var(--space-6); }
.home-route__tag { display: flex; min-width: 0; min-height: 7.5rem; flex-direction: column; justify-content: space-between; gap: var(--space-3); border: var(--border-strong-width) solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); color: var(--color-ink); text-decoration: none; box-shadow: 2px 2px 0 rgba(41, 43, 41, 0.14); transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast); }
.home-route__tag:hover { color: var(--color-ink); text-decoration: none; transform: translateY(-2px); box-shadow: 4px 4px 0 rgba(41, 43, 41, 0.18); }
.home-route__tag strong { font-family: var(--font-heading); font-size: var(--text-xl); line-height: var(--leading-subheading); }
.home-route__tag span { font-size: var(--text-sm); line-height: var(--leading-small); }
.home-route__tag--story { grid-column: 1 / span 1; background: var(--color-faded-yellow); }
.home-route__tag--screens { grid-column: 2 / span 1; background: var(--color-white); }
.home-route__tag--play { grid-column: 3 / span 1; background: var(--color-paper-cream); }
.home-route__tag--android { grid-column: 1 / span 1; background: var(--color-concrete-gray); }
.home-route__tag--safe { grid-column: 2 / span 1; background: rgba(255, 253, 244, 0.72); }

.home-world__lead { width: 100%; max-width: 43.75rem; }
.home-world__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: var(--space-5); margin-top: var(--space-6); }
.home-world__cards > * { min-width: 0; }
.home-world__fact { display: flex; min-width: 0; flex-direction: column; gap: var(--space-3); }
.home-world__fact > * { margin: 0; }
.home-world__editorial { display: flex; width: 50%; min-width: 0; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); margin-left: auto; padding: var(--space-5); border-left: var(--border-strong-width) solid var(--color-rust-red); border-radius: var(--radius-md); background: rgba(181, 204, 208, 0.56); }
.home-world__editorial p { margin: 0; }

.home-activities { background: rgba(150, 154, 149, 0.2); }
.home-activities__lead { width: 100%; max-width: 38.75rem; }
.home-activities__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: var(--space-5); margin-top: var(--space-6); }
.home-activities__cards > * { min-width: 0; }
.home-step { display: flex; min-width: 0; flex-direction: column; gap: var(--space-3); }
.home-step > * { margin: 0; }
.home-step__number { display: grid; width: 2.75rem; min-width: 2.75rem; height: 2.75rem; place-items: center; border: var(--border-strong-width) solid var(--color-border); border-radius: 50%; background: var(--color-white); font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; }
.home-step__link { display: inline-flex; width: 100%; min-height: 2.75rem; align-items: center; margin-top: auto; font-weight: 700; }

.home-story__heading { width: 100%; max-width: 43.75rem; margin-inline: auto; text-align: center; }
.home-story__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: var(--space-6); margin-top: var(--space-6); }
.home-story__cards > * { min-width: 0; }
.home-story__card { display: flex; min-width: 0; flex-direction: column; gap: var(--space-3); }
.home-story__card > * { margin: 0; }
.home-story__editorial { display: flex; width: 50%; min-width: 0; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); margin-left: auto; padding: var(--space-5); border: var(--border-strong-width) solid var(--color-border); border-radius: var(--radius-md); background: var(--color-concrete-gray); color: var(--color-ink); }
.home-story__editorial p { margin: 0; }

.home-gallery { background: rgba(181, 204, 208, 0.18); }
.home-gallery__lead { width: 100%; max-width: 38.75rem; }
.home-gallery__featured { width: 100%; min-width: 0; margin-top: var(--space-6); padding: var(--space-3); border: var(--border-strong-width) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-white); box-shadow: var(--shadow-sm); }
.home-gallery__featured img { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); object-fit: contain; background: var(--color-concrete-gray); }
.home-gallery__featured figcaption { width: 100%; max-width: 47.5rem; }
.home-gallery__small-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: var(--space-5); margin-top: var(--space-5); }
.home-gallery__small-grid > * { min-width: 0; }
.home-gallery__small-card { width: 100%; min-width: 0; margin: 0; padding: var(--space-3); border: var(--border-strong-width) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-paper-cream); }
.home-gallery__small-card img { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); object-fit: contain; background: var(--color-concrete-gray); }
.home-gallery__small-card figcaption { width: 100%; max-width: 24.375rem; }
.home-gallery__small-card .home-badge { margin-right: var(--space-2); vertical-align: middle; }

.home-beginners__lead { width: 100%; max-width: 38.75rem; }
.home-beginners__tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: var(--space-5); margin-top: var(--space-6); }
.home-beginners__tips > * { min-width: 0; }
.home-tip { display: flex; min-width: 0; flex-direction: column; gap: var(--space-3); }
.home-tip > * { margin: 0; }
.home-tip__label { background: var(--color-white); }
.home-spoiler-boundary { display: flex; width: 65%; max-width: 43.75rem; min-width: 0; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-5); padding: var(--space-4); border: var(--border-strong-width) solid var(--color-rust-red); border-radius: var(--radius-md); background: var(--color-paper-cream); }
.home-spoiler-boundary > * { min-width: 0; }
.home-spoiler-boundary p { margin: 0; }

.home-clarity { background: rgba(230, 197, 112, 0.24); }
.home-clarity__lead { width: 100%; max-width: 43.75rem; }
.home-clarity__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: var(--space-6); margin-top: var(--space-6); }
.home-clarity__cards > * { min-width: 0; }
.home-clarity__cards .card { display: flex; min-width: 0; flex-direction: column; gap: var(--space-4); }
.home-clarity__cards .card > * { margin: 0; }
.home-clarity__ribbon { border-radius: 0; background: var(--color-faded-yellow); }
.home-clarity__editorial-card .home-clarity__ribbon { background: var(--color-white); }

.home-faq { background: var(--color-concrete-gray); }
.home-faq__column { width: 100%; max-width: 46.25rem; margin-inline: auto; }
.home-faq__item { width: 100%; margin-bottom: var(--space-3); border: var(--border-strong-width) solid var(--color-border); background: var(--color-paper-cream); }
.home-faq__item summary { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: var(--text-base); }
.home-faq__item summary span { flex: 0 0 auto; color: var(--color-muted-ink); font-size: var(--text-xs); font-weight: 400; }
.home-faq__item p { margin-top: 0; }
.home-faq__more { margin-top: var(--space-5); margin-bottom: 0; font-weight: 700; }

.home-closing { background: rgba(150, 154, 149, 0.18); }
.home-closing__panel { display: flex; width: 100%; max-width: 47.5rem; min-width: 0; flex-direction: column; gap: var(--space-4); margin-inline: auto; padding: var(--space-6); border: var(--border-strong-width) solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-paper-cream); box-shadow: var(--shadow-sm); text-align: center; }
.home-closing__panel > * { margin: 0; }
.home-closing__panel > p:not(.eyebrow) { width: 100%; max-width: 40rem; margin-inline: auto; text-align: left; }
.home-closing__actions { display: flex; min-width: 0; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
.home-closing__actions > * { min-width: 0; }
.home-closing__play { align-items: center; }
.home-closing__play small { color: var(--color-muted-ink); }

@media (max-width: 61.25rem) {
  .home-route__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-route__tag--story,
  .home-route__tag--screens,
  .home-route__tag--play,
  .home-route__tag--android,
  .home-route__tag--safe { grid-column: auto; }
  .home-activities__cards,
  .home-beginners__tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-step--three,
  .home-tip--safe { grid-column: 1 / -1; }
}

@media (max-width: 57.5rem) {
  .home-hero__postcard { display: flex; flex-direction: column; gap: var(--space-5); }
  .home-hero__note,
  .home-hero__bubble { position: static; width: 100%; max-width: 35rem; }
  .home-hero__note { order: 2; margin-left: 0; }
  .home-hero__bubble { order: 3; }
  .home-hero__bubble::after { display: none; }
  .home-hero__figure { order: 1; }
  .home-world__cards,
  .home-story__cards,
  .home-clarity__cards { grid-template-columns: 1fr; }
  .home-world__editorial,
  .home-story__editorial { width: 100%; }
  .home-gallery__small-grid { grid-template-columns: 1fr; }
}

@media (max-width: 43.75rem) {
  .home-hero { padding-top: var(--space-6); }
  .home-hero__postcard { padding: var(--space-2); }
  .home-hero__note { padding: var(--space-4); }
  .home-hero__actions,
  .home-closing__actions { flex-direction: column; }
  .home-hero__actions .button,
  .home-hero__external-group,
  .home-hero__external-group .button,
  .home-closing__actions .button,
  .home-closing__play { width: 100%; }
  .home-hero__external-group small,
  .home-closing__play small { text-align: center; }
  .home-route__panel { padding: var(--space-4); }
  .home-route__grid,
  .home-activities__cards,
  .home-beginners__tips { grid-template-columns: 1fr; }
  .home-step--three,
  .home-tip--safe { grid-column: auto; }
  .home-route__tag { min-height: 6.5rem; }
  .home-spoiler-boundary { width: 100%; flex-direction: column; }
  .home-faq__item summary { align-items: flex-start; flex-direction: column; }
  .home-closing__panel { padding: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__postcard,
  .home-route__tag { transition: none; }
  .home-hero__postcard:hover,
  .home-hero__postcard:focus-visible,
  .home-route__tag:hover { transform: none; }
}
