/* Màn Làm quen: buổi sáng cắt giấy — trời giấy xanh, đồi giấy xếp lớp, mặt trời giấy; thỏ Bông giấy bên trái, bên phải là mảnh giấy note lời thỏ
   và phần bé bấm. Chữ luôn nằm trên giấy kem đặc. */
#screen[data-screen="welcome"]{grid-row:2}
#screen[data-screen="welcome"] .ob{position:relative;display:grid;grid-template-columns:minmax(0,36fr) minmax(0,64fr);min-width:0;min-height:0;overflow:hidden;
  background:var(--fz-grain),linear-gradient(180deg,#BFE3F0 0%,#D8EEF2 58%,#FFF1CC 100%)}
#screen[data-screen="welcome"] .ob-land{position:absolute;inset:0;width:100%;height:100%}
#screen[data-screen="welcome"] .ob-sun{position:absolute;left:9%;top:8%;width:clamp(96px,11vw,140px);height:auto;overflow:visible}

/* Hàng trên: quay lại, ba chấm bước (ba nút nam châm tròn), nút tiếng */
#screen[data-screen="welcome"] .ob-top{position:absolute;inset:16px 20px auto;display:flex;align-items:center;justify-content:space-between;z-index:2;pointer-events:none}
#screen[data-screen="welcome"] .ob-top .round{pointer-events:auto}
#screen[data-screen="welcome"] .ob-top .round[hidden]{display:grid;visibility:hidden}
#screen[data-screen="welcome"] .ob-dots{display:flex;gap:12px;padding:8px 12px;border-radius:20px;background:var(--fz-grain),var(--fz-cream);box-shadow:var(--paper-sh)}
#screen[data-screen="welcome"] .ob-dots i{width:22px;height:22px;border-radius:50%;background:#E6D9C4;box-shadow:inset 0 2px 0 rgba(43,38,34,.15)}
#screen[data-screen="welcome"] .ob-dots i.on{background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.8) 0 18%,transparent 20%),var(--fz-carrot);box-shadow:0 2px 0 rgba(43,38,34,.25)}

/* Thỏ đứng trên đồi */
#screen[data-screen="welcome"] .ob-rb{position:relative;align-self:end;justify-self:center;height:min(54vh,430px);margin-bottom:10vh;will-change:transform}
#screen[data-screen="welcome"] .ob-rb .rb{height:100%;width:auto}

/* Lời thỏ (mảnh giấy note có đuôi giấy) và phần bé bấm */
#screen[data-screen="welcome"] .ob-main{position:relative;align-self:center;display:grid;justify-items:start;gap:22px;padding:96px 44px 32px 8px;min-width:0}
#screen[data-screen="welcome"] .bubble{position:relative;font:400 clamp(30px,3vw,38px)/1.3 var(--fz-display);color:var(--fz-ink);padding:16px 26px 12px;max-width:100%;
  filter:drop-shadow(0 2px 0 rgba(43,38,34,.18)) drop-shadow(0 8px 10px rgba(43,38,34,.12));box-shadow:none}
#screen[data-screen="welcome"] .bubble::before{content:"";position:absolute;left:-18px;top:50%;width:24px;height:28px;background:var(--fz-cream);clip-path:polygon(100% 0,0 55%,100% 100%);transform:translateY(-50%)}
#screen[data-screen="welcome"] .ob-body{display:grid;justify-items:start;gap:22px;min-width:0;max-width:100%}
#screen[data-screen="welcome"] .ob-body>.btn{min-width:240px;font-size:28px}

/* Đặt tên: bốn nhãn giấy để chọn, hoặc tự gõ */
#screen[data-screen="welcome"] .ob-pick{display:grid;gap:16px;padding:20px 22px;max-width:100%;background:var(--fz-grain),var(--fz-fiber),#FFF7E8;border-radius:var(--cut);box-shadow:var(--paper-sh)}
#screen[data-screen="welcome"] .ob-names{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#screen[data-screen="welcome"] .ob-name{min-width:112px;padding:8px 12px;font:400 28px/1.2 var(--fz-display)}
#screen[data-screen="welcome"] .ob-name:nth-child(even){transform:rotate(1.5deg)} #screen[data-screen="welcome"] .ob-name:nth-child(odd){transform:rotate(-1.2deg)}
#screen[data-screen="welcome"] .ob-name.on{background:var(--fz-grain),var(--fz-yellow)}
#screen[data-screen="welcome"] .ob-type{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;font:700 20px/1.3 var(--chu)}
#screen[data-screen="welcome"] .ob-type input{min-height:72px;min-width:0;padding:8px 18px;border:3px solid #B4875A;border-radius:14px 18px 13px 19px;background:var(--fz-grain),var(--fz-cream);color:var(--muc);
  font:700 26px/1.3 var(--tieu-de);user-select:text;-webkit-user-select:text}
#screen[data-screen="welcome"] .ob-type input::placeholder{color:var(--muc2);font:600 20px/1.3 var(--chu)}
#screen[data-screen="welcome"] .ob-type input:focus-visible{outline:4px solid var(--ve);outline-offset:3px}

/* Ba mảnh giấy: kéo nam châm xuống khay → tối bố mẹ xem → sao về hũ */
#screen[data-screen="welcome"] .ob-how{display:flex;align-items:stretch;gap:8px;max-width:100%}
#screen[data-screen="welcome"] .ob-card{display:grid;justify-items:center;align-content:start;gap:12px;width:clamp(156px,15vw,190px);padding:18px 10px 14px;text-align:center;font:700 20px/1.3 var(--chu);
  background:var(--fz-grain),var(--fz-cream);border-radius:var(--cut);box-shadow:var(--paper-sh)}
#screen[data-screen="welcome"] .ob-card:nth-child(3){transform:rotate(1.5deg)} #screen[data-screen="welcome"] .ob-card:nth-child(1){transform:rotate(-1.5deg)}
#screen[data-screen="welcome"] .ob-next{width:32px;height:32px;flex:none;align-self:center}
#screen[data-screen="welcome"] .ob-next svg{width:100%;height:100%}
#screen[data-screen="welcome"] .ob-stone{position:relative;width:92px;height:92px;display:grid;place-items:center;margin-bottom:6px}
#screen[data-screen="welcome"] .ob-stone>svg{width:92px;height:92px;overflow:visible}
#screen[data-screen="welcome"] .ob-stone.wait{border-radius:50%;background:radial-gradient(circle,#FFF6E2 0 70%,transparent 71%);box-shadow:inset 0 0 0 4px #FFFDF7,0 3px 0 rgba(43,38,34,.22);outline:2.5px dashed #3C7FB0;outline-offset:-12px}
#screen[data-screen="welcome"] .ob-stone.wait>svg{width:62px;height:62px}
#screen[data-screen="welcome"] .ob-stone i{position:absolute;right:-6px;top:-6px;width:38px;height:38px;border-radius:50%;background:var(--fz-cream);box-shadow:0 2px 0 rgba(43,38,34,.25);display:grid;place-items:center}
#screen[data-screen="welcome"] .ob-stone i svg{width:24px;height:24px}
#screen[data-screen="welcome"] .ob-jar{display:flex;align-items:center;gap:6px;height:92px;margin-bottom:6px;padding:0 18px 0 12px;border-radius:30px 24px 32px 22px;
  background:var(--fz-grain),linear-gradient(180deg,#EAF5F9,#D7ECF3);box-shadow:0 3px 0 rgba(43,38,34,.24);font:400 34px/1 var(--fz-display)}
#screen[data-screen="welcome"] .ob-jar .st{width:46px;height:46px}
@media (max-width:1100px){ #screen[data-screen="welcome"] .ob-card{width:150px;font-size:18px} #screen[data-screen="welcome"] .ob-main{padding-right:28px} }
