.play {
  --line: #dedcd5;
  margin: auto;
  max-width: 990px;
  padding: clamp(24px, 6vh, 65px) clamp(20px, 5vw, 56px) 48px;
}
.play-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(20px, 4vw, 36px);
}
.play .play-bar h1 {
  margin: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.play-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  min-height: 44px;
  color: var(--body);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 650;
}
.play-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.projects {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(50px, 9vh, 94px);
  padding: 8px 0 22px;
}
.project {
  width: min(100%, 688px);
  box-sizing: border-box;
  padding: clamp(14px, 3vw, 24px);
  border-radius: 18px;
  background: rgb(255 255 255 / var(--canvas-alpha, 1));
  box-shadow: 0 28px 80px -26px #61748824, 0 8px 32px -18px #61748814;
  min-width: 0;
}
.art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 20px 56px -16px #8166ac54,
              0 6px 17px -9px #8166ac45;
}
.project-copy { width: min(92%, 440px); margin: 0 auto; padding-top: 25px; padding-bottom: 9px; text-align: left; }
.project-copy h2 {
  color: var(--heading);
  font-size: clamp(1.18rem, 2.4vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -.025em;
  font-weight: 450;
  margin: 0 0 8px;
}
.project-copy p {
  margin: 0;
  color: var(--body);
  font-size: .95rem;
  line-height: 1.47;
  max-width: none;
}
.project-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: #717981;
  font-size: .87rem;
  font-weight: 450;
  text-underline-offset: 3px;
}
.project-link:hover { text-decoration-thickness: 2px; }
.project-link:focus-visible { outline: 2px solid #4b6075; outline-offset: 2px; }
.project--phone { scroll-margin-top: 24px; }
@media (max-width: 510px) {
  .play { max-width: 440px; }
  .projects { gap: 48px; padding-top: 2px; }
}
.phone-slice {
  display: grid;
  position: relative;
  isolation: isolate;
  justify-items: center;
  width: 100%;
  margin: 0;
  padding-bottom: 2%;
}
.device-slice {
  width: 82%;
  height: auto;
  grid-area: 1 / 1;
}
.widget-preview {
  z-index: 1;
  grid-area: 1 / 1;
  align-self: start;
  width: 100%;
  height: auto;
  margin-top: 28%;
  border-radius: 9.7% / 20.1%;
  box-shadow: 0 25px 54px -20px #4f455447, 0 5px 16px -10px #2a252b55;
}
@media (max-height: 800px) {
  .play { padding-top: 24px; }
  .play-bar { min-height: 52px; margin-bottom: 22px; }
}
/* Live type + vector hardware: sharp at any pixel density. */
.phone-slice { container-type: inline-size; }
.live-widget {
  z-index: 1;
  grid-area: 1 / 1;
  align-self: start;
  box-sizing: border-box;
  width: 100%;
  margin-top: 26%;
  border-radius: 8cqw;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}
.chinese-widget {
  padding: 10cqw 6cqw 5cqw;
  color: #163c50;
  background: radial-gradient(ellipse at 12% 0%, #f5fbff, transparent 70%), linear-gradient(135deg, #d5eaf4, #bbd6e5);
  box-shadow: inset 0 1px 1px #ffffffef, 0 24px 56px -22px #527e9a60, 0 5px 15px -9px #34566c50;
}
.reading-line { display: flex; align-items: baseline; justify-content: center; white-space: nowrap; font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: 9.5cqw; font-weight: 500; line-height: 1.25; }
.reading-line ruby { ruby-align: center; }
.reading-line rt { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 3.5cqw; font-weight: 400; color: #486f82; }
.chinese-widget .translation { margin: 5cqw 0 0; text-align:center; font-size: 3.65cqw; line-height: 1.4; color:#375e72; }
.reading-pages { display:flex;justify-content:center;gap:1.2cqw;margin-top:7cqw; }
.reading-pages i {width:1cqw;height:1cqw;border-radius:50%;background:#759bac55;}
.reading-pages .current {background:#315f77;}
.family-widget {
  margin-top:23%;
  padding:7cqw 7.5cqw 8cqw;
  color:#fff5f1;
  background: radial-gradient(ellipse at 0% 0%, #af7784, transparent 85%), linear-gradient(135deg, #8c5869, #4e2c43);
  box-shadow:inset 0 1px 1px #edcfd783,0 25px 56px -22px #82465c66,0 5px 15px -9px #58344855;
}
.family-widget .widget-eyebrow { margin:0 0 2.2cqw;font-size:3.7cqw;line-height:1.35;color:#f2dbe1; }
.family-widget h3 { margin:0 0 3cqw; font-size:5.7cqw; font-weight:650;letter-spacing:-.02em;line-height:1.15; }
.family-widget .family-prompt { margin:0;font-size:4.05cqw;line-height:1.45;font-weight:400; }
.family-widget .family-prompt { font-size:max(14px, 4.05cqw); }
.family-widget .widget-eyebrow { font-size:max(12px, 3.7cqw); }
.family-widget h3 { font-size:max(18px, 5.7cqw); }
.chinese-widget .translation { font-size:max(12px, 3.65cqw); }
.reading-line rt { font-size:max(11px, 3.5cqw); }

/* A quiet, floating surface for each complete project. */
.project--book { box-shadow: 0 28px 85px -26px #8c74a52a, 0 8px 32px -18px #8c74a514; }
#learning-together { box-shadow: 0 28px 85px -26px #986f8228, 0 8px 32px -18px #986f8214; }
.project .art { box-shadow: none; border-radius: 7px; }
.project-link:hover { color: #414b56; }
/* Wide, airy canvases; keep the artwork and reading measure intentional. */
.play { max-width: 1180px; }
.project {
  width: min(100%, 1040px);
  padding: clamp(20px, 4.5vw, 52px);
  border-radius: 22px;
  box-shadow: 0 42px 110px -24px #61748840, 0 14px 44px -20px #61748824;
}
.project--book { box-shadow: 0 42px 110px -24px #8c74a540, 0 14px 44px -20px #8c74a524; }
#learning-together { box-shadow: 0 42px 110px -24px #986f8240, 0 14px 44px -20px #986f8224; }
.project .art, .project .phone-slice { width: min(100%, 640px); margin-inline: auto; }
.projects { gap: clamp(64px, 11vh, 112px); }
@media (max-width: 510px) {
  .play { padding-inline: 20px; }
  .project { padding: 18px 14px 22px; border-radius:18px; }
  .projects { gap: 64px; }
}

/* A compact welcome, in the same conversational voice as the work. */
.play { padding-top: 28px; }
.play-bar { min-height: 44px; border-bottom: 0; margin-bottom: 16px; }
.play-intro { width: min(92%, 440px); max-width: 440px; margin: 0 auto 30px; color: var(--body); font-size: 1rem; line-height: 1.5; font-weight: 400; }
@media (max-width: 510px) {
  .play { padding-top: 20px; }
  .play-bar { margin-bottom: 12px; }
  .play-intro { margin-bottom: 24px; }
}

@media (max-width: 510px) { .play-intro { width: calc((100% - 28px) * .92); } }

.canvas-control { position:fixed; z-index:10; right:20px; bottom:20px; color:#48505a; background:#ffffffed; border-radius:14px; box-shadow:0 8px 35px #29334218; font-size:14px; }
.canvas-control summary { cursor:pointer; padding:12px 18px; min-height:44px; box-sizing:border-box; list-style:none; }
.canvas-control summary::-webkit-details-marker { display:none; }
.canvas-control summary::after { content:" +"; margin-left:14px; }
.canvas-control[open] summary::after { content:" −"; }
.canvas-settings { width:240px; padding:0 18px 16px; }
.canvas-settings label { display:flex; justify-content:space-between; gap:24px; }
.canvas-settings input { width:100%; margin:6px 0; height:32px; accent-color:#657785; cursor:pointer; }
.canvas-range-labels { display:flex; justify-content:space-between; color:#6e747b; font-size:12px; }
.canvas-control summary:focus-visible, .canvas-settings input:focus-visible { outline:2px solid #657785; outline-offset:3px; }
/* Viewport-proportional canvases on larger displays. */
@media (min-width: 900px) {
  .play { max-width: none; }
  .project { width: 70vw; }
}
/* More breathing room above the artwork and below its description. */
.project { padding-block: clamp(52px, 6.5vw, 84px); }
@media (max-width: 510px) { .project { padding-top: 32px; padding-bottom: 36px; } }

/* Optional per-browser canvas adjustments, with responsive defaults. */
.project {
  width: var(--canvas-width, min(100%, 1040px));
  max-width: 100%;
  min-width: min(280px, 100%);
  padding-top: var(--canvas-padding, clamp(52px, 6.5vw, 84px));
  padding-bottom: var(--canvas-padding, clamp(52px, 6.5vw, 84px));
  border-radius: var(--canvas-radius, 22px);
}
.projects { gap: var(--canvas-gap, clamp(64px, 11vh, 112px)); }
@media (min-width:900px) { .project { width:var(--canvas-width, 70vw); } }
@media (max-width:510px) {
  .project { padding-top:var(--canvas-padding,32px); padding-bottom:var(--canvas-padding,36px); border-radius:var(--canvas-radius,18px); }
  .projects { gap:var(--canvas-gap,64px); }
}
.play-intro { width:var(--intro-measure, min(92%,440px)); }
.canvas-control { max-width:calc(100vw - 32px); max-height:calc(100dvh - 40px); overflow:auto; }
.canvas-settings { width:260px; max-width:calc(100vw - 68px); box-sizing:border-box; }
.canvas-settings input { display:block; margin:0 0 10px; min-height:36px; }
.canvas-hint { font-size:12px;line-height:1.4;color:#717981;margin:4px 0; }
#canvas-reset { min-height:44px;padding:0;background:none;border:0;color:#48505a;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit; }
#canvas-reset:focus-visible { outline:2px solid #657785;outline-offset:3px; }

/* Selected canvas defaults, from the owner's reference. Saved choices still win. */
.project { padding-top:var(--canvas-padding,120px); padding-bottom:var(--canvas-padding,120px); border-radius:var(--canvas-radius,60px); }
.projects { gap:var(--canvas-gap,120px); }
@media (min-width:900px) { .project { width:var(--canvas-width,59vw); } }

/* A full, uncropped portrait recording, presented quietly in the wide canvas. */
.daily-demo {width:min(100%,360px);margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:12px;}
.daily-demo video {display:block;width:100%;height:auto;aspect-ratio:506/900;object-fit:contain;border-radius:4px;}
.project--daily {box-shadow:0 42px 110px -24px #787c8940,0 14px 44px -20px #787c8924;}
.play .play-bar h1,.play-back {font-size:.95rem;line-height:1.3;min-height:44px;display:flex;align-items:center;letter-spacing:0;}
.play .play-bar h1 {font-weight:650;}

.play .play-bar h1 {margin:0;}
/* Align the smaller navigation with the title's typographic baseline. */
.play-bar {align-items:baseline;}
.play-back {display:block;box-sizing:border-box;min-height:44px;padding-block:12px;line-height:20px;font-size:.9rem;}
.play-back svg {display:inline-block;vertical-align:-2px;margin-right:5px;}
.play .play-bar h1 {display:block;min-height:0;font-size:clamp(25px,2.7vw,32px);line-height:1.2;font-weight:600;letter-spacing:-.025em;margin:0;}
.play-back {white-space:nowrap;}
@media(max-width:360px) {.play-bar {grid-template-columns:minmax(max-content,1fr) auto 1fr;gap:8px;}}
.daily-demo video {border:0;box-shadow:none;border-radius:0;}

/* Hide only the recording’s thin outer capture edge; phone and UI remain intact. */
.daily-demo video {clip-path:inset(2px);}
/* Enlarge the reading surface; quietly let the lower phone fall away. */
.daily-demo {width:min(100%,560px);}
.daily-window {width:100%;aspect-ratio:506/585;overflow:hidden;mask-image:linear-gradient(to bottom,#000 0%,#000 82%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 82%,transparent 100%);}
.daily-window video {width:100%;max-width:none;height:auto;}
/* Same header measure and navigation rhythm as Work, independent of canvases. */
.play-bar {width:calc(100vw - 80px);max-width:820px;margin-inline:auto;grid-template-columns:1fr auto 1fr;gap:24px;}
.play-bar a {display:block;box-sizing:border-box;min-height:44px;padding-block:12px;line-height:20px;font-size:.9rem;font-weight:400;text-decoration:none;color:var(--body);}
.play-bar a:last-child {justify-self:end;}
.play-bar a:hover {text-decoration:underline;text-underline-offset:4px;}
.play-bar a:focus-visible {outline:2px solid #657785;outline-offset:4px;}
@media(max-width:600px) {.play-bar {width:calc(100vw - 48px);max-width:none;}}

.play-intro {text-align:center;margin-inline:auto;}

/* A quiet support line: anchored at the flanks, dissolving beneath the title. */
.play-bar { position:relative; }
.play-bar::after {
  content:"";
  position:absolute;
  inset-inline:0;
  bottom:0;
  height:1px;
  pointer-events:none;
  background:linear-gradient(to right, rgb(93 103 110 / .2) 0%, rgb(93 103 110 / .16) 22%, rgb(93 103 110 / .025) 45%, transparent 50%, rgb(93 103 110 / .025) 55%, rgb(93 103 110 / .16) 78%, rgb(93 103 110 / .2) 100%);
}

/* Keep narrow canvases airy without desktop-sized space above the artwork. */
@media(max-width:510px) {
  .project {padding-top:clamp(72px,20vw,96px);}
}

/* A tighter mobile rhythm, retaining the generous desktop canvases. */
@media(max-width:510px) {
  .project {padding-block:clamp(44px,13vw,56px);}
  .projects {gap:clamp(48px,15vw,64px);}
}

/* Resolve the final intro measure before first paint, without a JS resize. */
.play {--intro-frame:100%;--intro-inset:clamp(20px,4.5vw,52px);}
.play-intro {width:min(440px,calc((var(--intro-frame) - 2 * var(--intro-inset)) * .92));}
@media(min-width:900px) {.play {--intro-frame:59vw;}}
@media(max-width:510px) {.play {--intro-inset:14px;}}

/* The eager still remains underneath until an actual video frame is presented. */
.daily-window {position:relative;}
.daily-poster {display:block;width:100%;height:auto;aspect-ratio:506/900;object-fit:contain;clip-path:inset(2px);}
.daily-window video {position:absolute;inset:0 0 auto;opacity:0;}
.daily-window.has-video-frame video {opacity:1;}
