/* ZAYMY Drive — 공유 (d1.3) */
/* A. 홈 공유 버튼 (말풍선 아래 왼쪽, 설치 버튼이 있으면 그 아래) */
.sharebtn{position:absolute;left:12px;top:calc(150px + env(safe-area-inset-top));z-index:6;display:flex;align-items:center;gap:6px;background:#fff;color:var(--navy);font-family:var(--head);font-size:12.5px;padding:7px 12px 7px 10px;border-radius:999px;box-shadow:0 4px 0 #C9D1DE,0 8px 18px rgba(0,0,0,.3)}
.sharebtn svg{width:16px;height:16px;color:var(--lagoon-d)}
.sharebtn:active{transform:translateY(3px);box-shadow:0 1px 0 #C9D1DE}
.stage.sub .sharebtn{display:none}

/* C·D·E·F. 결과 화면 속 강조 카드 / 작은 버튼 */
.shs{width:100%;max-width:320px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:10px 12px;display:flex;flex-direction:column;gap:9px;text-align:left;animation:shin .45s cubic-bezier(.2,.9,.3,1.2) both}
@keyframes shin{from{transform:translateY(10px);opacity:0}}
.shs-h{display:flex;align-items:center;gap:10px}
.shs-h img{width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:50% 12%;background:#FFE3C4;border:2px solid #fff;flex:none}
.shs-t{font-size:13.5px;line-height:1.5;color:#fff;flex:1;min-width:0}
.shs-b{display:flex;gap:8px;align-items:center}
.shs-b .qbtn{flex:1;font-size:15px;padding:11px 8px;max-width:none}
.shno{flex:none;color:#AEB7C7;font-size:13px;padding:8px 6px;text-decoration:underline;text-underline-offset:3px}
.shmini{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:13.5px;font-weight:700;padding:8px 14px;border-radius:999px}
.shmini:active{transform:translateY(2px)}

/* I. 문제 화면 "친구에게 문제 내기" */
.shq{display:block;margin:12px auto 0;background:rgba(25,198,193,.12);border:1px solid rgba(14,148,144,.35);color:var(--lagoon-d);font:inherit;font-size:13px;font-weight:700;padding:7px 14px;border-radius:999px;cursor:pointer}
.shq + .fbq{margin-top:4px}

/* G. 연속 학습 배너 (홈, 아래 카드 위) */
.shbn{position:absolute;left:10px;right:10px;z-index:7;display:flex;align-items:center;gap:10px;background:var(--cream);color:var(--ink);border-radius:18px;padding:8px 8px 8px 10px;box-shadow:0 10px 30px rgba(0,0,0,.45);transform:translateY(16px);opacity:0;transition:transform .35s cubic-bezier(.2,.9,.3,1.2),opacity .3s}
.shbn.show{transform:none;opacity:1}
.shbn img{width:38px;height:38px;border-radius:50%;object-fit:cover;object-position:50% 12%;background:#FFE3C4;flex:none}
.shbn-t{flex:1;min-width:0;font-size:13px;line-height:1.45}
.shbn-go{flex:none;background:var(--mango);color:var(--ink);font-family:var(--head);font-size:13px;padding:9px 12px;border-radius:999px;box-shadow:0 3px 0 var(--mango-d)}
.shbn-x{flex:none;width:28px;height:28px;border-radius:50%;color:#8A94A6;font-size:14px}

/* 공유 창이 없는 기기용 시트 · 합격 축하 */
.shdlg .box{max-height:calc(100% - 20px);overflow-y:auto}
.shprev{background:#fff;border:1px solid rgba(20,28,51,.1);border-radius:14px;padding:10px 12px;font-size:13px;line-height:1.55;color:#33415C;max-height:150px;overflow-y:auto;word-break:break-word;user-select:text;-webkit-user-select:text}
.shapps{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shapp{display:block;text-align:center;text-decoration:none;font-weight:800;font-size:14px;padding:11px 6px;border-radius:14px;color:#fff;background:#4A5568}
.sh-msgr{background:#0084FF}.sh-viber{background:#7360F2}.sh-wa{background:#25D366}.sh-tg{background:#2AABEE}.sh-fb{background:#1877F2}
.shcard img{display:block;width:100%;border-radius:16px;box-shadow:0 6px 18px rgba(0,0,0,.2)}
.dlg .shset{color:var(--lagoon-d)}

/* 작은 화면: 결과 화면이 길어지면 스크롤 (버튼이 화면 밖으로 밀리지 않게) */
.ov.show{overflow-y:auto;justify-content:safe center}
.ov.show:has(.shs){justify-content:flex-start;padding-top:calc(18px + env(safe-area-inset-top))}
.ov.show:has(.shs) .chest{width:150px}
@media (max-height:720px){ .ov.show:has(.shs) .chest{width:110px} .ov.show:has(.shs) .rewards .rw{padding:6px 10px} .shs{padding:8px 10px;gap:7px} .shs-h img{width:32px;height:32px} .shs-t{font-size:12.5px} }
.exres .shs{margin:0 auto;flex:none}
/* 배너: 글 한 줄 + 버튼 아래 */
.shbn{flex-wrap:wrap}
.shbn-t{flex:1 1 0}
.shbn-go{flex:1 1 100%;order:3;padding:9px 12px}
/* 320px 폭·낮은 화면: 상자 그림을 줄이고 보상 3칸을 한 줄로 */
@media (max-width:360px){ .ov{padding-left:12px;padding-right:12px} .ov .rewards{gap:6px} }
@media (max-height:720px){ .ov.show .chest.open{width:130px} }
