/* Same messy notebook. A clearer place to start. */
.home-clear .home-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(26px, 3vw, 48px); }
.home-clear .home-story { padding: 8px 0; gap: 0; }
.home-clear .home-logo { width: min(100%, clamp(290px, calc((100dvh - 430px) * 1.2), 620px)); max-width: none; margin: 0 0 8px; }
.home-category { font: 21px/1.2 var(--hand); color: var(--blue); margin: 0 0 13px 3px; }
.home-premise { font-size: clamp(40px, 3.8vw, 54px); line-height: 1.06; }
.home-explainer { font-size: 24px; line-height: 1.3; margin-top: 15px; }
.play-facts { font: 13px/1.5 var(--mono); margin-top: 13px; max-width: 100%; }
.play-facts span { color: var(--red); padding: 0 3px; }
.personality-note { margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.home-clear .crossout-note { font-size: 22px; margin: 0; }
.home-clear .home-tagline { font-size: 30px; margin-left: 0; }
.home-clear .home-doodles { height: 100px; margin: 0; max-width: 100%; }
.home-clear .home-doodles .flower { width: 85px; height: 95px; top: 12px; }
.home-clear .home-doodles .worm { width: 147px; height: 164px; left: 93px; top: -22px; }
.home-clear .pencil-note { left: 274px; top: 34px; font-size: 19px; }
.home-clear .rule-note { margin-top: 8px; padding: 15px 20px; max-width: 570px; gap: 22px; }
.home-clear .note-number { font-size: 24px; }
.home-clear .rule-note p { font-size: 17px; }
.home-clear .join-area { max-width: none; justify-self: stretch; }
.home-clear .join-sheet { padding: 36px 32px 32px; }
.home-clear .join-sheet h2 { font-size: 52px; margin-bottom: 28px; }
.home-clear .join-sheet .btn { min-height: 62px; font-size: 32px; }
.choice-hint { font-size: 22px; line-height: 1.25; margin: 13px 0 27px; }
.home-clear .or-line { margin: 6px 0 20px; color: var(--muted); font-size: 20px; }
.preview-button { display: flex; align-items: center; gap: 14px; padding: 0; width: 100%; border: 0; background: none; text-align: left; }
.preview-button b { font-size: 30px; font-weight: 400; }
.preview-button small { display: block; font-size: 11px; line-height: 1.5; margin-top: 6px; }
.preview-thumbnail { width: 142px; aspect-ratio: 16 / 10; flex: none; position: relative; border: 2px solid var(--ink); box-shadow: 2px 3px 0 #29272040; transform: rotate(-4deg); overflow: hidden; }
.preview-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sheet); background: #29272045; font: 22px sans-serif; text-shadow: 1px 2px var(--ink); }
.preview-button:hover .preview-thumbnail { transform: rotate(1deg); }
.home-clear .home-footer nav { display: flex; gap: 24px; }
.home-clear .back-home { font-size: 16px; margin: -9px 0 9px; }
.home-clear.is-joining .join-sheet h2 { margin-bottom: 8px; }
.join-instruction { font-size: 16px; margin-bottom: 15px; color: var(--muted); }
.modal-preview { width: min(1050px, 100%); }
.feature-preview { min-height: 0; overflow-y: auto; }
.feature-preview video { display: block; width: 100%; max-height: calc(var(--screen-height) - 270px); aspect-ratio: 16 / 9; background: var(--ink); border: 2px solid var(--ink); }
.preview-note { font: 11px/1.5 var(--mono); margin-top: 10px; color: var(--muted); }
.preview-transcript { font-size: 16px; margin-top: 10px; }
.preview-transcript summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.preview-transcript p { font: 14px/1.55 system-ui, sans-serif; margin: 10px 0; max-width: 70ch; }
.preview-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
.preview-actions .btn { font-size: 21px; }
.modal-about { width: min(710px, 100%); }
.project-story { overflow-y: auto; min-height: 0; font: 15px/1.55 system-ui, sans-serif; padding-right: 4px; }
.project-byline { font: 11px/1.5 var(--mono); color: var(--red); margin-bottom: 13px; }
.project-story dl { margin: 16px 0; display: grid; gap: 16px; }
.project-story dt { font-family: var(--hand); font-size: 24px; color: var(--blue); line-height: 1.25; }
.project-story dd { margin: 4px 0 0; }
.project-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.project-links .btn { font-size: 20px; }
.project-links a { font-size: 13px; }
@media (min-width: 681px) and (max-height: 780px) {
 .home-clear .home-logo { width: min(100%, 320px); margin-bottom: 3px; }
 .home-category { font-size: 10px; margin-bottom: 10px; }
 .home-premise { font-size: 43px; }
 .home-explainer { font-size: 18px; margin-top: 11px; }
 .play-facts { font-size: 10px; margin-top: 9px; }
 .personality-note { margin-top: 12px; }
 .home-clear .home-tagline { font-size: 24px; }
 .home-clear .home-doodles { height: 60px; }
 .home-clear .home-doodles .flower { width: 47px; height: 55px; }
 .home-clear .home-doodles .worm { width: 91px; height: 105px; left: 56px; top: -17px; }
 .home-clear .pencil-note { left: 165px; top: 20px; font-size: 13px; }
 .home-clear .rule-note { padding: 7px 12px; }
 .home-clear .rule-note p { font-size: 12px; }
 .home-clear .note-number { font-size: 17px; }
 .home-clear .join-sheet { padding: 23px; }
 .home-clear .join-sheet h2 { font-size: 40px; margin-bottom: 17px; }
 .home-clear .join-sheet .btn { min-height: 49px; font-size: 27px; }
 .preview-thumbnail { width: 105px; }
 .preview-button b { font-size: 23px; }
 .home-clear .or-line { font-size: 16px; margin-bottom: 15px; }
 .choice-hint { font-size: 16px; margin: 11px 0 18px; }
}
@media (min-width: 681px) and (max-width: 1000px) {
 .home-clear .home-main { gap: 28px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
 .home-clear .home-logo { max-width: 100%; }
 .personality-note { gap: 5px 12px; }
 .home-clear .crossout-note { font-size: 17px; }
 .home-clear .home-tagline { font-size: 24px; }
 .home-clear .join-sheet h2 { font-size: 39px; }
 .home-clear .join-sheet .btn { font-size: 25px; min-height: 49px; }
 .choice-hint { font-size: 18px; }
 .home-clear .home-doodles .worm { width: 110px; left: 68px; }
 .home-clear .home-doodles .flower { width: 65px; }
 .home-clear .pencil-note { left: 197px; font-size: 15px; }
 .home-clear .rule-note { padding: 10px 13px; gap: 12px; }
 .home-clear .rule-note p { font-size: 13px; }
 .home-clear .note-number { font-size: 18px; }
 .home-premise { font-size: 40px; }
 .home-explainer { font-size: 18px; }
 .home-clear .home-footer .tiny-smile { font-size: 8px; }
 .home-clear .home-footer nav { gap: 14px; }
 .home-clear .home-footer .text-button { font-size: 14px; }
 .home-clear .join-sheet { padding: 22px; }
 .preview-thumbnail { width: 76px; }
 .preview-button b { font-size: 19px; }
 .preview-button small { font-size: 9px; }
}
@media (max-width: 680px) {
 .home-clear { padding: 11px 21px 8px 29px; }
 .home-clear .home-main { display: flex; gap: 12px; justify-content: center; }
 .home-clear .home-story { height: auto; min-height: 0; padding: 0; text-align: center; }
 .home-clear .home-logo { width: 128px; max-width: none; margin: 0 auto 3px; }
 .home-category { font: 8px/1.2 var(--mono); margin: 0 0 8px; }
 .home-premise { font-size: 31px; line-height: 1.05; }
 .home-premise br { display: none; }
 .home-explainer { display: block; font-size: 16px; margin-top: 8px; line-height: 1.2; }
 .play-facts { font-size: 9px; margin: 8px auto 0; max-width: 290px; }
 .personality-note { margin-top: 8px; display: flex; justify-content: center; align-items: center; gap: 8px; }
 .home-clear .crossout-note { display: block; font-size: 12px; }
 .home-clear .home-tagline { font-size: 16px; margin: 0; }
 .home-clear .home-doodles { position: absolute; height: 62px; inset: 0 0 auto; pointer-events: none; }
 .home-clear .home-doodles .flower { width: 39px; height: 44px; left: 8px; top: 5px; }
 .home-clear .home-doodles .worm { width: 60px; height: 69px; left: auto; right: -2px; top: -5px; }
 .home-clear .pencil-note,.home-clear .rule-note { display: none; }
 .home-clear .join-area { margin: 0; max-width: 360px; }
 .home-clear .join-sheet { padding: 16px 20px; }
 .home-clear .join-sheet h2 { font-size: 27px; margin-bottom: 13px; }
 .home-clear .join-sheet .btn { min-height: 41px; font-size: 22px; padding: 8px 12px; }
 .choice-hint { font-size: 14px; line-height: 1.15; margin: 8px 0 14px; }
 .home-clear .or-line { font-size: 12px; margin: 0 0 10px; }
 .preview-button { gap: 12px; }
 .preview-thumbnail { width: 74px; height: 42px; }
 .preview-button b { font-size: 20px; }
 .preview-button small { font-size: 8px; margin-top: 2px; }
 .home-clear .home-footer { margin-top: 10px; flex-shrink: 0; }
 .home-clear .home-footer nav { gap: 16px; }
 .home-clear .home-footer .text-button { font-size: 13px; }
 .home-clear .back-home { font-size: 13px; margin: -3px 0 4px; }
 .join-instruction { font-size: 13px; margin-bottom: 9px; }
 .home-clear.is-joining .join-sheet h2 { margin-bottom: 5px; }
 .home-clear.is-joining .join-sheet .btn { min-height: 39px; }
 .feature-preview video { max-height: calc(var(--screen-height) - 250px); }
 .preview-note { font-size: 9px; }
 .preview-actions { gap: 10px; }
 .preview-actions .btn,.preview-actions .text-button { font-size: 16px; padding: 8px; }
 .project-story { font-size: 14px; }
 .project-links { gap: 12px; }
}
@media (max-width: 680px) and (max-height: 690px) {
 .home-clear .home-main { gap: 8px; }
 .home-clear .home-logo { width: 100px; }
 .home-category { margin-bottom: 6px; font-size: 7px; }
 .home-premise { font-size: 27px; }
 .home-explainer { font-size: 14px; margin-top: 7px; }
 .home-clear .personality-note { margin-top: 6px; }
 .home-clear .join-sheet { padding: 13px 18px; }
 .home-clear .join-sheet h2 { font-size: 25px; margin-bottom: 9px; }
 .home-clear .join-sheet .btn { font-size: 20px; min-height: 38px; }
 .choice-hint { font-size: 12px; margin: 7px 0 10px; }
 .home-clear .or-line { margin-bottom: 8px; }
 .home-clear .home-footer { margin-top: 5px; }
}
@media (max-height: 580px) and (min-width: 681px) {
 .home-clear .home-logo { width: min(100%, 230px); }
 .home-category { margin-bottom: 7px; }
 .home-premise { font-size: 33px; }
 .home-explainer { font-size: 16px; margin-top: 8px; }
 .home-clear .personality-note { margin-top: 8px; }
 .home-clear .crossout-note { font-size: 15px; }
 .home-clear .home-tagline { font-size: 21px; }
 .home-clear .home-doodles { height: 43px; }
 .home-clear .home-doodles .flower { top: 3px; width: 38px; height: 43px; }
 .home-clear .home-doodles .worm { width: 71px; height: 80px; top: -17px; }
 .home-clear .pencil-note { top: 11px; left: 145px; }
 .home-clear .rule-note { padding: 6px 10px; }
 .home-clear .join-sheet { padding: 18px; }
 .home-clear .join-sheet h2 { font-size: 28px; margin-bottom: 12px; }
 .home-clear .join-sheet .btn { min-height: 36px; font-size: 21px; padding: 8px; }
 .choice-hint { font-size: 14px; margin: 8px 0 13px; }
 .preview-button small { font-size: 8px; }
 .preview-thumbnail { width: 68px; }
}
.keyboard-open .home-clear.is-joining .home-story,
.keyboard-open .home-clear.is-joining .home-top,
.keyboard-open .home-clear.is-joining .home-footer,
.keyboard-open .home-clear.is-joining .join-instruction { display: none; }
/* Narrow laptops need less vertical artwork even when the window is tall. */
@media (min-width: 681px) and (max-width: 1000px) and (min-height: 781px) {
 .home-clear .home-logo { max-width: 340px; }
 .home-category { font-size: 18px; margin-bottom: 10px; }
 .play-facts { font-size: 11px; }
 .home-clear .home-doodles { height: 80px; }
}
