/* Keep the landing scene and its question controls within the current screen. */
html:has(body.page-front){height:100%;overflow:hidden;scroll-padding:0}
body.page-front{height:var(--phone-keyboard-layout-height,100dvh);min-height:0;overflow:hidden;overscroll-behavior:none;display:flex;flex-direction:column;padding-bottom:0}
body.page-front>main.wrap{position:relative;display:flex;flex-direction:column;flex:1 1 0;min-height:0;padding-top:0;padding-bottom:calc(var(--front-nav-space,0px) + 12px);overflow:hidden}
.front-intro{flex:0 0 auto;text-align:center;padding:20px 120px 12px;min-height:86px;pointer-events:none;color:var(--ink)}
/* Retain the side suggestions for later use; the question globe is the active entry point. */
body.page-front #dailyQuestions{display:none!important}
.front-intro p{margin:0 auto;max-width:780px;font:400 clamp(17px,2vw,25px)/1.45 Georgia,serif;letter-spacing:-.025em;min-height:2.9em}
.front-mochi-home{display:inline-block;width:1.25em;height:1.25em;margin-right:.3em;vertical-align:-.25em;background:url('../images/mochi-tracker.webp') center/contain no-repeat}
body.has-front-mochi .front-mochi-home{background:none}
.front-intro .intro-one{color:#356cb0}.front-intro .intro-two{color:#b4443b}.front-intro .intro-an{color:#4b7540}
:root[data-theme=dark] .front-intro .intro-one{color:#8dbbf2}:root[data-theme=dark] .front-intro .intro-two{color:#f1948c}:root[data-theme=dark] .front-intro .intro-an{color:#a3c98c}
.front-intro .is-typing::after{content:'|';color:var(--accent);animation:intro-caret 800ms steps(1) infinite}
@keyframes intro-caret{50%{opacity:0}}
.front-input-cue{position:fixed;inset:0;width:100%;height:100%;z-index:20;pointer-events:none;color:var(--accent-ink);animation:input-cue-fade 4200ms ease both}
.front-input-cue>path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-dasharray:1}
@keyframes input-cue-fade{0%{opacity:0}12%,78%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.front-input-cue{display:none}}
@media(max-width:600px){.front-intro{padding:15px 20px 8px;min-height:78px}.front-intro p{max-width:340px;font-size:18px}}
@media(prefers-reduced-motion:reduce){.front-intro .is-typing::after{animation:none}}
body.page-front #frontStart.editorial-hero{position:relative;flex:1 1 0;min-height:0;height:auto;max-height:none;padding-top:0;overflow:clip;container-type:size}
body.page-front #frontStart .model-cloud{top:48%;scale:1;transform:translate(-50%,-50%) scale(var(--front-cloud-scale,1))}
.model-cloud .cloud-tile.is-research-focus{outline:1px solid var(--accent);outline-offset:3px}
.globe-source-focus{position:absolute;z-index:11;left:50%;top:48%;transform:translate(-50%,-50%);width:min(280px,70%);padding:18px;border:1px solid var(--accent);border-radius:14px;background:var(--card);color:var(--ink);box-shadow:0 8px 28px #0002;text-decoration:none;animation:source-preview-in 500ms ease-out}
.globe-source-focus[hidden]{display:none}.globe-source-focus small{display:block;color:var(--accent-ink);font-size:10px;letter-spacing:.08em}.globe-source-focus strong{display:block;margin-top:8px;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
@keyframes source-preview-in{from{opacity:0;scale:.97}to{opacity:1;scale:1}}
@media(prefers-reduced-motion:reduce){.globe-source-focus{animation:none}}
body.page-front #frontStart .hero-person{bottom:0;height:88%;width:32%;transform:none}
body.page-front .globe-ask-panel{position:relative;flex:0 0 90px;height:90px;width:min(560px,100%);margin:0 auto;min-height:0}
/* Research output may expand over the center without resizing the scene. */
body.page-front #globe-ask-frame{position:absolute;bottom:0;left:0;max-height:35dvh}
.globe-result{position:absolute;z-index:12;left:50%;top:48%;transform:translate(-50%,-50%);width:min(390px,80%);max-height:90%;overflow:auto;padding:20px 24px;border:2px solid #819a70;border-radius:20px;background:var(--card);color:var(--ink);text-align:center;box-shadow:0 12px 40px #0002;animation:globe-answer-arrive 550ms ease-out}
.globe-result[hidden]{display:none}.globe-result small{display:block;font-size:10px;letter-spacing:.12em;color:var(--dim)}
.globe-result-details{text-align:left;margin-top:16px;border-top:1px solid var(--line);padding-top:8px}
.globe-result-details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13px;font-weight:600}
.globe-result-details ul{padding-left:18px;margin:10px 0}
.globe-result-details li{margin:8px 0}
.globe-result-details strong{font-size:13px;line-height:1.4;margin:0;color:inherit}
.globe-result-details p{font-size:12px;margin:4px 0}
.globe-result-details a{display:block;font-size:12px;margin:8px 0;overflow-wrap:anywhere}
.globe-result strong{display:block;font-size:48px;line-height:1.1;color:var(--accent-ink);margin:10px 0}.globe-result p{font-size:13px;line-height:1.5;margin:8px 0}.globe-result button{margin-top:8px;border:1px solid var(--line);border-radius:8px;padding:7px 12px;background:transparent;color:var(--ink);cursor:pointer}
.globe-result[data-verdict=N]{border-color:#bb8c76}.has-answer .model-cloud{opacity:.2;pointer-events:none}
.has-answer .hero-person[data-yn-state=chosen] .hero-board-text{animation:globe-board-answer 700ms ease-out}
@keyframes globe-answer-arrive{0%{opacity:0;scale:.85}65%{opacity:1;scale:1.04}100%{scale:1}}
@keyframes globe-board-answer{40%{scale:1.15;filter:drop-shadow(0 0 10px #cfa456)}}
@media(prefers-reduced-motion:reduce){.globe-result,.has-answer .hero-board-text{animation:none!important}}
@media(max-width:760px){
 body.page-front #frontStart .hero-person{height:48%;width:48%}
 body.page-front #frontStart .hero-person-left{top:0;bottom:auto;transform:none}
 body.page-front #frontStart .hero-person-right{bottom:0}
 body.page-front #frontStart .model-cloud{top:49%}
 body.page-front .globe-ask-panel{width:100%;margin:0 auto}
}
@media(max-width:600px){body.page-front #frontStart .hero-person-left{top:12px}body.page-front #globe-ask-frame{transform:translateY(12px)}}

/* Live research stays in the globe while both answer boards animate. */
.hero-thinking-dot{display:inline-block;animation:hero-thinking-dot 1.2s ease-in-out infinite}
.hero-thinking-dot:nth-child(2){animation-delay:.16s}
.hero-thinking-dot:nth-child(3){animation-delay:.32s}
@keyframes hero-thinking-dot{0%,65%,100%{transform:translateY(0);opacity:.3}30%{transform:translateY(-.14em);opacity:1}}
.model-cloud.is-researching .cloud-tile{gap:7px}
.model-cloud.is-researching .cloud-tile strong{font-size:18px;line-height:1.15;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.model-cloud.is-researching .cloud-tile p{overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.model-cloud.is-researching .cloud-tile[data-research-kind=source]{border-color:var(--accent)}
.model-cloud.is-researching .cloud-tile[data-research-kind=stage]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.model-cloud[data-research-state=working] .cloud-tile[data-research-kind=stage] small::after{content:' …';display:inline-block;animation:hero-thinking-dot 1.2s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.hero-thinking-dot,.model-cloud .cloud-tile[data-research-kind=stage] small::after{animation:none;opacity:.7}}

/* Keep per round usage above the globe without changing the scene or controls. */
body.page-front #frontStart .globe-usage{position:absolute;top:clamp(10px,2.5%,24px);left:50%;z-index:5;transform:translateX(-50%);width:max-content;max-width:min(90%,420px);margin:0;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--dim);box-shadow:0 3px 14px #0000000b;text-align:center;font:500 11px/1.35 var(--font);font-variant-numeric:tabular-nums;pointer-events:auto}
body.page-front #frontStart .globe-usage[hidden]{display:none}
@media(max-width:760px){body.page-front #frontStart .globe-usage{top:8px;font-size:10px}}

.globe-result-rating{display:flex;justify-content:center;gap:14px;margin-top:15px}.globe-result-rating[hidden]{display:none}.globe-result-rating button{display:grid;place-items:center;width:44px;height:40px;margin:0;padding:9px;background:var(--card)}.globe-result-rating [data-globe-rating="0"]{color:#a84f40}.globe-result-rating [data-globe-rating="1"]{color:#496543}.globe-result-rating [aria-pressed="true"]{background:var(--bg);border-color:currentColor;box-shadow:0 0 0 1px currentColor}.globe-result-rating button:disabled{opacity:.5;cursor:wait}.globe-result-rating button:focus-visible{outline:2px solid currentColor;outline-offset:3px}.globe-result .globe-rating-status{font-size:11px;color:var(--dim)}.globe-rating-status:empty{display:none}:root[data-theme=dark] .globe-result-rating [data-globe-rating="0"]{color:#edb89a}:root[data-theme=dark] .globe-result-rating [data-globe-rating="1"]{color:#b5c6a5}

/* The same globe cards become a readable decision tree during research. */
.model-cloud[data-layout=binary]{cursor:default;overflow:visible}
.model-cloud[data-layout=binary] .cloud-tile[data-tree-node]{margin:0!important;width:88px!important;height:76px!important;min-height:0!important;padding:8px!important;gap:3px;border-radius:9px;rotate:none!important;transition:opacity .4s;box-shadow:0 3px 12px #0000000c}
.model-cloud[data-layout=binary] .cloud-tile[data-tree-node="0"]{width:140px!important;height:82px!important}
.model-cloud[data-layout=binary] .cloud-tile[data-tree-node] small{font-size:8px;letter-spacing:.04em}
.model-cloud[data-layout=binary] .cloud-tile[data-tree-node] strong{font-size:12px;line-height:1.2;-webkit-line-clamp:2}
.model-cloud[data-layout=binary] .cloud-tile[data-tree-node] p{font-size:9px;line-height:1.2;-webkit-line-clamp:1}
.model-cloud[data-layout=binary] .cloud-tile[data-tree-node="0"] strong{font-size:14px}
.model-cloud[data-layout=binary] .cloud-tile[data-tree-extra]{pointer-events:none}
.model-cloud[data-layout=binary] .cloud-tile[data-tree-ready=false]{overflow:visible;--pending-color:#6c8fbe;--pending-spread:1.055;--pending-period:2.6s}.model-cloud[data-layout=binary] .cloud-tile[data-tree-ready=false][data-pending-kind=possibility]{--pending-spread:1.14;--pending-period:2s}.model-cloud[data-layout=binary] .cloud-tile[data-tree-node="2"]{--pending-color:#9978b8}
.model-cloud.is-tree-morphing .cloud-tile{transition:transform .65s cubic-bezier(.22,.7,.2,1),opacity .5s}
.globe-tree-links{position:absolute;inset:0;width:380px;height:340px;overflow:visible;pointer-events:none;z-index:2}
.globe-tree-links[hidden]{display:none}.globe-tree-links path{fill:none;stroke:#738cab;stroke-width:1.5;stroke-dasharray:5 4;animation:globe-tree-flow 1.8s linear infinite}.globe-tree-links path[data-side=no]{stroke:#9978b8}.globe-tree-links text{fill:var(--ink);text-anchor:middle;font-size:10px;font-family:var(--font)}
:root[data-theme=dark] .globe-tree-links path{stroke:#779eea}:root[data-theme=dark] .globe-tree-links path[data-side=no]{stroke:#b190ed}
@keyframes globe-tree-flow{to{stroke-dashoffset:-18}}@keyframes globe-node-shimmer{50%{filter:brightness(1.12);box-shadow:0 0 12px #789add35}}
@media(prefers-reduced-motion:reduce){.model-cloud[data-layout=binary] .cloud-tile,.model-cloud.is-tree-morphing .cloud-tile{transition:none;animation:none}.globe-tree-links path{animation:none}}

.model-cloud[data-layout=binary]{z-index:5!important}@media(max-width:600px){body.page-front #frontStart.is-binary-working .hero-person{opacity:0;pointer-events:none}}

body.page-front .globe-ask-panel[hidden]{display:none!important}

/* Pending possibilities breathe; source cards settle without moving endpoints. */
.model-cloud[data-layout=binary] .cloud-tile[data-tree-ready=false]::after{content:"";position:absolute;inset:-2px;border:1px solid var(--pending-color);border-radius:inherit;pointer-events:none;opacity:0;animation:globe-pending-halo var(--pending-period) ease-out infinite;animation-delay:var(--pending-delay,0ms)}
.globe-pending-signal{position:absolute;right:6px;top:7px;width:5px;height:5px;border-radius:50%;background:var(--pending-color);pointer-events:none;animation:globe-pending-beat var(--pending-period) ease-in-out infinite;animation-delay:var(--pending-delay,0ms)}
[data-pending-kind=possibility] .globe-pending-signal{width:8px;height:8px;right:5px;top:6px}
:root[data-theme=dark] .model-cloud[data-layout=binary] .cloud-tile[data-tree-ready=false]{--pending-color:#85a9f3}:root[data-theme=dark] .model-cloud[data-layout=binary] .cloud-tile[data-tree-node="2"]{--pending-color:#b99aef}
@keyframes globe-pending-halo{0%{transform:scale(1);opacity:.5}80%,100%{transform:scale(var(--pending-spread));opacity:0}}
@keyframes globe-pending-beat{0%,100%{scale:.8;opacity:.5}45%{scale:1.2;opacity:1}}
@media(prefers-reduced-motion:reduce){.model-cloud[data-layout=binary] .cloud-tile[data-tree-ready=false]::after{animation:none;opacity:.25}.globe-pending-signal{animation:none}}
/* Six clickable speech balloons, grouped around the two characters. */
.daily-questions{position:absolute;inset:0;z-index:8;pointer-events:none}
.daily-questions[hidden]{display:none!important}
.daily-question-options{position:absolute;inset:0}
.daily-question-options button{position:absolute;width:clamp(110px,12vw,174px);min-height:44px;padding:10px 13px;border:1.5px solid #9a8c7b;border-radius:48% 45% 43% 46% / 44% 48% 42% 46%;background:var(--bg);color:var(--ink);box-shadow:2px 3px 0 #9a8c7b24;font:500 clamp(10px,.85vw,13px)/1.35 var(--font);text-align:center;cursor:pointer;pointer-events:auto;isolation:isolate;transition:background .15s,box-shadow .15s}
.daily-question-options button::after{content:"";position:absolute;bottom:-7px;left:32%;width:12px;height:12px;background:inherit;border-right:1.5px solid #9a8c7b;border-bottom:1.5px solid #9a8c7b;transform:skew(-20deg) rotate(40deg);z-index:-1}
.daily-question-options button:nth-child(1){left:2%;top:2%;rotate:-5deg}
.daily-question-options button:nth-child(2){left:20%;top:30%;rotate:4deg}
.daily-question-options button:nth-child(3){left:2%;top:66%;rotate:-3deg}
.daily-question-options button:nth-child(4){right:2%;top:2%;rotate:5deg}
.daily-question-options button:nth-child(5){right:20%;top:30%;rotate:-4deg}
.daily-question-options button:nth-child(6){right:2%;top:66%;rotate:3deg}
.daily-question-options button:nth-child(n+4)::after{left:65%;transform:skew(20deg) rotate(50deg)}
.daily-question-options button:hover{background:var(--card);box-shadow:3px 4px 0 #9a8c7b40}
.daily-question-options button:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
@media(max-width:760px){
 .daily-question-options button{width:clamp(95px,27vw,150px);min-height:36px;padding:7px 9px;font-size:10px}
 .daily-question-options button:nth-child(1){left:1%;top:1%}
 .daily-question-options button:nth-child(2){left:29%;top:13%}
 .daily-question-options button:nth-child(3){left:1%;top:36%}
 .daily-question-options button:nth-child(4){right:1%;top:51%}
 .daily-question-options button:nth-child(5){right:29%;top:65%}
 .daily-question-options button:nth-child(6){right:1%;top:88%}
}

/* Give the seated pair more breathing room on compact laptop displays. */
@media(min-width:761px) and (max-width:1400px){
 body.page-front #frontStart .hero-person-left{left:calc(var(--hero-left-edge,0px) + 32px)}
 body.page-front #frontStart .hero-person-right{right:calc(var(--hero-right-edge,0px) + 32px)}
}

/* Keep each character's three suggestions above their head. */
@media(min-width:761px){
 .daily-question-options button{width:clamp(110px,12vw,174px);min-height:38px;padding:7px 11px;font-size:clamp(10px,.8vw,12px)}
 .daily-question-options button:nth-child(1){left:1%;top:1%;rotate:-5deg}
 .daily-question-options button:nth-child(2){left:15%;top:2%;rotate:4deg}
 .daily-question-options button:nth-child(3){left:8%;top:9%;rotate:-2deg}
 .daily-question-options button:nth-child(4){right:1%;top:1%;rotate:5deg}
 .daily-question-options button:nth-child(5){right:15%;top:2%;rotate:-4deg}
 .daily-question-options button:nth-child(6){right:8%;top:9%;rotate:2deg}
}
@media(min-width:761px){
 body.page-front #frontStart.editorial-hero{overflow:visible}
 .daily-questions{top:-36px}
}
/* Question cards retain the existing globe geometry and paper colors. */
.model-cloud:not(.is-researching) .cloud-tile[data-suggested-question] strong{font-size:18px;line-height:1.18;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:break-word}
.model-cloud:not(.is-researching) .cloud-tile[data-suggested-question] p{font-size:10px;color:var(--dim)}

/* Give the desktop scene more breathing room without resizing its composer. */
@media(min-width:761px){
 body.page-front #frontStart .hero-person{scale:.9;transform-origin:center bottom}
 body.page-front #frontStart .model-cloud{scale:.9}
}

/* A shaded paper edge gives the rotating cards thickness in each theme. */
.model-cloud.is-3d:not([data-layout=binary]) .cloud-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, #ffffff18, transparent 48%, #12263810);
    box-shadow: inset 1px 1px 0 #ffffff65, inset -3px -4px 0 #1a30341c;
}
.globe-result-brand:empty,.globe-result-brand:has(img[hidden]){display:none}
.globe-result-brand img{width:auto;max-width:120px;height:30px;object-fit:contain}

.claude-attribution {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 20;
    color: var(--muted, #667085);
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
}
.claude-attribution strong {
    font-weight: 600;
}
.openai-attribution {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 20;
    color: var(--muted, #667085);
    font-size: 12px;
    line-height: 1.4;
}
.openai-attribution strong {
    font-weight: 600;
}

