/* ===== batch 3 (owner 2026-11-17) ===== */
/* A) one container: header, hero and every section share the same left and right edges */
:root{--wrap:1120px;--gut:clamp(16px,4vw,32px);--buddyW:clamp(170px,17vw,250px)}
.nav,.hero,.daily,.token,.fun,.faq,.follow,footer,.diary,.statsp{max-width:calc(var(--wrap) + 2 * var(--gut));margin-left:auto;margin-right:auto;padding-left:var(--gut);padding-right:var(--gut);box-sizing:border-box}
.daily{display:grid}
.stage{justify-content:center;gap:clamp(8px,1.6vw,24px)}
.buddy{width:var(--buddyW)}
.monitor{width:min(calc(100% - var(--buddyW) - 24px),calc((100svh - 250px) * 1.5))}
@media (min-width:761px) and (max-width:1100px) and (orientation:portrait){.monitor{width:min(100%,calc((100svh - 470px) * 1.5))}}

/* 28) background shifts gently with the visitor's local time (light theme) */
:root[data-tod="dawn"]:not([data-theme="dark"]) body{background:radial-gradient(1200px 700px at 30% 20%,#FFD9B8 0%,#FFE9D6 32%,#FFF4EA 62%,#FFF9F2 100%) fixed,#FFF9F2}
:root[data-tod="dusk"]:not([data-theme="dark"]) body{background:radial-gradient(1200px 700px at 30% 20%,#FFC08A 0%,#FFD9B0 30%,#FFEBD6 62%,#FFF4E8 100%) fixed,#FFF4E8}
:root[data-tod="night"]:not([data-theme="dark"]) body{background:radial-gradient(1200px 700px at 30% 20%,#F7C98F 0%,#F6DDBE 30%,#F7EBDC 62%,#F8F1E8 100%) fixed,#F8F1E8}

/* 19) terminal boot lines */
.bootlog{margin:0;font:500 clamp(11px,1.1vw,14px)/1.6 var(--mono);color:#FFD49A;text-align:left;min-height:6.4em;white-space:pre}
.bootlog .ok{color:#2BB673}
.boot{cursor:pointer}

/* 20) poses: extra eye / mouth layers inside the main Sparky */
.dog .eh,.dog .es,.dog .ex,.dog .mo{display:none}
.mood-happy .dog #eyes,.nap .dog #eyes{display:none}
.mood-happy .dog .eh{display:inline}
.nap .dog .es{display:inline}
.mood-excited .dog .ex,.mood-excited .dog .mo{display:inline}
.stage[data-state="thinking"] #pupils{transform:translate(1.5px,-3px)!important}
.thinkdots{position:absolute;left:62%;top:-6%;display:none;gap:4px}
.thinkdots i{width:9px;height:9px;border-radius:50%;background:var(--orange2);animation:dots 1.1s infinite}
.thinkdots i:nth-child(2){animation-delay:.15s}.thinkdots i:nth-child(3){animation-delay:.3s}
.stage[data-state="thinking"] .thinkdots{display:flex}

/* 21) follow-up chips, 24) link buttons + token card */
.nexts,.links2{align-self:flex-start;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px 4px;max-width:92%}
.nexts button,.links2 a{min-height:34px;border:1px solid #4A3E36;background:rgba(242,163,65,.08);color:#FFD49A;border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;text-decoration:none;cursor:pointer;text-align:left}
.nexts button:hover,.links2 a:hover{background:rgba(242,163,65,.2)}
.links2 a{background:#2A221D;color:#F3E9DD}
.tcard{align-self:flex-start;width:min(420px,92%);background:#211A16;border:1px solid #3A302A;border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:10px;animation:pop .22s ease-out}
.tcard .th{display:flex;align-items:center;gap:10px}
.tcard .th img,.tcard .th .ph{width:44px;height:44px;border-radius:12px;object-fit:cover;background:#3A302A;display:grid;place-items:center;font-weight:700;color:#FFD49A}
.tcard .th b{display:block;font-size:16px;color:#F3E9DD}.tcard .th small{color:var(--sub)}
.tcard .tg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tcard .tg div{background:#2A221D;border-radius:10px;padding:8px}
.tcard .tg small{display:block;font-size:11px;color:var(--sub)}.tcard .tg b{font-size:14px;color:#F3E9DD}
.tcard .warn{font-size:13px;color:#FFB4A0}
.tcard .tb{display:flex;gap:8px;flex-wrap:wrap}
.tcard .tb a{min-height:36px;display:inline-flex;align-items:center;padding:0 12px;border-radius:10px;background:var(--bubble-me);color:#fff;text-decoration:none;font-weight:700;font-size:13px}
.tcard .tb a.alt{background:#2A221D;color:#FFD49A}
.tcard .dy{font-size:12px;color:var(--sub)}

/* 23) inline first-visit guide */
.guide{align-self:flex-start;width:min(460px,92%);background:#211A16;border:1px solid rgba(242,163,65,.35);border-radius:18px;padding:14px 16px;animation:pop .22s ease-out}
.guide b{color:#FFD49A}
.guide ol{margin:8px 0 10px;padding-left:20px;line-height:1.6;color:#F3E9DD;font-size:14px}
.guide a{color:#FFC27A}
.guide .gb{display:flex;gap:10px;align-items:center}
.guide button{min-height:34px;border:0;border-radius:10px;padding:0 12px;background:var(--bubble-me);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.guide button.skip{background:transparent;color:var(--sub);font-weight:500}

/* 25, 26) head buttons on */
.ibtn[aria-pressed="true"]{background:rgba(242,163,65,.28)}

/* D) phones: a sleeping phone next to a small Sparky; Wake opens a full-screen messages app */
.back{display:none}
@media (max-width:599px){
  .stage{flex-direction:row;align-items:flex-end;justify-content:center;gap:4px}
  .buddy{width:96px;margin:0 0 18px;order:0}
  .say{left:0;transform:translate(0,-6px);font-size:12px;white-space:normal;width:150px}
  .monitor{width:min(230px,58vw)}
  .bezel{padding:7px;border-radius:38px;background:#1B1613;box-shadow:0 18px 40px rgba(122,62,6,.25),0 0 0 2px #2A221D inset}
  .screen{height:auto!important;aspect-ratio:9/19.5;border-radius:32px}
  .screen::before{content:"";position:absolute;top:10px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:#0B0907;box-shadow:0 0 0 2px #241D19;z-index:3}
  .chin,.neck,.foot{display:none}
  .app .head{padding-top:28px}
  /* full screen app */
  .stage.full .screen{position:fixed;inset:0;width:100vw;height:var(--vvh,100dvh)!important;aspect-ratio:auto;border-radius:0;z-index:40;animation:zoomapp .32s cubic-bezier(.2,.8,.2,1)}
  .stage.full .screen::before{display:none}
  .stage.full .app .head{padding:max(14px,env(safe-area-inset-top)) 12px 12px;flex-wrap:wrap}
  .stage.full .back{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:12px;background:transparent;color:#FFD49A;font-size:22px}
  .stage.full .who b{font-size:22px}
  .stage.full .input{padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .stage.full .grab{display:block}
}
.grab{display:none;position:absolute;top:6px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:5px;background:#3A302A}
@keyframes zoomapp{from{transform:scale(.6);border-radius:32px;opacity:.6}to{transform:none;border-radius:0;opacity:1}}

/* 27) stats page */
.statsp{padding-top:20px;padding-bottom:40px}
.statsp h1{font-size:clamp(32px,5vw,52px);margin:0}
.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.kpis div{background:rgba(255,255,255,.65);border:1px solid rgba(224,122,31,.18);border-radius:20px;padding:18px}
.kpis small{display:block;color:var(--muted);font-family:var(--mono);font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.kpis b{font-size:32px;color:var(--orange);font-variant-numeric:tabular-nums}
.bars{display:flex;flex-direction:column;gap:10px}
.bar{display:grid;grid-template-columns:minmax(120px,200px) 1fr 50px;gap:12px;align-items:center}
.bar i{display:block;height:14px;border-radius:7px;background:linear-gradient(90deg,#F2A341,#E07A1F)}
.bar span:last-child{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink2)}
@media (max-width:560px){.kpis{grid-template-columns:1fr}.bar{grid-template-columns:110px 1fr 40px}}
@media (max-width:599px){
  .app .head{flex-wrap:wrap;row-gap:8px}
  .app .who{flex:1;min-width:0}
  .app .who b{white-space:nowrap}
  .app .who small span{display:none}
  .app .who small::after{content:"online";color:var(--sub)}
  .app .tools{order:3;width:100%;justify-content:space-between}
  .app .tools .ibtn{flex:1;height:38px}
  .stage.full .who b{font-size:22px}
  .nav nav a[href="#fun"]{display:none}
}
/* batch 4: picture, voice, watch, weekly pick */
.imgbar{display:flex;align-items:center;gap:10px;margin:0 14px;padding:8px 10px;border-radius:12px;background:#2A221D;color:#FFB4A0;font-size:12.5px}
.imgbar[hidden]{display:none}
.imgbar img{width:44px;height:44px;object-fit:cover;border-radius:8px}
.imgbar span{flex:1}
.imgbar button{width:32px;height:32px;border:0;border-radius:8px;background:#3A302A;color:#F3E9DD}
.ib2{width:40px;height:44px;flex:0 0 40px;border:0;border-radius:12px;background:transparent;color:#FFD49A;font-size:18px}
.ib2:hover{background:rgba(242,163,65,.12)}
.ib2.rec{background:#E5484D;color:#fff;animation:pulse 1.2s infinite}
.mepic{display:block;max-width:200px;max-height:160px;border-radius:12px;margin-bottom:6px}
.tcard .tb .watch{min-height:36px;border:0;border-radius:10px;padding:0 12px;background:#2A221D;color:#FFD49A;font:inherit;font-weight:700;font-size:13px;cursor:pointer}
.wkf{display:flex;flex-direction:column;gap:10px}
.wkf textarea,.wkf input{font:inherit;font-size:16px;border:1px solid rgba(43,29,20,.2);border-radius:12px;padding:10px 12px;background:#fff;color:#2B1D14}
@media (max-width:599px){.ib2{width:34px;flex-basis:34px}}
