.playroom {
  --ink: #252448;
  --muted: #525267;
  --purple: #534bc4;
  --outline: #b2a8c1;
  --page: #faf7ef;
  --mint: #c8e7d6;
  background: var(--page);
  color: var(--ink);
}

.playroom .site-header, .playroom footer { background: #fffefb; }
.playroom .header-inner .nav-action { border-color: #b0a8bd; }
.playroom :is(a, button, iframe):focus-visible {
  outline: 3px solid #37309d;
  outline-offset: 3px;
}

.playground {
  background: radial-gradient(ellipse at 3% 5%, #ffeadc, transparent 50%),
              linear-gradient(155deg, #faf7ef 36%, #e7f3e9 100%);
  border-bottom: 1px solid #dbdfd0;
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}
.playground-inner, .practice-area {
  width: min(100% - 4rem, 79rem);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
}
.introduction h1 {
  font-size: clamp(3.2rem, 5.2vw, 5.7rem);
  letter-spacing: -.04em;
}
.introduction h1 span { display: block; color: var(--purple); }
.introduction p {
  max-width: 38ch;
  color: var(--muted);
  margin: 1rem 0 1.35rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.56;
}
.learning-kit {
  width: min(82%, 14.5rem);
  height: auto;
  max-height: 9rem;
  object-fit: contain;
  object-position: left center;
  margin: 1.6rem 0 0;
}
.get-button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  padding: .65rem 1.25rem;
  background: var(--purple);
  color: #fff;
  box-shadow: 0 3px #302b81;
  border-radius: .85rem;
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
}
.get-button:hover { background: #413aa7; }
.demo-shortcut { margin-inline-start: .85rem; }

.screen-gallery {
  min-width: 0;
  border-radius: 1.75rem;
  padding: clamp(1rem, 2.4vw, 2rem);
  background: #e3ede3;
  color: #213e36;
}
.gallery-heading, .viewer-heading, .viewer-paging, .gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
}
.gallery-heading h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.gallery-controls[hidden] { display: none; }
.screen-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.7vw, 1.5rem);
  padding-block: 1.25rem .35rem;
}
.screen-link {
  display: block;
  position: relative;
  border-radius: .95rem;
  box-shadow: 0 2px 3px #23453724, 0 8px 16px -9px #183c35a1;
  cursor: zoom-in;
}
.screen-link img { width: 100%; border-radius: inherit; }
.screen-link:hover { outline: 2px solid #568474; outline-offset: 3px; }
.screen-strip figcaption { font-weight: 850; font-size: 1rem; margin-top: .75rem; }
.screen-strip figcaption span { display: block; margin-top: .18rem; color: #42564b; font-weight: 550; font-size: .9rem; line-height: 1.4; }
.gallery-note { color: #4e6058; font-size: .875rem; margin-top: .65rem; }
.screen-gallery button, .screen-viewer button {
  appearance: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #aac0b3;
  border-radius: 50%;
  background: #fffef8;
  color: #234b3d;
  font: 750 1.3rem/1 "Nunito", system-ui, sans-serif;
  cursor: pointer;
}
.screen-gallery button:disabled, .screen-viewer button:disabled { opacity: .42; cursor: default; }
.screen-gallery button:enabled:hover, .screen-viewer button:enabled:hover { background: #d9ecdf; }
.screen-viewer {
  width: fit-content;
  max-width: calc(100% - 1.25rem);
  max-height: calc(100% - 1rem);
  margin: auto;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 1rem;
  background: #f8faf2;
  color: #243c34;
}
.screen-viewer::backdrop { background: rgb(14 27 29 / 82%); }
html:has(.screen-viewer[open]) { overflow: hidden; }
.viewer-heading h2 { font-size: 1.35rem; }
.viewer-image {
  margin: .45rem auto;
  width: auto;
  height: auto;
  max-height: calc(100dvh - 9.5rem);
  border-radius: .6rem;
}
.viewer-paging { justify-content: center; gap: 1rem; }
.viewer-count { min-width: 4.5ch; text-align: center; font-weight: 800; }
.practice-area { padding-block: clamp(2.5rem, 5vw, 5rem); }
.demo-console {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  container: learn-console / inline-size;
  padding: clamp(.65rem, 1.5vw, 1.2rem);
  border-radius: 1.55rem;
  border: 1px solid var(--outline);
  background: #fffdf9;
  box-shadow: 0 5px #d6cfd6, 0 12px 26px -18px #554463;
}
.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1rem;
}
.console-header h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.demo-intro { color: var(--muted); line-height: 1.45; margin: .4rem 0 .8rem; max-width: 65ch; }
.console-header a, .lesson-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #443d9b;
  font-size: 1rem;
  font-weight: 800;
}
.demo-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: .65rem 0 .85rem;
}
.demo-entries a {
  display: grid;
  align-content: center;
  gap: .12rem;
  min-height: 52px;
  padding: .45rem .8rem;
  background: #e8e5f9;
  border-radius: .65rem;
  text-decoration: none;
}
.demo-entries a:nth-child(2) { background: #dceee4; }
.demo-entries a:nth-child(3) { background: #fae1d4; }
.demo-entries strong { font-size: 1.0625rem; line-height: 1.2; }
.demo-entries span { font-size: .9rem; color: #49455b; }
.demo-entries a:hover strong { text-decoration: underline; }
.demo-window {
  display: block;
  width: 100%;
  height: 31.5rem;
  border: 1px solid #cbc4d7;
  border-radius: .9rem;
  background: #fff;
}
@container learn-console (max-width: 500px) {
  .demo-window { height: 40rem; }
}
.together { grid-column: 1; grid-row: 1; }
.together-inner {
  display: grid;
  gap: 1.25rem;
}
.plant-illustration {
  max-width: 15rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #edf2e5;
  background-image: linear-gradient(#8d986723 1px, transparent 1px), linear-gradient(90deg, #8d986723 1px, transparent 1px);
  background-size: 1.1rem 1.1rem;
  padding: .65rem;
}
.plant-illustration img { width: 100%; height: auto; max-height: 12rem; object-fit: contain; }
.together h2, .download h2 { font-size: clamp(1.85rem, 3.3vw, 2.9rem); text-wrap: balance; }
.together p, .download p { color: var(--muted); margin-top: .6rem; max-width: 54ch; line-height: 1.6; }
.lesson-link { margin-top: .3rem; }
.download { padding: clamp(2.3rem, 4.2vw, 3.5rem) 0; background: var(--mint); }
.download-inner {
  width: min(100% - 3rem, 62rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: auto;
}
.market-links { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: .3rem .65rem; }
.market-links a { display: flex; align-items: center; min-height: 48px; }
.market-links img { width: auto; height: 42px; }
.market-links img[src$="google.png"] { height: 59px; }

@media (max-width: 960px) {
  .playground-inner, .practice-area { width: min(100% - 2.5rem, 47rem); grid-template-columns: minmax(0, 1fr); }
  .demo-console, .together { grid-column: auto; grid-row: auto; }
  .together-inner { grid-template-columns: 25% minmax(0, 1fr); align-items: center; }
  .introduction { display: grid; grid-template-columns: minmax(0, 1fr) 24%; align-items: center; gap: 1rem; }
  .introduction h1 span { display: inline; }
  .introduction p { max-width: 55ch; }
  .learning-kit { width: 100%; max-height: 8rem; margin: 0; }
  .download-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .playground { padding: 1.7rem 0; }
  .playground-inner, .practice-area { width: calc(100% - 1.25rem); gap: 1.6rem; }
  .introduction { position: relative; display: block; padding-inline: .4rem; }
  .introduction h1 { padding-right: 3.8rem; font-size: clamp(2.5rem, 8vw, 3.1rem); }
  .learning-kit { position: absolute; top: -.4rem; right: .4rem; width: 3.6rem; height: 3.5rem; }
  .introduction p { margin: .6rem 0 .9rem; font-size: 1rem; }
  .demo-console { padding: .55rem; border-radius: 1.15rem; }
  .screen-gallery { padding: 1rem; border-radius: 1.25rem; }
  .screen-strip {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #9cb2a6 transparent;
    margin-inline: -1rem;
    padding: .8rem 1rem .45rem;
    scroll-padding-inline: 1rem;
  }
  .screen-strip figure { flex: 0 0 min(74%, 16rem); scroll-snap-align: start; }
  .screen-strip figure:last-child { scroll-snap-align: end; }
  .gallery-note { margin-top: .6rem; }
  .console-header a { font-size: .9375rem; }
  .demo-entries { gap: .35rem; margin-top: .35rem; }
  .demo-entries a { padding: .4rem .45rem; }
  .demo-entries span { font-size: .875rem; }
  .together-inner { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .plant-illustration { width: min(100%, 15rem); }
  .plant-illustration img { max-height: 8.5rem; }
  .download-inner { width: calc(100% - 2rem); }
}
@media (max-width: 359px) {
  .playground-inner, .practice-area { width: calc(100% - .75rem); }
  .demo-console { padding: .4rem; }
  .introduction h1 { padding-right: 0; }
  .learning-kit { display: none; }
  .demo-entries span { font-size: .825rem; }
}
