/* 新版46：拉新——首頁即時人氣、見面禮、邀請人、今日緣分、新朋友標籤 */
.gw-tz{display:flex;flex-direction:column;gap:8px;align-items:center;margin:10px auto 2px;max-width:420px;width:100%;padding:0 4px;animation:gwIn .5s ease both}
@keyframes gwIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.gw-live{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px}
.gw-avs{display:flex;justify-content:center}
.gw-avs i{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:19px;border:2.5px solid #fff;margin-left:-10px;box-shadow:0 3px 10px #b9707033;filter:blur(1.2px) saturate(1.1)}
.gw-avs i:first-child{margin-left:0}
.gw-avs i:nth-child(odd){animation:gwBob 3.2s ease-in-out infinite}.gw-avs i:nth-child(even){animation:gwBob 3.2s ease-in-out -1.6s infinite}
@keyframes gwBob{50%{transform:translateY(-3px)}}
.gw-live p{margin:0;font-size:15px;color:#5b3a2e;display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;line-height:1.35}
.gw-live p b{color:#d9534a;font-size:18px;margin:0 2px}
.gw-live small{font-size:12.5px;color:#8b6a5c}
.gw-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#3fbf6f;margin-right:6px;box-shadow:0 0 0 0 #3fbf6f88;animation:gwPulse 1.8s infinite;vertical-align:1px}
.gw-live p>span.gw-dot{position:relative;top:0}
@keyframes gwPulse{70%{box-shadow:0 0 0 8px #3fbf6f00}100%{box-shadow:0 0 0 0 #3fbf6f00}}
.gw-tk{background:#ffffffb3;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-radius:14px;padding:6px 14px;max-width:100%;text-align:center;box-shadow:0 2px 10px #c0807a1f}
.gw-tk small{display:block;font-size:11px;letter-spacing:.08em;color:#b07a68;font-weight:700}
.gw-tk p{margin:2px 0 0;font-size:14px;color:#4a3329;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px;transition:opacity .25s,transform .25s}
.gw-tk p.out{opacity:0;transform:translateY(-4px)}
.gw-gift{background:linear-gradient(135deg,#fff3dc,#ffe4ec);color:#7a4330;border-radius:999px;padding:8px 16px;font-size:13.5px;text-align:center;box-shadow:0 2px 10px #e0a08a33;line-height:1.5}
.gw-gift b{color:#c94a3f}
.gw-gift.in-form{border-radius:14px;margin:4px 0 12px;display:block}
.gw-inv{display:flex;align-items:center;gap:10px;background:#fff;border-radius:16px;padding:8px 12px;box-shadow:0 4px 16px #c0807a2e;text-align:left;width:100%}
.gw-inv i{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:22px;flex:none}
.gw-inv span{font-size:14.5px;color:#4a3329;line-height:1.45}.gw-inv b{color:#c94a3f}.gw-inv small{display:block;font-size:12px;color:#8b6a5c}
/* 先逛逛放最上面 */
.sl-guest.gw-top,.sl-guest.gw-top *{text-decoration:none!important}
.sl-guest.gw-top{display:flex;flex-direction:column;align-items:center;gap:1px;width:100%;margin:0 0 14px;padding:10px 14px;border-radius:16px;border:1.5px dashed #e7a99a;background:#fff7f3;color:#b2473c;font-weight:800;font-size:15px}
.sl-guest.gw-top small{font-weight:500;font-size:12px;color:#9a6f60}
/* 新朋友標籤 */
.d1new{position:absolute;top:8px;right:8px;z-index:2;background:#e9f8ec;color:#2f7d46;font-size:11px;font-weight:800;border-radius:999px;padding:3px 8px;box-shadow:0 1px 4px #0001}
.nwb{display:inline-block;margin-left:6px;background:#e9f8ec;color:#2f7d46;font-size:11px;font-weight:800;border-radius:999px;padding:1px 7px;vertical-align:2px}
/* 今日緣分 */
.gw-daily{margin:6px 16px 10px;padding:12px 12px 12px;border-radius:20px;background:linear-gradient(135deg,#fff3ef,#fdeef7 60%,#f4efff);box-shadow:0 3px 14px #d9a3a024}
.gw-daily header{display:flex;align-items:baseline;gap:8px;margin:0 2px 10px}
.gw-daily header b{font-size:15.5px;color:#6b3a2e}.gw-daily header small{font-size:12px;color:#9b7b70;flex:1}
.gw-daily header button{border:0;background:#ffffffaa;width:26px;height:26px;border-radius:50%;color:#9b7b70;font-size:16px;line-height:1;cursor:pointer}
.gw-dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gw-dc{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fffffff0;border-radius:16px;padding:10px 6px 8px;min-width:0}
.gw-dp{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;width:100%;cursor:pointer;font:inherit;color:inherit;padding:0}
.gw-da{position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;font-size:28px;overflow:visible}
.gw-da img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.gw-on{position:absolute;right:1px;bottom:2px;width:12px;height:12px;border-radius:50%;background:#3fbf6f;border:2px solid #fff}
.gw-dp b{font-size:13.5px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#3c2a22}
.gw-dp small{font-size:11.5px;color:#8b6a5c;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gw-hi{border:0;border-radius:999px;background:linear-gradient(135deg,#f6866f,#e0607a);color:#fff;font-weight:800;font-size:12px;padding:6px 10px;cursor:pointer;box-shadow:0 2px 8px #e0607a44}
html.night .gw-daily,:root[data-theme="dark"] .gw-daily{background:linear-gradient(135deg,#2e2430,#2a2238)}
html.night .gw-dc,:root[data-theme="dark"] .gw-dc{background:#1f1a26}
html.night .gw-dp b,:root[data-theme="dark"] .gw-dp b{color:#f3e6dc}
html.night .gw-daily header b,:root[data-theme="dark"] .gw-daily header b{color:#ffd9c8}
@media (prefers-reduced-motion:reduce){.gw-avs i,.gw-dot,.gw-tz{animation:none}}
.nz-top .nz-new{color:#2f7d46;background:#eafaef!important;font-weight:800}
.gw-offwrap{margin-bottom:6px}
/* 新版47：別人的個人資料頁精簡 */
.pcard .pbio{margin:6px 12px 2px;line-height:1.55}
.pinfo{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:10px 10px 4px}
.pinfo span{font-size:12.5px;padding:4px 10px;border-radius:999px;background:color-mix(in srgb,var(--pc,#ffb81c) 16%,transparent);color:inherit;opacity:.92}
.sec .pshare{margin-left:8px;font-size:11.5px;font-weight:700;color:#e0685a}
.pfoot .lk2{opacity:.55;font-size:13px}
/* 新版47：夜間模式下首頁小卡要看得清楚 */
html.night .gw-tk{background:#2a2140cc!important;box-shadow:0 2px 12px #0005}
html.night .gw-tk small{color:#d8b4ff!important}
html.night .gw-tk p{color:#f5ecff!important}
html.night .gw-gift{background:linear-gradient(135deg,#4a2c3c,#3b2a52)!important;color:#ffe3d6!important;box-shadow:0 2px 12px #0005}
html.night .gw-gift b{color:#ffb4a2!important}
html.night .gw-inv{background:#2a2140!important}
html.night .gw-inv span{color:#f3e6dc!important}html.night .gw-inv b{color:#ffb4a2!important}html.night .gw-inv small{color:#c9b7d6!important}
html.night .gw-live p{color:#f3e6dc!important}html.night .gw-live p b{color:#ff9e8e!important}html.night .gw-live small{color:#c9b7d6!important}
html.night .sl-guest.gw-top{background:#2c2236!important;border-color:#8a5a7a!important;color:#ffb4a2!important}
html.night .sl-guest.gw-top small{color:#c9b7d6!important}
/* 今日緣分：小螢幕按鈕不換行 */
.gw-hi{white-space:nowrap;padding:6px 8px;font-size:11.5px}
@media (max-width:380px){.gw-daily{margin:6px 10px 10px;padding:10px 8px}.gw-dl{gap:6px}.gw-da{width:48px;height:48px;font-size:24px}.gw-hi{font-size:11px;padding:5px 7px}}
html.night .emptyx{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03))!important;border-color:rgba(255,255,255,.18)!important}
html.night .emptyx b{color:#f6eefa!important}html.night .emptyx p{color:#c9bcd6!important}
/* 新版55：生日頁的「先逛逛」 */
.gw-gg{display:block;width:100%;margin:10px 0 0;padding:11px 14px;border-radius:14px;border:1.5px dashed #e7a99a;background:#fff7f3;color:#b2473c;font:inherit;font-weight:800;font-size:15px;cursor:pointer}
html.night .gw-gg{background:#2c2236;border-color:#8a5a7a;color:#ffb4a2}
/* 新版55：「先逛逛」按鈕改成精緻的小卡片 */
html .sl-guest.gw-top,html.night .sl-guest.gw-top{position:relative;display:flex!important;flex-direction:row!important;align-items:center;gap:12px;width:100%;margin:2px 0 16px;padding:12px 14px!important;border-radius:20px!important;border:0!important;text-align:left;overflow:hidden;
 background:linear-gradient(135deg,#fff3ec 0%,#ffe6ef 55%,#efe6ff 100%)!important;color:#5b3a2e!important;box-shadow:0 8px 22px rgba(229,87,107,.16),inset 0 0 0 1.5px rgba(255,255,255,.75)!important;transition:transform .15s ease,box-shadow .15s ease}
html.night .sl-guest.gw-top{background:linear-gradient(135deg,#3a2a4a 0%,#43294a 55%,#2e2a52 100%)!important;color:#fbeef3!important;box-shadow:0 8px 22px rgba(0,0,0,.35),inset 0 0 0 1.5px rgba(255,255,255,.08)!important}
.sl-guest.gw-top::after{content:"";position:absolute;top:-40%;left:-30%;width:40%;height:180%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);transform:rotate(18deg);animation:gwShine 4.5s ease-in-out infinite}
html.night .sl-guest.gw-top::after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent)}
@keyframes gwShine{0%,60%{left:-40%}100%{left:130%}}
.sl-guest.gw-top:active{transform:scale(.98)}
.gw-gi{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#fff;box-shadow:0 4px 10px rgba(229,87,107,.18)}
html.night .gw-gi{background:#ffffff14;box-shadow:none}
.gw-gi i{font-style:normal;font-size:22px;animation:gwPeek 3.2s ease-in-out infinite}
@keyframes gwPeek{0%,70%,100%{transform:translateX(0)}78%{transform:translateX(-3px)}88%{transform:translateX(3px)}}
.gw-gt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.gw-gt b{font-size:15.5px;font-weight:900;color:#c94a5e}
html.night .gw-gt b{color:#ffb4c8}
.gw-gt small{font-size:12px!important;font-weight:500!important;color:#9a6f60!important}
html.night .gw-gt small{color:#cdbbd9!important}
.gw-ga{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#ff8a74,#e5576b);color:#fff;font-size:18px;font-weight:900;line-height:1;box-shadow:0 4px 10px rgba(229,87,107,.3)}
@media (prefers-reduced-motion:reduce){.sl-guest.gw-top::after,.gw-gi i{animation:none}}

/* 新版56：登入頁吉祥物（兩隻小鳥）*/
html body .lgw.mas.lbw{width:136px!important;height:136px!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;background:none!important;border:0!important;margin:-6px auto 0!important;animation:none!important}
html body .lgw.mas.lbw .lb{width:100%;height:100%}
@media (max-height:700px){html body .lgw.mas.lbw{width:108px!important;height:108px!important}}

.lb{width:168px;height:168px;display:block;margin:0 auto;overflow:visible}
.lb .bL{animation:lbBobL 3.2s ease-in-out infinite;transform-origin:70px 160px}
.lb .bR{animation:lbBobR 3.2s ease-in-out infinite;transform-origin:130px 160px}
@keyframes lbBobL{0%,100%{transform:rotate(0)}50%{transform:rotate(-2.5deg) translateY(-2px)}}
@keyframes lbBobR{0%,100%{transform:rotate(0)}50%{transform:rotate(2.5deg) translateY(-2px)}}
.lb .eye{animation:lbBlink 4.6s infinite;transform-box:fill-box;transform-origin:center}
.lb .eR{animation-delay:.12s}
@keyframes lbBlink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
.lb .wL{transform-box:fill-box;transform-origin:85% 15%;animation:lbFlapL 1.6s ease-in-out infinite}
.lb .wR{transform-box:fill-box;transform-origin:15% 15%;animation:lbFlapR 1.6s ease-in-out infinite}
@keyframes lbFlapL{0%,100%{transform:rotate(0)}50%{transform:rotate(14deg)}}
@keyframes lbFlapR{0%,100%{transform:rotate(0)}50%{transform:rotate(-14deg)}}
.lb .hz{animation:lbHeart 3.6s ease-out infinite;opacity:0;transform-box:fill-box;transform-origin:center}
.lb .h2{animation-delay:1.2s}.lb .h3{animation-delay:2.4s}
@keyframes lbHeart{0%{opacity:0;transform:translateY(8px) scale(.5)}20%{opacity:1}100%{opacity:0;transform:translateY(-34px) scale(1.1)}}
.lb .shine{animation:lbShine 2.8s ease-in-out infinite}
@keyframes lbShine{0%,100%{opacity:.35}50%{opacity:.9}}
.lb.look .bL{animation:none;transform:rotate(-6deg)}.lb.look .bR{animation:none;transform:rotate(6deg)}
@media (prefers-reduced-motion:reduce){.lb *{animation:none!important}}

.lb.yay{animation:lbYay .7s cubic-bezier(.3,1.6,.5,1)}@keyframes lbYay{0%{transform:translateY(0)}35%{transform:translateY(-14px) scale(1.06)}100%{transform:none}}
.lb.yay .hz{animation-duration:1.2s}
html body .lgw.mas.lbw::before,html body .lgw.mas.lbw::after{display:none!important;content:none!important}html body .lgw.mas.lbw .lb{position:relative;z-index:1;filter:drop-shadow(0 6px 14px rgba(255,120,170,.28))}
/* 新版58：登入／註冊排版 */
html body .gate .pwbar{transition:opacity .2s,height .2s}
html body .gate .pwbar:not(.on){opacity:0;height:0!important;margin:0!important}
html body .gate .pwl{display:none;font-size:12.5px;margin:-4px 4px 0;font-weight:700}
html body .gate .pwl.on{display:block}
html body .gate .pwl.s0,html body .gate .pwl.s1,html body .gate .pwl.s2{color:#c4513f}html body .gate .pwl.s3{color:#b0781e}html body .gate .pwl.s4{color:#2e8b4f}
html.night body .gate .pwl.s0,html.night body .gate .pwl.s1,html.night body .gate .pwl.s2{color:#ff9a8a}html.night body .gate .pwl.s3{color:#ffd27a}html.night body .gate .pwl.s4{color:#7ee0a4}
html body .gate .auth-label{font-size:13.5px;letter-spacing:.03em;margin:4px 4px -4px}
html body .gate .afoot{opacity:.85}
html body .gate .pwl{text-align:left}
html body .gate .acard .sl-box:empty{display:none}
html body .gate .acard .atab+.auth-label,html body .gate .acard .atab+.sl-box:empty+.auth-label{margin-top:6px}

/* 新版148：登入畫面換成「翅膀愛心」：兩邊翅膀輕輕拍、後面雷達波一圈圈往外擴 */
.lb.lbh{filter:drop-shadow(0 10px 22px rgba(238,90,124,.3))}
.lb .hwL{transform-origin:90px 128px;animation:lbHwL 2.4s ease-in-out infinite}
.lb .hwR{transform-origin:90px 128px;animation:lbHwR 2.4s ease-in-out infinite}
@keyframes lbHwL{0%,100%{transform:rotate(0)}50%{transform:rotate(-6deg)}}
@keyframes lbHwR{0%,100%{transform:rotate(0)}50%{transform:rotate(6deg)}}
.lb .rp{transform-box:fill-box;transform-origin:center;opacity:0;animation:lbRp 3.2s ease-out infinite}.lb .r2{animation-delay:1.6s}
@keyframes lbRp{0%{transform:scale(1.75);opacity:.45}100%{transform:scale(2.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.lb .hwL,.lb .hwR,.lb .rp{animation:none!important}}
