/* ต้อนรับกลับ (client-debug/js/welcome.js, src/map/welcome.js): the window "ยินดีต้อนรับกลับ!" - a warm hero (the days
   away), the gifts in the bag, the news posted meanwhile. The same in every theme (#win-welcome over the RO theme's). Linked
   by client/index.html and client-debug/index.html after style.css. */

#win-welcome .win-body { padding: 0; overflow: auto; background: linear-gradient(180deg, #2b1640, #160c26 60%, #0f0a1d); color: #f4ecff; }
.wb { display: flex; flex-direction: column; gap: 12px; padding: 0 0 14px; font-size: 13.5px; line-height: 1.45; }
.wb-hero { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 18px 18px; overflow: hidden;
	background: radial-gradient(ellipse 80% 120% at 20% 0%, rgba(255, 190, 90, 0.45), transparent 60%), linear-gradient(135deg, #6a2fb8, #3b1a73); }
.wb-glow { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, rgba(255, 230, 160, 0.13) 0deg 8deg, transparent 8deg 22deg); animation: wb-spin 40s linear infinite; pointer-events: none; }
.wb-days { position: relative; flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 3px solid #ffd36b;
	background: radial-gradient(circle at 40% 35%, #fff6d6, #ffcf5c 55%, #e08a1e); color: #3a1c00; box-shadow: 0 0 26px rgba(255, 200, 90, 0.7); animation: wb-pop 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.wb-days b { font-size: 30px; font-weight: 900; line-height: 1; }
.wb-days span { font-size: 12px; font-weight: 700; margin-top: -8px; }
.wb-txt { position: relative; display: flex; flex-direction: column; gap: 4px; }
.wb-txt b { font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.wb-txt span { color: #f3e3ff; }
.wb-gifts { list-style: none; margin: 0; padding: 0 14px; display: grid; gap: 6px; }
.wb-gift { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 211, 107, 0.3); background: rgba(255, 255, 255, 0.06);
	animation: wb-in 0.5s ease-out both; }
.wb-gift:nth-child(2) { animation-delay: 0.08s; } .wb-gift:nth-child(3) { animation-delay: 0.16s; } .wb-gift:nth-child(4) { animation-delay: 0.24s; } .wb-gift:nth-child(5) { animation-delay: 0.32s; }
.wb-gift .wb-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-gift b { color: #ffd36b; font-size: 15px; }
.wb-ic.wb-zeny { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 900; font-size: 13px; color: #6b4300; background: radial-gradient(circle at 40% 35%, #fff2b8, #f2b632); }
#win-welcome .wb-mail, #win-welcome .wb-tip { margin: 0 14px; font-size: 12.5px; color: #d8c9f0; }
.wb-news { margin: 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(120, 90, 255, 0.14); border: 1px solid rgba(160, 140, 255, 0.3); }
.wb-h { margin-bottom: 6px; font-weight: 800; color: #fff; }
.wb-news ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#win-welcome .wb-news button { width: 100%; height: auto; min-height: 0; padding: 6px 8px; border: 0; border-radius: 8px; text-align: left; white-space: normal; font: inherit; color: #eef0ff;
	background: rgba(255, 255, 255, 0.06); box-shadow: none; text-shadow: none; }
#win-welcome .wb-news button:hover { background: rgba(255, 255, 255, 0.14); }
@keyframes wb-spin { to { transform: rotate(360deg); } }
@keyframes wb-pop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes wb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wb-glow, .wb-days, .wb-gift { animation: none !important; } }
/* the phone: drawn at 85 % at least (the phone UI's own size is 50 % by default - too small for this one moment) */
html.mhud .win.win-welcome { --wk: max(var(--uik, 1), 0.85); transform: scale(max(var(--uik, 1), 0.85)); max-height: calc((100% - 88px - var(--mh-wb)) / max(var(--uik, 1), 0.85)) !important; }
