:root{color-scheme:dark;font-family:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,sans-serif;background:#080321;color:#fff}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 20%,#2b0870,transparent 65%),#080321}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #63f9ff;outline-offset:-3px}button:active{filter:brightness(1.2)}.app{max-width:590px;min-height:100dvh;margin:auto;background:#0b0230;padding-top:env(safe-area-inset-top);padding-bottom:calc(82px + env(safe-area-inset-bottom));box-shadow:0 0 100px #3c099a44}.art{position:relative;width:100%;aspect-ratio:590 / var(--height);overflow:hidden}.art img{position:absolute;top:calc(var(--start) / 590 * -100%);left:0;width:100%;height:auto;pointer-events:none;user-select:none}.hot{position:absolute;border:0;background:transparent;border-radius:18px}.hot:hover{background:#ffffff08}.nav{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:590px;display:grid;grid-template-columns:repeat(5,1fr);padding:10px 4px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(110deg,#20064df5,#110833f5);border-top:1px solid #7431b766;backdrop-filter:blur(20px)}.nav button{border:0;background:none;display:grid;justify-items:center;gap:5px;font-size:14px;color:#d5c8ec;min-height:52px}.nav svg{height:27px;width:27px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;fill:none}.nav [aria-current]{color:#fff;text-shadow:0 0 8px #ff4dff}.nav [aria-current] svg{fill:#e0a8ff;stroke:#fff;filter:drop-shadow(0 0 6px #ff25fc) drop-shadow(0 0 12px #ac00ff)}.tabs{margin:0 2.3% 1.4%;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #8b30ef;border-radius:17px;background:#160449;box-shadow:inset 0 0 15px #5b15e655;overflow:hidden}.tabs button{min-height:42px;padding:10px 2px;border:0;background:transparent;font-size:clamp(13px,3.5vw,21px);white-space:nowrap}.tabs [aria-selected=true]{background:linear-gradient(120deg,#ad16ff,#ee00d6,#7313e9);box-shadow:inset 0 0 8px #fff7,0 0 16px #e923ff;border-radius:15px}.empty{text-align:center;padding:55px 20px;min-height:330px;margin:12px;border:1px solid #7c3aea;border-radius:20px;background:radial-gradient(at top,#472295,#14083a)}.empty-icon{font-size:64px;color:#f4b8ff;text-shadow:0 0 25px #d300ff}.empty h2{font-size:23px}.empty p{color:#c5b5dc;font-size:14px}.primary{background:linear-gradient(105deg,#ff179d,#a300ff 65%,#26c9ff);border:1px solid #ee98ff80;border-radius:30px;padding:13px 25px;font-weight:700;min-height:46px}dialog{width:calc(100% - 40px);max-width:380px;border:1px solid #ae68ff;border-radius:24px;padding:28px 24px;text-align:center;background:linear-gradient(145deg,#350963,#120a32);box-shadow:0 0 45px #a700ff55}dialog::backdrop{background:#040018b8;backdrop-filter:blur(6px)}dialog h2{font-size:23px;margin:10px 0}dialog p{line-height:1.8;color:#dfd2ee;font-size:15px;white-space:pre-line}dialog .primary{width:100%;margin-top:12px}.modal-icon{font-size:42px;color:#ef99ff;text-shadow:0 0 20px #f400ff}.close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:30px;color:#d2b9ed;width:40px;height:40px}.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}[hidden]{display:none!important}@media(min-width:600px){.app{border-left:1px solid #6729ab55;border-right:1px solid #6729ab55}.nav{padding-top:14px}.nav button{font-size:16px}.nav svg{width:31px;height:31px}}@media(prefers-reduced-motion:no-preference){dialog[open]{animation:appear .18s ease-out}@keyframes appear{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}}
/* Offset the source art against its own intrinsic height. */
.art img{top:0;transform:translateY(calc(var(--start) / 1280 * -100%))}
.companions{margin:4px 2.2% 10px;padding:9px 5px 6px;border:1px solid #9c45ff;border-radius:19px;background:linear-gradient(130deg,#42088b,#170c50 70%);box-shadow:inset 0 0 14px #7027e9,0 0 8px #8500ff66}.companions header{display:flex;align-items:center;justify-content:space-between;padding:0 5px 7px;gap:5px}.companions h2{font-size:clamp(15px,4vw,24px);font-style:italic;margin:0;white-space:nowrap}.companions header div{display:flex}.companions header button{border:0;background:none;min-width:30px;min-height:32px;font-size:26px}.companion-list{display:flex;gap:7px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b852f5 transparent;padding:0 0 4px}.companion{position:relative;flex:0 0 24%;min-width:86px;aspect-ratio:129/162;overflow:hidden;border:1px solid #c7a0ff;border-radius:13px;scroll-snap-align:start;background:#453064;padding:0}.companion>img{height:100%;width:100%;object-fit:cover}.companion-name{position:absolute;bottom:0;left:0;right:0;padding:7px 2px;background:linear-gradient(transparent,#351352e8);font-size:clamp(12px,3vw,17px);white-space:nowrap}.online{position:absolute;right:5px;top:4px;font-size:10px;background:#1a052d70;border-radius:8px;padding:2px 4px}.online::before{content:'● ';color:#ff52b5}.art img.event-poster{transform:none;top:0;height:100%;object-fit:fill}.event-qr{position:absolute;left:65.8%;top:48.5%;width:30%;height:33.5%;padding:6px;border:1px solid #d282ff;border-radius:15px;background:linear-gradient(130deg,#8721cf,#25055c);box-shadow:0 0 10px #9700ff;display:flex;flex-direction:column;gap:4px;align-items:center}.event-qr img{position:static;transform:none;width:100%;height:0;flex:1;min-height:0;object-fit:contain;background:white;border:4px solid white;border-radius:8px}.event-qr span{font-size:clamp(10px,2.8vw,17px);background:linear-gradient(#cf19f6,#a600db);border-radius:20px;width:100%;padding:3px 0;white-space:nowrap}#modal-qr{display:block;width:220px;max-width:100%;height:auto;margin:16px auto;padding:10px;background:white;border-radius:12px}
/* Native typography stays sharp at any device pixel ratio. */
.app,.nav{max-width:460px}.app{container-type:inline-size}.art>img:not(.event-poster){top:0;transform:none;width:100%;height:100%;object-fit:fill}.hero-copy{position:absolute;left:0;top:30%;width:58%;bottom:0;padding:9px 0 8px 4%;background:linear-gradient(90deg,#100443 0%,#100443f7 79%,#10044300 100%)}.hero-copy h2{margin:0;font-size:clamp(23px,6.6cqw,34px);line-height:1.2;font-weight:950;font-style:italic;letter-spacing:-1px}.hero-copy h2 span{color:#ff46df}.hero-copy p{font-size:clamp(9px,2.5cqw,13px);font-weight:700;white-space:nowrap;margin:8px 0}.pink-button{border:1px solid #ff74e9;border-radius:30px;background:linear-gradient(110deg,#f70ba8,#ec08cd 70%,#a31cff);color:white;font-size:clamp(12px,3.4cqw,17px);font-weight:700;min-height:36px;padding:5px 16px;box-shadow:inset 0 0 8px #ff90e744;white-space:nowrap}.hero-copy .pink-button{background:linear-gradient(100deg,#a610f5,#6900de);border-color:#a732ff}.recharge-panel{display:flex;align-items:center;gap:10px;margin:0 2.2% 10px;padding:9px 10px;border:1px solid #ae54ff;border-radius:17px;background:radial-gradient(at top left,#6914ba,transparent 60%),linear-gradient(125deg,#210966,#16074d 70%,#085981);box-shadow:inset 0 0 12px #9631fa,2px 2px 9px #21bde27a}.douyin{width:25%;border-radius:50%;height:auto}.recharge-copy{flex:1;min-width:0}.recharge-copy h2{font-size:clamp(23px,6.5cqw,32px);font-style:italic;margin:0;line-height:1.1;font-weight:900;letter-spacing:1px}.recharge-copy p{font-size:clamp(12px,3.4cqw,17px);margin:4px 0 5px}.recharge-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px}.recharge-bottom>span{font-size:clamp(10px,2.6cqw,13px);white-space:nowrap}.recharge-bottom strong{color:#ffe32b;font-size:clamp(23px,6.6cqw,34px);font-style:italic}.recharge-bottom button{padding:5px 10px;font-size:clamp(11px,3cqw,15px)}.offer-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 2.2% 10px}.offer-card{overflow:hidden;border:1px solid #9b59ff;border-radius:16px;background:linear-gradient(135deg,#25046a,#150443);box-shadow:inset 0 0 12px #8436e7,0 1px 5px #9608f3}.offer-card>img{display:block;width:100%;height:auto}.offer-card>div{padding:3px 9px 10px;background:linear-gradient(#18094e,#260869)}.offer-card h2{font-size:clamp(18px,4.9cqw,24px);font-style:italic;font-weight:900;white-space:nowrap;margin:0;letter-spacing:-.5px}.offer-card p{margin:4px 0 7px;font-size:clamp(11px,3.05cqw,15px);white-space:nowrap}.offer-card .pink-button{display:block;margin:auto;min-height:32px;padding:4px 17px}.companion-list{scroll-snap-type:none;scrollbar-width:none}.companion-list::-webkit-scrollbar{display:none}.companions header button{min-width:24px}.companions .auto-toggle{font-size:16px}.companions h2{font-size:clamp(14px,4.4cqw,21px)}
.hero-copy{width:64%;background:linear-gradient(90deg,#100443 0%,#100443 86%,#10044300 100%)}.download-banner{margin:8px 2.2%;border:1px solid #a244fa;border-radius:15px;padding:10px 8px;display:flex;align-items:center;justify-content:space-between;gap:6px;background:linear-gradient(120deg,#470492,#25076b 70%,#7804cc);box-shadow:inset 0 0 12px #9b20ff}.download-banner>span{font-size:34px;color:#d0abff}.download-banner h2{margin:0;font-size:clamp(14px,3.8cqw,19px);font-style:italic;white-space:nowrap}.download-banner h2 span{color:#fff12b}.download-banner p{font-size:clamp(8px,2.2cqw,11px);margin:5px 0 0;white-space:nowrap}.download-banner button{background:linear-gradient(#fff12b,#ffca17);border:0;color:#301c00;font-weight:800;border-radius:24px;padding:9px 10px;white-space:nowrap;font-size:clamp(11px,3cqw,15px)}
/* Automatic display: no draggable scrollbar or horizontal touch navigation. */
.companion-list{overflow-x:hidden;touch-action:pan-y;user-select:none}.companion img{-webkit-user-drag:none}
/* Point recharge destination. */
.app.credit-mode{max-width:1200px;min-height:100dvh;padding-bottom:30px;background:radial-gradient(ellipse at 75% 90%,#335c83 0,transparent 60%),linear-gradient(130deg,#1d304b,#244361 65%,#172e49)}.credit-mode + .nav{display:none}.credits-page{padding:18px 24px 30px;color:#c3e0f7}.credits-header{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.credits-header h2{font-size:24px;margin:0}.credits-header button{background:none;border:0;color:#a2c7ed}.credits-header .credit-back{font-size:38px;line-height:1;min-width:44px;min-height:44px;color:#e6f6ff;text-shadow:0 0 9px #77aaff}.credit-links{display:flex;gap:10px;flex:1}.credit-links button{font-size:14px;min-height:40px;padding:0}.credit-balance{padding:6px 12px;background:#142b48;font-weight:700;color:white}.credit-balance small{font-weight:400;color:#a3bdd5;font-size:10px;margin-left:6px}.credit-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:30px;margin-top:30px}.credit-hint{font-size:14px;display:flex;justify-content:space-between;gap:8px;margin:0 0 15px}.credit-hint span{font-size:11px;color:#9cbbd3}.points-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.points-card{padding:0;position:relative;background:linear-gradient(#2a4869,#2c5980);border:1px solid #42688d;color:#c1dcf9;display:flex;flex-direction:column;align-items:center;min-width:0;box-shadow:inset 0 0 16px #5292ca15}.points-card img{width:100%;aspect-ratio:1.12;object-fit:contain;mix-blend-mode:lighten}.points-gift{height:23px;font-size:clamp(10px,1.4vw,14px);color:#fff0ae;width:100%;font-style:italic;font-weight:bold;white-space:nowrap}.points-gift:not(:empty){background:linear-gradient(100deg,#83621b,#d8b55f,#80601b);box-shadow:0 2px 5px #0d1b34;transform:rotate(-5deg)}.points-count{font-size:18px;padding:6px 0 8px;white-space:nowrap}.points-price,.blue-button{border:1px solid #5da6d8;border-radius:3px;background:linear-gradient(#2e5d8f,#306798 70%,#387f9b);box-shadow:inset 0 0 8px #7fcaff55;color:#e5f8ff}.points-price{font-size:22px;width:100%;padding:4px}.points-card:hover,.points-card[aria-pressed=true]{border-color:#c0ecff;box-shadow:0 0 12px #7dd9ff77}.vip-panel{text-align:center;align-self:center}.vip-panel>img{width:100%;mix-blend-mode:lighten}.vip-progress{height:7px;background:#112c42;margin:15px auto 0;width:75%}.vip-progress span{display:block;width:22.25%;height:100%;background:#ffe6a1}.vip-panel p{color:#f5d47c;font-size:12px;margin:8px 0 28px}.blue-button{padding:9px 12px;font-size:17px}.vip-actions{display:flex;justify-content:center;gap:6px;margin:10px 0}.vip-actions button{font-size:13px;padding:6px}.vip-panel>small{font-size:10px;color:#a2bbcf}@media(max-width:700px){.credits-page{padding:12px 14px}.credits-header{gap:10px}.credits-header h2{font-size:21px}.credit-links{order:4;flex-basis:100%;justify-content:space-around;border-bottom:1px solid #89bce32b}.credit-balance{margin-left:auto}.credit-layout{grid-template-columns:1fr;margin-top:18px;gap:20px}.points-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.points-count{font-size:16px}.points-gift{font-size:11px;height:19px}.points-price{font-size:20px}.vip-panel{max-width:270px;margin:auto}.vip-panel>img{width:200px}.vip-panel p{margin-bottom:14px}}@media(max-width:360px){.points-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-hint{flex-wrap:wrap}}
.shop-page{min-height:100dvh;padding:18px 24px 90px;background:radial-gradient(ellipse at 35% 65%,#427ab8 0,transparent 45%),linear-gradient(125deg,#112d50,#243876 70%,#152d52);color:#c4e0fa;position:relative}.shop-header{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.shop-header h2{margin:0;font-size:24px}.shop-header .credit-back{background:none;border:0;font-size:38px;color:#dcecff;min-width:44px;min-height:44px}.shop-search{width:150px}.shop-search input{width:100%;border:1px solid #3a6596;background:#112c54;color:#e5f4ff;padding:8px 10px;font:inherit;min-width:0}.shop-search input::placeholder{color:#a5bed9}.shop-balance{margin-left:auto;padding:6px 10px;background:#172952;color:white;font-weight:bold}.shop-balance small{display:block;font-size:10px;font-weight:normal;color:#9ab5d0;text-align:right;margin-top:3px}.shop-layout{display:grid;grid-template-columns:100px 1fr;gap:20px;margin-top:24px}.shop-categories{display:flex;flex-direction:column;gap:12px}.shop-categories button,.shop-filters button,.shop-bottom button{border:0;background:none;color:#a9c6e3;padding:14px 10px;font:inherit;font-size:18px}.shop-categories [aria-pressed=true]{color:white;background:linear-gradient(90deg,transparent,#2e84c988,transparent);text-shadow:0 0 10px #5bdaff}.shop-content{min-width:0}.shop-filters{display:flex;justify-content:flex-end;margin-bottom:14px;gap:6px}.shop-filters button{padding:8px 14px;font-size:15px}.shop-filters [aria-pressed=true]{color:white;background:linear-gradient(90deg,#3684cc,#25639e66);box-shadow:inset 2px 0 #a5eaff}.shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:750px}.shop-card{padding:0;border:1px solid #4e86be;background:#244a78;overflow:hidden;color:#d4eafa;min-width:0;display:flex;flex-direction:column}.shop-card>img{display:block;width:100%;height:auto}.shop-card-name{align-self:stretch;text-align:center;font-size:14px;padding:7px 2px;background:#1b3c63;white-space:nowrap}.shop-price{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;background:linear-gradient(#305e95,#316a9a);border-top:1px solid #76b1e1;box-shadow:inset 0 0 9px #72ceff55}.shop-price del{font-size:11px;color:#92afcf;line-height:1}.shop-price strong{font-size:21px}.shop-card:hover{border-color:#b1e6ff;box-shadow:0 0 14px #63baff55}.shop-note{font-size:11px;color:#a5c0db;margin-top:22px}.shop-empty{padding:60px 10px;text-align:center}.shop-bottom{display:flex;justify-content:space-around;position:absolute;bottom:15px;left:20px;right:20px;border-top:1px solid #6e9acb44}.shop-bottom button{flex:1}.shop-bottom .active{color:white;text-shadow:0 0 10px #66e4ff;background:radial-gradient(ellipse at bottom,#3789d075,transparent 70%)}@media(max-width:700px){.shop-page{padding:12px 14px 90px}.shop-header{gap:8px}.shop-header h2{font-size:21px}.shop-search{flex:1;min-width:80px}.shop-balance{font-size:12px;flex-basis:100%;text-align:right;background:transparent;padding:0}.shop-balance small{display:inline;margin-left:8px}.shop-layout{grid-template-columns:1fr;gap:8px;margin-top:14px}.shop-categories{flex-direction:row;gap:0;border-bottom:1px solid #75aad244}.shop-categories button{flex:1;padding:10px 3px;font-size:16px}.shop-filters{margin:2px 0 10px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-card-name{font-size:12px}.shop-bottom{left:10px;right:10px}.shop-bottom button{font-size:16px}}
.credits-header .credit-back,.shop-header .credit-back{width:44px;height:44px;min-width:44px;display:grid;place-items:center;border:1px solid #83b9e344;border-radius:50%;background:#193958;color:#dfedfc;padding:9px;text-shadow:none}.credit-back svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.points-card img{mix-blend-mode:normal;aspect-ratio:320/260;object-fit:contain}.shop-card{position:relative}.shop-card>.shop-art{height:auto;aspect-ratio:2/3;object-fit:cover}.shop-art-1{object-position:57% 50%}.shop-art-2{object-position:54% 50%}.shop-card>.shop-art-3{object-fit:contain;background:radial-gradient(ellipse,#3979b5,#193861)}.shop-badge{position:absolute;top:0;left:0;max-width:100%;padding:5px 8px;background:linear-gradient(110deg,#eddba0,#bb934d);color:#493418;font-size:12px;font-weight:700}.shop-art-0{object-position:center}.shop-card-name{font-size:13px}@media(min-width:540px) and (max-width:700px){.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.shop-art-2{object-position:44% 50%}
/* Tournament UI uses native text, SVG details, and independent artwork. */
.companions h2{font-size:clamp(14px,4.4cqw,20px);letter-spacing:-.35px}.event-brand{display:flex;align-items:center;gap:9px;padding:12px 12px 4px;background:#0c0736}.event-wordmark{color:white;text-decoration:none;display:flex;align-items:center;gap:7px;margin-right:auto}.event-wordmark>svg{width:41px;height:41px}.event-wordmark strong{display:block;font-size:25px;font-weight:900;font-style:italic;letter-spacing:-1px}.event-wordmark small{display:block;font-size:10px;margin-top:1px;letter-spacing:1px}.official-label{font-size:11px;border:1px solid #491a80;border-radius:22px;padding:6px 8px;background:#130737;color:#9af5e8;white-space:nowrap}.event-brand>button{border:0;background:none;padding:5px;color:#e0d1ff;min-width:28px;min-height:40px}.event-brand>button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.event-hero{position:relative;overflow:hidden;aspect-ratio:2.35;background:#110944}.event-hero-image{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center}.event-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#100437dd,transparent 80%),linear-gradient(0deg,#120539,transparent 35%)}.event-hero-copy{position:absolute;z-index:1;left:5%;top:33%}.event-hero-copy h2{font-size:clamp(33px,11cqw,51px);line-height:1.1;font-style:italic;margin:0;letter-spacing:-1px;font-weight:950}.event-hero-copy h2 span{color:#ff63df}.event-hero-copy p{font-size:clamp(15px,4.5cqw,21px);font-weight:800;font-style:italic;margin:10px 0 0}.tournament-card{position:relative;isolation:isolate;margin:12px 2.2% 14px;overflow:hidden;border:1px solid #b897ff;border-radius:18px;padding:28px 14px 14px;background:#150640;box-shadow:inset 0 0 17px #6c27de,0 0 12px #8814ed88}.tournament-card>.event-poster{position:absolute;z-index:-2;right:0;top:65px;width:100%;height:290px;object-fit:cover;object-position:60% 50%;opacity:.9}.tournament-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#140637f7 0%,#170642ad 46%,transparent 86%),linear-gradient(0deg,#130533 24%,#18063b00 68%)}.tournament-status{position:absolute;top:0;right:0;font-size:12px;font-weight:700;padding:6px 13px;background:linear-gradient(100deg,#b623e9,#f017a4);border-bottom-left-radius:18px}.tournament-heading{display:flex;align-items:center;gap:12px;margin-bottom:22px}.tournament-emblem{display:grid;justify-items:center;color:#f3d170;min-width:63px}.tournament-emblem svg{width:36px;height:36px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.tournament-emblem>span{font-weight:900;font-size:14px}.tournament-heading h3{font-size:clamp(17px,5.3cqw,25px);font-style:italic;font-weight:900;margin:0;white-space:nowrap}.tournament-heading p{margin:7px 0 0;font-size:15px;color:#e5d8fc}.tournament-facts{display:grid;gap:17px;margin:0 0 24px}.tournament-facts>div{display:flex;align-items:center;gap:10px}.tournament-facts>div>span{font-size:28px;color:#d4b0ff;min-width:25px}.tournament-facts dt{font-size:14px;color:#e8d9ff;margin-bottom:3px}.tournament-facts dd{font-size:clamp(11px,3.1cqw,15px);margin:0;color:white;font-weight:500}.tournament-lower{display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:10px;align-items:end}.tournament-rules h4{display:inline-block;border:1px solid #a862f0;box-shadow:inset 0 0 8px #bd53ff;border-radius:30px;background:#6e15c1;font-size:15px;margin:0 0 10px;padding:6px 13px}.tournament-rules ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}.tournament-rules li{font-size:12px;line-height:1.7;display:flex;gap:6px}.tournament-rules li:before{content:'✓';color:#fff;background:#8115ec;width:16px;height:16px;line-height:16px;border-radius:50%;flex-shrink:0;text-align:center;margin-top:2px}.tournament-card .event-qr{position:static;width:100%;height:auto;padding:6px;gap:6px;border-radius:14px}.tournament-card .event-qr img{height:auto;aspect-ratio:1;flex:none;width:100%;object-fit:contain;border-width:3px;image-rendering:pixelated}.tournament-card .event-qr span{font-size:12px;padding:5px 0}.tournament-signup{width:94%;display:block;margin:18px auto 0;min-height:47px;border:1px solid #ed75fa;border-radius:40px;background:linear-gradient(105deg,#ff168e,#d509ed 55%,#20c5fc);font-size:25px;font-weight:900;font-style:italic;box-shadow:0 0 13px #a111fd55}.tournament-signup span{font-style:normal;margin-left:8px}.event-more{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;margin:0 2.2% 14px;border-radius:16px;border:1px solid #843bdb;background:radial-gradient(at right,#7133bc,transparent 70%),linear-gradient(110deg,#3d077b,#15053a);box-shadow:inset 0 0 12px #981cda}.event-more h3{font-size:clamp(18px,5.4cqw,25px);margin:0 0 5px;font-weight:900}.event-more p{font-size:clamp(11px,3cqw,14px);margin:0}.event-more>svg{width:52px;height:52px;flex-shrink:0;stroke:#ffe295;stroke-width:1.5;fill:#a0622933;stroke-linejoin:round;stroke-linecap:round}@media(max-width:360px){.event-brand{gap:4px;padding-left:8px;padding-right:8px}.event-wordmark strong{font-size:21px}.event-wordmark>svg{width:34px}.official-label{padding:5px;font-size:10px}.tournament-card{padding:28px 10px 12px}.tournament-lower{grid-template-columns:minmax(0,1fr) 100px;gap:6px}.tournament-rules li{font-size:11px}.tournament-card .event-qr span{font-size:10px}.tournament-heading{gap:7px}.tournament-emblem{min-width:55px}}
.app.playmate-mode{max-width:1080px;padding-bottom:0;background:#100b23}.playmate-mode + .nav{display:none}.playmates-page{padding:20px 24px 32px;min-height:100dvh}.playmates-header{display:flex;align-items:center;gap:12px;margin-bottom:20px}.playmates-header .credit-back{display:grid;place-items:center;flex:0 0 40px;height:40px;padding:7px;border:1px solid #79539a70;border-radius:50%;background:#2c1947;color:#eee}.playmates-header h2{font-size:24px;margin:0}.playmates-header p{font-size:12px;color:#b6a5ca;margin:5px 0 0}.demo-label{font-size:10px;color:#c5a8dd;border:1px solid #73528c80;border-radius:5px;padding:3px 6px;white-space:nowrap}.playmates-header>.demo-label{margin-left:auto}.playmates-banner{display:flex;justify-content:space-between;align-items:center;padding:23px 27px;border-radius:18px;border:1px solid #ad59ff60;background:radial-gradient(ellipse at right,#8131a0,transparent 65%),linear-gradient(110deg,#28134b,#3c185f);margin-bottom:20px;overflow:hidden}.playmates-banner span{color:#efb5ec;font-size:12px;letter-spacing:2px}.playmates-banner h3{font-size:27px;margin:9px 0;font-weight:800}.playmates-banner p{font-size:12px;color:#cab1dc;margin:0}.playmates-banner .banner-heart{font-size:85px;color:#f6b2fb;line-height:1}.playmates-search{display:flex;align-items:center;gap:9px;background:#231833;border:1px solid #4e365d;border-radius:12px;padding:0 13px}.playmates-search>span{font-size:27px;color:#bc9ecf}.playmates-search input{width:100%;border:0;outline:0;background:transparent;color:white;font:inherit;font-size:14px;padding:13px 0;min-width:0}.playmates-search:focus-within{border-color:#da8bff}.game-filters{display:flex;gap:9px;overflow-x:auto;padding:18px 0 14px;scrollbar-width:none}.game-filters button,.offer-filters button{border:1px solid transparent;background:#241833;border-radius:8px;white-space:nowrap;padding:9px 14px;font-size:13px;color:#cbb8dd}.game-filters [aria-pressed=true],.offer-filters [aria-pressed=true]{background:#7038b7;color:white;border-color:#aa69e8}.playmates-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:4px 0 13px;border-bottom:1px solid #462b58}.offer-filters{display:flex;gap:7px;margin-right:auto}.offer-filters button{padding:7px 10px;font-size:12px}.playmates-toolbar select{background:#21162f;color:#d7c4e5;border:1px solid #4b335e;border-radius:7px;padding:7px;font-size:12px;max-width:140px}.playmates-result{display:flex;justify-content:space-between;padding:15px 0;color:#a994bd;font-size:12px}.playmates-result input{accent-color:#b45ef0}.playmates-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:18px}.playmate-card::before{background:#21162f;border:1px solid #4c305e;border-radius:14px}.playmate-card-photo{width:100%;padding:0;border:0;position:relative;display:block;background:#493852;overflow:hidden}.playmate-card-photo img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center 30%}.playmate-status{position:absolute;top:9px;left:9px;background:#211331b8;color:#dcffec;border-radius:18px;padding:4px 8px;font-size:11px}.playmate-status.offline{color:#ddd}.playmate-card-game{position:absolute;bottom:0;left:0;right:0;text-align:left;padding:16px 10px 8px;font-size:12px;background:linear-gradient(transparent,#180c29dc)}.playmate-card-body{--card-pad-x:12px;--card-pad-y:12px}.playmate-card h3{font-size:17px;margin:0 0 7px}.playmate-meta{font-size:11px;color:#ad98c0;margin:0 0 9px}.playmate-tags{display:flex;flex-wrap:wrap;gap:5px}.playmate-tags span{font-size:10px;color:#dfb9f5;background:#402251;border-radius:5px;padding:4px 6px}.playmate-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-top:14px}.playmate-card-bottom strong{font-size:23px;color:#ff8cdd}.playmate-card-bottom small{font-size:10px;color:#ba9ccc;font-weight:400}.playmate-card-bottom .pink-button{font-size:12px;min-height:32px;padding:5px 12px}.playmate-offer{font-size:10px;color:#ce9ade;margin:9px 0 0}.playmates-footer{text-align:center;padding:30px 0 0;color:#b9a3c9;font-size:12px}.playmates-footer p{font-size:10px;color:#806d91}.playmate-modal{padding-top:20px}.playmate-modal #playmate-photo{display:block;width:96px;height:110px;object-fit:cover;object-position:center 20%;border-radius:15px;margin:0 auto 13px}.playmate-modal .playmate-tags{justify-content:center}.playmate-modal #playmate-price{color:#ff9ee9;font-size:21px;font-weight:700}.playmate-modal #playmate-notice{font-size:13px;color:#f1c9e7}#playmates-empty{text-align:center;padding:50px 15px;color:#b9a3c9}@media(max-width:620px){.playmates-page{padding:14px 12px 24px}.playmates-header{gap:8px}.playmates-header h2{font-size:21px}.playmates-header p{font-size:10px}.playmates-grid{gap:10px}.playmates-banner{padding:20px 15px;margin-bottom:14px}.playmates-banner h3{font-size:21px}.playmates-banner .banner-heart{font-size:60px}.playmates-toolbar{gap:6px}.offer-filters{width:100%;margin-bottom:3px}.playmate-card-body{--card-pad-x:8px;--card-pad-y:10px}.playmate-card h3{font-size:16px}.playmate-card-bottom strong{font-size:21px}.playmate-card-bottom .pink-button{padding:5px 9px;font-size:11px}.playmate-tags span{padding:4px;font-size:9px}.playmate-meta{font-size:10px}.game-filters button{padding:8px 11px}}@media(max-width:350px){.playmates-header>.demo-label{display:none}.playmate-card-bottom .pink-button{padding:5px 7px}.playmates-banner h3{font-size:18px}}

.companion{display:block;color:inherit;text-decoration:none;text-align:center;cursor:pointer}.companion>*{pointer-events:none}.companion:focus-visible{outline:3px solid #fff;outline-offset:-3px}

/* Each trio lays out its six fields on the same grid tracks, including after text wraps. */
.playmates-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(6,auto);column-gap:inherit;isolation:isolate}
.playmate-card,.playmate-card-body{display:contents}
.playmate-card{--card-column:1}
.playmate-card:nth-child(2){--card-column:2}
.playmate-card:nth-child(3){--card-column:3}
.playmate-card::before{content:"";grid-column:var(--card-column);grid-row:1 / -1;z-index:-1;pointer-events:none}
.playmate-card-photo,.playmate-card-body>*{grid-column:var(--card-column);min-width:0}
.playmate-card-photo{grid-row:1;align-self:start;width:auto;margin:1px 1px 0;border-radius:13px 13px 0 0}
.playmate-card .playmate-card-body>*{align-self:start;margin-inline:calc(1px + var(--card-pad-x))}
.playmate-card-body>h3{grid-row:2;margin-top:var(--card-pad-y)}
.playmate-card-body>.playmate-meta{grid-row:3;word-break:keep-all}
.playmate-card-body>.playmate-tags{grid-row:4}
.playmate-card-body>.playmate-card-bottom{grid-row:5}
.playmate-card-body>.playmate-offer{grid-row:6;margin-bottom:calc(1px + var(--card-pad-y))}
@media(max-width:600px){
 .playmates-grid{gap:8px}
 .playmate-card-body{--card-pad-x:6px;--card-pad-y:8px}
 .playmate-card-body h3{font-size:14px;overflow-wrap:anywhere}
 .playmate-meta{font-size:10px;line-height:1.6}
 .playmate-card .playmate-tags{flex-wrap:wrap;gap:3px}
 .playmate-card .playmate-tags span{font-size:9px;padding:3px}
 .playmate-card-bottom{flex-direction:column;align-items:stretch;gap:6px;margin-top:9px}
 .playmate-card-bottom strong{font-size:19px}
 .playmate-card-bottom .pink-button{width:100%;min-height:32px;padding:4px;font-size:11px}
 .playmate-offer{font-size:10px;line-height:1.5;overflow-wrap:anywhere}
 .playmate-status{font-size:9px;padding:3px 5px;left:4px;top:4px}
 .playmate-card-game{font-size:10px}
}

.doucoin-panel{display:block;padding:9px 8px 10px;background:radial-gradient(ellipse at bottom left,#6915a5aa,transparent 60%),linear-gradient(125deg,#220961,#100935 78%,#0567b1);border-color:#a85bff;box-shadow:inset 0 0 12px #9135eb,2px 2px 7px #16d2ff88;overflow:hidden}
.doucoin-header{display:flex;align-items:center;position:relative;gap:9px;margin-bottom:10px;min-height:64px}
.doucoin-header .douyin{width:64px;height:64px;flex-shrink:0}
.doucoin-header h2{font-size:clamp(20px,5.6cqw,28px);font-style:italic;margin:0 0 5px;font-weight:900;white-space:nowrap}
.doucoin-header p{font-size:clamp(10px,2.8cqw,14px);margin:0;white-space:nowrap;color:#e4d8ff}
.doucoin-discount{position:relative;align-self:stretch;margin:-1px -9px 0 auto;padding:8px 23px 6px 22px;background:linear-gradient(115deg,#ff188d,#b707a8);clip-path:polygon(16% 0,100% 0,100% 100%,0 100%);display:flex;flex-direction:column;justify-content:center;text-align:center;white-space:nowrap}
.doucoin-discount>strong{font-size:clamp(14px,3.8cqw,19px);font-style:italic}.doucoin-discount>span{font-size:clamp(10px,2.7cqw,13px);font-weight:700}.doucoin-discount b{font-size:clamp(18px,5cqw,24px);color:#ffef59;font-style:italic}.doucoin-discount i{position:absolute;right:3px;top:12px;font-size:38px;color:#fff4a4;line-height:1}
.doucoin-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.doucoin-option{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:6px 1px;border:1px solid #7049bc;border-radius:12px;background:linear-gradient(#190e48,#130832);box-shadow:inset 0 0 4px #9672cf44;color:white;cursor:pointer}.coin-stack{font-size:26px;line-height:1.2;filter:drop-shadow(0 1px 3px #ffb00055)}.doucoin-count{font-size:clamp(9px,2.5cqw,12px);white-space:nowrap}.doucoin-count strong{font-size:clamp(18px,5cqw,25px)}.doucoin-price{font-size:clamp(18px,5.1cqw,26px);color:#ff3a9a;letter-spacing:-.7px}.doucoin-option del{font-size:clamp(11px,3cqw,15px);color:#c8bbde}
.doucoin-submit{display:block;width:92%;margin:10px auto 0;border:1px solid #e3a4ff;border-radius:35px;min-height:43px;background:linear-gradient(105deg,#fc239f,#dc12ed 46%,#7130fc 73%,#24bcff);box-shadow:inset 0 0 7px #ffffff55;color:white;font-size:25px;font-weight:850;cursor:pointer}.doucoin-submit span{font-size:33px;vertical-align:-2px;margin-right:6px}.doucoin-option:hover,.doucoin-option:focus-visible{border-color:#ffc8fc;box-shadow:inset 0 0 10px #c53da766}
@media(max-width:360px){.doucoin-header{gap:5px}.doucoin-header .douyin{width:48px;height:48px}.doucoin-discount{padding-left:16px;padding-right:18px}.doucoin-discount i{font-size:29px}.doucoin-options{gap:4px}}

.companion-name{overflow:hidden;text-overflow:ellipsis}

/* Reference proportions: solid lightning, inset pill and compact offer flag. */
.doucoin-panel{padding:9px 11px 10px;border-radius:18px;background:linear-gradient(135deg,#41228555 0%,transparent 25%,transparent 76%,#116dc366 100%),radial-gradient(ellipse at bottom left,#67159399,transparent 58%),linear-gradient(125deg,#1d0b56,#100831 78%,#112568);box-shadow:inset 0 0 5px #b17aff, inset -3px -3px 9px #395ae5,0 0 5px #9132d9}
.doucoin-header{gap:10px;margin-bottom:9px;min-height:64px}
.doucoin-discount{margin:3px -12px 0 auto;padding:7px 34px 7px 24px;align-self:flex-start;min-height:53px;background:linear-gradient(110deg,#ff279f 5%,#e515a2 65%,#9d0e98);clip-path:polygon(20% 0,100% 0,100% 100%,0 100%)}
.doucoin-discount>strong{font-size:clamp(13px,3.4cqw,17px);line-height:1.2}.doucoin-discount>span{font-size:clamp(10px,2.6cqw,13px);line-height:1.3}.doucoin-discount b{font-size:clamp(17px,4.5cqw,23px)}
.doucoin-discount i{right:10px;top:11px;width:18px;height:30px;color:#fff49a;line-height:0}.doucoin-discount svg{width:100%;height:100%;display:block;filter:drop-shadow(0 0 3px #ffeca344)}
.doucoin-options{gap:6px}.doucoin-option{border-color:#6532a0;border-radius:11px;box-shadow:inset 0 0 4px #62429c44;background:linear-gradient(145deg,#1b104b,#110831);padding:6px 1px 5px}
.doucoin-submit{display:flex;align-items:center;justify-content:center;gap:9px;width:90%;min-height:0;height:clamp(39px,9cqw,47px);margin:10px auto 0;padding:0 12px;border:1px solid #edbcff;border-radius:999px;background:linear-gradient(105deg,#ff28a8 0%,#fa10ba 30%,#bc0cff 58%,#5839ff 79%,#35bfff 100%);box-shadow:inset 0 1px 4px #ffe7ff88,inset 0 -2px 4px #964bff77,0 0 4px #ac24ed55;font-size:clamp(19px,4.6cqw,24px);font-weight:800}
.doucoin-submit .recharge-bolt{display:block;flex:0 0 auto;width:19px;height:29px;margin:0;color:#fff;line-height:0}.recharge-bolt svg{display:block;width:100%;height:100%}.doucoin-submit .recharge-label{font-size:inherit;line-height:1;margin:0;vertical-align:baseline}
@media(max-width:360px){.doucoin-header{gap:6px}.doucoin-header .douyin{width:48px;height:48px}.doucoin-discount{padding-left:20px;padding-right:28px}.doucoin-discount i{right:7px;width:16px;height:27px}.doucoin-options{gap:4px}}
/* Raised medallion and stepped neon shoulder from the reference. */
.doucoin-panel{position:relative;isolation:isolate;overflow:visible;margin-top:17px;border-top:0;border-top-left-radius:8px;padding-top:7px;background:linear-gradient(135deg,#29207188,transparent 36%),linear-gradient(125deg,#1c0b51,#100831 78%,#112568)}
.doucoin-panel:before{content:'';position:absolute;z-index:-1;left:-1px;right:-1px;top:-17px;height:100px;clip-path:polygon(0 31%,6% 5%,16% 5%,20% 0,30% 0,34% 12%,48% 12%,51% 27%,100% 27%,100% 100%,0 100%);background:linear-gradient(110deg,#36d7ff 0%,#4649e5 18%,#a871ff 48%,#60219c 75%,#ae4df0);filter:drop-shadow(0 0 4px #625aff)}
.doucoin-panel:after{content:'';position:absolute;z-index:-1;left:3px;right:2px;top:-14px;height:97px;clip-path:polygon(0 31%,6% 5%,16% 5%,20% 0,30% 0,34% 12%,48% 12%,51% 27%,100% 27%,100% 100%,0 100%);background:linear-gradient(120deg,#173474,#272064 25%,#27125c 65%,#180a44)}
.doucoin-header{min-height:77px;gap:12px;margin-bottom:8px;align-items:center}
.doucoin-header .douyin{box-sizing:border-box;width:80px;height:80px;margin-top:-13px;margin-left:2px;padding:4px;border:1px solid #6665e1;background:radial-gradient(circle at 40% 20%,#152557,#08041f 70%);box-shadow:0 0 0 6px #29207788,0 -2px 0 7px #6360df66,0 2px 8px #030018;object-fit:contain}
.doucoin-header>div:not(.doucoin-discount){padding-top:9px}
.doucoin-header h2{font-size:clamp(20px,5.5cqw,27px);margin-bottom:5px;letter-spacing:.5px}
.doucoin-header p{font-size:clamp(10px,2.8cqw,14px);letter-spacing:.2px}
.doucoin-discount{align-self:center;margin-top:7px;padding-left:21px;padding-right:29px;min-height:50px}
@media(max-width:400px){.doucoin-header{gap:8px}.doucoin-header .douyin{width:65px;height:65px;margin-left:0}.doucoin-discount{padding-left:18px;padding-right:23px}.doucoin-discount i{right:5px;width:15px}.doucoin-discount>strong{font-size:12px}.doucoin-discount>span{font-size:9px}.doucoin-discount b{font-size:17px}}
@media(max-width:350px){.doucoin-header{gap:7px}.doucoin-header .douyin{width:54px;height:54px}.doucoin-header h2{font-size:18px}.doucoin-header p{font-size:9px}.doucoin-discount{padding-left:15px;padding-right:20px}}

.home-hero{position:relative;background:#09072e;overflow:hidden}.home-brand-strip{position:relative;aspect-ratio:590/76;overflow:hidden;z-index:1}.home-brand-strip>img{position:absolute;width:100%;height:auto;left:0;top:0}.home-hero-scene{position:relative;aspect-ratio:590/264;background:url('/assets/event-hero-hd.73ea5a545b598c9f1c3c25b31f8b57fb8be86afb1aaf3910cca8c9c18f6f6a0f.webp') center 38%/cover no-repeat}.home-hero-scene:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0b073929,transparent 75%)}.home-hero-copy{position:relative;padding:8% 0 7% 5%;z-index:1}.home-hero-copy h2{font-size:clamp(31px,9.2cqw,46px);font-weight:950;font-style:italic;letter-spacing:-1px;line-height:1.15;margin:0;text-shadow:0 2px 7px #0c083e99}.home-hero-copy h2>span{color:#24eeed}.home-hero-copy h2 .hero-and{color:white}.hero-benefit-ribbon{display:inline-flex;align-items:center;gap:12px;font-style:italic;font-size:clamp(14px,4cqw,20px);font-weight:800;margin-top:12px;padding:5px 10px 5px 13px;clip-path:polygon(3% 0,100% 0,96% 100%,0 100%);background:linear-gradient(105deg,#d82bdf,#6120b8 78%,#17104e 78%);transform:rotate(-3deg);box-shadow:inset 0 1px 2px #c669ff}.hero-benefit-ribbon b{font-size:19px;letter-spacing:-4px;color:#ffec45;margin-right:4px}.home-hero+.doucoin-panel{margin-top:0}

/* One continuous hero image; all header controls are foreground elements. */
.home-hero{background:#0a0632 url('/assets/event-hero-hd.73ea5a545b598c9f1c3c25b31f8b57fb8be86afb1aaf3910cca8c9c18f6f6a0f.webp') center center/cover no-repeat}
.home-hero .home-brand{position:relative;z-index:2;background:transparent;padding:12px 12px 8px;min-height:66px;gap:8px}
.home-brand .event-wordmark strong{font-size:clamp(21px,5.7cqw,28px)}
.home-brand .event-wordmark small{font-size:clamp(8px,2.1cqw,11px);letter-spacing:.5px}
.home-brand .event-wordmark>svg{width:39px;height:39px}
.home-brand .official-label{background:#10073480;font-size:10px;padding:5px 7px}
.home-brand>button{min-width:25px;padding:3px;min-height:36px}
.home-brand>button svg{width:21px;height:21px}
.home-hero-scene{background:none;aspect-ratio:590/264}
.home-hero-scene:before{background:none}
@media(max-width:350px){.home-hero .home-brand{gap:3px;padding:10px 7px 6px}.home-brand .event-wordmark>svg{width:32px;height:32px}.home-brand .official-label{font-size:9px;padding:5px}.home-brand>button svg{width:19px;height:19px}}
/* Full-bleed offer art, with the copy layered over a gradual shade. */
.offer-card{position:relative;isolation:isolate;aspect-ratio:1.16;min-height:0;border-radius:15px;box-shadow:inset 0 0 6px #9666ff,0 0 5px #7c2bdd;background:#160746}
.offer-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:69% center;z-index:-2}
.offer-card:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#160449f5 0%,#18064bc9 24%,#18074b4d 52%,transparent 75%)}
.offer-card>div{position:absolute;left:0;right:0;bottom:0;padding:8px 10px 10px;background:none}
.offer-card h2{font-size:clamp(17px,4.7cqw,23px);text-shadow:0 2px 4px #130537;letter-spacing:-.5px}
.offer-card p{font-size:clamp(10px,2.8cqw,14px);margin:4px 0 8px;text-shadow:0 1px 3px #10042c}
.offer-card .pink-button{min-height:29px;padding:3px 17px;font-size:clamp(12px,3.2cqw,16px);background:linear-gradient(100deg,#ff169c,#ed0ebd);border-color:#ff64d7;box-shadow:inset 0 1px 3px #ffb3ef66}
/* Larger inline event QR, with room for the rules on narrow phones. */
.tournament-lower{grid-template-columns:minmax(0,1fr) clamp(138px,35cqw,162px);gap:12px;align-items:center}
.tournament-card .event-qr{padding:7px;gap:7px}
@media(max-width:360px){.tournament-lower{grid-template-columns:minmax(0,1fr) 128px;gap:9px}.tournament-rules li{line-height:1.6}.tournament-card .event-qr{padding:6px}}
/* Events shares the home hero's single continuous image and overlay masthead. */
.events-hero-wrap .event-hero{background:none}
.events-hero-wrap .event-hero-image{display:none}
.events-hero-wrap .event-hero:after{background:linear-gradient(0deg,#12053999,transparent 50%)}

/* Unified esports recharge surface: circular mark and edge-to-edge offer ribbon. */
.doucoin-panel{position:relative;margin:0 2.2% 12px;padding:12px 11px 13px;border:1px solid #ad6df5;border-radius:19px;background:radial-gradient(ellipse at 5% 0%,#6933c966,transparent 50%),radial-gradient(ellipse at 100% 100%,#1078b577,transparent 34%),linear-gradient(120deg,#281059,#10072e 65%,#221052);box-shadow:inset 0 1px 3px #d8b5ff88,inset 0 0 12px #803acf44,0 0 7px #682acb66;filter:none;overflow:hidden}
.doucoin-panel:before,.doucoin-panel:after{display:none}
.doucoin-header{display:grid;grid-template-columns:19% 43% 38%;align-items:center;gap:0;height:clamp(69px,19cqw,88px);min-height:0;margin:0 0 11px;padding:0;border:0}
.doucoin-header .douyin{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover;padding:0;margin:0;border:1px solid #7143b2;background:#090420;box-shadow:0 0 13px #7c29d966}
.doucoin-header>div:not(.doucoin-discount){padding:0 0 0 12px;min-width:0}
.doucoin-header h2{font-size:clamp(19px,5.2cqw,26px);font-weight:950;font-style:italic;line-height:1.2;letter-spacing:0;margin:0 0 6px;white-space:nowrap;text-shadow:0 2px 3px #09031a55}
.doucoin-header p{font-size:clamp(9px,2.6cqw,13px);line-height:1.3;color:#f0e5ff;margin:0;white-space:nowrap}
.doucoin-discount{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;align-self:center;width:calc(100% + 12px);height:clamp(51px,14.7cqw,68px);min-height:0;margin:0 -12px 0 0;padding:5px 21px 5px 21px;border:0;border-radius:0;clip-path:polygon(18% 0,100% 0,100% 100%,0 100%);background:linear-gradient(115deg,#ff169e,#ed0eab 60%,#ae08b0);box-shadow:inset 0 1px 0 #ffa5e477}
.doucoin-discount>strong{font-size:clamp(13px,3.5cqw,18px);font-weight:900;font-style:italic;color:white;line-height:1.3}
.doucoin-discount>span{font-size:clamp(8px,2.3cqw,12px);color:white;white-space:nowrap}
.doucoin-discount b{font-size:clamp(18px,4.6cqw,24px);color:#fff563;font-style:italic}
.doucoin-discount i{position:absolute;width:15px;height:29px;right:6px;top:13px;opacity:1}
@media(max-width:350px){.doucoin-panel{padding-left:9px;padding-right:9px}.doucoin-header>div:not(.doucoin-discount){padding-left:8px}.doucoin-header h2{font-size:18px}.doucoin-header p{font-size:8px}.doucoin-discount{padding-left:18px;padding-right:17px}.doucoin-discount i{width:11px;right:4px;top:11px}}
/* Shared user-supplied hero artwork, with clear space for the left-hand copy. */
.home-hero{background-color:#100832;background-image:linear-gradient(90deg,#100832 0%,#100832 34%,#10083299 46%,transparent 68%),url('/assets/hero-character.b28b9c10c5249ca8762380afb7854a852cf6edb5069fce2082b8d7983fdb74ad.webp');background-size:100% 100%,66% auto;background-position:center,right 20%;background-repeat:no-repeat}
/* Continuous scenic left side, blending into the supplied portrait. */
.home-hero{isolation:isolate;background:#100832 url('/assets/event-hero-1380.700a5548901533ee42051be2e1538554ee19e14ebed3af7b431d0035a3510708.webp') left center/cover no-repeat}
.home-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:url('/assets/hero-character-912.9eda7428795c23f324499f3b9f902deb1d801084600a344da86a8783d90ee74a.webp') right 20%/66% auto no-repeat;mask-image:linear-gradient(90deg,transparent 34%,#000 49%);-webkit-mask-image:linear-gradient(90deg,transparent 34%,#000 49%)}
.home-hero:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#10083266,transparent 66%)}
/* Reference-shaped SVG shell: raised left shoulder and stepped top edge. */
.doucoin-panel{margin-top:-8px!important;padding:26px 12px 14px;border:0;border-radius:0;background:url('/assets/recharge-frame.96394723e5577aaef390da8d0d6d27af1334f0d165f7bfb22ed8137dc5370174.svg') center/100% 100% no-repeat;box-shadow:none;overflow:visible;isolation:isolate}
.doucoin-header{height:clamp(65px,17.5cqw,81px);margin:0 0 12px;grid-template-columns:19% 43% 38%}
.doucoin-header .douyin{margin-top:-12px;border:1px solid #9373e0;box-shadow:0 0 0 5px #241458,0 0 0 6px #6b55a866}
.doucoin-discount{margin-top:4px;align-self:center}
/* Reference refinement: softer continuous shoulder, restrained logo rim. */
.doucoin-panel{background-image:url('/assets/recharge-frame.96394723e5577aaef390da8d0d6d27af1334f0d165f7bfb22ed8137dc5370174.svg');padding:29px 15px 17px}
.doucoin-header{height:clamp(61px,16.5cqw,77px);grid-template-columns:18% 44% 38%;margin-bottom:10px}
.doucoin-header .douyin{margin-top:-13px;border:1px solid #7755ba;box-shadow:0 0 10px #35117666}
.doucoin-header>div:not(.doucoin-discount){padding-left:13px}
.doucoin-header h2{font-size:clamp(19px,5cqw,25px)}
.doucoin-discount{width:calc(100% + 12px);margin-top:0;margin-right:-12px;height:clamp(50px,14cqw,65px);border-radius:0 12px 0 0}

/* Direct shop catalogue without search or category controls. */
.shop-layout{display:block}.shop-header{margin-bottom:18px}.shop-header .shop-balance{margin-left:auto}.shop-card .shop-art{object-fit:cover}.shop-card .shop-art-undefined{object-position:center}
.community-page{background:radial-gradient(ellipse at top right,#260a6755,transparent 50%),#100726;min-height:100vh;padding:20px 14px 35px}.community-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:18px}.community-heading h2{font-size:24px;margin:0}.community-heading>span{font-size:11px;color:#bcadd6}.community-tabs{display:flex;gap:19px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid #7e42bc44;margin-bottom:6px}.community-tabs button{position:relative;background:none;border:0;white-space:nowrap;padding:10px 0 15px;color:#bfaed9;font-weight:700;font-size:15px;min-height:44px}.community-tabs [aria-selected=true]{color:white}.community-tabs [aria-selected=true]:after{content:'';position:absolute;bottom:3px;height:3px;border-radius:3px;background:#ba25ff;left:25%;right:25%;box-shadow:0 0 9px #ba25ff}.community-post{padding:20px 0 12px;border-bottom:1px solid #7433ab55}.community-post header{display:flex;align-items:center;gap:10px}.community-avatar{width:48px;height:48px;object-fit:cover;border-radius:50%;border:2px solid #9862c7}.community-post header>div{flex:1}.community-post strong{font-size:17px}.community-level{font-size:10px;background:#7140be;color:#eadcff;padding:2px 4px;border-radius:3px;margin-left:7px}.community-post small{display:block;color:#a996cb;margin-top:4px;font-size:12px}.community-follow{border:1px solid #953bfa;background:linear-gradient(125deg,#5817f4,#a108f1);border-radius:22px;padding:8px 15px;min-height:38px;font-weight:700}.community-follow[aria-pressed=true]{background:#352047;color:#cbbce1}.community-copy{font-size:17px;line-height:1.6;margin:13px 0}.community-photo{display:block;width:100%;aspect-ratio:1.65;object-fit:cover;object-position:center 30%;border-radius:14px;border:1px solid #8658a655}.community-post footer{display:flex;gap:28px;padding-top:10px}.community-post footer button{background:none;border:0;color:#d0c0e7;font-size:17px;min-height:40px;padding:4px}.community-post footer [aria-pressed=true]{color:#ff67cf}.community-demo,.community-empty{color:#ab94c5;text-align:center;font-size:12px;padding:22px 0}#community-compose{position:fixed;bottom:calc(95px + env(safe-area-inset-bottom));right:max(18px,calc((100vw - 460px)/2 + 18px));width:54px;height:54px;border:1px solid #b654ff;border-radius:50%;background:linear-gradient(135deg,#4826ff,#b000eb);box-shadow:0 0 16px #681bca77;font-size:33px;z-index:5}@media(max-width:350px){.community-page{padding-inline:11px}.community-heading>span{font-size:9px}.community-post strong{font-size:15px}.community-follow{padding-inline:11px}}

.community-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;border-radius:12px;overflow:hidden}.community-gallery .community-photo{aspect-ratio:1;border-radius:5px;width:100%;height:auto;object-fit:cover}.community-gallery[data-count="1"]{grid-template-columns:1fr}.community-gallery[data-count="1"] .community-photo{aspect-ratio:1.65;border-radius:12px}.community-gallery[data-count="2"],.community-gallery[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}


/* Paint through the iPhone safe area; inset controls instead of the whole app. */
:root{--page-chrome:#100832;--safe-top:env(safe-area-inset-top,0px);background-color:var(--page-chrome)}
body{background-color:var(--page-chrome)}
.app{padding-top:0}
.home-hero .home-brand{padding-top:calc(12px + var(--safe-top))}
.shop-page,.credits-page{padding-top:calc(18px + var(--safe-top))}
.community-page{padding-top:calc(20px + var(--safe-top))}
.playmates-page{padding-top:calc(20px + var(--safe-top))}
@media(max-width:700px){
 .shop-page,.credits-page{padding-top:calc(12px + var(--safe-top))}
}
@media(max-width:620px){
 .playmates-page{padding-top:calc(14px + var(--safe-top))}
}
@media(max-width:350px){
 .home-hero .home-brand{padding-top:calc(10px + var(--safe-top))}
}

/* Balance the home hero against the more compact recharge panel. */
#home .home-hero-scene{aspect-ratio:590/325}
#home .doucoin-panel{padding-top:23px;padding-bottom:12px}
#home .doucoin-header{height:clamp(56px,14cqw,65px);margin-bottom:7px}
#home .doucoin-option{padding:4px 1px;gap:0}
#home .coin-stack svg{width:31px;height:24px}
#home .doucoin-count strong{font-size:clamp(18px,4.5cqw,23px)}
#home .doucoin-price{font-size:clamp(18px,4.6cqw,23px)}
#home .doucoin-option del{font-size:clamp(10px,2.6cqw,12px)}
#home .doucoin-submit{margin-top:8px;min-height:40px}

.community-photo[role=button]{cursor:zoom-in}
.community-photo:focus-visible{outline:3px solid #c47cff;outline-offset:3px}
.community-viewer{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:calc(65px + env(safe-area-inset-top)) 52px calc(30px + env(safe-area-inset-bottom));border:0;background:#080611f5;color:white;overflow:auto}
.community-viewer::backdrop{background:#080611}
.community-viewer[open]{display:flex;align-items:center;justify-content:center}
.viewer-image{display:block;max-width:100%;max-height:100%;object-fit:contain;min-height:0}
.community-viewer button{position:fixed;min-width:44px;min-height:44px;border:1px solid #ffffff40;background:#ffffff15;border-radius:50%;font-size:32px;z-index:1}
.viewer-close{top:calc(12px + env(safe-area-inset-top));right:16px}
.viewer-count{position:fixed;top:calc(22px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);margin:0}
.viewer-prev{left:4px;top:50%}.viewer-next{right:4px;top:50%}
.community-viewer button:disabled{opacity:.2}
/* Keep the image preview at its fitted size, including touch gestures. */
.community-viewer{touch-action:none;overscroll-behavior:contain}
.viewer-image{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}

.community-viewer{padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}
.viewer-image{width:100%;height:100%;object-fit:contain}

/* Allow normal page panning, but no native double-tap or pinch zoom.
   Dragging copy is a web gesture; the app should not select its own text. */
html,body{touch-action:pan-x pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}

.viewer-stage{position:relative;width:100%;height:100%;overflow:hidden}
.viewer-stage .viewer-image,.viewer-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;will-change:transform;user-select:none;-webkit-user-drag:none}

/* Compact bottom navigation, plus the device's home-indicator inset. */
.nav{padding:2px 4px calc(2px + env(safe-area-inset-bottom))}
.nav button{min-height:44px;padding:2px 0;gap:1px;font-size:11px;line-height:14px;align-content:center}
.nav svg{width:22px;height:22px}
.app:not(.credit-mode){padding-bottom:calc(49px + env(safe-area-inset-bottom))}

/* Compact floating navigation. */
.nav{width:calc(100% - 24px);max-width:436px;bottom:calc(5px + env(safe-area-inset-bottom));padding:3px 5px;border:1px solid #b67aff55;border-radius:24px;background:linear-gradient(115deg,#29104beF,#130a2ded);box-shadow:0 8px 28px #03000c88,inset 0 1px 0 #ffffff15;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.nav button{position:relative;border-radius:18px}
.nav button>span{white-space:nowrap}
.app:not(.credit-mode){--dock-clearance:calc(72px + env(safe-area-inset-bottom,0px));padding-bottom:var(--dock-clearance)}

/* Translucent frosted glass for the floating navigation. */
.nav{background:linear-gradient(115deg,rgba(58,29,92,.16),rgba(24,12,48,.10));backdrop-filter:blur(28px) saturate(155%);-webkit-backdrop-filter:blur(28px) saturate(155%);border-color:rgba(219,190,255,.28);box-shadow:0 8px 28px #03000c66,inset 0 1px 0 #ffffff26}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.nav{background:rgba(30,13,57,.92)}}
/* A blur behind a fixed dock is redone on every scroll frame. Weak phones get the same tint, opaque. */
html.weak-device .nav{background:linear-gradient(115deg,#180949,#140645);backdrop-filter:none;-webkit-backdrop-filter:none}

.hero-douyin-logo{display:inline-block;width:.95em;height:.95em;object-fit:contain;vertical-align:-.1em;border-radius:50%;margin-right:.02em}

.hero-douyin-logo{border-radius:0;filter:drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55)}

.brand-logo{display:block;width:132px;height:auto;object-fit:contain;mix-blend-mode:screen}
.home-brand .event-wordmark{flex-shrink:0}
.community-heading{align-items:center}
.community-heading .community-brand{margin:0;line-height:0}
@media(max-width:350px){.brand-logo{width:112px}}
.home-brand .event-wordmark:has(.brand-logo),.community-brand{mix-blend-mode:screen}

/* Compact transparent brand aligned closer to the upper-left corner. */
.brand-logo{width:104px;mix-blend-mode:normal}
.home-brand .event-wordmark:has(.brand-logo),.community-brand{mix-blend-mode:normal}
.home-hero .home-brand{padding-left:6px;padding-top:calc(5px + var(--safe-top))}
.community-page{padding-top:calc(6px + var(--safe-top))}
.community-heading .community-brand{margin-left:-8px}
@media(max-width:350px){.brand-logo{width:94px}}
.companion-list,.companion-list .companion{touch-action:pan-x pan-y;scroll-snap-type:none}

.companion-list{overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}

/* Slightly wider wordmark with a subtle upward tilt. */
.brand-logo{transform:rotate(-3deg) scaleX(1.16);transform-origin:left center}

/* Community identity and a compact introduction to the feed. */
.community-heading{position:relative;isolation:isolate;gap:18px;padding:4px 0 13px;margin-bottom:4px}
.community-heading:before{content:"";position:absolute;z-index:-1;inset:-6px -14px 0;background:radial-gradient(ellipse at 75% 45%,#8c34da30,transparent 68%);pointer-events:none}
.community-heading:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#b163e76b,#e899ed40,transparent)}
.community-heading .community-brand{flex-shrink:0}
.community-heading-copy{flex:1;text-align:right;min-width:0}
.community-heading-copy>strong{display:block;font-size:clamp(21px,5.8cqw,28px);font-weight:850;letter-spacing:1px;line-height:1.25;color:#fff3ff}
.community-heading-copy>strong span{color:#e2a8ff}
.community-heading-copy p{margin:7px 0 0;color:#baa9d0;font-size:clamp(9px,2.5cqw,12px);line-height:1.5;white-space:nowrap}
@media(max-width:350px){.community-heading{gap:12px}.community-heading-copy>strong{font-size:20px;letter-spacing:0}.community-heading-copy p{font-size:9px}}

.brand-logo{width:154px;height:auto;transform:rotate(-3deg);mix-blend-mode:normal}
@media(max-width:350px){.brand-logo{width:128px}.community-heading{gap:8px}.community-heading-copy>strong{font-size:18px}.community-heading-copy p{font-size:8px}}

/* Nine recharge tiers, without the removed VIP panel. */
.credit-layout{grid-template-columns:minmax(0,1fr)}
@media(min-width:701px){.points-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Shop products: two per row. */
.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Welfare center */
.benefits-page{background:linear-gradient(#18073f,#25105d 55%,#11072d);min-height:100vh}
.benefits-hero{position:relative;height:280px;padding:8px 16px;background:linear-gradient(90deg,#130831aa,transparent 75%),url('/assets/skin-card-hd.6f7fd220d94695017294f017b1862e725cc3588ed97ca7489927d161ee93b554.webp') center 30%/cover}
.benefits-hero .brand-logo{width:154px}
.benefits-hero h1{position:relative;margin:30px 0 5px;font-size:46px;font-style:italic;text-shadow:0 3px 14px #160245}
.benefits-hero p{display:inline-block;margin:0;padding:4px 14px;border:1px solid #f9b5ff8c;border-radius:30px;background:linear-gradient(90deg,#a821d9bb,#da21a744);font-weight:700;font-style:italic}
.benefits-body{position:relative;margin-top:-23px;padding:0 12px 22px}
.benefits-tabs{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #ac68f6;border-radius:16px;overflow:hidden;background:#371576e8;box-shadow:inset 0 0 18px #8b32cf60}
.benefits-tabs button{border:0;color:#f6eaff;background:transparent;padding:9px 2px;font-size:13px;font-weight:700}
.benefits-tabs button span{display:block;font-size:26px;line-height:30px;color:#e5b9ff}
.benefits-tabs button.active{background:linear-gradient(#b524e9,#9024ca);box-shadow:inset 0 0 9px #f5adff;border-radius:12px}
.benefits-limited{position:relative;isolation:isolate;overflow:hidden;margin-top:12px;border:1px solid #bd7dff;border-radius:16px;min-height:140px;padding:16px;background:radial-gradient(ellipse at 80% 65%,#d351fa,#5625b1 42%,#261365 85%);box-shadow:inset 0 0 13px #ac58ff}
.benefits-limited h2{font-style:italic;font-size:28px;margin:0 0 7px}
.benefits-limited p{display:inline-block;margin:0 0 12px;padding:2px 10px;border-radius:20px;background:#bd35d65e;font-size:15px;font-style:italic}
.benefits-limited small{display:block;color:#ead5ff}
.benefits-limited img{position:absolute;width:140px;height:120px;object-fit:contain;right:0;top:0;z-index:-1}
.benefits-body button[data-action]{border:1px solid #ffb9f5;border-radius:24px;background:linear-gradient(#ff6fd1,#ea0cac);box-shadow:inset 0 0 7px #ffd0f5,0 0 7px #e94be677;color:white;font-weight:700;min-height:30px}
.benefits-limited button{position:absolute;right:12px;bottom:13px;padding:6px 14px}
.benefits-heading{display:flex;align-items:center;justify-content:space-between;margin:15px 0 9px;border-bottom:1px solid #a950df70;padding-bottom:5px}
.benefits-heading h2{font-size:20px;font-style:italic;margin:0}
.benefits-heading>span{font-size:11px;color:#c9acdf}
.benefits-gifts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.benefits-gifts article{text-align:center;padding:9px 5px 7px;border:1px solid #be80e8;border-radius:12px;background:linear-gradient(135deg,#7227b9,#3d197f);box-shadow:inset 0 0 8px #d7a5fa70}
.benefits-gifts article>span{display:block;font-size:33px;line-height:43px;filter:drop-shadow(0 0 7px #d775ef)}
.benefits-gifts h3{font-size:13px;margin:4px 0 7px}
.benefits-gifts button{width:100%;font-size:13px;padding:3px}
.benefits-promo{position:relative;display:flex;align-items:center;gap:10px;min-height:105px;overflow:hidden;border:1px solid #c58afd;border-radius:14px;margin-bottom:10px;padding:10px 10px 10px 110px;background:linear-gradient(120deg,#382ab4,#8220c5);box-shadow:inset 0 0 12px #be6eff88}
.benefits-promo>img{position:absolute;left:0;top:0;width:108px;height:100%;object-fit:cover;mask-image:linear-gradient(90deg,#000 70%,transparent)}
.benefits-promo h2{font-size:25px;font-style:italic;margin:0 0 7px}
.benefits-promo p{font-size:12px;margin:0;color:#ebd9ff}
.benefits-promo button{margin-left:auto;white-space:nowrap;padding:5px 9px;font-size:13px}
.benefits-tag{position:absolute;right:0;top:0;padding:2px 16px;border-radius:0 0 0 12px;background:#ec418e;font-size:11px}
@media(max-width:380px){.benefits-hero{height:250px}.benefits-limited h2{font-size:24px}.benefits-promo{padding-left:83px;gap:5px}.benefits-promo>img{width:85px}.benefits-promo h2{font-size:22px}.benefits-promo p{font-size:10px}.benefits-promo button{font-size:11px;padding:4px 6px}}
.benefits-hero{background-image:linear-gradient(90deg,#130831bb,transparent 85%),url('/assets/credit-card-hd.df30ba91b7f8bfbcb5efb62535ab390fe9aed3b10cab69244b62a847ba3c673d.webp')}
.benefits-body .benefits-tabs button[data-action]{border:0;border-radius:0;background:transparent;box-shadow:none}
/* Reference-aligned welfare artwork and denser composition. */
.benefits-hero{height:245px;background-position:center 35%;padding-top:8px}
.benefits-hero h1{font-size:43px;margin-top:27px;letter-spacing:-2px;text-shadow:0 2px 1px #c2afff,0 0 20px #8c4dfb}
.benefits-hero p{font-size:15px;padding:2px 12px}
.benefits-body{margin-top:-22px;padding:0 10px 20px}
.benefits-tabs{border-radius:12px;background:linear-gradient(110deg,#462580ed,#28115ce8);box-shadow:inset 0 0 8px #bd76ff66}
.benefits-tabs button{padding:6px 2px;font-size:12px}
.benefits-tabs svg{display:block;margin:0 auto 3px;width:26px;height:26px;fill:none;stroke:#e9d3ff;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.benefits-limited{min-height:113px;margin-top:10px;padding:13px;border-radius:12px;background:radial-gradient(ellipse at 88% 80%,#ed59ff9c,transparent 43%),radial-gradient(ellipse at 45% 0,#8243ed,transparent 65%),linear-gradient(125deg,#291264,#6021aa);box-shadow:inset 0 0 8px #e4aaff,0 0 7px #b257df88}
.benefits-limited h2{font-size:26px;position:relative;z-index:1;margin-bottom:4px}
.benefits-limited p{font-size:13px;margin-bottom:8px}
.benefits-limited small{font-size:11px}
.reward-icon{display:block;background-image:url('/assets/rewards-atlas-v70.c9735d9e30fb48e4ef6b49df58ddef54af4f2d0c8ff94f6c5c375437ff526dcc.png');background-size:300% 200%;background-repeat:no-repeat}
.reward-0{background-position:0 0}.reward-1{background-position:50% 0}.reward-2{background-position:100% 0}.reward-3{background-position:0 100%}.reward-4{background-position:50% 100%}
.benefits-limited .limited-reward{position:absolute;right:-2px;top:-4px;width:158px;height:105px;z-index:0}
.benefits-limited button{z-index:2;font-size:13px;padding:4px 13px;bottom:9px}
.benefits-heading{margin:10px 0 6px;padding:2px 7px 4px;background:linear-gradient(100deg,#6931ab99,transparent 80%);border-radius:18px 0 0 18px}
.benefits-heading h2{font-size:18px}
.benefits-gifts{gap:5px}
.benefits-gifts article{padding:3px 5px 6px;border-radius:10px;background:radial-gradient(ellipse at 50% 10%,#a349db77,transparent 70%),linear-gradient(135deg,#5c2b9a,#33156b);box-shadow:inset 0 0 6px #ddb2ff99}
.benefits-gifts article>.reward-icon{width:100%;height:auto;aspect-ratio:1.5;filter:drop-shadow(0 0 5px #be63ee)}
.benefits-gifts h3{margin:0 0 4px;font-size:12px}
.benefits-gifts button{min-height:23px!important;padding:0;font-size:12px}
.benefits-promo{min-height:83px;margin-bottom:8px;border-radius:12px;padding:8px 8px 8px 112px;background:radial-gradient(ellipse at 70% 0,#b151f0aa,transparent 70%),linear-gradient(120deg,#1d216e,#4824b3 70%,#9629ba);box-shadow:inset 0 0 7px #d7a9ff}
.benefits-promo>img{width:122px;object-position:65% 24%;mask-image:linear-gradient(90deg,#000 65%,transparent)}
.benefits-promo h2{font-size:23px;margin-bottom:4px}
.benefits-promo p{font-size:10px}
.benefits-promo button{font-size:11px;padding:3px 9px;min-height:27px!important}
.reward-icon{mask-image:radial-gradient(ellipse at center,#000 38%,transparent 73%)}
.benefits-gifts article>.reward-icon{aspect-ratio:1}
/* Keep the welfare hero's head and headset inside the visible banner. */
.benefits-hero{height:auto;min-height:245px;aspect-ratio:1.65;background-position:center top;background-size:cover}
.welfare-page{min-height:100vh;background:radial-gradient(ellipse at 60% 35%,#3e0872,transparent 60%),#100424}
.welfare-hero{position:relative;aspect-ratio:2.25;min-height:195px;overflow:hidden;background:linear-gradient(90deg,#16053988 5%,transparent 90%),url('/assets/hero-character.b28b9c10c5249ca8762380afb7854a852cf6edb5069fce2082b8d7983fdb74ad.webp') right 25%/65% auto no-repeat,#190637;border-bottom:2px solid #d56cff;box-shadow:0 7px 22px #ad16fd88}
.welfare-hero:after{content:"";position:absolute;inset:65% -10% -30%;border-top:3px solid #f0c1ff;border-radius:50%;transform:rotate(-7deg);box-shadow:0 -7px 18px #b62cff,0 -18px 35px #9f23e8;pointer-events:none}
.welfare-back{position:absolute;left:12px;top:5px;color:white;background:none;border:0;font-size:35px;z-index:2}
.welfare-title{position:relative;width:64%;padding:35px 0 22px 12px;text-align:center;z-index:1}
.welfare-crown{display:block;color:#ffe28a;font-size:29px;line-height:27px;text-shadow:0 0 12px #fb8e32}
.welfare-title h1{font-size:clamp(32px,8vw,45px);margin:0;font-style:italic;white-space:nowrap;text-shadow:0 2px 2px #c566fa,0 0 14px #cf43ff}
.welfare-title p{margin:7px 0 0;padding:4px 3px;border:1px solid #d46bff;border-radius:20px;white-space:nowrap;font-size:clamp(10px,2.5vw,13px);background:#220644c4;box-shadow:0 0 9px #bc24ff}
.welfare-content{padding:0 12px 22px}
.welfare-heading{display:flex;justify-content:space-between;align-items:center;padding:13px 5px 10px}
.welfare-heading h2{font-size:23px;font-style:italic;margin:0;text-shadow:0 0 14px #b959fa}
.welfare-heading h2:before{content:"♨";margin-right:9px;color:#f2b1ff}
.welfare-heading button{border:0;background:none;color:#efe0ff;font-size:13px}
.welfare-event{position:relative;isolation:isolate;display:flex;align-items:center;min-height:118px;aspect-ratio:4/1;margin-bottom:10px;border:2px solid #f5d190;border-radius:18px;overflow:hidden;background:repeating-linear-gradient(145deg,transparent 0 30px,#b345e62e 32px,transparent 36px),radial-gradient(ellipse at 90% 100%,#cb43ef,transparent 65%),linear-gradient(110deg,#2a0d4d,#451075 65%,#601bac);box-shadow:inset 0 0 9px #f4bcff,0 0 10px #b324ff}
.welfare-event:after{content:"";position:absolute;inset:65% -20% -70%;border-top:3px solid #edb5ff;border-radius:50%;transform:rotate(-14deg);box-shadow:0 -4px 12px #b04fff;z-index:-1}
.welfare-event>img{position:absolute;left:0;top:0;width:35%;height:100%;object-fit:cover;object-position:center 20%;mask-image:linear-gradient(90deg,#000 65%,transparent);z-index:-1}
.welfare-event-copy{margin-left:30%;width:43%;text-align:center;padding:7px 0}
.welfare-event-copy h2{font-size:clamp(21px,5vw,28px);font-style:italic;margin:0;line-height:1.12;text-shadow:0 2px 5px #30034e}
.welfare-event-copy strong{color:#ffdf78;font-size:1.15em}
.welfare-event-copy p{font-size:9px;white-space:nowrap;margin:5px -12px 0;border:1px solid #bd65e7;border-radius:12px;background:#350767aa;padding:2px}
.welfare-event>button{margin:0 6px 0 auto;white-space:nowrap;border:1px solid #fff4c1;border-radius:25px;background:linear-gradient(#fff7b2,#ffd46a 55%,#ffab4c);color:#3c1042;font-weight:800;font-size:12px;padding:8px 9px;box-shadow:0 0 10px #ffd176}
.welfare-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:17px}
.welfare-shortcuts>button{display:flex;flex-direction:column;align-items:center;padding:17px 2px 12px;color:white;border:1px solid #e690ff;border-radius:18px;background:radial-gradient(ellipse at 100% 100%,#b529df,transparent 55%),linear-gradient(135deg,#58129b,#260750);box-shadow:inset 0 0 12px #b754e9,0 0 7px #9e24cf}
.welfare-shortcuts strong{font-size:19px;font-style:italic}.welfare-shortcuts span{font-size:10px;white-space:nowrap;margin:7px 0}.welfare-shortcuts i{font-size:23px;line-height:19px;width:28px;border:1px solid #f3b5ff;border-radius:15px;background:#ad21da;font-style:normal;box-shadow:0 0 8px #b539f5}

#modal.reward-rules-modal{max-height:85dvh;overflow-y:auto}#modal.reward-rules-modal #modal-text{text-align:left;line-height:1.8;font-size:14px;color:#f0e4ff}#modal.reward-rules-modal h2{font-size:23px;color:#ffe29b}
.welfare-art{position:relative;width:100%}.welfare-art>img{display:block;width:100%;height:auto}.welfare-hotspot{position:absolute;border:0;background:transparent;border-radius:25px;cursor:pointer}.welfare-hotspot:focus-visible{outline:3px solid white;box-shadow:0 0 16px #ef88ff}.welfare-hotspot:active{background:#ffffff20}.welfare-more{left:80%;top:42%;width:18%;height:7%}.welfare-king{left:73%;top:57%;width:23%;height:9%}.welfare-candy{left:73%;top:81%;width:23%;height:10%}.welfare-shortcuts{margin-top:9px}.welfare-page{background:#110328}

#modal.illustrated-rules{width:min(96vw,720px);max-width:96vw;padding:45px 8px 12px;background:#1a0637}
#modal.illustrated-rules .modal-icon,#modal.illustrated-rules #modal-title{display:none}
#modal.illustrated-rules #modal-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.rule-reference{position:relative;overflow:hidden;width:100%;aspect-ratio:690/360;border-radius:12px}
.rule-reference img{position:absolute;width:104.347826%;max-width:none;height:auto;left:-2.173913%;top:-81.388889%}
.rule-reference.candy{aspect-ratio:690/329}
.rule-reference.candy img{top:-202.735562%}

.welfare-header-only{aspect-ratio:2/1;overflow:hidden}
.welfare-header-only .welfare-more{top:84%;height:14%}
.welfare-rule-panels{position:relative;width:96%;margin:0 auto}
.welfare-rule-panels>img{display:block;width:100%;height:auto}
.rule-king{left:70%;top:43%;width:27%;height:8%}
.rule-candy{left:70%;top:90%;width:27%;height:8%}
.rule-reference.rules-v77{aspect-ratio:1188/642}
.rule-reference.rules-v77 img{width:100%;left:0;top:0}
.rule-reference.rules-v77.candy{aspect-ratio:1188/586}
.rule-reference.rules-v77.candy img{top:-109.556314%}
.app.live-mode{display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;max-height:100vh;max-height:100dvh;padding:0;overflow:clip;background:#000}
.live-page{padding:env(safe-area-inset-top) 0 0;background:#000;color:#fff;min-height:0}
.app.live-mode .live-page:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
.live-stage{position:relative;z-index:1;display:flex;flex-direction:column;flex:1;min-height:0;background:#000;overflow:clip}
.live-picture{position:relative;flex:none;display:flex;flex-direction:column;background:#000}
.live-head{position:absolute;z-index:5;top:28px;left:8px;right:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;color:#fff;pointer-events:none;transform:translateZ(0)}
.live-head:not(:has(#live-host:not(:empty))){display:none}
.live-stage.rail-open .live-head{right:136px}
.live-host-chip{display:flex;align-items:center;gap:5px;min-width:0;max-width:calc(100% - 96px);padding:2px 8px 2px 2px;border-radius:999px;background:transparent;color:#fff}
#live-avatar{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;overflow:hidden;flex:none;background:#3a3a3c;color:#fff;font-size:11px;font-weight:700}
#live-avatar img{width:100%;height:100%;object-fit:cover;display:block}
#live-avatar[hidden]{display:none}
#live-host{min-width:0;margin:0;overflow:hidden;color:#fff;font-size:12px;font-weight:650;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.live-more-events{pointer-events:auto;border:0;font-family:inherit;flex:none;display:inline-flex;align-items:center;gap:1px;height:26px;padding:0 7px 0 9px;border-radius:999px;background:transparent;color:#fff;font-size:12px;font-weight:650;line-height:1}
.live-more-events[hidden]{display:none}
.live-more-events svg{width:14px;height:14px;display:block;flex:none}
.live-frame{position:relative;width:100%;overflow:hidden;background:#000;aspect-ratio:16/9;max-height:40dvh;contain:paint}
.live-stage.has-tiles .live-frame{aspect-ratio:3/4;max-height:70dvh}
.live-stage.has-audio-seats .live-frame{aspect-ratio:var(--audio-stage-ratio);max-height:none}
html:not(.live-typing,.live-mini,.live-pip) .live-stage.has-audio-seats:not(.is-offline) > .live-picture{
  flex:0 0 40%;
  container-type:size;
  align-items:center;
  justify-content:center;
}
html:not(.live-typing,.live-mini,.live-pip) .live-stage.has-audio-seats:not(.is-offline) .live-frame{
  width:min(100cqw,calc(100cqh * var(--audio-stage-ratio)));
  height:auto;
  flex:none;
}
.audio-seat-frame > #live-player{inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important}
.audio-seat-frame .live-seat-face{top:40%;width:28%;border-radius:12%}
.audio-seat-frame .live-seat-host .live-seat-face{top:0;width:100%;border-radius:0}
.audio-seat-frame .live-seat-name{top:59%}
.live-stage.has-tiles .live-head{z-index:6}
.live-stage.has-tiles .live-mini-toggle{top:auto;bottom:8px;right:8px}
.live-stage.has-audio-seats:not(.is-offline) .live-mini-toggle{
  --picture-width:min(100cqw,calc(100cqh * var(--audio-stage-ratio)));
  --picture-height:min(100cqh,calc(100cqw / var(--audio-stage-ratio)));
  left:min(calc((100% + var(--picture-width)) / 2 + 4px),calc(100% - 48px));
  right:auto;
  bottom:calc((100% - var(--picture-height)) / 2 + 4px);
}
.live-stage.has-audio-seats.rail-open .live-mini-toggle{left:auto;right:136px}
.live-screen{position:absolute;inset:0;z-index:1}
.live-screen[hidden]{display:none}
.live-stage.is-portrait .live-picture{flex:1;min-height:0}
.live-stage.is-portrait .live-frame{position:absolute;top:0;left:0;right:0;width:100%;height:auto;max-height:none}
.live-stage.is-portrait .live-chat,.live-stage.chat-over .live-chat{position:absolute;z-index:4;left:0;right:0;bottom:0;height:60%;border-top:0;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.22) 22%,rgba(0,0,0,.48) 100%)}
.live-stage.chat-over .live-frame{max-height:none}
.live-stage.is-portrait .live-chat-row b,.live-stage.is-portrait .live-chat-time,.live-stage.chat-over .live-chat-row b,.live-stage.chat-over .live-chat-time{color:#fff;font-weight:650;text-shadow:0 1px 2px #000,0 0 3px #000}
.live-stage.is-portrait .live-chat-row p,.live-stage.chat-over .live-chat-row p{text-shadow:0 1px 2px #000,0 0 3px #000}
.live-stage.is-portrait .live-chat-form input[type=text],.live-stage.chat-over .live-chat-form input[type=text]{background:rgba(28,28,30,.55)}
/* A chat that lies on the picture tucks away, but its box stays so the next tap can open it. */
.live-stage:is(.is-portrait,.chat-over).chat-hidden:not(.is-offline) .live-chat{background:none}
.live-stage:is(.is-portrait,.chat-over).chat-hidden:not(.is-offline) .live-chat::before{content:"";position:absolute;z-index:6;inset:0;pointer-events:auto}
.live-stage:is(.is-portrait,.chat-over).chat-hidden:not(.is-offline) .live-chat *{visibility:hidden;pointer-events:none}
.live-stage.is-offline .live-picture,.live-stage.is-offline.is-portrait .live-picture{flex:0 0 88px !important;height:88px !important;max-height:88px !important;min-height:0 !important}
.live-stage.is-offline .live-frame,.live-stage.is-offline.is-portrait .live-frame{position:relative !important;top:auto !important;left:auto !important;right:auto !important;width:100% !important;height:88px !important;max-height:88px !important;min-height:0 !important;aspect-ratio:auto !important}
.live-stage.is-offline .live-chat,.live-stage.is-offline.is-portrait .live-chat{position:relative !important;inset:auto !important;z-index:auto;flex:1 1 auto !important;height:auto !important;max-height:none !important;min-height:0;background:#000;border-top:1px solid #2a2a2c}
#live-player{position:absolute;top:0;left:0;width:100%;height:100%;max-width:none;object-fit:fill;background:#000;pointer-events:none}
.live-tiles{position:absolute;inset:0;z-index:4;pointer-events:none;transform:translateZ(0)}
.live-tile{position:absolute;z-index:4;object-fit:cover;background:#1c1c1e}
.live-seat{overflow:hidden;background:#2a2a2c}
.live-seat-camera{z-index:1;overflow:hidden;transform:translateZ(0);-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}
.live-seat-camera #live-player{position:absolute;inset:0;width:100%;height:100%}
.live-seat-blur{position:absolute;inset:-12%;width:124%;height:124%;object-fit:cover;filter:blur(16px);opacity:.9}
.live-seat-face{position:absolute;left:50%;top:42%;width:42%;aspect-ratio:1;height:auto;transform:translate(-50%,-50%);object-fit:cover;border-radius:50%}
.live-seat-host .live-seat-blur{display:none}
.live-seat-host .live-seat-face{left:0;top:0;width:100%;height:100%;aspect-ratio:auto;transform:none;border-radius:0}
.live-seat-name{position:absolute;left:4px;right:4px;top:66%;color:#fff;font-size:12px;line-height:1.2;text-align:center;text-shadow:0 1px 2px #000;overflow:hidden;white-space:nowrap}
.live-stage.has-tiles #live-player{z-index:1}
#live-player::-webkit-media-controls{display:none !important}
#live-player::-webkit-media-controls-enclosure{display:none !important}
#live-player::-webkit-media-controls-panel{display:none !important}
#live-player::-webkit-media-controls-play-button{display:none !important}
#live-player::-webkit-media-controls-start-playback-button{display:none !important}
#live-player::-webkit-media-controls-overlay-play-button{display:none !important}
#live-player::-webkit-media-controls-timeline{display:none !important}
#live-player::-webkit-media-controls-current-time-display{display:none !important}
#live-player::-webkit-media-controls-time-remaining-display{display:none !important}
#live-player::-webkit-media-controls-seek-back-button{display:none !important}
#live-player::-webkit-media-controls-seek-forward-button{display:none !important}
#live-player::-webkit-media-controls-rewind-button{display:none !important}
#live-player::-webkit-media-controls-return-to-realtime-button{display:none !important}
#live-player::-webkit-media-controls-fullscreen-button{display:none !important}
#live-player::-webkit-media-controls-mute-button{display:none !important}
#live-player::-webkit-media-controls-volume-slider{display:none !important}
#live-status{position:absolute;inset:0;z-index:2;display:grid;place-items:center;margin:0;padding:0 16px;text-align:center;pointer-events:none}
.live-stage.has-tiles #live-status{z-index:3}
.live-rail-toggle{position:absolute;z-index:3;top:0;right:0;bottom:0;left:0;border:0;background:transparent;color:transparent}
.live-stage.rail-open .live-rail-toggle{right:128px}
.live-rail{position:absolute;z-index:6;top:0;right:0;bottom:0;width:128px;padding:12px 8px calc(var(--composer-size, 48px) + var(--composer-bottom, 8px) + 12px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;background:#000;transform:translateX(100%);transition:transform .2s ease}
.live-rail::-webkit-scrollbar{display:none;width:0;height:0}
.live-stage.rail-open .live-rail{transform:translateX(0)}
.live-card{display:block;width:100%;aspect-ratio:3/4;margin:0 0 10px;padding:0;border:2px solid transparent;border-radius:12px;background:#1c1c1e;position:relative;overflow:hidden}
.live-card-video{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;background:transparent;pointer-events:none}
.live-card-poster{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;pointer-events:none}
.live-card.is-playing .live-card-poster{display:none}
.live-card-label{position:absolute;z-index:2;left:0;right:0;bottom:0;display:flex;align-items:center;gap:4px;padding:18px 6px 6px;background:linear-gradient(transparent,#000d)}
.live-card-avatar{width:18px;height:18px;border-radius:50%;object-fit:cover;flex:none;background:#3a3a3c;display:grid;place-items:center;font-size:10px;font-weight:700}
.live-card-label b{font-size:11px;font-weight:600;line-height:1.25;text-align:left;text-shadow:0 1px 4px #000}
.live-chat{flex:1;min-height:0;display:flex;flex-direction:column;background:#000;color:#fff;border-top:1px solid #2a2a2c;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.live-stage.rail-open .live-chat{padding-right:128px}
.live-chat-log{flex:1;min-height:0;overflow:auto;overflow-anchor:none;padding:10px 12px 8px;display:flex;flex-direction:column;gap:10px;scrollbar-width:none}
#live-chat-messages{display:flex;flex:none;flex-direction:column;gap:inherit;margin-top:auto}
#live-chat-messages:has(>.live-chat-empty:only-child){margin-bottom:auto}
.live-chat-log::-webkit-scrollbar{display:none;width:0;height:0}
.live-chat-empty{margin:auto;color:#8e8e93;font-size:13px;text-align:center}
.live-chat-row{display:flex;gap:8px;align-items:flex-start}
.live-chat-row>div{flex:1;min-width:0}
.live-chat-row.is-mine{flex-direction:row-reverse}
.live-chat-row.is-mine>div{display:flex;flex-direction:column;align-items:flex-end}
.live-chat-row.is-mine .live-chat-meta{align-self:stretch;flex-direction:row-reverse}
.live-chat-row.is-mine p{text-align:right}
.live-chat-face{width:36px;height:36px;border-radius:50%;background:#3a3a3c;display:grid;place-items:center;overflow:hidden;flex:none;font-size:15px;font-weight:700}
.live-chat-face img{width:100%;height:100%;object-fit:cover}
.live-chat-row .live-chat-meta{display:flex;align-items:center;gap:6px;min-width:0;min-height:36px;margin:0}
.live-chat-row b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#8e8e93;font-weight:600}
.live-chat-time{flex:none;color:#636366;font-size:11px;font-weight:400}
.live-chat-row p{margin:2px 0 0;font-size:14px;line-height:1.45;word-break:break-word}
.live-chat-row mark{background:transparent;color:#7ec8ff;font-weight:700}
.live-chat-photo{display:block;width:auto;max-width:min(220px,100%);max-height:180px;border-radius:8px;margin-top:4px;cursor:zoom-in;object-fit:contain}
.live-chat-pending{position:relative;display:inline-block;max-width:100%;min-width:120px;min-height:90px}
.live-chat-pending .live-chat-photo{opacity:1}
.live-chat-spinner{position:absolute;z-index:1;left:50%;top:50%;width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;background:rgba(0,0,0,.5);box-shadow:0 0 0 10px rgba(0,0,0,.28);border:3px solid rgba(255,255,255,.4);border-top-color:#fff;animation:live-chat-spin .7s linear infinite}
.live-chat-row.is-failed .live-chat-photo{opacity:.4}
@keyframes live-chat-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.live-chat-spinner{animation:none;border-top-color:rgba(255,255,255,.35)}}
.live-chat-voice{position:relative;display:flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin-top:4px}
.live-chat-voice audio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.live-chat-voice-play{display:flex;align-items:center;gap:8px;height:36px;min-width:74px;width:calc(74px + var(--voice-span, 0) * 128px);max-width:min(220px,100%);padding:0 12px 0 10px;border:0;border-radius:4px;background:#fff;color:#111;position:relative}
.live-chat-voice-play::before{content:"";position:absolute;left:-5px;top:12px;border-width:5px 6px 5px 0;border-style:solid;border-color:transparent #fff transparent transparent}
.live-chat-voice.is-mine{flex-direction:row-reverse}
.live-chat-voice.is-mine .live-chat-voice-play{flex-direction:row-reverse;background:#95ec69;padding:0 10px 0 12px}
.live-chat-voice.is-mine .live-chat-voice-play::before{left:auto;right:-5px;border-width:5px 0 5px 6px;border-color:transparent transparent transparent #95ec69}
.live-chat-voice-icon{flex:none;width:18px;height:18px;display:block}
.live-chat-voice-icon svg{display:block;width:100%;height:100%}
.live-chat-voice-icon circle{fill:currentColor}
.live-chat-voice-icon path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.live-chat-voice.is-mine .live-chat-voice-icon{transform:scaleX(-1)}
.live-chat-voice-length{margin-left:auto;font-size:15px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}
.live-chat-voice.is-mine .live-chat-voice-length{margin-left:0;margin-right:auto}
.live-chat-voice-play.is-playing .wave-2{animation:live-voice-wave-2 1.2s linear infinite}
.live-chat-voice-play.is-playing .wave-3{animation:live-voice-wave-3 1.2s linear infinite}
@keyframes live-voice-wave-2{0%{opacity:0}33%,100%{opacity:1}}
@keyframes live-voice-wave-3{0%,65%{opacity:0}66%,100%{opacity:1}}
@media (prefers-reduced-motion:reduce){.live-chat-voice-play.is-playing .wave-2,.live-chat-voice-play.is-playing .wave-3{animation:none;opacity:1}}
.live-chat-unread{flex:none;width:8px;height:8px;border-radius:50%;background:#ff453a}
.live-chat-unread[hidden]{display:none}
.live-photo-viewer{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));border:0;background:#000000d0}
.live-photo-viewer::backdrop{background:#000}
.live-photo-viewer[open]{display:flex;align-items:center;justify-content:center}
.live-photo-viewer img{display:block;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-out}
.live-chat-error{min-height:0;margin:0;padding:0 12px;color:#ffb4c8;font-size:12px}
.live-chat-error:empty{display:none}
.live-chat-note,.live-chat-login{margin:0;padding:12px;text-align:center;color:#8e8e93;font-size:13px}
.live-chat-login a{color:#7ec8ff}
.live-chat-form{position:relative;display:flex;gap:8px;align-items:center;padding:8px 10px}
.live-chat-form[hidden],.live-chat-suggest[hidden],.live-chat-login[hidden],.live-chat-note[hidden]{display:none}
.live-chat-form input[type=text]{flex:1;min-width:0;height:40px;border:0;border-radius:20px;background:#1c1c1e;color:#fff;padding:0 14px;font:inherit}
.live-chat-form input[type=text]::placeholder{color:#8e8e93}
.live-chat-form button{flex:none;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#2c2c2e;color:#fff;display:grid;place-items:center}
.live-chat-form button svg{width:22px;height:22px;display:block}
.live-chat-field{position:relative;flex:1;min-width:0;display:flex}
.live-chat-form.is-voice .live-chat-field{display:none}
.live-chat-form input[type=text]{padding-right:40px}
#live-chat-emoji{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;background:transparent;color:#8e8e93}
.live-chat-form.is-emoji #live-chat-emoji .face-icon,.live-chat-form:not(.is-emoji) #live-chat-emoji .board-key{display:none}
.live-chat-board{flex:none;height:252px;display:flex;flex-direction:column;background:#1c1c1e;border-top:1px solid #2a2a2c}
.live-chat-board[hidden]{display:none !important}
.live-chat-board-cats{display:none}
.live-chat-board-grid{flex:1;min-height:0;overflow:auto;display:block;padding:4px 8px 8px;scrollbar-width:none}
.live-chat-board-grid::-webkit-scrollbar{display:none}
.live-chat-board-title{margin:10px 6px 2px;color:#8e8e93;font-size:12px;line-height:1.2}
.live-chat-board-section{display:grid;grid-template-columns:repeat(8,1fr);align-content:start;gap:2px}
.live-chat-board-section button{height:40px;border:0;border-radius:8px;background:transparent;font-size:28px;line-height:1}
.live-chat-board.is-sticker .live-chat-board-section{grid-template-columns:repeat(4,1fr)}
.live-chat-board.is-sticker .live-chat-board-section button{height:72px;font-size:42px}
.live-chat-board-tabs{display:flex;align-items:center;gap:8px;padding:6px 10px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #2a2a2c}
.live-chat-board-tabs button{height:32px;border:0;border-radius:8px;background:transparent;color:#8e8e93;padding:0 12px}
.live-chat-board-tabs button[aria-selected=true]{background:#3a3a3c;color:#fff}
#live-chat-board-delete{margin-left:auto;width:40px;padding:0;font-size:18px}
#live-chat-board-send{min-width:64px;padding:0 12px;border-radius:6px;background:#3a3a3c;color:#8e8e93;font-size:15px;font-weight:650}
#live-chat-board-send.is-ready{background:#07c160;color:#fff}
.live-chat-board.is-sticker #live-chat-board-delete,.live-chat-board.is-sticker #live-chat-board-send:not(.is-ready){display:none}
.live-chat-sticker{font-size:48px;line-height:1.15}
.live-chat-form.is-voice #live-chat-text{display:none}
.live-chat-form.is-voice #live-chat-mic .mic-icon,.live-chat-form:not(.is-voice) #live-chat-mic .key-icon{display:none}
#live-chat-talk{display:grid;place-items:center;flex:1;width:auto;height:40px;border-radius:6px;background:#2c2c2e;font-size:16px;font-weight:650;letter-spacing:.5px;touch-action:none;user-select:none;-webkit-user-select:none}
#live-chat-talk[hidden]{display:none !important}
#live-chat-talk[aria-pressed=true]{background:#3a3a3c}
.live-chat-record{position:absolute;left:50%;bottom:64px;transform:translateX(-50%);width:168px;margin:0;padding:16px 14px 12px;border-radius:12px;background:#3a3a3c;display:flex;flex-direction:column;align-items:center;gap:8px;z-index:3}
.live-chat-record[hidden]{display:none !important}
.live-chat-form.is-canceling .live-chat-record{background:#ff453a}
#live-chat-wave{width:128px;height:46px;flex:none}
#live-chat-duration{color:#fff;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}
#live-chat-hint{color:#fff;font-size:12px;line-height:1.35;text-align:center}
.live-chat-suggest{position:absolute;left:10px;right:10px;bottom:56px;max-height:160px;overflow:auto;background:#1c1c1e;border-radius:12px;z-index:2}
.live-chat-form .live-chat-suggest button{display:block;width:100%;height:auto;min-height:36px;flex:none;text-align:left;border-radius:0;background:transparent;padding:8px 12px}
html[data-page="profile"] .app{--profile-clearance:var(--dock-clearance);padding-bottom:var(--profile-clearance)}
html[data-page="profile"] .app:focus-within{--profile-clearance:max(var(--dock-clearance),calc(var(--profile-layout-height,100dvh) - var(--profile-visible-height,100dvh)))}
.profile-page{min-height:calc(100dvh - var(--profile-clearance,var(--dock-clearance)));padding:22px 18px 28px;background:radial-gradient(ellipse at top,#2a0a62,transparent 55%),#100832}
html[data-page=profile] #profile.profile-page{display:flex;flex-direction:column}
.profile-heading h2{margin:0 0 8px;font-size:24px}
.profile-note{margin:0 0 16px;color:#cbb6e8;font-size:13px;line-height:1.5}
#profile-status{margin:12px 0;color:#d7c4f5}
.profile-tabs{display:grid;grid-template-columns:1fr 1fr;margin-bottom:16px;border:1px solid #ac68f6;border-radius:14px;overflow:hidden;background:#371576e8}
.profile-tabs button{border:0;background:transparent;color:#f6eaff;min-height:44px;font-weight:700}
.profile-tabs button[aria-selected=true]{background:linear-gradient(#b524e9,#9024ca)}
.profile-page form:not([hidden]){display:flex;flex-direction:column;gap:12px}
.profile-page label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#e6d7ff}
.profile-page input,.match-create-form select,.match-finish-form select{border:1px solid #7a45b8;border-radius:12px;background:#1a0b3d;color:#fff;min-height:44px;padding:10px 12px;font:inherit}
.profile-page input:focus-visible,.match-create-form select:focus-visible,.match-finish-form select:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
.profile-page .pink-button{width:100%;min-height:44px;border-radius:14px}
.profile-page form.camp-id-form .pink-button{width:auto;flex:0 0 auto;min-width:72px;padding:0 16px}
.profile-page [role=alert]{min-height:1.2em;margin:0;color:#ffb4c8;font-size:13px}
/* 我的 starts 24px from the top and 16px from the sides: the page's own
   padding is 22px and 18px, and the card makes up the difference. */
.profile-card{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin:2px -2px 0;-webkit-font-smoothing:antialiased}
#profile-user:not([hidden]){flex:1;display:flex;flex-direction:column}
#profile-user>.profile-card{flex:1}
.profile-logout{margin-top:auto}
.profile-identity{display:flex;align-items:center;gap:14px;min-width:0;padding:0 2px}
.profile-identity-text{flex:1;min-width:0}
.profile-avatar{width:64px;height:64px;flex:none;border:2px solid transparent;border-radius:50%;padding:0;background:linear-gradient(#2a1458,#2a1458) padding-box,linear-gradient(135deg,#ff8ae0,#b56bff 45%,#7d4dff) border-box;display:grid;place-items:center;overflow:hidden}
.profile-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.profile-avatar span{font-size:26px;font-weight:800;line-height:1}
#profile-invite:not([hidden]){display:flex;align-items:center;gap:6px;margin-top:3px;color:#d4c3e6;font-size:13px}
#profile-invite>span{flex:none}
#profile-invite-code{min-width:0;color:#fff;font-weight:700;letter-spacing:.06em;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}
/* The copy mark is 16px. The area that takes the tap around it is 44px. */
#profile-invite-action{position:relative;flex:none;display:grid;place-items:center;min-width:16px;min-height:18px;padding:0;border:0;background:none;color:#e3b6ff;font-size:13px;font-weight:700}
#profile-invite-action::after{content:"";position:absolute;inset:-13px -14px}
#profile-invite-action:focus-visible{outline:3px solid #63f9ff;outline-offset:4px}
#profile-username{margin:0;font-size:22px;font-weight:800;letter-spacing:-.4px;overflow-wrap:anywhere}
/* 退出 sits as far above the tabs as the mockup has it: the word's middle is
   30px above the bar. The button is 44px high. */
.profile-logout{align-self:center;width:100%;border:0;background:none;color:#d7c4f5;font-size:15px;min-height:44px;padding:18px 6px 5px;text-align:center}
.profile-logout:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}

/* Installed from the home screen: fill the large viewport. iOS otherwise
   keeps a gap the size of the missing Safari toolbar. */
html.standalone .app{min-height:100vh;min-height:100lvh}
html.standalone .app.live-mode{height:100vh;height:-webkit-fill-available;height:100lvh;min-height:100vh;min-height:-webkit-fill-available;min-height:100lvh;max-height:100vh;max-height:-webkit-fill-available;max-height:100lvh}
html.standalone,html.standalone body{overscroll-behavior:none}
html.standalone[data-page="live"],html.standalone[data-page="live"] body{background:#000}

/* The live picture stays put. Chat text is not selectable like a web page. */
html[data-page="live"],html[data-page="live"] body{overflow:hidden;overscroll-behavior:none}
html[data-page="live"] body{min-height:calc(100vh + var(--live-entry-scroll,0px));min-height:calc(100dvh + var(--live-entry-scroll,0px))}
html[data-page="live"] .app.live-mode{position:fixed;inset:0;margin:0 auto;width:100%}
/* On iPhone a pan on these fixed controls can reopen the Safari toolbar.
   Chat, the room list and the emoji board use native scrolling. */
html[data-page="live"] :is(.live-picture,.nav,.live-chat-login,.live-chat-form>button:not(#live-chat-talk),#live-chat-emoji){touch-action:pinch-zoom}
html[data-page="live"] .live-page,html[data-page="live"] .live-stage,html[data-page="live"] .live-chat,html[data-page="live"] .live-chat-log,html[data-page="live"] .live-chat-row{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
html[data-page="live"] .live-chat-log,html[data-page="live"] .live-rail,html[data-page="live"] .live-chat-board-grid{touch-action:pan-y;overscroll-behavior:contain}
html[data-page="live"] input,html[data-page="live"] textarea{user-select:text;-webkit-user-select:text;touch-action:auto}

/* The dock sits 5px above the safe area; leave a matching gap above it. */
.app.live-mode + .nav{display:none}
:is(.app.live-mode, .tab-deck .live-page){--composer-bottom:calc(8px + env(safe-area-inset-bottom))}
:is(.app.live-mode, .tab-deck .live-page) .live-chat{padding-bottom:calc(var(--composer-size, 48px) + var(--composer-bottom))}
:is(.app.live-mode, .tab-deck .live-page) .live-chat-form,:is(.app.live-mode, .tab-deck .live-page) .live-chat-login,:is(.app.live-mode, .tab-deck .live-page) .live-chat-board{position:fixed;z-index:4;left:50%;width:min(460px,100%);margin:0;transform:translateX(-50%)}
:is(.app.live-mode, .tab-deck .live-page) .live-chat-form,:is(.app.live-mode, .tab-deck .live-page) .live-chat-login{bottom:var(--composer-bottom);padding-bottom:0}
:is(.app.live-mode, .tab-deck .live-page) .live-chat-board{bottom:calc(var(--composer-size, 48px) + var(--composer-bottom))}

.nav{user-select:none;-webkit-user-select:none}
.nav button{transition:transform .12s ease}
.nav button:active{transform:scale(.92);filter:none}
.profile-page input,.shop-search input,.live-chat-form input[type=text]{font-size:16px}

/* Keyboard open: the picture fills the space above the keys, and the chat sits on it. */
.live-chat-self{display:none;width:36px;height:36px;border-radius:50%;overflow:hidden;flex:none;background:#3a3a3c;place-items:center;color:#fff;font-size:15px;font-weight:700}
.live-chat-self img{width:100%;height:100%;object-fit:cover;display:block}
.live-chat-prefix{display:none}
html.live-typing,html.live-typing body{overflow:hidden}
html.live-typing .nav{display:none !important}
html.live-typing .live-picture{position:fixed;z-index:2;top:env(safe-area-inset-top);left:50%;right:auto;bottom:auto;width:max-content;max-width:100%;height:auto;display:block;transform:translateX(-50%);background:#000;pointer-events:auto}
html.live-typing .live-head,html.live-typing .live-stage.is-portrait .live-head{top:8px;left:8px;right:8px}
html.live-typing .live-stage.rail-open .live-head{right:136px}
html.live-typing .live-frame{position:relative;top:auto;left:auto;right:auto;flex:none;width:50vw;max-width:50vw;height:auto;max-height:none;min-height:0;margin:0}
html.live-typing .live-stage.is-portrait .live-picture{position:relative;top:auto;left:auto;width:auto;max-width:none;height:auto;transform:none}
html.live-typing .live-stage.is-portrait .live-frame{position:absolute;top:0;left:0;right:0;width:100%;max-width:none;height:auto;max-height:none;margin:0;transform:none}
html.live-typing .live-stage.is-offline .live-picture{position:relative;top:auto;left:auto;width:auto;max-width:none;height:auto;transform:none}
html.live-typing .live-stage.is-offline .live-frame{position:relative;width:100%;max-width:none;height:88px;max-height:88px}
html.live-typing #live-player{object-fit:fill}
html.live-typing .live-chat,html.live-typing .live-stage.is-portrait .live-chat,html.live-typing .live-stage.chat-over .live-chat{position:static;height:auto;background:transparent;border-top:0}
html.live-typing .live-chat-log{position:fixed;z-index:5;left:0;right:0;top:var(--live-typing-chat-top,calc(env(safe-area-inset-top) + 28vw));bottom:var(--live-overlay-bottom,0px);display:flex;flex-direction:column;justify-content:flex-start;gap:4px;margin:0;padding:8px 14px 10px;background:#000;border:0}
html.live-typing .live-chat-face,html.live-typing .live-chat-time{display:none}
html.live-typing .live-chat-row,html.live-typing .live-chat-row.is-mine{display:block;width:fit-content;max-width:min(92%,560px);color:rgba(255,255,255,.94);text-shadow:0 1px 2px rgba(0,0,0,.85);font-size:15px;line-height:1.4;text-align:left}
html.live-typing .live-chat-row.is-mine>div{display:block}
html.live-typing .live-chat-row .live-chat-meta,html.live-typing .live-chat-row.is-mine .live-chat-meta{display:inline;flex-direction:row}
html.live-typing .live-chat-row b{display:inline;color:rgba(255,255,255,.72);font-size:15px;font-weight:600}
html.live-typing .live-chat-row b::after{content:"："}
html.live-typing .live-chat-row p,html.live-typing .live-chat-row.is-mine p{display:inline;margin:0;text-align:left;color:rgba(255,255,255,.94)}
html.live-typing .live-chat-row p.live-chat-sticker{display:block;font-size:48px;line-height:1.15;margin:2px 0 0}
html.live-typing .live-chat-voice,html.live-typing .live-chat-voice.is-mine{display:inline;width:auto;max-width:none;margin:0}
html.live-typing .live-chat-voice-play,html.live-typing .live-chat-voice.is-mine .live-chat-voice-play{display:inline;width:auto;min-width:0;height:auto;padding:0;border-radius:0;background:transparent;color:rgba(255,255,255,.94);font-size:15px;font-weight:400}
html.live-typing .live-chat-voice-play::before,html.live-typing .live-chat-voice.is-mine .live-chat-voice-play::before{content:none}
html.live-typing .live-chat-voice-icon,html.live-typing .live-chat-unread{display:none}
html.live-typing .live-chat-voice-length,html.live-typing .live-chat-voice.is-mine .live-chat-voice-length{margin:0;font-size:15px;font-weight:400}
html.live-typing .live-chat-photo{display:inline-block;width:auto;max-width:96px;max-height:72px;margin:0 0 0 4px;vertical-align:middle;opacity:.94}
html.live-typing #live-chat-form{display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;max-width:none;margin:0;padding:8px 12px;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.55) 36%,rgba(0,0,0,.82));transform:none}
/* The portrait picture fills the page while typing, and the input bar is moved to
   the document while typing. Keep that bar solid so the picture does not show through it. */
html.live-typing:has(.live-stage.is-portrait) #live-chat-form{background:#000}
html.live-typing #live-chat-image,html.live-typing #live-chat-talk,html.live-typing #live-chat-suggest{display:none !important}
html.live-typing .live-chat-self.is-ready{display:grid}
html.live-typing .live-chat-field{position:relative;flex:1;min-width:0;display:flex;align-items:center;height:36px;margin:0;border-radius:18px;background:rgba(72,72,74,.72)}
html.live-typing #live-chat-text{flex:1;width:auto;height:36px;border:0;border-radius:18px;background:transparent;color:#fff;caret-color:#fff;padding:0 14px;font-size:16px}
html.live-typing #live-chat-text::placeholder{color:rgba(255,255,255,.55)}
html.live-typing #live-chat-mic,html.live-typing #live-chat-emoji{position:static;top:auto;right:auto;transform:none;width:32px;height:32px;flex:none;padding:0;border:0;border-radius:0;background:transparent;color:#fff}
html.live-typing #live-chat-board{left:0;width:100%;max-width:none;margin:0;transform:none;border-top:0;background:#1c1c1e}

/* Floating picture: the chat fills the live page, and the frame follows the user around the site. */
.live-mini-toggle{position:absolute;z-index:9;right:8px;bottom:8px;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;box-shadow:0 2px 8px #0006}
.live-mini-toggle[hidden]{display:none}
.live-mini-toggle svg{display:block}
.live-stage.rail-open .live-mini-toggle{right:136px}
/* The portrait picture stays full-bleed. Sit on its lower-right, just above the comments. */
.live-stage.is-portrait .live-mini-toggle{bottom:calc(60% + 8px)}
.live-stage.chat-over:not(.is-portrait) .live-mini-toggle{bottom:calc(var(--live-chat-lap,0px) + 8px)}
html.live-mini .live-mini-toggle,html.live-typing .live-mini-toggle{display:none}
html.live-mini:not(.live-mirror) .live-picture,html.live-mini .live-rail{display:none !important}
html.live-mini .live-stage.rail-open .live-chat{padding-right:0}
html.live-mini[data-page="live"] .live-chat,html.live-mini[data-page="live"] .live-stage.is-portrait .live-chat{position:relative;inset:auto;z-index:auto;flex:1;height:auto;min-height:0;background:#000;border-top:0}
html.live-mini.live-typing .live-chat-log{top:0}
html.site-flow.live-mini .live-frame,html.site-flow.live-mini .live-mini-close{pointer-events:auto!important}
html.live-mini .live-screen object[aria-hidden="true"]{opacity:0}
html.live-mini body>.live-frame{position:fixed;z-index:80;left:var(--live-mini-x,8px);top:var(--live-mini-y,8px);right:auto;bottom:auto;width:var(--live-mini-w,168px);height:var(--live-mini-h,280px);max-height:none;margin:0;border-radius:12px;box-shadow:0 10px 28px #000c;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;overflow:hidden}
html.live-mini .live-frame:active{cursor:grabbing}
html.live-mini .live-frame:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
html.live-mini .live-frame *{pointer-events:none}
.live-mini-close{display:none}
html.live-mini .live-mini-close{display:grid;place-items:center;position:absolute;z-index:3;top:6px;right:6px;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.62);color:#fff;font-size:20px;line-height:1;pointer-events:auto}
html.live-pip .live-picture{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
html.live-pip .live-frame{position:fixed;z-index:0;left:0;top:0;right:auto;bottom:auto;width:1px;height:1px;max-height:none;margin:0;opacity:0;overflow:hidden;pointer-events:none;border-radius:0;box-shadow:none;cursor:auto}
html.live-pip .live-chat,html.live-pip .live-stage.is-portrait .live-chat,html.live-pip .live-stage.chat-over .live-chat{position:relative;inset:auto;flex:1;height:auto;min-height:0;background:#000}

/* Stacked screens keep a bar on screen, the same job as an app navigation bar. */
.credits-page,.shop-page,.playmates-page{--sheet-x:24px;padding-top:0}
@media(max-width:700px){.credits-page,.shop-page{--sheet-x:14px}}
@media(max-width:620px){.playmates-page{--sheet-x:12px}}
.credits-header,.shop-header,.playmates-header{position:sticky;top:0;z-index:4;margin-left:calc(var(--sheet-x) * -1);margin-right:calc(var(--sheet-x) * -1);padding:calc(10px + var(--safe-top)) var(--sheet-x) 10px;background:color-mix(in srgb,var(--page-chrome) 92%,transparent);backdrop-filter:blur(16px) saturate(140%);-webkit-backdrop-filter:blur(16px) saturate(140%)}
@supports not (background:color-mix(in srgb,black 50%,transparent)){.credits-header,.shop-header,.playmates-header{background:var(--page-chrome)}}

/* Same-document transitions follow Framework7's iOS page keyframes:
   the incoming screen covers from the right, and the outgoing screen lags at 20%. */
html[data-nav="push"]::view-transition-group(root),html[data-nav="pop"]::view-transition-group(root){animation-duration:400ms}
html[data-nav="push"]::view-transition-old(root){animation:400ms ease both vt-current-to-previous;z-index:1}
html[data-nav="push"]::view-transition-new(root){animation:400ms ease both vt-next-to-current;z-index:2}
html[data-nav="pop"]::view-transition-old(root){animation:400ms ease both vt-current-to-next;z-index:2}
html[data-nav="pop"]::view-transition-new(root){animation:400ms ease both vt-previous-to-current;z-index:1}
@keyframes vt-next-to-current{from{transform:translate3d(100%,0,0)}}
@keyframes vt-previous-to-current{from{transform:translate3d(-20%,0,0)}}
@keyframes vt-current-to-previous{to{transform:translate3d(-20%,0,0)}}
@keyframes vt-current-to-next{to{transform:translate3d(100%,0,0)}}
/* Compact Safari keeps the document anchored and scrolls the fixed app. The
   edge transition moves its two pages without replacing that scroll container. */
html.is-swiping:not(.safari-compact):not(.bar-hidden):not(.shell-parking),html.is-swiping:not(.safari-compact):not(.bar-hidden):not(.shell-parking) body{overflow:hidden!important;min-height:0!important;padding-bottom:0!important;overscroll-behavior:none}
html.is-swiping:not(.safari-compact):not(.bar-hidden):not(.shell-parking) .app{position:relative!important;inset:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;transform:none!important}
html.is-swiping .swipe-over{display:block!important;z-index:6;box-shadow:-12px 0 28px #0006;will-change:transform}
html.is-swiping .swipe-under{display:block!important;will-change:transform}
html.is-swiping #live.swipe-over,html.is-swiping #live.swipe-under{display:flex!important;flex-direction:column;min-height:0;background:#000;overflow:hidden;--composer-bottom:calc(8px + env(safe-area-inset-bottom))}
html.is-swiping #live.swipe-over .live-stage,html.is-swiping #live.swipe-under .live-stage{flex:1;min-height:0}
html.is-swiping #live.swipe-over .live-chat,html.is-swiping #live.swipe-under .live-chat{padding-bottom:calc(var(--composer-size, 48px) + var(--composer-bottom))}
html.is-swiping #live.swipe-over :is(.live-chat-form,.live-chat-login,.live-chat-board),html.is-swiping #live.swipe-under :is(.live-chat-form,.live-chat-login,.live-chat-board){position:fixed;z-index:4;left:0;right:0;width:auto;margin:0;transform:none}
html.is-swiping #live.swipe-over :is(.live-chat-form,.live-chat-login),html.is-swiping #live.swipe-under :is(.live-chat-form,.live-chat-login){bottom:var(--composer-bottom);padding-bottom:0}
html.is-swiping #live.swipe-over .live-chat-board,html.is-swiping #live.swipe-under .live-chat-board{bottom:calc(var(--composer-size, 48px) + var(--composer-bottom))}
html.swipe-hide-nav .nav{display:none!important}
.back-edge{position:fixed;z-index:8;top:0;width:28px;touch-action:none;pointer-events:none}
html.is-swiping .back-edge{visibility:hidden}

.release-notice{position:fixed;z-index:1000;top:calc(env(safe-area-inset-top,0px) + 8px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:.75rem;padding:4px 12px;border-radius:12px;background:#261942;color:white;box-shadow:0 4px 16px #0005;white-space:nowrap}
.release-notice button{color:white;background:transparent;border:0;min-height:44px;font:inherit;text-decoration:underline}

button,input,textarea,select{font-family:inherit}

@supports (-webkit-touch-callout:none){:root{font-family:CandyGujarati,"PingFang SC",-apple-system,sans-serif}}

@font-face{font-family:CandyGujarati;font-display:swap;src:url('/assets/gujarati-v1/gujarati.6490241c73f384a2462c13ce37381aa836c59a3e5b303d21a39eb52ed4d9a1d7.woff2') format('woff2');unicode-range:U+0A80-0AFF}
.profile-card[hidden],.profile-bill[hidden],.profile-wallet[hidden],#profile-bill-empty[hidden],#profile-bill-more[hidden],.live-redpacket-rail[hidden],.redpacket-cover[hidden],.redpacket-result[hidden],.redpacket-people[hidden],.redpacket-field[hidden]{display:none !important}
.profile-wallet{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:8px;padding:20px 6px 18px;border:1px solid #c58afd66;border-radius:20px;background:linear-gradient(145deg,#4a1b86,#241048 62%,#1a0b3a);box-shadow:inset 0 1px 0 #ffffff22,0 10px 24px #0004}
.profile-wallet button{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;border:0;border-radius:0;background:none;color:#fff;min-height:0;padding:0 4px;font-weight:400}
/* A column takes the tap over the whole height of the card. */
.profile-wallet button::after{content:"";position:absolute;inset:-20px 0 -18px}
.profile-wallet button + button{box-shadow:inset 1px 0 0 rgba(255,255,255,.16)}
.profile-wallet span{color:#d7c4f5;font-size:12px}
.profile-wallet strong{display:block;max-width:100%;height:20px;font-size:20px;font-weight:800;letter-spacing:-.5px;line-height:20px;font-variant-numeric:tabular-nums;white-space:nowrap}
.profile-wallet strong.is-available{color:#ffe56a}
.profile-wallet strong.is-frozen{color:#ffb4c8}
.profile-wallet strong.is-inactive{color:#d7b4ff}
.profile-wallet button:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
.profile-promo{width:100%;min-height:72px;padding:6px 14px;display:flex;align-items:center;gap:12px;border:1px solid #843bdb;border-radius:18px;background:radial-gradient(at right,#7133bc,transparent 70%),linear-gradient(110deg,#3d077b,#15053a);box-shadow:inset 0 0 12px #981cda;color:#fff;text-align:left}
.profile-promo-mark{width:40px;height:40px;flex:none;border-radius:12px;display:grid;place-items:center;background:linear-gradient(160deg,#ff4fd8,#8a2bff);box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
.profile-promo-mark svg{width:22px;height:22px;display:block}
.profile-promo-copy{flex:1;min-width:0}
.profile-promo-copy b{display:block;font-size:16px;font-weight:800}
/* The line is 12px at 390 wide and 11px at 375, where the mockup's numbers
   still fit on one line. Longer numbers break into two even lines, at a
   space and not inside a word. */
.profile-promo-copy small{display:block;margin-top:3px;color:#e7d4ff;font-size:clamp(11px,calc(11px + (100vw - 375px) / 15),12px);word-break:keep-all;text-wrap:balance}
.profile-promo-go{flex:none;display:flex;align-items:center;color:#f3d0ff}
.profile-promo-go svg{width:18px;height:18px;display:block}
.profile-promo:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
.profile-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.profile-acts button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:102px;padding:0 4px;border:1px solid #9b59ff;border-radius:18px;background:linear-gradient(160deg,#32106e,#160840);box-shadow:inset 0 0 14px #8436e7,inset 0 1px 0 rgba(255,255,255,.2);color:#fff;text-align:center}
.profile-acts b{font-size:13px;font-weight:750;line-height:1.2}
#profile-message-count{position:absolute;top:8px;right:8px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#ee00d6;color:#fff;font-size:10px;font-weight:800;line-height:16px;text-align:left;font-variant-numeric:tabular-nums}
#profile-message-count[hidden]{display:none !important}
.profile-acts svg{width:28px;height:28px;display:block}
.profile-acts small{height:14px;margin-top:-2px;font-size:10px;font-weight:700;line-height:normal;color:#8dffb4}
.profile-acts button:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
.profile-acts button:active{filter:brightness(1.12)}
.profile-link-status{color:#8dffb4;font-size:10px;font-weight:700;line-height:1.2}
.profile-link-status[hidden]{display:block !important;visibility:hidden}
.profile-panel button,.live-match-sheet button{border:0;border-radius:999px;background:#fff;color:#4a1b86;min-height:36px;padding:0 14px;font-weight:700}
.profile-panel{display:grid;gap:10px;margin-top:12px}
.camp-qr{display:block;width:min(220px,100%);height:auto;margin:0 auto;background:#fff;border-radius:12px;padding:8px}
.camp-note{margin:0;color:#d7c4f5;font-size:13px;line-height:1.5}
.camp-bound{display:grid;gap:12px}
.camp-account{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.camp-account-status{margin:0;font-size:15px;font-weight:750}
.camp-account-id{margin:0;color:#d7c4f5;font-size:13px}
.camp-roles{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.camp-roles li{margin:0;padding:12px 14px;border:1px solid #c58afd55;border-radius:16px;background:#241048}
.camp-role-name{margin:0;font-size:16px;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
.camp-role-place{margin:4px 0 0;color:#d7c4f5;font-size:13px;line-height:1.4}
.camp-ids{display:grid;gap:10px}
.camp-ids h4{margin:0;font-size:16px;font-weight:750;line-height:1.3}
.camp-ids-note,.camp-ids-status{margin:0;color:#d7c4f5;font-size:13px;line-height:1.5}
.camp-ids-status:empty{display:none}
.camp-id-list{list-style:none;margin:0;padding:0;display:grid;border:1px solid #ffffff1a;border-radius:16px;overflow:hidden}
.camp-id-list[hidden]{display:none}
.camp-id-list li{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 8px 6px 14px;background:#1a0b3d}
.camp-id-list li + li{border-top:1px solid #ffffff14}
.camp-id-value{margin-right:auto;min-width:0;font-weight:700;line-height:1.3;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text}
.profile-panel button.camp-id-remove{flex:none;min-width:64px;min-height:44px;padding:0 14px;background:transparent;color:#ffd0dc;border:1px solid #ff8eab66}
.profile-page form.camp-id-form:not([hidden]){flex-direction:row;align-items:center;gap:8px}
.profile-page form.camp-id-form input{flex:1 1 auto;width:auto;min-width:0;min-height:44px;font-size:16px}
.camp-id-form button{flex:none;min-height:44px}
.profile-code{font-size:28px;font-weight:800;letter-spacing:2px}
.live-match-card{display:grid;gap:2px;border:0;border-radius:16px;padding:10px 12px;background:linear-gradient(145deg,#4a1b86,#241048);color:#fff;text-align:left}
.live-match-sheet{border:0;border-radius:20px;padding:18px;max-width:360px}
.profile-bill{display:flex;flex-direction:column;flex:1;margin:-22px -18px 0}
.profile-bill-body{padding:4px 16px 16px}
.profile-bill-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}
.profile-bill-tabs button{height:36px;padding:0;border:0;border-radius:18px;background:#2a1458;color:#fff;font-size:14px;font-weight:650}
.profile-bill-tabs button[aria-selected=true]{background:linear-gradient(110deg,#b524e9,#ee00d6);font-weight:750}
.profile-bill-tabs button:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
#profile-bill-list{border:1px solid #c58afd66;border-radius:20px;background:linear-gradient(145deg,#4a1b86,#241048 62%,#1a0b3a);box-shadow:inset 0 1px 0 #ffffff22,0 10px 24px #0004;padding:4px 16px}
#profile-bill-list:empty{display:none}
.profile-bill-row{display:flex;justify-content:space-between;gap:12px;padding:14px 0}
.profile-bill-row + .profile-bill-row{box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}
.profile-bill-row > div:first-child{min-width:0}
.profile-bill-row b{display:block;font-size:16px;font-weight:700}
.profile-bill-row span{display:block;margin-top:3px;color:#e7d4ff;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.profile-bill-row span:empty{display:none}
.profile-bill-row time{display:block;margin-top:3px;color:#d7c4f5;font-size:12px;font-variant-numeric:tabular-nums}
.profile-bill-row > div:last-child{flex:none;display:flex;flex-direction:column;justify-content:space-between;text-align:right}
.profile-bill-row strong{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.profile-bill-row strong.is-in{color:#8dffb4}
.profile-bill-row strong.is-out{color:#ffb4c8}
.profile-bill-row small{color:#d7c4f5;font-size:12px;font-variant-numeric:tabular-nums}
#profile-bill-more{width:100%;margin:8px 0 0;border:0;background:none;color:#d7c4f5;font-size:14px;min-height:44px}
#profile-bill-more:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
/* No entries: the same card as the list, with one line in it. */
#profile-bill-empty{margin:0;padding:24px 16px 20px;border:1px solid #c58afd66;border-radius:20px;background:linear-gradient(145deg,#4a1b86,#241048 62%,#1a0b3a);box-shadow:inset 0 1px 0 #ffffff22,0 10px 24px #0004;color:#d7c4f5;font-size:13px;line-height:1.5}
.live-redpacket-rail{display:none !important}
.live-redpacket-rail::-webkit-scrollbar{display:none}
.live-redpacket-pill{flex:none;display:flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:5px 10px 5px 6px;background:linear-gradient(180deg,#ff6a4a,#d9362e);color:#fff;font-size:12px;font-weight:700;box-shadow:0 4px 12px #0006}
.live-redpacket-pill i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#ffd56a;color:#9a3412;font-style:normal;font-size:12px}
.live-redpacket-card{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:min(220px,100%);margin-top:4px;padding:10px 12px 8px;border:0;border-radius:12px;text-align:left;color:#fff;background:linear-gradient(160deg,#ff6d4d 0%,#e23b32 58%,#c62828 58%,#d83b32 100%);box-shadow:0 6px 16px #0005}
.live-redpacket-card strong{font-size:14px;font-weight:750;line-height:1.3}
.live-redpacket-card small{color:#ffe7c2;font-size:11px}
.live-redpacket-mark{font-size:11px;font-weight:800;letter-spacing:.5px;color:#ffe7a3}
.live-redpacket-card.is-opened{filter:saturate(.7);opacity:.78}
.live-redpacket-card.is-opened small::after{content:" · 已领取"}
html.live-typing #live-chat-redpacket{display:none !important}
html.live-typing .live-chat-row:has(.live-redpacket-card){display:flex;flex-direction:row;align-items:center;gap:8px;width:fit-content;max-width:min(92%,560px)}
html.live-typing .live-chat-row:has(.live-redpacket-card) .live-chat-face{display:grid}
html.live-typing .live-redpacket-card{display:inline;width:auto;margin:0;padding:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;font:inherit;font-size:15px;line-height:1.4;text-align:left;vertical-align:baseline;word-break:break-word;appearance:none}
html.live-typing .live-redpacket-card strong,html.live-typing .live-redpacket-card small,html.live-typing .live-redpacket-mark{font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:0;color:inherit}
html.live-typing .live-redpacket-mark{color:#ff8a7a;font-weight:700}
html.live-typing .live-redpacket-mark::after{content:" "}
html.live-typing .live-redpacket-card small{display:none}
html.live-typing .live-redpacket-card.is-opened{filter:none;opacity:.72}
html.live-typing .live-redpacket-card.is-opened strong::after{content:" · 已领取"}
#redpacket-sheet{position:fixed;inset:auto 0 0 0;width:min(480px,100%);max-height:min(92dvh,680px);margin:0 auto;overflow:auto;border:0;border-radius:18px 18px 0 0;padding:0 0 calc(14px + env(safe-area-inset-bottom));background:#f7f2ef;color:#1c1c1e}
#redpacket-sheet::backdrop,#redpacket-open::backdrop{background:rgba(0,0,0,.55)}
#redpacket-open{width:min(320px,88vw);border:0;padding:0;background:transparent}
#redpacket-open:focus{outline:none}
.redpacket-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 0}
.redpacket-sheet-head h2{margin:0;font-size:17px}
.redpacket-sheet-head button,.redpacket-close{width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:inherit;font-size:24px;line-height:1}
.redpacket-balance{min-width:36px;text-align:right;color:#8a6240;font-size:12px;font-weight:700}
.redpacket-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 16px 12px}
.redpacket-modes button{border:0;border-radius:999px;background:#fff;color:#666;min-height:36px;font-weight:700}
.redpacket-modes button[aria-selected=true]{background:#e23b32;color:#fff}
.redpacket-field{position:relative;display:flex;flex-direction:column;margin:0 16px 10px;padding-top:16px;font-size:13px;color:#666}
.redpacket-field input{height:44px;border:0;border-radius:12px;background:#fff;padding:0 12px;font:inherit;font-size:16px;color:#1c1c1e}
.redpacket-field input:focus-visible{outline:3px solid #e23b32;outline-offset:1px}
.redpacket-field input:not(:focus)::placeholder{color:transparent}
.redpacket-field input:focus::placeholder{font-size:13px;color:#8a6240}
.redpacket-float{position:absolute;z-index:1;left:12px;top:38px;font-size:16px;line-height:1;color:#9a9aa0;pointer-events:none;transform:translateY(-50%);transition:top .16s ease,transform .16s ease,font-size .16s ease,color .16s ease}
.redpacket-field:focus-within .redpacket-float,.redpacket-field:has(input:not(:placeholder-shown)) .redpacket-float{top:0;transform:none;font-size:12px;line-height:1.2;color:#666}
.redpacket-sheet-body .redpacket-field:last-child{margin-bottom:0}
.redpacket-people{margin:-4px 16px 10px;background:#fff;border-radius:12px;overflow:hidden}
.redpacket-people button{display:block;width:100%;border:0;border-radius:0;background:#fff;text-align:left;padding:10px 12px;color:#1c1c1e}
.redpacket-error{min-height:0;margin:0 16px;font-size:12px;color:#d02323}
.redpacket-error:empty{display:none}
.redpacket-error:not(:empty){margin-bottom:8px}
.redpacket-submit{display:block;width:calc(100% - 32px);margin:14px 16px 0;height:46px;border:0;border-radius:23px;background:linear-gradient(#ff5d4a,#e1332c);color:#fff;font-size:16px;font-weight:800}
.redpacket-submit:disabled{opacity:.55}
/* Chrome centers a modal with an inline translate. Cancel it while the sheet is pinned to the visible viewport. */
#redpacket-sheet.is-keyboard{display:flex;flex-direction:column;overflow:hidden;transform:none!important}
#redpacket-sheet.is-keyboard .redpacket-sheet{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}
#redpacket-sheet.is-keyboard .redpacket-sheet-body{flex:1 1 auto;min-height:0;overflow:auto}
#redpacket-sheet.is-keyboard :is(.redpacket-sheet-head,.redpacket-error,.redpacket-submit){flex:none}
.redpacket-cover{position:relative;overflow:hidden;min-height:380px;border-radius:18px;padding:28px 20px 22px;text-align:center;color:#fff;background:radial-gradient(circle at 50% 118%,#ffb45a 0,transparent 36%),linear-gradient(#ff6a49 0%,#e23b32 48%,#c42724 48%,#d8362f 100%);box-shadow:0 18px 50px #0008}
.redpacket-cover .redpacket-close{position:absolute;top:8px;right:8px;color:#fff}
.redpacket-kicker{margin:28px 0 8px;color:#ffe7a8;font-size:13px;font-weight:700;letter-spacing:1px}
.redpacket-from{margin:0;font-size:15px;font-weight:700}
.redpacket-wish{margin:10px 0 0;font-size:22px;font-weight:800;line-height:1.35}
.redpacket-seal{width:88px;height:88px;margin-top:54px;border:4px solid #ffe7a3;border-radius:50%;background:radial-gradient(circle at 38% 32%,#fff1c2,#e2b14a 46%,#b48322);color:#8a3b12;font-size:34px;font-weight:800;box-shadow:0 10px 24px #0004}
.redpacket-cover.is-opening .redpacket-seal{animation:redpacket-seal .55s ease forwards}
@keyframes redpacket-seal{40%{transform:scale(1.12) rotate(18deg)}100%{transform:scale(0) rotate(160deg);opacity:0}}
.redpacket-foot{margin:18px 0 0;color:#ffe7c2;font-size:13px}
.redpacket-result{position:relative;min-height:380px;border-radius:18px;padding:28px 16px 16px;background:#fff;color:#1c1c1e;text-align:center;box-shadow:0 18px 50px #0008;animation:redpacket-rise .35s ease}
.redpacket-result .redpacket-close{position:absolute;top:8px;right:8px;color:#666}
.redpacket-result .redpacket-from{color:#8a6234}
.redpacket-result .redpacket-wish{font-size:16px;color:#333}
.redpacket-amount{margin:14px 0 0;color:#d4a017;font-size:44px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.redpacket-amount span{margin-left:4px;font-size:16px;font-weight:700}
.redpacket-state{margin:6px 0 0;color:#888;font-size:13px}
.redpacket-shares{list-style:none;margin:16px 0 0;padding:0;max-height:220px;overflow:auto;text-align:left}
.redpacket-shares li{display:flex;justify-content:space-between;gap:8px;padding:10px 2px;border-top:1px solid #f0e6dc}
.redpacket-shares b{display:block;font-size:14px}
.redpacket-shares small{color:#a37b45;font-size:12px}
.redpacket-shares strong{font-variant-numeric:tabular-nums}
@keyframes redpacket-rise{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}

/* The document retracts Safari's toolbar. Once compact, keep its native
   scroll offset while the active content and any open sheet scroll inside. */
/* Safari 16 keeps the toolbar expanded when a native pan ends at the document
   bottom. Reserve room beyond both short and long pages until the bar retracts. */
html.safari-toolbar:not(.safari-compact) body{min-height:calc(100lvh + 144px);padding-bottom:144px}
/* Give the root the first vertical pan, including over fixed controls.
   Open photo viewers otherwise lock body scrolling before Safari can retract. */
html.safari-toolbar:not(.safari-compact):not([data-page="live"]) body:has(dialog[open]){overflow:visible!important}
html.safari-toolbar:not(.safari-compact) :is(.nav,.back-edge),
html.safari-toolbar:not(.safari-compact):not([data-page="live"]) dialog[open],
html.safari-toolbar:not(.safari-compact):not([data-page="live"]) dialog::backdrop{touch-action:pan-y pinch-zoom;overscroll-behavior-y:auto}
html.safari-toolbar:not(.safari-compact):not([data-page="live"]) dialog[open]:not(:has(:is(input,textarea,select,[contenteditable=true]):focus)){overflow:clip!important}
/* A short profile stays visible while Safari consumes the toolbar space.
   A long profile still scrolls once its content reaches the dock. */
html.safari-toolbar[data-page="profile"]:not(.safari-compact) body{padding-bottom:0}
html.safari-toolbar[data-page="profile"]:not(.safari-compact) .app{position:sticky;top:0}
html.iphone-browser[data-page="live"]:not(.safari-compact),
html.iphone-browser[data-page="live"]:not(.safari-compact) body{overflow-y:visible}
html.iphone-browser[data-page="live"]:not(.safari-compact) .live-picture{touch-action:pan-y pinch-zoom}
html.safari-compact,html.safari-compact body{touch-action:pan-y pinch-zoom}
html.safari-compact body{min-height:calc(100lvh + var(--safari-scroll-anchor,0px));overscroll-behavior:none}
html.safari-compact .app:not(.live-mode){position:fixed;inset:0;margin:0 auto;width:100%;height:100dvh;min-height:0;overflow-y:auto;overscroll-behavior:none;overscroll-behavior-y:contain}
/* A tab page scrolls inside its slide only. The app itself scrolls the inner pages. */
html.safari-compact .app.tab-mode{overflow:clip}
html.safari-compact .tab-deck .swiper-slide{overscroll-behavior-y:contain}
html.safari-compact :is(.app,.nav,dialog,.live-rail,.live-chat-board-grid,.live-chat-log){touch-action:pan-y pinch-zoom;overscroll-behavior:none}
html.safari-compact [data-pan="x"]{touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-x:contain}
/* The dock and the live room's two side strips are not scrollers. Once the bar
   is parked, a drag there must not pan the document. */
html:is(.safari-compact,.site-pane,.bar-hidden,.shell-parking) :is(.nav,.tab-deck .live-back-edge){touch-action:none}
html:is(.safari-compact,.site-pane,.bar-hidden,.shell-parking) .tab-deck #live::before,
html:is(.safari-compact,.site-pane,.bar-hidden,.shell-parking) .tab-deck #live::after{touch-action:none}

/* Safari scrolls the message log directly, including momentum after release. */
html.iphone-browser[data-page="live"] .live-chat-log{touch-action:pan-y pinch-zoom;overscroll-behavior:none}
html.iphone-browser[data-page="live"] :is(.live-rail,.live-chat-board-grid){touch-action:pan-y pinch-zoom;overscroll-behavior:none}

/* Expanded Safari: nested scrollers and painted regions pass the pan to the
   document. Controls inside them still take taps. A real horizontal scroller
   is marked data-pan="x" and keeps its own pan after the bar is hidden. */
html.iphone-browser.safari-toolbar:not(.safari-compact):not(.site-pane):not(.live-typing) [data-shell-pass]{pointer-events:none!important;touch-action:pan-y pinch-zoom}
html.iphone-browser.safari-toolbar:not(.safari-compact):not(.site-pane):not(.live-typing) [data-shell-pass="scroll"]{overflow:hidden!important;overscroll-behavior:none!important}
html.iphone-browser.safari-toolbar:not(.safari-compact):not(.site-pane):not(.live-typing) [data-shell-pass] :is(a,button,input,textarea,select,label,summary,[contenteditable="true"],[role="button"],[role="link"]){pointer-events:auto!important}

.live-audio-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;color:#fff}
.live-audio-actions button{pointer-events:auto;color:#fff;background:#383838;border:1px solid #777;border-radius:8px;padding:8px 12px}
.live-stage.live-audio-controls .live-rail-toggle{pointer-events:none}
.live-stage.is-portrait.live-audio-controls #live-status,.live-stage.chat-over.live-audio-controls #live-status{bottom:60%}

/* The photo button owns the tap. Its badges only paint the picture. Clip
   the artwork without introducing another scroll container above the page. */
html.safari-toolbar:not(.safari-compact) .playmate-card-photo{overflow:clip;touch-action:pan-y pinch-zoom}

.live-chat-row.is-mine .live-match-tag{margin-inline:0 .45em}
.live-match-tag{display:inline-block;max-width:100%;margin-inline-start:.45em;padding:2px 7px;border:0;border-radius:6px;background:#322447;color:#eedfff;font:500 12px/1.5 system-ui;vertical-align:middle;cursor:pointer;overflow-wrap:anywhere;white-space:normal;text-align:left}

.live-match-sheet{box-sizing:border-box;width:min(360px,calc(100vw - 28px));max-height:85vh;overflow:auto}
.live-match-seats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 4px;padding:0;margin:14px 0 2px;list-style:none}
.live-match-seats li{display:grid;justify-items:center;align-content:start;gap:4px;min-width:0;font-size:12px;text-align:center;overflow-wrap:anywhere}
.live-match-face{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;overflow:hidden;background:#553776;color:white}
.live-match-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.live-match-seats .live-match-vacant .live-match-face{background:transparent;border:1px dashed currentColor;opacity:.55}
.live-match-sheet [role=alert]:empty{display:none}

.live-match-sheet[open]{display:block;height:fit-content;margin:auto}
.live-match-sheet header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.live-match-sheet h3,.live-match-sheet p{margin:0}
.live-match-sheet header button{height:36px;flex:none}
.live-match-sheet>button{margin-top:10px;min-height:40px}
.live-match-sheet .live-match-gate{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.live-match-sheet .live-match-gate button{min-height:44px}
.live-match-sheet [hidden],.live-match-sheet [role=status]:empty{display:none}
.live-match-seats small{color:#e3c9ff;font-size:10px}

html[data-page="profile"] .match-navigation{touch-action:pan-y}
.match-panel-heading{display:flex;align-items:center;gap:8px;min-width:0}
.match-panel-heading h3{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:20px;font-weight:800;letter-spacing:-.3px;line-height:1.25}
.match-panel-heading button.match-back{flex:none;width:40px;height:44px;min-width:40px;min-height:44px;display:grid;place-items:center;padding:0;border:0;background:none;font-size:0}
.match-panel-heading button.match-back svg{display:block}
.match-panel-heading.is-report{height:44px;gap:0;margin-left:-8px}
.match-panel-heading.is-report h3{font-size:17px;font-weight:650;letter-spacing:-.2px;line-height:1.2}
.match-chip{flex:none;display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:rgba(42,20,88,.9);color:#e6d7ff;font-size:12px;font-weight:700;box-shadow:inset 0 0 0 1px rgba(197,138,253,.35)}
.profile-panel .profile-tabs{margin-bottom:0}
.profile-panel .profile-tabs button{border:0;border-radius:0;background:transparent;color:#f6eaff;min-height:44px;padding:0;font-weight:700;transition:background-color 200ms ease-out,color 200ms ease-out}
.profile-panel .profile-tabs button[aria-selected=true]{background:linear-gradient(#b524e9,#9024ca);color:#fff}
.match-tab-panel{display:grid;gap:12px;margin-top:12px}
.match-tab-panel[hidden]{display:none}
.match-create-form{padding:16px;border:1px solid #c58afd55;border-radius:16px;background:#1a0b3d}
.match-create-form label[hidden]{display:none}
.room-entry{display:grid;gap:8px}
.room-entry-doors{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:10px}
.room-entry p{margin:0;font-size:13px;line-height:1.5}
.room-entry-note{color:#d7c4f5}
.room-entry [role=status]:empty{display:none}
.room-entry-renew{display:grid;gap:8px}
.room-entry-renew[hidden]{display:none}
/* The quiet button of the two. The div in the selector puts it above the pink of .match-action on the match page. */
.room-entry div.room-entry-renew button{background:transparent;color:#ffd0dc;border:1px solid #ff8eab66}
/* Portrait settlement for a read 王者荣耀 game. */
.match-result{display:grid;gap:16px;min-width:0;text-align:left}
.match-result[hidden]{display:none}
.match-result h4{margin:0;font-size:16px;font-weight:750;line-height:1.3}
.match-result p{margin:0;font-size:13px;line-height:1.5}
.match-result-note{color:#d7c4f5}
.match-result-alert{color:#ffb4c8}
.match-result-alert:empty{display:none}
.match-result-me{display:grid;gap:8px;padding:16px;border:1px solid #c58afd55;border-radius:16px;background:#241048}
.mr-board{display:grid;gap:10px;min-width:0;padding:16px 12px 14px;border-radius:20px;border:1px solid #ffe56a80;background:radial-gradient(circle at 0% 45%,#468cff99,transparent 58%),radial-gradient(circle at 100% 45%,#ff507899,transparent 58%),linear-gradient(145deg,#4a1b86,#241048 62%,#1a0b3a);box-shadow:inset 0 1px 0 #ffffff22,0 10px 24px #0004}
.mr-board.is-lose{border-color:#c58afd73}
.mr-score{display:grid;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);align-items:end;gap:8px;min-width:0}
.mr-side{display:grid;justify-items:center;gap:2px;min-width:0}
.mr-side-label{max-width:100%;overflow:hidden;margin-bottom:2px;font-size:12px;font-weight:700;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.mr-side.blue .mr-side-label{color:#9cc8ff}
.mr-side.red .mr-side-label{color:#ffa3b8}
.mr-side b{color:#fff;font-size:40px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}
.mr-board.is-win .mr-side.red b,.mr-board.is-lose .mr-side.blue b{color:#ffffffb3}
.mr-plaque{display:flex;align-items:center;justify-content:center;gap:10px;flex:none;width:max-content;margin-bottom:6px;color:#ffe56a;-webkit-text-fill-color:#ffe56a;background:none;font-size:40px;font-weight:900;line-height:1}
.mr-plaque span{letter-spacing:4px;padding-left:4px}
.mr-plaque.is-long{font-size:22px}
.mr-plaque.is-long span{letter-spacing:0;padding-left:0}
.mr-board.is-lose .mr-plaque{color:#d5def8;-webkit-text-fill-color:#d5def8}
.mr-tick{flex:none;width:24px;height:1px;background:linear-gradient(90deg,transparent,#ffe56a)}
.mr-plaque .mr-tick:last-child{background:linear-gradient(90deg,#ffe56a,transparent)}
.mr-board.is-lose .mr-tick{background:linear-gradient(90deg,transparent,#c8d2f5)}
.mr-board.is-lose .mr-plaque .mr-tick:last-child{background:linear-gradient(90deg,#c8d2f5,transparent)}
.mr-meta{margin:0;color:#d7c4f5;font-size:12px;line-height:1.4;text-align:center}
.mr-reward{display:flex;align-items:center;gap:16px;min-width:0;padding:14px 16px;border:1px solid #c58afd66;border-radius:20px;background:linear-gradient(145deg,#4a1b86,#241048 62%,#1a0b3a);box-shadow:inset 0 1px 0 #ffffff22,0 10px 24px #0004}
.mr-reward-main{flex:none;display:grid;gap:8px;min-width:0}
.mr-reward-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.mr-reward h4{margin:0;color:#d7c4f5;font-size:13px;font-weight:650}
.mr-state{flex:none;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:700}
.mr-state.is-paid{border:1px solid #8dffb459;background:#165a3c80;color:#8dffb4}
.mr-state.is-frozen{border:1px solid #ffb4c859;background:#3a1830;color:#ffd0dc}
.mr-total{margin:0;color:#ffe56a;font-size:34px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.mr-total.is-zero{color:#fff;opacity:.85}
.mr-reward-lines{flex:1;display:grid;gap:8px;min-width:0;padding-left:16px;border-left:1px solid #ffffff1a}
.mr-line{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0;font-size:13px}
.mr-line-name{display:flex;min-width:0;align-items:baseline;gap:5px}
.mr-line-name b{overflow:hidden;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.mr-line-name small{color:#b9a6d6;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mr-line > span{flex:none;color:#8dffb4;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.mr-line > span.is-neg{color:#ffb4c8}
.match-result-switch{display:grid;gap:12px;min-width:0}
.mr-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.match-result .mr-tabs button,.live-match-sheet .mr-tabs button{height:44px;min-height:44px;padding:0 8px;border:1px solid #c58afd4d;border-radius:999px;background:#241048;color:#fff;font-size:14px;font-weight:700}
.match-result .mr-metrics button,.live-match-sheet .mr-metrics button{height:32px;min-height:32px;padding:0 4px;border:1px solid #c58afd47;border-radius:999px;background:transparent;color:#d7c4f5;font-size:13px;font-weight:700}
.match-result .mr-tabs button[aria-selected=true],.live-match-sheet .mr-tabs button[aria-selected=true]{border:0;background:linear-gradient(90deg,#b524e9,#e600d6);box-shadow:0 4px 12px #e600d659;color:#fff}
.match-result .mr-metrics button[aria-selected=true],.live-match-sheet .mr-metrics button[aria-selected=true]{border-color:#c58afd;background:#c58afd38;color:#fff}
.mr-teams{display:grid;gap:16px;min-width:0}
.mr-teams[hidden]{display:none}
.mr-team{display:grid;gap:8px;min-width:0}
.mr-team-head{display:flex;align-items:center;gap:8px;min-width:0;height:28px;margin:0;color:#fff;font-size:15px;font-weight:700}
.mr-team-name{display:flex;align-items:center;gap:8px;min-width:0}
.mr-bar{flex:none;width:4px;height:14px;border-radius:2px;background:#5aa8ff}
.mr-team.red .mr-bar{background:#ff6f91}
.mr-chip{padding:0 6px;border-radius:4px;font-size:11px;font-weight:700;line-height:16px}
.mr-chip.is-win{border:1px solid #ffe56a;background:#ffe56a1f;color:#ffe56a}
.mr-chip.is-lose{border:1px solid #d7c4f580;color:#d7c4f5}
.mr-sum{margin-left:auto;color:#d7c4f5;font-size:12px;font-weight:400;white-space:nowrap}
.mr-sum strong{color:#fff;font-weight:700}
.mr-roster{list-style:none;min-width:0;margin:0;padding:0;overflow:hidden;border:1px solid #c58afd4d;border-radius:16px;background:#1a0b3d;box-shadow:0 8px 20px #0003}
.mr-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0;padding:10px 12px;background:linear-gradient(90deg,#468cff29,transparent 55%)}
.mr-row > button,.mr-row > .match-result-assign{flex:1 0 100%}
.mr-row + .mr-row{border-top:1px solid #ffffff14}
.mr-row.is-red{background:linear-gradient(90deg,#ff507824,transparent 55%)}
.mr-row.me{background:linear-gradient(90deg,#ffe56a2e,transparent 60%);box-shadow:inset 2px 0 0 #ffe56a}
.mr-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.mr-face{position:relative;flex:none;display:grid;place-items:center;width:56px;height:56px;overflow:hidden;border-radius:10px;background:#2a1458;color:#fff;font-size:22px;font-weight:800;box-shadow:inset 0 0 0 1.5px #5aa8ffd9}
.mr-row.is-red .mr-face{box-shadow:inset 0 0 0 1.5px #ff6f91d9}
.mr-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mr-hero{position:absolute;right:0;bottom:0;left:0;z-index:1;height:16px;padding:0 3px;overflow:hidden;border-radius:0 0 8px 8px;background:linear-gradient(180deg,transparent,#000000c7);color:#fff;font-size:9px;font-weight:600;line-height:16px;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.mr-id{display:grid;flex:1;gap:7px;min-width:0}
.mr-who{display:grid;flex:1;gap:3px;min-width:0}
.mr-name-line,.mr-user{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden}
.mr-name{flex:0 1 auto;min-width:0;overflow:hidden;font-size:14px;font-weight:700;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.mr-name-line .match-tag,.mr-user .match-tag{flex:none}
.mr-row.me .mr-name{color:#ffe56a}
.mr-user{overflow:hidden;color:#cbb6e8;font-size:11px;line-height:1.4}
.mr-person{flex:none;width:11px;height:11px}
.match-result .match-tag{max-width:100%;padding:0 4px;border-radius:4px;font-size:9px;font-weight:800;line-height:14px}
.match-result .match-tag.is-me{border:0;background:linear-gradient(90deg,#b524e9,#e600d6);color:#fff}
.match-result .mr-user .match-tag:not(.is-me){border:1px solid #d7c4f599;background:transparent;color:#d7c4f5}
.match-result .match-tag.is-mvp,.match-result .match-tag.is-gold{border:1px solid #ffe56a;background:#ffe56a1f;color:#ffe56a}
.match-result .match-tag.is-silver{border:1px solid #d9d4cf;background:transparent;color:#d9d4cf}
.match-result .match-tag.is-bronze{border:1px solid #c4844a;background:transparent;color:#e0b48a}
.mr-scoreblock{display:grid;flex:none;justify-items:end;gap:0;margin-left:8px;text-align:right}
.mr-kda{margin-top:3px;font-size:13px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}
.mr-slash{padding:0 2px;opacity:.45}
.mr-grade{display:flex;align-items:baseline;justify-content:flex-end;gap:4px;color:#b9a6d6;font-size:9px;font-weight:650;line-height:1}
.mr-grade b{color:#fff;font-size:20px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.mr-grade.is-mvp b{color:#ffe56a}
.mr-gear{display:flex;align-items:center;min-width:0}
.mr-skill{flex:none;width:24px;height:24px;margin-right:6px;overflow:hidden;border:1px solid #c58afd80;border-radius:50%;background:#120826}
.mr-skill img,.mr-eq img{display:block;width:24px;height:24px;object-fit:cover}
.mr-items{display:flex;flex:none;gap:3px;min-width:0}
.mr-eq{flex:none;width:24px;height:24px;overflow:hidden;border-radius:6px;background:#120826}
.mr-eq.is-empty{border:1px dashed #c58afd47;background:transparent}
.mr-coin{display:flex;flex:none;align-items:center;gap:4px;margin-left:auto;color:#ffe9a8;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.mr-coin-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#ffd24a;box-shadow:inset 0 0 0 1.5px #b8860b}
.mr-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0}
.mr-metric[hidden]{display:none}
.mr-ranks{list-style:none;min-width:0;margin:0;padding:0;overflow:hidden;border:1px solid #c58afd4d;border-radius:16px;background:#1a0b3d}
.mr-rank{display:grid;grid-template-columns:18px 36px minmax(0,1fr);gap:10px;align-items:center;min-width:0;padding:10px 12px}
.mr-rank + .mr-rank{border-top:1px solid #ffffff14}
.mr-rank-no{color:#b9a6d6;font-size:12px;font-weight:700;text-align:center}
.mr-rank-no.is-top{color:#fff}
.mr-rank-face{position:relative;width:36px;height:36px;overflow:hidden;border-radius:8px;background:#2a1458;box-shadow:inset 0 0 0 1.5px #5aa8ffd9}
.mr-rank-face.is-red{box-shadow:inset 0 0 0 1.5px #ff6f91d9}
.mr-rank-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mr-rank-info{display:grid;gap:6px;min-width:0}
.mr-rank-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.mr-rank-names{display:flex;align-items:center;gap:4px;min-width:0}
.mr-rank-name{overflow:hidden;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.mr-rank-name.is-me{color:#ffe56a}
.mr-rank-figures{display:flex;flex:none;align-items:baseline;gap:6px}
.mr-rank-figures b{font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.mr-rank-figures span{color:#b9a6d6;font-size:11px}
.mr-meter{height:6px;overflow:hidden;border-radius:3px;background:#ffffff14}
.mr-meter b{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#3d8bff,#7cc0ff)}
.mr-meter b.is-red{background:linear-gradient(90deg,#ff5b84,#ff9db5)}
.mr-caption{margin:8px 0 0;padding-left:2px;color:#b9a6d6;font-size:11px;line-height:1.4}
.match-result .mr-team-head{font-size:15px;font-weight:700}
.match-result-own{display:grid;gap:8px;min-width:0}
.match-result-own p{color:#d7c4f5;font-size:12px;line-height:1.5}
.match-result-claimed{margin:0;color:#ffd0dc;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.match-result-assign{display:grid;gap:8px;min-width:0}
.match-result-assign select{width:100%;max-width:100%;min-width:0;min-height:44px;padding:0 8px;border:1px solid #c58afd88;border-radius:12px;background:#120826;color:#fff;font:inherit;font-size:16px}
.match-result .match-result-assign button,.match-result button.match-result-claim{width:100%;min-height:44px;height:auto;padding:8px 12px;border-radius:12px;font-weight:700;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.match-result button.match-result-claim{border:1px solid #f70ba8;background:#3a1052;color:#fff}
.match-result button.match-result-claim[aria-pressed=true],.match-result .match-result-assign button{border:0;background:#f70ba8;color:#fff}
.match-result-stat{display:grid;gap:8px;min-width:0}
.match-result-stat h4{color:#d7c4f5;font-size:13px;font-weight:700}
.match-result-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;min-width:0}
.match-result-bar b{overflow:hidden;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.match-result-bar > span{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.match-result-track{grid-column:1 / -1;height:8px;overflow:hidden;border-radius:4px;background:#1a0b3d}
.match-result-track i{display:block;height:100%;border-radius:4px}
.match-result-track i.is-blue{background:#6fb4ff}
.match-result-track i.is-red{background:#ff7d9c}
.match-result button.match-result-read{min-height:44px;padding:0 16px;border:0;border-radius:14px;background:#fff;color:#4a1b86;font-weight:700}
.live-match-sheet > header button{min-height:44px;min-width:64px}
.match-result-options{display:grid;gap:8px}
.match-result button.match-result-option{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 12px;border:1px solid #c58afd88;border-radius:14px;background:#1a0b3d;color:#fff;text-align:left;font-weight:600}
.match-result button.match-result-option[aria-pressed=true]{border-color:#f70ba8;background:#3a1052}
.match-result button.match-result-option:disabled{opacity:.6}
.match-result button.match-result-option:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
.match-result button.match-result-none{justify-content:center;color:#ffd0dc;border-color:#ff8eab66;background:transparent}
.live-match-sheet .match-result{margin-top:8px}
.live-match-sheet .match-result-banner{display:grid;align-items:stretch;justify-content:stretch;margin-bottom:0}
.live-match-sheet .room-entry{margin-top:10px}
.live-match-sheet .room-entry button{min-height:40px}
.match-featured{display:contents}
.profile-panel .match-card{display:grid;gap:8px;width:100%;min-height:44px;padding:16px;border:1px solid #c58afd55;border-radius:16px;background:linear-gradient(145deg,#3a1874,#1a0b3a);color:#fff;text-align:left;font-weight:600;transition:background-color 150ms ease-out}
.profile-panel .match-card strong{font-size:16px;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
.match-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#e6d7ff;font-size:13px;font-weight:600;line-height:1.4}
.match-card-time{color:#c4b0e0;font-size:12px;font-weight:500;line-height:1.3}
.match-status{margin-left:auto;padding:2px 8px;border-radius:999px;background:#2a1458;color:#f6eaff;font-size:12px;font-weight:700;line-height:1.4}
.match-detail-status{display:inline-block;width:fit-content;margin:0}
.match-status-open{background:#12352e;color:#b8ffe8}
.match-status-started{background:#6d22a8;color:#fff}
.match-status-settling{background:#8a5a12;color:#ffe7b0}
.match-status-ended{background:#2a1458;color:#e6d7ff}
.match-status-cancelled{background:#3a1830;color:#ffd0dc}
.profile-panel .match-card:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
.profile-panel .match-card:active{background:#2a1458}
.match-empty{margin:4px 0 0;color:#d7c4f5;font-size:14px;line-height:1.5}
.match-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
.match-facts div{display:grid;gap:4px;min-width:0;padding:12px;border-radius:12px;background:#1a0b3d}
.match-facts div:last-child:nth-child(odd){grid-column:1 / -1}
.match-facts dt{margin:0;color:#d7c4f5;font-size:12px;font-weight:650;line-height:1.3}
.match-facts dd{margin:0;overflow-wrap:anywhere;font-size:16px;font-weight:750;line-height:1.3;font-variant-numeric:tabular-nums}
.match-members{list-style:none;margin:0;padding:0;display:grid;border:1px solid #ffffff1a;border-radius:16px;overflow:hidden}
.match-members li{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 16px;background:#1a0b3d}
.match-members li + li{border-top:1px solid #ffffff14}
.match-members li > span:first-child{margin-right:auto;font-weight:700;line-height:1.3}
.match-tag{padding:2px 8px;border-radius:999px;background:#2a1458;color:#f6eaff;font-size:12px;font-weight:700;line-height:1.4}
.profile-panel button.match-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:0 16px;border:0;border-radius:14px;background:linear-gradient(110deg,#f70ba8,#ec08cd 70%,#a31cff);color:#fff}
.profile-panel button.match-action:disabled{background:#2a1458;color:#d7c4f5}
.profile-panel button.match-action-quiet{background:transparent;color:#ffd0dc;border:1px solid #ff8eab66}
.profile-panel button.match-action:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
.match-action-error:empty{display:none}
.match-action-error{margin:0;color:#ffb4c8;font-size:13px;line-height:1.4}
.match-finish-form{display:grid;gap:12px;min-width:0}
.match-finish-form fieldset{display:block;width:100%;min-width:0;margin:0;padding:12px 16px 16px;border:1px solid #ffffff1a;border-radius:16px}
.match-finish-form legend{display:block;width:100%;margin:0 0 8px;padding:0;color:#e6d7ff;font-size:13px;font-weight:700;line-height:1.4}
.profile-page .match-finish-form .match-choice{flex-direction:row;align-items:center;gap:12px;min-height:44px}
.match-finish-form input[type=checkbox]{width:20px;height:20px;min-height:20px;margin:0;padding:0;border:0;border-radius:4px;background:transparent;accent-color:#c044f2;flex:none}
.match-finish-form .match-mvp{margin-top:4px}
.match-finish-form select{width:100%;font-size:16px}
.profile-acts button{transition:filter 150ms ease-out}
@media (prefers-reduced-motion: reduce){
  .profile-panel .profile-tabs button,.profile-panel .match-card,.profile-acts button{transition:none}
}
.profile-wallet button{min-width:0;overflow-wrap:anywhere}

#profile.showing-match > .profile-heading,
#profile.showing-match .profile-card { display: none; }
#profile.showing-match .profile-panel { margin-top: 0; }

/* A profile layer covers 我的. The bottom tabs belong to the pages under it.
   The wallet pages and the bill are the exception: they keep the tabs. */
html[data-page="profile"] .app:has(.match-navigation):not(:has(.keeps-tabs)) {
  --dock-clearance: env(safe-area-inset-bottom, 0px);
}
html[data-page="profile"] .app:has(.match-navigation):not(:has(.keeps-tabs)):not(:focus-within) {
  --profile-clearance: env(safe-area-inset-bottom, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html[data-page="profile"] .app:has(.match-navigation):not(:has(.keeps-tabs)) + .nav { display: none; }

/* The wallet pages and the bill. Each starts with a bar: back, then the
   title. They bring their own margins, so they pull out of 我的's padding
   at the top and the sides. Its bottom padding keeps them above the tabs. */
#profile.keeps-tabs #profile-panels:not([hidden]){flex:1;display:flex;flex-direction:column;margin:-22px -18px 0}
#profile.keeps-tabs .profile-back-source{min-height:calc(var(--shell-height,100dvh) - var(--dock-clearance,82px))}
.profile-panel.mine-page{display:flex;flex-direction:column;flex:1;gap:0;margin-top:0}
.mine-page,.profile-bill{-webkit-font-smoothing:antialiased}
/* The glow behind these pages is as tall as one screen however long the page
   is, so a long list does not stretch it. */
#profile.keeps-tabs{background:radial-gradient(ellipse 70.71% calc(var(--shell-height,100dvh) * 1.4142) at top,#2a0a62,transparent 55%),#100832}
/* The bar stays at the top while the page under it scrolls. Its background
   is the same glow 我的 paints behind it, so the bar does not show at rest. */
.mine-nav{position:sticky;top:0;z-index:2;flex:none;display:flex;align-items:center;gap:4px;height:48px;padding:0 8px;background:radial-gradient(ellipse 70.71% calc(var(--shell-height,100dvh) * 1.4142) at top,#2a0a62,transparent 55%),#100832}
.mine-nav h3{flex:0 1 auto;margin:0;font-size:17px;font-weight:650;letter-spacing:-.2px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mine-nav-sub{flex:0 1 auto;min-width:0;margin:3px 0 0 4px;color:#d7c4f5;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mine-nav-sub:empty{display:none}
.mine-nav .mine-back,.profile-panel .mine-nav button.mine-back{flex:none;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:12px;background:none;color:#fff}
.mine-back:focus-visible,.mine-face:focus-visible,.mine-thread:focus-visible,.mine-chip:focus-visible,.mine-send:focus-visible{outline:3px solid #63f9ff;outline-offset:2px}
.mine-content{padding:8px 16px 16px}
.mine-content.is-tight{padding-top:4px}
.mine-card{border:1px solid #c58afd66;border-radius:20px;background:linear-gradient(145deg,#4a1b86,#241048 62%,#1a0b3a);box-shadow:inset 0 1px 0 #ffffff22,0 10px 24px #0004;padding:22px 16px 6px}
.mine-total{margin:0;font-size:34px;font-weight:800;letter-spacing:-.7px;line-height:1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.mine-total.is-available{color:#ffe56a}
.mine-total.is-frozen{color:#ffb4c8}
.mine-total.is-inactive{color:#d7b4ff}
.mine-card:has(>.mine-stack){padding-bottom:8px}
.mine-hint{margin:8px 0 0;color:#d7c4f5;font-size:13px;line-height:1.5}
.mine-total.is-available + .mine-hint,.mine-inbox .mine-hint{line-height:normal}
.mine-total.is-frozen + .mine-hint{line-height:1.45}
/* A hint breaks between its sentences before it breaks inside one. */
.mine-hint span{display:inline-block;max-width:100%}
.mine-hint.mine-empty{padding:6px 0 16px}
/* What a refused request answered. Alone on a page it sits under the bar.
   On the promotion page and the bill it sits under the chips, and in a
   conversation above the composer. */
.mine-content .mine-error,.profile-bill-body .mine-error{margin:0;color:#ffb4c8;font-size:13px;line-height:1.5}
.mine-content .mine-range + .mine-error{margin:-8px 2px 12px}
.mine-content .mine-talk + .mine-error{margin:0 0 8px}
.profile-bill-body .mine-error{margin:-2px 2px 12px}
.mine-error[hidden]{display:none}
.mine-stack{display:flex;height:12px;margin:18px 0 6px;border-radius:8px;overflow:hidden}
.mine-stack i{display:block;height:100%;flex:0 0 0}
.mine-source{padding:14px 0 12px}
.mine-source + .mine-source,.mine-line + .mine-line,.mine-person + .mine-person,.mine-thread + .mine-thread,.mine-invitee + .mine-invitee{box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}
.mine-source > div{display:flex;align-items:baseline;gap:8px}
.mine-source b{flex:1;min-width:0;font-size:16px;font-weight:700}
.mine-source span{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.mine-source em{min-width:42px;text-align:right;font-style:normal;font-size:13px;color:#e7d4ff;font-variant-numeric:tabular-nums}
.mine-track{height:6px;margin-top:8px;border-radius:4px;background:#2a1458;overflow:hidden}
.mine-track i{display:block;height:100%;border-radius:4px}
.mine-line{padding:14px 0 12px}
.mine-line > div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.mine-line b{font-size:16px;font-weight:700}
.mine-line strong{flex:none;font-size:18px;font-weight:800;color:#ffb4c8;font-variant-numeric:tabular-nums}
.mine-line p{margin:6px 0 0;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.mine-line time{display:block;margin-top:4px;color:#d7c4f5;font-size:12px;font-variant-numeric:tabular-nums}
.mine-person{display:flex;align-items:center;gap:12px;padding:14px 0}
.mine-who{flex:1;min-width:0}
.mine-who b{display:block;font-size:16px;font-weight:750;overflow-wrap:anywhere}
.mine-who small{display:block;margin-top:3px;color:#d7c4f5;font-size:12px;font-variant-numeric:tabular-nums}
.mine-game{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:14px;min-width:0;overflow-wrap:anywhere}
.mine-game i{flex:none;padding:1px 4px;border-radius:4px;background:rgba(255,229,106,.16);color:#ffe56a;font-size:10px;font-weight:700}
.mine-game.is-dim{color:#d7c4f5}
.mine-face,.profile-panel button.mine-face{flex:none;display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:0;border:0;border-radius:50%;overflow:hidden;background:#3a1874;box-shadow:0 0 0 2px #c58afd;color:#fff;font-size:18px;font-weight:800;line-height:1}
.mine-face img{grid-area:1 / 1;width:100%;height:100%;object-fit:cover}
.mine-face span{grid-area:1 / 1}
.mine-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.profile-panel button.mine-chip{height:36px;min-height:36px;padding:0;border:0;border-radius:18px;background:#2a1458;color:#fff;font-size:14px;font-weight:650}
.profile-panel button.mine-chip[aria-selected=true]{background:linear-gradient(110deg,#b524e9,#ee00d6);font-weight:750}
.mine-dates{display:flex;align-items:center;gap:8px;margin-top:10px;color:#d7c4f5;font-size:13px}
.mine-dates[hidden]{display:none}
.mine-dates input{flex:1;min-width:0;height:40px;min-height:40px;padding:0 14px;border:1px solid #c58afd55;border-radius:20px;background:#1a0b3d;color:#fff;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;-webkit-appearance:none;appearance:none}
.mine-dates input::-webkit-date-and-time-value{text-align:left}
.mine-dates input::-webkit-calendar-picker-indicator{margin:0 0 0 4px;padding:0;opacity:.75}
@media (max-width:359px){.mine-dates{gap:6px}.mine-dates input{padding:0 10px;font-size:13px}}
.mine-range{min-height:17px;margin:10px 2px 14px;color:#d7c4f5;font-size:12px;line-height:17px;font-variant-numeric:tabular-nums}
.mine-card.mine-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:18px 8px 8px}
.mine-card.mine-stats div{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:0 4px}
.mine-card.mine-stats div + div{box-shadow:inset 1px 0 0 rgba(255,255,255,.16)}
.mine-card.mine-stats strong{display:block;max-width:100%;height:20px;font-size:20px;font-weight:800;letter-spacing:-.4px;line-height:20px;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:center}
.mine-card.mine-stats strong.is-gold{color:#ffe56a}
.mine-card.mine-stats span{color:#d7c4f5;font-size:12px}
.mine-sec{margin:16px 2px 8px;color:#d7c4f5;font-size:13px}
.mine-list{border:1px solid #c58afd55;border-radius:20px;background:#1a0b3d;padding:4px 14px}
.mine-list.is-empty{padding-top:8px}
.mine-list:empty{display:none}
.mine-invitee{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:3px;align-items:center;padding:12px 0}
.mine-invitee .mine-face{grid-row:1 / span 2;width:44px;height:44px;min-height:44px}
.mine-invitee b{min-width:0;font-size:16px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mine-invitee time{color:#d7c4f5;font-size:12px;font-variant-numeric:tabular-nums}
.mine-invitee em{font-style:normal;font-size:14px;font-weight:750;text-align:right;font-variant-numeric:tabular-nums}
.mine-invitee em.is-mint{color:#8dffb4}
.mine-invitee em.is-dim{color:#d7c4f5}
.mine-invitee small{color:#d7c4f5;font-size:12px;text-align:right}
.mine-invitee small.is-ok{color:#8dffb4}
.mine-card.mine-inbox{padding:18px 16px 4px}
.mine-inbox .mine-hint{margin-top:0}
.profile-panel button.mine-thread{display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:4px;align-items:center;width:100%;min-height:0;padding:14px 0;border:0;border-radius:0;background:none;color:#fff;text-align:left;font-weight:400}
.mine-thread .mine-face{grid-row:1 / span 2}
.mine-thread b{min-width:0;font-size:16px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mine-thread.is-unread b{font-weight:800}
.mine-thread time{color:#d7c4f5;font-size:12px;font-variant-numeric:tabular-nums;text-align:right}
.mine-preview{min-width:0;color:#cbb6e8;font-size:13px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mine-thread.is-unread .mine-preview{color:#e7d4ff}
.mine-thread small{color:#d7c4f5;font-size:12px;font-weight:500}
.mine-thread.is-unread small{color:#ffb4c8;font-weight:700}
.mine-content.mine-chat{flex:1;display:flex;flex-direction:column;padding-bottom:0}
.mine-talk{flex:1;display:flex;flex-direction:column;gap:10px;padding-bottom:12px}
.mine-bubble{align-self:flex-start;max-width:78%;padding:10px 14px 8px;border-radius:18px 18px 18px 6px;background:#2a1458}
.mine-bubble.is-mine{align-self:flex-end;border-radius:18px 18px 6px 18px;background:linear-gradient(110deg,#b524e9,#ee00d6)}
.mine-bubble p{margin:0;font-size:15px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.mine-bubble time{display:block;margin-top:3px;color:#d7c4f5;font-size:11px;line-height:1.35;font-variant-numeric:tabular-nums}
.mine-bubble.is-mine time{color:#ffe6fb;text-align:right}
.mine-talk .mine-empty{margin:auto;padding:24px 0;text-align:center}
.mine-compose{position:sticky;bottom:var(--profile-clearance,var(--dock-clearance,82px));z-index:1;display:flex;gap:8px;margin:0 -16px;padding:10px 16px;background:#100832;box-shadow:0 -1px 0 #7431b766}
.profile-page form.mine-compose:not([hidden]){flex-direction:row;align-items:center;gap:8px}
/* Under the composer, down to the bottom of the screen, the page colour
   covers the messages, so none shows between the composer and the tabs. */
.mine-compose::after{content:"";position:absolute;left:0;right:0;top:100%;height:var(--profile-clearance,var(--dock-clearance,82px));background:#100832}
.mine-compose input{flex:1;min-width:0;height:44px;padding:0 16px;border:1px solid #c58afd55;border-radius:22px;background:#1a0b3d;font-size:16px}
.mine-compose input::placeholder{color:#a996cf}
/* The field being typed in has the lilac ring the avatars have. The cyan
   ring of the other fields on 我的 stays as it is. */
.mine-compose input:focus-visible,.mine-dates input:focus-visible{outline:2px solid transparent;outline-offset:0;border-color:#c58afd;box-shadow:0 0 0 1px #c58afd}
.profile-panel button.mine-send{flex:none;min-width:68px;height:44px;min-height:44px;padding:0 18px;border:0;border-radius:22px;background:linear-gradient(110deg,#b524e9,#ee00d6);color:#fff;font-size:15px;font-weight:750}
.profile-panel button.mine-send:disabled{opacity:.45}

/* Logged-in 我的 home. The guest form and the pushed panels keep the dark page. */
#profile:not(.showing-match):not(.keeps-tabs):has(#profile-user:not([hidden])){padding:8px 14px calc(96px + env(safe-area-inset-bottom, 0px));background:#0B0714;color:#fff}
.mine-home{position:relative;gap:12px;margin:0;color:#fff;--mine-plate:#1B1430;--mine-edge:1px solid rgba(255,255,255,.12);--mine-lift:0 10px 24px rgba(0,0,0,.45)}
.mine-glow{position:absolute;z-index:0;top:0;left:8px;width:160px;height:80px;background:radial-gradient(circle,rgba(138,43,226,.28),transparent 75%);pointer-events:none}
.mine-profile,.mine-stats,.mine-actions,.mine-level-card,.mine-tools,.mine-home .profile-logout{position:relative;z-index:1}
.mine-profile{display:flex;align-items:center;gap:12px;min-height:56px;padding:0 4px}
.mine-avatar{width:48px;height:48px;flex:none;border:0;border-radius:50%;padding:0;background:#3a1874;box-shadow:0 0 0 2px #c58afd;display:grid;place-items:center;overflow:hidden}
.mine-avatar img{width:100%;height:100%;object-fit:cover}
.mine-avatar span{font-size:18px;font-weight:800;color:#fff}
.mine-id{flex:1;min-width:0}
.mine-name-row{display:flex;align-items:center;gap:6px;min-width:0}
#profile-user .mine-home #profile-username{margin:0;font-size:17px;font-weight:800;letter-spacing:-.2px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mine-check{width:16px;height:16px;flex:none;border-radius:50%;background:#1677FF;color:#fff;font-size:10px;line-height:16px;text-align:center}
.mine-level{display:inline-flex;align-items:center;gap:2px;height:16px;padding:0 5px;border-radius:6px;background:linear-gradient(90deg,#FF3366,#FF5E89);color:#fff;font-size:10px;font-weight:800}
.mine-home #profile-invite{margin-top:2px;color:#A89BB8;font-size:12px}
.mine-home #profile-invite-code{color:#A89BB8;font-weight:600}
.mine-home #profile-invite-action{color:#A89BB8}
.mine-chevron{flex:none;color:#A89BB8;font-size:22px;line-height:1}
.mine-stats{display:flex;align-items:center;height:56px;padding:0 16px;border:var(--mine-edge);border-radius:16px;background:var(--mine-plate);box-shadow:var(--mine-lift)}
.mine-stats div{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;padding:0}
.mine-stats strong{height:auto;font-size:17px;font-weight:800;line-height:1.05;color:#fff}
.mine-stats span{margin:0;color:#A89BB8;font-size:11px;line-height:1.15}
.mine-stats i{width:1px;height:16px;background:rgba(255,255,255,.08)}
#profile-links.mine-links{display:flex;flex-direction:column;gap:12px}
.mine-actions{display:flex;flex-direction:column;gap:16px;padding:0;border:0;background:none;box-shadow:none}
.mine-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.mine-shortcuts button{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:66px;padding:0;border:0;background:none;color:#C8B8DC;font-size:11px;font-weight:500}
.mine-shortcuts i{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;font-style:normal;font-size:17px;font-weight:700}
.mine-shortcuts svg{width:20px;height:20px;display:block}
.mine-shortcuts .is-wallet i{background:linear-gradient(135deg,#FFA927,#FF7F00);box-shadow:0 4px 10px rgba(255,127,0,.28)}
.mine-shortcuts .is-withdraw i{background:linear-gradient(135deg,#FF538A,#FF1C5E);box-shadow:0 4px 10px rgba(255,28,94,.28)}
.mine-shortcuts .is-events i{background:linear-gradient(135deg,#3A88FF,#1557FF);box-shadow:0 4px 10px rgba(21,87,255,.28)}
.mine-shortcuts .is-noble i{background:linear-gradient(135deg,#A855F7,#7922E5);box-shadow:0 4px 10px rgba(121,34,229,.28)}
.mine-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.mine-tile-empty{height:72px;border-radius:16px;background:linear-gradient(145deg,#5c5470,#3d3654);box-shadow:0 8px 16px rgba(0,0,0,.35);pointer-events:none}
.mine-tile{position:relative;display:flex;flex-direction:column;justify-content:space-between;height:72px;padding:8px;border:0;border-radius:16px;color:#fff;text-align:left;overflow:hidden}
.mine-tile b{font-size:13px;font-weight:800;line-height:1.15}
.mine-tile svg{width:24px;height:24px;align-self:flex-end}
.mine-tile.is-match{background:linear-gradient(145deg,#2B73FF,#104ACC);box-shadow:0 8px 16px rgba(0,0,0,.35)}
.mine-tile.is-king{background:linear-gradient(145deg,#FF3B56,#D41432);box-shadow:0 8px 16px rgba(0,0,0,.35)}
.mine-tile.is-mail{background:linear-gradient(145deg,#7C3AED,#551CB0);box-shadow:0 8px 16px rgba(0,0,0,.35)}
.mine-tile .profile-link-status{position:absolute;left:8px;bottom:6px;color:#fff;font-size:10px}
.mine-home #profile-message-count{top:4px;right:4px;background:#FF3B30}
.mine-level-card,.mine-tools{border:var(--mine-edge);border-radius:18px;background:var(--mine-plate);box-shadow:var(--mine-lift)}
.mine-level-card{padding:12px}
.mine-level-head{margin-bottom:8px}
.mine-invite-dates {
  --calendar-ink: #28205f;
  --calendar-muted: #615984;
  --calendar-accent: #5842bc;
  --calendar-range: #d5cafa;
  margin: 0;
  padding: 0 5.2cqw;
  color: var(--calendar-ink);
  /* Extend the six clear rows just below the header controls, including both glass edges. */
  border-image: var(--profile-art) 785 0 581 fill / 0 stretch;
}
.mine-invite-dates[hidden], .mine-cal[hidden], .mine-cal-label[hidden], .mine-cal-prompt[hidden] {display: none}
.mine-cal-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  color: var(--calendar-muted);
  font-size: 12px;
  font-weight: 600;
}
.mine-cal {
  padding: 0 5px 9px;
  background: linear-gradient(145deg, #faf7ffdf, #efecffdb);
  border: 1px solid #ffffffc9;
  border-radius: 14px;
  color: var(--calendar-ink);
}
.mine-cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 3px;
}
.mine-cal-bar strong {font-size: 15px; font-weight: 700}
.mine-cal-bar button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--calendar-accent);
  font-size: 21px;
}
.mine-cal-week, .mine-cal-days {display: grid; grid-template-columns: repeat(7, minmax(0, 1fr))}
.mine-cal-week span {padding: 3px 0; text-align: center; font-size: 11px; color: var(--calendar-muted)}
.mine-cal-days button {
  position: relative;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--calendar-ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mine-cal-days :is(.is-between, .is-range-from, .is-range-to)::before {
  content: "";
  position: absolute;
  inset: 5px 0;
  background: var(--calendar-range);
}
.mine-cal-days .is-range-from::before {left: 50%}
.mine-cal-days .is-range-to::before {right: 50%}
.mine-cal-days :is(.is-start, .is-end)::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--calendar-accent);
}
.mine-cal-days button span {position: relative; z-index: 1}
.mine-cal-days :is(.is-start, .is-end) span {color: #fff}
.mine-cal button:disabled {color: #948fa9; opacity: 1}
.mine-cal-days button.is-muted {visibility: hidden}
.mine-invite-dates button:focus-visible {outline: 2px solid var(--calendar-accent); outline-offset: -2px}
.mine-pages{display:flex;width:100%;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-x:contain;cursor:grab}
.mine-pages.is-dragging{cursor:grabbing;scroll-snap-type:none}
.mine-pages::-webkit-scrollbar{display:none}
.mine-page{flex:0 0 100%;min-width:0;scroll-snap-align:start}
.mine-cells{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.mine-cells div{display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 2px 6px;border:1px solid rgba(255,255,255,.04);border-radius:10px;background:#120C22}
.mine-cells strong{height:auto;font-size:16px;font-weight:800;color:#ffe56a;line-height:1.05}
.mine-cells strong.is-hot{color:#ffb45a}
.mine-cells span{margin:0;color:#A89BB8;font-size:10px;line-height:1.15}
.mine-dots{display:flex;justify-content:center;align-items:center;gap:4px;margin-top:8px}
.mine-dots button{width:3px;height:3px;min-height:0;padding:0;border:0;border-radius:999px;background:#5a3d86}
.mine-dots button.is-on{width:14px;background:#ee00d6}
.mine-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 4px;padding:10px 8px}
.mine-tools button{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:0;padding:0;border:0;background:none;color:#C8B8DC;font-size:11px;font-weight:500}
.mine-tools i{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff}
.mine-tools svg{width:16px;height:16px;display:block}
.mine-tools .t1 i{background:linear-gradient(#3B82F6,#1D4ED8)}
.mine-tools .t2 i{background:linear-gradient(#10B981,#059669)}
.mine-tools .t3 i{background:linear-gradient(#8B5CF6,#6D28D9)}
.mine-tools .t4 i{background:linear-gradient(#EF4444,#DC2626)}
.mine-tools .t5 i{background:linear-gradient(#6366F1,#4F46E5)}
.mine-tools .t6 i{background:linear-gradient(#F59E0B,#D97706)}
.mine-tools .t7 i{background:linear-gradient(#0EA5E9,#0284C7)}
.mine-tools .t8 i{background:linear-gradient(#EC4899,#DB2777)}
.mine-keep{display:none}
.mine-home .profile-logout{color:#A89BB8;padding:8px 6px 0}

/* The account dashboard uses a decorative sprite. Its account data, labels
   and controls remain live DOM elements. */
#profile:not(.showing-match):not(.keeps-tabs):has(#profile-user:not([hidden]) .mine-home:not([hidden])) {
  padding: 0 0 calc(max(61px, min(16.015625vw, 73.672px)) + env(safe-area-inset-bottom, 0px));
  background: #0b0714;
}
.mine-home {
  --profile-art: url("/assets/profile-dashboard-v1.eb4ab922742534c35e00fa366773506f3aa5d5e5c8084eac27b2e5cf81328163.webp");
  container-type: inline-size;
  margin: 0;
  gap: 0;
  background: #0b0714;
  color: #171155;
}
.mine-home .mine-profile, .mine-home .mine-shortcuts, .mine-home .mine-tiles,
.mine-home .mine-level-head, .mine-home .mine-cells, .mine-home .mine-tools {
  background-image: var(--profile-art);
  background-repeat: no-repeat;
  background-size: 100cqw auto;
}
.mine-home .mine-profile {
  display: block;
  position: relative;
  min-height: max(98px, 25.1953125cqw);
  height: 25.1953125cqw;
  padding: 0;
  background-position: 0 0;
}
.mine-home .mine-id {
  position: absolute;
  inset-inline: 24%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(1cqw + 3px);
  color: #fff;
}
.profile-avatar-thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(44px, 10.7cqw, 58px);
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid #f4e6ff;
  border-radius: 50%;
  background: linear-gradient(145deg,#c4a0ff,#6f48c2 65%,#5539a3);
  box-shadow: 0 1px 8px #24114e88;
  color: #fff;
  font-size: clamp(17px, 4.4cqw, 23px);
  font-weight: 650;
  cursor: pointer;
}
.profile-avatar-thumb img {width: 100%; height: 100%; object-fit: cover}
.profile-identity {
  min-width: 0;
  max-width: 100%;
  display: grid;
  justify-items: center;
  gap: calc(.8cqw + 3px);
}
.profile-name-line {
  display: flex;
  align-items: baseline;
  gap: 1.4cqw;
  min-width: 0;
  max-width: 100%;
  text-shadow: 0 1px 5px #292365;
}
#profile-user .mine-home #profile-username {
  min-width: 0;
  font-size: clamp(15px, 4.05cqw, 22px);
  line-height: 1.25;
}
.mine-home #profile-invite:not([hidden]) {
  min-width: 0;
  margin: 0;
  font-size: clamp(11px, 2.8cqw, 15px);
  font-variant-numeric: tabular-nums;
  color: #eeeaff;
}
.mine-home #profile-invite-code {
  white-space: nowrap;
  font-weight: 550;
  letter-spacing: .03em;
  color: inherit;
}
.profile-vip {
  display: inline-flex;
  align-items: center;
  gap: .8cqw;
  padding: .5cqw 1.9cqw;
  border: 1px solid #ffd685;
  border-radius: 99px;
  background: linear-gradient(115deg,#81441f,#8a4d2a 45%,#422845);
  box-shadow: inset 0 1px 3px #ffda9959, 0 1px 5px #351b543d;
  color: #ffe7a2;
  font-size: clamp(11px, 2.7cqw, 15px);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.profile-vip svg {width: 1.25em; height: 1.25em}
.mine-home #profile-links {display: flex; flex-direction: column; gap: 0}
.mine-home .mine-shortcuts, .mine-home .mine-tools {
  display: grid;
  grid-template-columns: 25.7% 23.5% 24.4% 26.4%;
  gap: 0;
  padding: 0 2.2cqw;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
}
.mine-home .mine-shortcuts {
  height: 15.0390625cqw;
  background-position: 0 -25.1953125cqw;
}
.mine-home .mine-shortcuts button, .mine-home .mine-tools button {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
  padding: 0 0 1.2cqw;
  color: #131052;
  font-size: clamp(10px, 2.75cqw, 16px);
  line-height: 1.2;
  border-radius: 1.4cqw;
}
.mine-home button[disabled] {cursor: default}
.mine-home .mine-tools button small, .mine-home .mine-shortcuts button small {
  position: absolute;
  right: .8cqw;
  top: .8cqw;
  border-radius: 8px;
  background: #f6f3ffe8;
  padding: .3cqw .8cqw;
  color: #756992;
  font-size: clamp(8px, 1.75cqw, 10px);
  font-weight: 500;
}
.mine-home .mine-tiles {
  display: grid;
  height: 28.7109375cqw;
  grid-template-columns: 1fr 1fr;
  gap: 2cqw;
  padding: 2.1cqw 2.2cqw;
  background-position: 0 -40.234375cqw;
}
.profile-promo-banner {
  position: relative;
  min-width: 0;
  border: 0;
  border-radius: 3cqw;
  padding: 0;
  background: transparent;
  color: #fff;
  white-space: nowrap;
}
.profile-promo-banner .banner-heading, .profile-promo-banner .banner-caption,
.profile-promo-banner .banner-cta {position: absolute; left: var(--banner-inset)}
.profile-promo-banner .banner-heading {
  top: 5.6cqw;
  font-size: 4.7cqw;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.15cqw;
  transform: skew(-6deg);
}
.profile-promo-banner .banner-caption {
  top: 12.2cqw;
  font-size: 2.23cqw;
  line-height: 1.2;
  font-weight: 600;
}
.profile-promo-banner .banner-cta {
  top: 18.4cqw;
  left: var(--cta-inset);
  font-size: 2.35cqw;
  line-height: 1.1;
  font-weight: 750;
}
.match-banner {--banner-inset: 23.95cqw; --cta-inset: 29.05cqw}
.match-banner .banner-cta {color: #42220a}
.camp-banner {--banner-inset: 2.8cqw; --cta-inset: 5.48cqw}
.camp-banner #profile-camp-status:not([hidden]) {
  position: absolute;
  top: .8cqw;
  left: 1.1cqw;
  color: #fff;
  border-radius: 8px;
  background: #291d6dbb;
  font-size: max(8px, 2cqw);
  padding: .35cqw 1cqw;
}
.mine-home .mine-tiles .profile-mail {
  position: absolute;
  z-index: 2;
  top: 1.4cqw;
  right: calc(2.2cqw + max(44px, 9.2cqw));
  display: grid;
  place-items: center;
  width: max(40px, 9.2cqw);
  height: max(40px, 9.2cqw);
  border: 0;
  border-radius: 50%;
  padding: 1.7cqw;
  background: none;
  color: #fff;
}
.mine-home .profile-mail svg {display: block; width: 100%; height: 100%}
.mine-home #profile-message-count {right: 0; top: 2px; font-style: normal; text-align: center}
.mine-home .mine-level-card {background: transparent; padding: 0; border: 0; box-shadow: none}
.mine-home .mine-level-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(3px, 1cqw, 6px);
  height: 8.49609375cqw;
  margin: 0;
  padding: .4cqw 2.05cqw 0 11.5cqw;
  background-position: 0 -68.9453125cqw;
}
.mine-home .mine-level-head h3 {
  margin: 0;
  font-size: clamp(13px, 3.4cqw, 18px);
  line-height: 1.2;
  white-space: nowrap;
}
.mine-cal-label {
  min-width: 0;
  margin-inline-start: clamp(5px, 1.7cqw, 8px);
  color: #504675;
  font: inherit;
  font-size: clamp(10px, 2.35cqw, 11px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mine-period-controls {
  grid-column: 3;
  height: 7.2cqw;
  display: flex;
  align-items: center;
  gap: .7cqw;
}
.mine-period-shortcut {
  min-height: 24px;
  padding: .55cqw 1.75cqw;
  border: 1px solid #ffffffb8;
  border-radius: 20px;
  background: #f3efffcc;
  color: #41377d;
  font-family: inherit;
  font-size: clamp(10px, 2.25cqw, 13px);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.mine-period-shortcut[aria-pressed="true"] {
  background: linear-gradient(125deg, #6958da, #493bae);
  color: white;
  box-shadow: inset 0 1px 1px #ffffff50;
}
#mine-period-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19.8cqw;
  height: 7.2cqw;
  min-height: 0;
  padding: 0 0 0 1.7cqw;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: white;
  font-family: inherit;
  font-size: clamp(9px, 2.18cqw, 14px);
  font-weight: 600;
}
.mine-home .mine-cells {
  height: 24.9cqw;
  display: grid;
  grid-template-columns: 35.5% 29.3% 35.2%;
  grid-template-rows: repeat(2,minmax(0,1fr));
  gap: 0;
  background-position: 0 -77.44140625cqw;
}
.mine-home .mine-cells div {
  min-width: 0;
  justify-content: center;
  align-items: flex-start;
  gap: .45cqw;
  padding: 0 0 .9cqw;
  background: none;
  border: 0;
}
.mine-home .mine-cells div:nth-child(3n+1) {padding-left: 23.4cqw}
.mine-home .mine-cells div:nth-child(3n+2) {padding-left: 16cqw}
.mine-home .mine-cells div:nth-child(3n) {padding-left: 16.7cqw}
.mine-home .mine-cells strong {
  max-width: 100%;
  font-size: clamp(15px, 4.1cqw, 23px);
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
  color: #121052;
  font-variant-numeric: tabular-nums;
}
.mine-home .mine-cells span {font-size: clamp(9px, 2.3cqw, 13px); color: #2e2564}
.mine-home .mine-dots {height: 1.37cqw; margin: 0; background: #e0d6ff}
.mine-home .mine-dots button {position: relative; background: #9583c9}
.mine-home .mine-dots button::after {content: ""; position: absolute; inset: -5px -2px}
.mine-home .mine-dots button.is-on {background: #6740ce}
.mine-home .mine-tools {
  height: 30.2734375cqw;
  grid-template-rows: repeat(2, minmax(0,1fr));
  padding-top: .8cqw;
  padding-bottom: 1.8cqw;
  background-position: 0 -103.7109375cqw;
}
.mine-home .mine-tools button {padding-bottom: 1.2cqw}
.mine-home #profile-user-error {color: #ffb4c8; margin: 0 14px}
.mine-home #profile-user-error:empty {display: none}
#profile-settings {position:absolute; z-index:3; top:1.4cqw; right:2.2cqw; color:white}
#profile-settings summary {display:grid; place-items:center; width:max(44px,9.2cqw); height:max(40px,9.2cqw); list-style:none; cursor:pointer; border-radius:50%}
#profile-settings summary::-webkit-details-marker {display:none}
#profile-settings svg {width:max(23px,5.8cqw); height:max(23px,5.8cqw)}
.profile-settings-menu {
  position:absolute;
  top:100%;
  right:0;
  padding:0 2px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:13px;
  background:linear-gradient(145deg,rgba(250,245,255,.96),rgba(219,209,255,.94));
  box-shadow:0 3px 12px rgba(44,26,118,.2);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
#profile-logout {
  min-height:44px;
  padding:0 12px;
  border:0;
  border-radius:11px;
  color:#382668;
  background:transparent;
  font:inherit;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
}
#profile-logout:hover, #profile-logout:active {background:rgba(111,79,194,.1)}
#profile-logout:focus-visible {outline:2px solid #7055b2; outline-offset:-3px}

/* Long screens distribute the space above the existing tab bar among the
   illustrated sections. Short screens keep their natural, scrollable height. */
.mine-home {
  --profile-extra: max(0px, calc(100dvh - env(safe-area-inset-bottom, 0px) - max(61px, 16.015625cqw) - 133.985cqw));
}
.mine-home .mine-profile {
  height: calc(25.1953125cqw + var(--profile-extra) * .22);
  background: #3c3893 url("/assets/profile-hero.f25ca9430b730d2820af4b7aa099f5e4bcd7aacc0a873831b89b580764f7977e.webp") left center / cover no-repeat;
}
.mine-home .mine-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("/assets/profile-hero.f25ca9430b730d2820af4b7aa099f5e4bcd7aacc0a873831b89b580764f7977e.webp") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 45%, black 78%);
  mask-image: linear-gradient(to right, transparent 45%, black 78%);
}
.mine-home .mine-cells {
  height: calc(24.9cqw + var(--profile-extra) * .30);
  background: none;
}
.mine-home .mine-stat-frame {
  position: relative;
  isolation: isolate;
  background: none;
}
.mine-home .mine-pages {
  overflow-y: hidden;
  pointer-events: auto;
}
.mine-home .mine-stat-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-image: url("/assets/profile-stat-frame.2aea7236cc93b0601917a3b2266df564eb422c24558d6cf6b1625cd85651a63c.webp") 44 0 52 fill / 4.296875cqw 0 5.078125cqw stretch;
}
.mine-home .mine-stat-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/profile-stat-ornaments.fd49418d73c0bf72d9a82d6e424149493d83e3b0176c84f25a6b905ea63a975b.webp") center / 100% auto no-repeat;
}
.mine-home .mine-cells > div {position:relative}
.mine-home .mine-cells > div::before {
  content:"";
  position:absolute;
  top:50%;
  left:15.3cqw;
  width:min(14cqw, calc(11.92cqw + var(--profile-extra) * .04));
  aspect-ratio:122 / 100;
  transform:translate(-50%,-50%);
  background:url("/assets/profile-stat-icons.39ee47ddf5e0a11e5d9a504cbc2bab1d7ac8c77f0cd93cd05ab30b3d5cb205ac.webp") var(--metric-x,0%) var(--metric-y,0%) / 300% 200% no-repeat;
}
.mine-home .mine-cells > div:nth-child(3n+2)::before {left:8.8cqw; --metric-x:50%}
.mine-home .mine-cells > div:nth-child(3n)::before {left:9.2cqw; --metric-x:100%}
.mine-home .mine-cells > div:nth-child(n+4)::before {--metric-y:100%}
/* Keep the action icons proportional while the glass panels expand vertically. */
.mine-home .mine-shortcuts {
  height: calc(15.0390625cqw + var(--profile-extra) * .15);
}
.mine-home .mine-tools {
  height: calc(30.2734375cqw + var(--profile-extra) * .33);
}
.mine-home .mine-shortcuts, .mine-home .mine-tools {
  position: relative;
  isolation: isolate;
  background-image: none;
}
.mine-home .mine-shortcuts::before,
.mine-home .mine-tools::before,
.mine-home .mine-tools::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.mine-home .mine-shortcuts::before {
  border-image: url("/assets/profile-shortcuts-glass.357dc9b6a5a251bbc8110dadae715d03083bf9171ecb9ca4cc35d617b9170ea3.webp") 55 0 55 fill / 5.371094cqw 0 5.371094cqw stretch;
}
.mine-home .mine-tools::before {
  bottom: 50%;
  border-image: url("/assets/profile-tools-upper.b990ff300d1a0f9a2e999758ae0e2f0f6684492f2b69f6bc1d40d678015a55e0.webp") 60 0 32 fill / 5.859375cqw 0 3.125cqw stretch;
}
.mine-home .mine-tools::after {
  top: 50%;
  border-image: url("/assets/profile-tools-lower.a660893403fb18558ca73eb73a8bd7760056d8488f266c5c2da4606f3f5f3e44.webp") 32 0 62 fill / 3.125cqw 0 6.054688cqw stretch;
}
.mine-home .mine-shortcuts button, .mine-home .mine-tools button {
  justify-content: center;
  gap: .6cqw;
  padding: 0;
  font-size: clamp(12px, 2.85cqw, 16px);
}
.mine-home .mine-shortcuts button::before, .mine-home .mine-tools button::before {
  content: "";
  flex: 0 0 auto;
  width: min(19.5cqw, calc(15.6cqw + var(--profile-extra) * .06));
  aspect-ratio: 160 / 104;
  background: url("/assets/profile-action-icons.6776f3d3bee0c2699a0c7545407ad069f0c9aeeef1b407aa5aabd6c165a3c36f.webp") var(--icon-x, 0%) var(--icon-y, 0%) / 400% 300% no-repeat;
}
.mine-home .mine-tools button { --icon-y: 50%; }
.mine-home .mine-tools button:nth-child(n+5) { --icon-y: 100%; }
.mine-home :is(.mine-shortcuts, .mine-tools) button:nth-child(4n+2) { --icon-x: 33.333333%; }
.mine-home :is(.mine-shortcuts, .mine-tools) button:nth-child(4n+3) { --icon-x: 66.666667%; }
.mine-home :is(.mine-shortcuts, .mine-tools) button:nth-child(4n) { --icon-x: 100%; }

/* Carry the illustration under the existing navigation on the profile dashboard. */
html[data-page="profile"]:has(#profile-user:not([hidden]) .mine-home:not([hidden])) .nav {
  --dock-width: min(100vw, 460px);
  --dock-height: max(61px, calc(var(--dock-width) * .16015625));
  --dock-inset: max(5px, calc(var(--dock-height) * .55 - 26px));
  bottom: calc(var(--dock-inset) + env(safe-area-inset-bottom, 0px));
  isolation: isolate;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-page="profile"]:has(#profile-user:not([hidden]) .mine-home:not([hidden])) .nav::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  left: 50%;
  bottom: calc(-1px - var(--dock-inset) - env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: var(--dock-width);
  height: calc(var(--dock-height) + env(safe-area-inset-bottom, 0px));
  background: #bdb5fc url("/assets/profile-tab-glass.7fdbeb26fe52c57634acd83422cf918b1006df4ead542b1f39d6fa4046be247a.webp") center top / 100% auto no-repeat;
}
html[data-page="profile"]:has(#profile-user:not([hidden]) .mine-home:not([hidden])) .nav button {
  color: #332378;
}
html[data-page="profile"]:has(#profile-user:not([hidden]) .mine-home:not([hidden])) .nav [aria-current] {
  color: #6516cd;
  text-shadow: none;
}
html[data-page="profile"]:has(#profile-user:not([hidden]) .mine-home:not([hidden])) .nav [aria-current] svg {
  fill: #8d42f5;
  stroke: #681ccd;
  filter: drop-shadow(0 0 3px #fff);
}

/* Safari's scrolling frame positions the dock from the top. Give it a single
   inset so measuring the bar cannot collapse its grid tracks. */
html.site-flow[data-page="profile"]:has(#profile-user:not([hidden]) .mine-home:not([hidden])) .nav {
  top: calc(var(--shell-y, 0px) + var(--shell-height, 100svh) - var(--dock-size, 52px) - var(--dock-inset) - env(safe-area-inset-bottom, 0px));
  bottom: auto;
}

/* Wallet, its three breakdowns, and 活动中心 use the same dark page as 我的. */
#profile.keeps-tabs:has(.profile-panel.mine-light){background:#0B0714;color:#fff;--mine-plate:#1B1430;--mine-edge:1px solid rgba(255,255,255,.12);--mine-lift:0 10px 24px rgba(0,0,0,.45)}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-nav{background:#0B0714;color:#fff}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-nav h3{font-weight:750}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-back,
#profile.keeps-tabs:has(.profile-panel.mine-light) .profile-panel .mine-nav button.mine-back{color:#fff}
.mine-nav .wallet-bill{margin-left:auto;min-height:32px;padding:0 12px;border:0;border-radius:999px;background:#2a1458;color:#ffe56a;font-size:13px;font-weight:750}
.wallet-balances{display:flex;flex-direction:column;gap:10px}
.mine-light .profile-wallet.is-rows{display:flex;flex-direction:column;margin:0;padding:0;overflow:hidden;border:var(--mine-edge);border-radius:18px;background:var(--mine-plate);box-shadow:var(--mine-lift)}
.mine-light .profile-wallet.is-rows button{flex-direction:row;align-items:center;gap:12px;min-height:64px;padding:0 16px;border:0;border-radius:0;background:none;color:#fff;font-weight:650}
.mine-light .profile-wallet.is-rows button::before{content:"";order:0;width:8px;height:8px;flex:none;border-radius:50%;background:#ffe56a}
.mine-light .profile-wallet.is-rows #profile-wallet-held::before{background:#ffb4c8}
.mine-light .profile-wallet.is-rows #profile-wallet-pending::before{background:#d7b4ff}
.mine-light .profile-wallet.is-rows button::after{content:"›";position:static;inset:auto;order:3;margin-left:2px;color:#d7c4f5;font-size:22px;line-height:1}
.mine-light .profile-wallet.is-rows button + button{box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.mine-light .profile-wallet.is-rows span{order:1;color:#fff;font-size:15px;font-weight:650}
.mine-light .profile-wallet.is-rows strong{order:2;height:auto;margin-left:auto;font-size:17px;color:#fff}
.mine-light .profile-wallet.is-rows strong.is-available{color:#ffe56a}
.mine-light .profile-wallet.is-rows strong.is-frozen{color:#ffb4c8}
.mine-light .profile-wallet.is-rows strong.is-inactive{color:#d7b4ff}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-card{border:1px solid #c58afd66;background:linear-gradient(145deg,#4a1b86,#241048 62%,#1a0b3a);box-shadow:inset 0 1px 0 #ffffff22;color:#fff}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-hint,
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-source em,
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-line time,
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-who small,
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-game.is-dim{color:#d7c4f5}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-total.is-available{color:#ffe56a}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-total.is-frozen{color:#ffb4c8}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-total.is-inactive{color:#d7b4ff}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-source + .mine-source,
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-line + .mine-line,
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-person + .mine-person{box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-track{background:#2a1458}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-line strong{color:#ffb4c8}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-face,
#profile.keeps-tabs:has(.profile-panel.mine-light) .profile-panel button.mine-face{background:#3a1874;color:#fff;box-shadow:0 0 0 2px #c58afd}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-game i{background:rgba(255,229,106,.16);color:#ffe56a}
#profile.keeps-tabs:has(.profile-panel.mine-light) .mine-error{color:#ffb4c8}
.activity-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.profile-panel.mine-light button.activity-tab{height:36px;min-height:36px;padding:0;border:0;border-radius:999px;background:#2a1458;color:#d7c4f5;font-size:14px;font-weight:650}
.profile-panel.mine-light button.activity-tab[aria-selected=true]{background:linear-gradient(110deg,#b524e9,#ee00d6);color:#fff}
.activity-list{display:flex;flex-direction:column;gap:10px}
.activity-list[hidden]{display:none}
.activity-card{padding:16px;border:var(--mine-edge,1px solid rgba(255,255,255,.16));border-radius:18px;background:var(--mine-plate,#2e1854);box-shadow:var(--mine-lift,inset 0 1px 0 rgba(255,255,255,.22),0 10px 24px rgba(0,0,0,.55))}
.activity-card h4{margin:0;font-size:16px;font-weight:800}
.activity-card p{margin:6px 0 12px;color:#d7c4f5;font-size:13px;line-height:1.45}
.profile-panel.mine-light .activity-go,
.profile-panel.mine-light a.activity-go{display:inline-flex;align-items:center;min-height:32px;padding:0 14px;border-radius:999px;background:linear-gradient(110deg,#b524e9,#ee00d6);color:#fff;font-size:13px;font-weight:750;text-decoration:none}
