body.share { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 24px 16px; background: var(--plum); position: relative; }
.share-bg, .share-bg img { position: fixed; inset: 0; width: 100%; height: 100%; }
.share-bg img { object-fit: cover; filter: brightness(.42) saturate(.9); }
.share-card { margin-block: auto; position: relative; z-index: 1; width: 100%; max-width: 440px; background: rgba(36, 18, 44, .92); border: 1px solid rgba(232, 176, 74, .35); border-radius: 22px; padding: 22px 20px 22px; text-align: center; }
.hello { display: flex; align-items: center; gap: 12px; text-align: start; margin-bottom: 6px; }
.hello img { width: 72px; height: 72px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(232, 176, 74, .6); }
.hello p { margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--paper); color: var(--ink); font-family: var(--f-msg); font-size: 18px; line-height: 1.5; }
h1 { font-family: var(--f-head); font-weight: 600; font-size: 25px; margin: 14px 0 14px; color: var(--paper); }
textarea { width: 100%; min-height: 96px; resize: none; border-radius: var(--r); border: 2px solid rgba(232, 176, 74, .5); background: var(--paper); color: var(--ink);
  font-family: var(--f-msg); font-size: 22px; line-height: 1.5; padding: 12px 14px; }
textarea::placeholder { color: #6E5A50; }
.row { display: flex; justify-content: flex-start; margin: 6px 2px 0; }
.count { font-size: 15px; color: var(--muted); }
.count.full { color: var(--gold); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.err { min-height: 1.6em; margin: 8px 0 10px; color: #FFD27A; font-size: 17px; }
.wide { width: 100%; }
.see { margin-top: 10px; }
.done { display: grid; gap: 12px; }
.done-msg { font-family: var(--f-head); font-size: 22px; color: var(--glow); margin: 4px 0 8px; }
.foot { position: relative; z-index: 1; margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; text-shadow: 0 1px 2px #000; }
@media (min-aspect-ratio: 1/1) and (min-width: 900px) { .share-card { max-width: 520px; padding: 28px 30px; } }

/* شاشة عرضية قصيرة (هاتف مُدار): بطاقة أصغر، والصفحة تتمرر بدل قص أعلاها */
@media (max-height: 520px) { body.share { padding: 10px 16px; } .share-card { padding: 12px 16px; } .hello img { width: 52px; height: 52px; } .hello p { font-size: 15px; padding: 6px 10px; } h1 { font-size: 20px; margin: 8px 0; } textarea { min-height: 70px; font-size: 19px; } }
