/* 我的牧场 V3：固定 390×844 游戏坐标，内部独立滚动。 */
.me-overlay{position:absolute;z-index:3200;inset:0;width:390px;height:844px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 28%,rgba(64,47,28,.18),rgba(13,9,7,.74));-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);font-family:"Noto Sans SC",Inter,system-ui,sans-serif}
.me-panel,.me-panel *{box-sizing:border-box}.me-panel{position:relative;width:366px;height:774px;overflow:hidden;border:5px solid #744116;border-radius:28px;background:linear-gradient(180deg,#f4cb70 0,#a96525 7%,#f8e7bd 8%,#e6b968 100%);box-shadow:inset 0 0 0 3px #ffe398,inset 0 0 0 6px rgba(125,70,24,.75),0 18px 32px rgba(24,11,6,.55);color:#402918}
.me-panel:before{content:"";position:absolute;inset:13px;border:2px solid rgba(255,239,189,.65);border-radius:20px;pointer-events:none}
.me-header{position:absolute;z-index:4;left:50%;top:7px;transform:translateX(-50%);width:228px;height:58px;display:flex;align-items:center;justify-content:center;gap:9px;border:3px solid #683612;border-radius:18px;background:linear-gradient(#b96d2f,#6d3816);box-shadow:inset 0 2px #e7aa5d,inset 0 -3px #48230d,0 4px 0 #b6752c;color:#fff1bd}.me-header__mark{display:grid;place-items:center;width:32px;height:32px;border:2px solid #ffdda1;border-radius:50%;background:linear-gradient(#ffd660,#c8871e);color:#73410f;font-size:17px;text-shadow:none}.me-title{margin:0;color:#fff3c5;font-size:21px;line-height:24px;font-weight:950;letter-spacing:.08em;text-shadow:0 2px #51230e}
.me-close{position:absolute;z-index:6;right:8px;top:14px;width:42px;height:42px;padding:0;border:3px solid #79271a;border-radius:50%;background:linear-gradient(#ff7859,#cf3525);color:#fff7d9;font-size:26px;line-height:33px;font-weight:950;text-shadow:0 2px #8c2118;box-shadow:inset 0 2px #ffb08e,0 3px 0 #862317;cursor:pointer}.me-close:active{transform:translateY(1px)}
.me-scroll{position:absolute;z-index:2;left:17px;right:17px;top:75px;bottom:17px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:4px 8px 18px;border:2px solid #b97b33;border-radius:19px;background:linear-gradient(#fff9e8,#f1dfba);box-shadow:inset 0 2px #fffdf5,inset 0 0 0 4px rgba(255,255,255,.34);scrollbar-width:none}.me-scroll::-webkit-scrollbar{display:none}
.me-hero{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr) 60px;align-items:center;gap:10px;min-height:84px;margin:3px 0 8px;padding:10px 9px;border:2px solid #c1873d;border-radius:16px;background:radial-gradient(circle at 78% 25%,rgba(255,217,112,.48),transparent 35%),linear-gradient(135deg,#fffdf4,#efd098);box-shadow:inset 0 2px #fff,0 2px 0 #9b5b20}.me-avatar{display:grid;place-items:center;width:56px;height:56px;border:3px solid #d79b42;border-radius:50%;overflow:hidden;background:linear-gradient(#fff7d8,#eab961);box-shadow:inset 0 0 0 2px #fff3c5}.me-avatar img{width:52px;height:52px;object-fit:cover}.me-identity{min-width:0}.me-account-status{display:inline-block;margin-bottom:2px;padding:1px 6px;border-radius:8px;background:#e7c16e;color:#714517;font-size:7px;font-weight:900}.me-name{margin:0;overflow:hidden;color:#4a2b12;font-size:16px;line-height:20px;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.me-cap{display:block;margin-top:3px;color:#84613a;font-size:9px;font-weight:750}.me-vip-wrap{position:relative;display:grid;place-items:center;width:59px;height:48px;padding:0;border:0;background:transparent;cursor:pointer}.me-vip-wrap[hidden]{display:none}.me-vip-hud{position:relative;display:grid;place-items:center;width:59px;height:48px;overflow:visible;isolation:isolate}.me-vip-hud>img{position:absolute;z-index:-1;left:50%;top:50%;width:64px;height:64px;object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(0 2px 1px #35180488)}.me-vip-hud>b{position:relative;color:#fff5b2;font:900 16px/1 Impact,"Arial Black",sans-serif;-webkit-text-stroke:.55px #652b08;text-shadow:0 1px 0 #8b3f0c,0 2px 2px #251007}.me-vip-hud.vip-badge--level-5>img{filter:drop-shadow(0 0 3px #ffd86e) drop-shadow(0 2px 1px #35180488)}.me-row .me-vip-hud{width:39px;height:32px}.me-row .me-vip-hud>img{width:42px;height:42px}.me-row .me-vip-hud>b{font-size:14px}
.me-section-title{display:flex;align-items:center;gap:7px;margin:10px 4px 6px;color:#67401f;font-size:12px;line-height:16px;font-weight:950}.me-section-title:before{content:"";width:4px;height:14px;border-radius:3px;background:linear-gradient(#f3bb31,#b36b16);box-shadow:0 0 0 1px #925517}.me-section-title:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,#c38c44,transparent)}
.me-wallet{display:grid;grid-template-columns:1fr 1fr;gap:8px}.me-chip--trial{display:none!important}.me-chip{position:relative;min-width:0;height:92px;padding:10px 8px 8px;border:2px solid rgba(83,58,32,.48);border-radius:14px;color:#fffdf0;box-shadow:inset 0 2px rgba(255,255,255,.32),0 3px 0 rgba(50,33,18,.35);overflow:hidden}.me-chip:after{content:"";position:absolute;right:-18px;top:-24px;width:65px;height:65px;border-radius:50%;background:rgba(255,255,255,.11)}.me-chip--diamond{background:linear-gradient(145deg,#55d6f6,#187bb9)}.me-chip--gold{background:linear-gradient(145deg,#edbd49,#9c5d13)}.me-chip--trial{background:linear-gradient(145deg,#7fa6c4,#3d5d7b)}.me-chip>img,.me-trial-icon{position:absolute;left:7px;top:8px;width:22px;height:22px;object-fit:contain}.me-trial-icon{display:grid;place-items:center;border:2px solid #e9f2f7;border-radius:50%;background:#5e7d98;color:#fff;font-size:10px;font-weight:950}.me-chip>div{position:absolute;left:7px;right:5px;top:32px}.me-chip small,.me-chip b,.me-chip em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.me-chip small{font-size:8px;font-weight:850;opacity:.9}.me-chip b{font-size:18px;line-height:22px;font-weight:950}.me-chip em{font-size:7px;font-style:normal;opacity:.72}.me-flow{margin:9px 0 3px;padding:7px 9px;border:1px solid #d0a45f;border-radius:9px;background:#fff7dd;color:#80603a;font-size:8px;line-height:12px;text-align:center}
.me-group{margin:0}.me-list{display:grid;gap:7px;padding:8px;border:2px solid #c0873e;border-radius:15px;background:linear-gradient(#efe2c2,#e8d09a);box-shadow:inset 0 2px #fff7e3}.me-row{display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:61px;padding:7px 8px;border:2px solid #c28a40;border-radius:13px;background:radial-gradient(120% 90% at 50% 18%,#fffdf6,#f0d29c);box-shadow:inset 0 2px #fff,0 2px 0 #9a5d22}.me-row__icon,.me-ico{width:39px;height:39px;object-fit:contain}.me-ico{display:grid;place-items:center;border:1px solid #cf994a;border-radius:11px;background:linear-gradient(#fff4d0,#e8c078);color:#66401f;font-size:18px;font-weight:900}.me-row__copy{min-width:0}.me-row b{display:block;overflow:hidden;color:#4a2c12;font-size:12px;line-height:16px;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.me-row small{display:block;margin-top:2px;overflow:hidden;color:#7a5530;font-size:8px;line-height:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.me-go{min-width:59px;height:30px;padding:0 9px;border:2px solid #2b7621;border-radius:16px;background:linear-gradient(#8ae24c,#3ea528);color:#fffdf2;font-size:10px;font-weight:900;text-shadow:0 1px #245816;box-shadow:inset 0 1px #c8f58a,0 2px #2a6d1c;cursor:pointer}.me-row--logout{border-color:#c47454;background:linear-gradient(#fff5e8,#ecc4a6)}.me-row--logout .me-go{border-color:#8b281b;background:linear-gradient(#f17859,#ca3929);box-shadow:inset 0 1px #ffb18d,0 2px #852319}.me-row--logout .me-ico{border-color:#c16c4e;background:linear-gradient(#ffe1cc,#e99c76);color:#8f2f20}
@media(prefers-reduced-motion:reduce){.me-close,.me-go{transition:none}}

.me-cap{display:none!important}
.me-name-row{display:flex;align-items:center;gap:6px;min-width:0}
.me-name-row .me-name{flex:1}
.me-rename,.me-nick-save{flex:none;height:22px;padding:0 8px;border:1px solid #2b7621;border-radius:11px;background:linear-gradient(#8ae24c,#3ea528);color:#fffdf2;font-size:9px;font-weight:900}
.me-nick{display:flex;gap:6px;margin-top:6px}
.me-nick.is-hidden{display:none}
.me-nick-input{flex:1;min-width:0;height:24px;padding:0 8px;border:1px solid #c28a40;border-radius:8px;background:#fffdf6;color:#4a2c12;font-size:11px;font-weight:800}

/* 服务条款 / 隐私政策阅读层 */
.legal-overlay{position:absolute;z-index:3300;inset:0;width:390px;height:844px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 28%,rgba(64,47,28,.18),rgba(13,9,7,.74));font-family:"Noto Sans SC",Inter,system-ui,sans-serif}
.legal-panel,.legal-panel *{box-sizing:border-box}
.legal-panel{position:relative;width:366px;height:774px;overflow:hidden;border:5px solid #744116;border-radius:28px;background:linear-gradient(180deg,#f4cb70 0,#a96525 7%,#f8e7bd 8%,#e6b968 100%);box-shadow:inset 0 0 0 3px #ffe398,inset 0 0 0 6px rgba(125,70,24,.75),0 18px 32px rgba(24,11,6,.55);color:#402918}
.legal-header{position:absolute;z-index:4;left:50%;top:7px;transform:translateX(-50%);width:228px;height:58px;display:flex;align-items:center;justify-content:center;border:3px solid #683612;border-radius:18px;background:linear-gradient(#b96d2f,#6d3816);box-shadow:inset 0 2px #e7aa5d,inset 0 -3px #48230d,0 4px 0 #b6752c}
.legal-header h2{margin:0;color:#fff3c5;font-size:18px;line-height:22px;font-weight:950;letter-spacing:.06em;text-shadow:0 2px #51230e}
.legal-close{position:absolute;z-index:6;right:8px;top:14px;width:42px;height:42px;padding:0;border:3px solid #79271a;border-radius:50%;background:linear-gradient(#ff7859,#cf3525);color:#fff7d9;font:950 26px/1 system-ui,sans-serif;display:grid;place-items:center;text-shadow:0 2px #8c2118;box-shadow:inset 0 2px #ffb08e,0 3px 0 #862317;cursor:pointer}
.legal-scroll{position:absolute;z-index:2;left:17px;right:17px;top:75px;bottom:17px;overflow:auto;overscroll-behavior:contain;padding:14px 12px 18px;border:2px solid #b97b33;border-radius:19px;background:linear-gradient(#fff9e8,#f1dfba);box-shadow:inset 0 2px #fffdf5;scrollbar-width:thin}
.legal-loading{padding:40px 0;text-align:center;color:#84613a;font-size:14px;font-weight:800}
.legal-doc{color:#4a2c12;font-size:12px;line-height:1.65}
.legal-doc h1{margin:0 0 8px;font-size:18px;line-height:1.3;font-weight:950;color:#5a3214}
.legal-doc h2{margin:16px 0 6px;font-size:14px;font-weight:900;color:#67401f}
.legal-doc h3{margin:12px 0 4px;font-size:13px;font-weight:850;color:#744116}
.legal-doc p,.legal-doc li{margin:0 0 8px;color:#5c3a1d}
.legal-doc .legal-meta{margin:0 0 12px;color:#84613a;font-size:10px;font-weight:700}
.legal-doc ul,.legal-doc ol{margin:0 0 10px;padding-left:18px}
.legal-doc strong{font-weight:900}
