/* Homepage composition. The journal and all existing data flows stay shared. */
html{scroll-padding-top:0}body{background:#faf7f0}.masthead{height:90px;padding:0 3vw;gap:24px}.masthead .brand{padding:0;display:block;font-size:28px;white-space:nowrap}.masthead .brand span{display:block;border:0;padding:0;font-size:11px;margin-top:4px}.masthead nav{gap:24px}.masthead nav a{min-height:44px;display:flex;align-items:center;text-shadow:0 0 8px #fffaf0}.account-menu{position:relative;min-width:110px;max-width:280px;color:#781d37;font-size:13px}.account-menu summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;text-shadow:0 0 7px #fffaf5}.account-menu summary::-webkit-details-marker{display:none}.account-panel{position:absolute;left:0;top:calc(100% + 12px);width:300px;max-width:calc(100vw - 36px);padding:22px;background:#fffaf2;border:1px solid #ddc9b7;box-shadow:0 12px 35px #49301d26;border-radius:12px;color:#513c2d}.account-panel p{margin:0;font-size:13px}.account-panel .account-bar{margin:0;padding:0;border:0}.account-identity{margin:0;max-width:220px}.account-panel .masthead-note{display:block;font-size:13px;margin-top:8px}
.studio{height:100svh;min-height:660px;margin:0;padding:0;overflow:hidden}.studio-photo{inset:0;height:100%;object-fit:cover;object-position:center}.studio:after{inset:0;height:auto;background:linear-gradient(90deg,#faf7f0f5 0%,#faf7f0ed 43%,#faf7f085 55%,transparent 70%)}.studio-layout{width:55%;height:100%;min-height:0;margin-right:auto;margin-left:0;padding:100px 3vw 94px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:24px;direction:rtl}.hero-intro{text-align:right}.studio h1{font-size:clamp(40px,4vw,62px);line-height:1.08;margin-bottom:14px}.hero-intro .eyebrow{margin-bottom:14px}.hero-intro .intro{max-width:none;margin:0;font-size:14px}.start-link,.welcome-note,.workspace-heading,.workspace-journal{display:none}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:30px;direction:ltr;outline:none}.studio .application-note{display:flex;flex-direction:column;gap:20px;padding:0;border:0;direction:rtl;grid-row:auto}.note-heading h2{font-size:25px;margin-bottom:6px}.note-heading .section-index{margin-bottom:6px}.note-heading p{font-size:12px}.field{width:100%}.field label{margin:0 0 6px;font-size:13px}.studio input{font-size:14px;padding:12px 10px;background:#fffaf2a8}.studio .note{font-size:11px;line-height:1.5;margin-top:6px}.studio #openingNote{display:none}.game{width:100%;max-width:none;grid-row:auto;direction:rtl}.counter-line{padding-top:0;border:0;gap:14px}.counter-line>span{font-size:76px;line-height:1;letter-spacing:-2px}.counter-caption{font-size:14px}.day-total{margin:8px 0 16px}.studio button.primary{width:100%;min-height:48px;font-size:18px;padding:10px 17px}.studio .status{margin:10px 0;font-size:13px;min-height:20px}.small-actions{gap:6px;flex-wrap:nowrap}.studio .small-actions button{font-size:11px;padding:8px 10px;min-height:34px}.day-end{margin-top:14px;padding-top:12px}.studio .day-end span{font-size:11px}.studio .finish{font-size:13px;min-height:38px}.scroll-cue{left:28%;bottom:18px;margin:0;font-size:12px;padding:8px 18px;background:#faf7f0b8}.scroll-cue small{font-size:10px}.photo-caption{right:3vw;bottom:24px;padding:0}.photo-caption p{font-size:26px}.save-status{margin:8px 0;font-size:12px}.save-status[data-phase=ready]{display:none}
@media(min-width:761px) and (max-width:1100px){.studio-layout{width:66%;gap:18px}.masthead nav{gap:14px;font-size:12px}.masthead .brand{font-size:23px}.workspace{gap:20px}.studio h1{font-size:42px}.account-identity{max-width:160px}.photo-caption p{font-size:22px}}
@media(min-width:761px) and (max-height:760px){.studio{min-height:620px}.studio-layout{padding-top:88px;padding-bottom:76px;gap:16px}.studio h1{font-size:40px;margin-bottom:8px}.hero-intro .eyebrow{margin-bottom:8px}.counter-line>span{font-size:62px}.studio .application-note{gap:14px}.day-end{margin-top:10px;padding-top:8px}}
@media(max-width:760px){
.masthead{position:absolute;inset:0 0 auto;height:112px;min-height:0;padding:12px 22px;display:grid;grid-template-columns:1fr auto;gap:4px 16px;background:transparent}.masthead .brand{font-size:24px;display:block}.masthead .brand span{font-size:10px}.masthead nav{grid-column:1/-1;grid-row:2;width:100%;justify-content:space-between;gap:8px;font-size:12px}.account-menu{min-width:78px;max-width:145px;font-size:12px}.account-identity{max-width:135px;font-size:11px}.account-identity bdi{font-size:10px}.account-panel{z-index:5}.studio{height:auto;min-height:0;overflow:visible;padding:0;margin:0}.studio-photo{height:100svh;object-position:72% center}.studio:after{inset:0 0 auto;height:100svh;background:linear-gradient(180deg,#faf7f0eb 0%,#faf7f0dc 35%,#faf7f03d 72%,#7b40262b 100%)}.studio-layout{width:100%;height:auto;min-height:0;padding:0;margin:0;display:block}.hero-intro{height:100svh;min-height:550px;padding:150px 26px 42px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:right}.studio h1{font-size:clamp(44px,12vw,60px);line-height:1.08;margin-bottom:18px}.hero-intro .eyebrow{font-size:11px;margin-bottom:16px}.hero-intro .intro{font-size:14px;max-width:270px;line-height:1.7}.start-link{display:flex;gap:32px;align-items:center;justify-content:space-between;margin-top:26px;padding:12px 22px;min-height:48px;border:1px solid #974321;border-radius:32px;background:#a74726;color:#fffaf2;text-decoration:none;font-weight:600}.start-link:hover{background:#843719}.welcome-note{display:block;margin-top:12px;font-size:12px;color:#493727;text-shadow:0 0 8px #fffaf0}.photo-caption,.scroll-cue{display:none}.workspace{direction:rtl;min-height:100svh;padding:18px 24px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-content:center;background:linear-gradient(145deg,#fffaf2,#f3e7d7);scroll-margin:0}.workspace-heading{display:flex;justify-content:space-between;align-items:center;grid-row:1;font-size:12px;color:#92502a}.workspace-heading a{min-height:44px;display:flex;align-items:center;text-decoration:none}.workspace .game,.studio .workspace .application-note{display:contents}.workspace .note-heading{display:none}.workspace .counter-line{grid-row:2;justify-content:center;padding:0;border:0}.workspace .counter-line>span{font-size:64px}.workspace .counter-caption{font-size:13px}.workspace .day-total{grid-row:3;text-align:center;margin:0 0 4px;font-size:12px}.workspace .field:first-of-type{grid-row:4}.workspace .field{margin:0}.workspace .application-note .field:nth-child(2){grid-row:4}.workspace .application-note .field:nth-child(3){grid-row:5}.workspace .field label{font-size:13px;margin:0 0 4px}.workspace input{font-size:16px;height:44px;padding:9px 10px}.workspace input::placeholder{font-size:12px}.workspace .field .note{display:none}.workspace #send{grid-row:6;margin-top:6px;min-height:48px;font-size:18px}.workspace #status{grid-row:7;text-align:center;margin:0;min-height:20px;font-size:12px}.workspace #serverSaveStatus{grid-row:8}.workspace .small-actions{grid-row:9;justify-content:space-between;gap:8px}.workspace .small-actions button{min-height:44px;font-size:11px;padding:8px 12px}.workspace .day-end{grid-row:10;margin:0;padding:8px 0 0}.workspace .finish{min-height:44px}.workspace-journal{grid-row:11;display:flex;align-items:center;justify-content:center;gap:18px;min-height:44px;font-size:13px;text-decoration:none;color:#934321}.workspace-journal span{font-size:22px}.journal{padding:28px 22px}.cloud-history-note{font-size:12px}.photo-caption{display:none}
}
@media(max-width:760px) and (max-height:650px){.hero-intro{padding-top:125px;min-height:0}.studio h1{font-size:42px}.hero-intro .eyebrow{margin-bottom:10px}.start-link{margin-top:16px}.workspace{gap:4px;padding:10px 20px}.workspace .counter-line>span{font-size:48px}.workspace-heading a{min-height:36px}}

/* A recognisable account control, with an explicit open/closed indicator. */
.account-symbol{display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:0 0 58px;height:44px;border:1px solid #b36a43;border-radius:24px;color:#a74726;background:#fffaf26b;transition:background .18s,color .18s,border-color .18s}
.account-symbol svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.account-symbol .account-chevron{width:16px;height:16px;transition:transform .18s}
.account-menu summary:hover .account-symbol,.account-menu summary:focus-visible .account-symbol,.account-menu[open] .account-symbol{background:#a74726;border-color:#a74726;color:#fffaf2}
.account-menu[open] .account-chevron{transform:rotate(180deg)}
.account-identity{min-width:0}
@media(max-width:760px){.account-menu summary{gap:7px}.account-symbol{flex-basis:50px}.account-symbol svg{width:23px;height:23px}.account-symbol .account-chevron{width:14px;height:14px}.account-identity{max-width:88px}}
@media(prefers-reduced-motion:reduce){.account-symbol,.account-symbol .account-chevron{transition:none}}

/* Mobile focal point: the laptop and sunlit window on the right of the room. */
@media(max-width:760px){.studio-photo{object-position:100% center}}

/* Reserve the save message line so pending/confirmed states do not move the page. */
#serverSaveStatus.save-status{display:block;min-height:22px;margin:4px 0;font-size:12px;line-height:18px}
#serverSaveStatus.save-status[data-phase=ready]{visibility:hidden}
#serverSaveStatus.save-status p{margin:0}
#serverSaveStatus .save-status-actions[hidden]{display:none}
#serverSaveStatus[data-phase=saving]{color:#934321}
.counter-line>span{font-variant-numeric:tabular-nums}

/* Letter-level halo keeps navigation and captions readable over the photo. */
.masthead nav a{text-shadow:0 0 2px #fffdf6,1px 0 2px #fffdf6,-1px 0 2px #fffdf6,0 1px 2px #fffdf6,0 -1px 2px #fffdf6,0 0 5px #fffdf6,0 0 9px rgba(255,253,246,1),0 0 3px #fffdf6,0 0 18px rgba(255,253,246,.98)}

/* Keep the journal anchor reachable on tall screens. */
.journal{min-height:100svh}
