.class-portal{display:flex;align-items:center;gap:14px;padding:12px 16px;margin:0 0 16px;border:1px solid #7798d74d;border-radius:18px;background:linear-gradient(110deg,#48aebb12,#985ae31a);color:var(--text)}
.class-portal-copy{flex:1;min-width:0}.class-portal-copy strong{color:var(--text-bright)}.class-portal-copy p{margin:4px 0;font-size:.8rem;line-height:1.4}.class-portal progress{width:100%;height:5px;accent-color:#8d7fed}
.class-portal button[hidden]{display:none}.class-portal-ring{width:46px;height:52px;flex-shrink:0;border-radius:50%;border:3px solid #86d5e2;box-shadow:inset 0 0 15px #84b9ed77,0 0 17px #8565e84d;background:radial-gradient(ellipse,#cbf9ff66,#624aad55 50%,#15344c)}
.class-portal .class-portal-ring{height:46px;box-sizing:border-box}
.class-portal.unlocked .class-portal-ring{animation:class-portal-breathe 3s ease-in-out infinite}
.portal-contribution .class-portal-ring{margin:10px auto;width:64px;height:78px}.portal-contribution p{font-size:.88rem;line-height:1.55}.portal-amounts{display:flex;gap:8px;justify-content:center}.portal-amounts button[aria-pressed=true]{outline:2px solid #92dcd9}.portal-receipt{font-weight:700}
.class-portal-aura .lb-icon-slot>.chest-icon,.class-portal-aura .lb-icon-empty{outline:2px solid #91ebdb;outline-offset:3px;box-shadow:0 0 18px #a086ee88;border-radius:12px}
.class-portal-aura .lb-icon-empty{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center}
.portal-celebration{border:1px solid #b0cdfd66;border-radius:28px;width:min(780px,calc(100% - 24px));max-height:90dvh;overflow:auto;padding:0;background:#101b35;color:#eef7ff;box-shadow:0 0 100px #7269ec55}
.portal-celebration::backdrop{background:#07101edb;backdrop-filter:blur(5px)}
.portal-sky{position:relative;height:230px;overflow:hidden;background:radial-gradient(ellipse at 50% 80%,#78e3d66b,transparent 55%),radial-gradient(ellipse at 30% 10%,#774eca66,transparent 70%)}
.portal-sky>.class-portal-ring{position:absolute;left:calc(50% - 60px);top:48px;width:120px;height:155px;border-width:5px;animation:class-portal-breathe 3s ease-in-out infinite}
.portal-orbit{position:absolute;left:calc(50% - 150px);top:25px;width:300px;height:190px;border:2px dashed #bcdaf788;border-radius:50%;animation:class-portal-orbit 12s linear infinite}
.portal-orbit.second{transform:rotate(60deg);animation-direction:reverse;border-color:#90e7d66b;width:350px;left:calc(50% - 175px)}
.portal-celebration-copy{text-align:center;padding:0 22px 30px}.portal-celebration-copy span{letter-spacing:.2em;color:#a4dfdf;font-size:.75rem}.portal-celebration-copy h2{font-size:clamp(28px,5vw,48px);margin:14px 0}.portal-celebration-copy p{line-height:1.6;margin:10px 0 22px}
@keyframes class-portal-breathe{50%{box-shadow:inset 0 0 28px #96e7ff99,0 0 45px #a985f999;transform:scale(1.04)}}
@keyframes class-portal-orbit{to{transform:rotate(360deg)}}
@media(max-width:480px){.class-portal{gap:10px;padding:12px}.class-portal-ring{width:32px;height:42px}.class-portal button{padding:9px;font-size:.75rem}.portal-contribution{margin:auto auto 0;width:100%;border-radius:24px 24px 0 0;max-height:92dvh}}
@media(prefers-reduced-motion:reduce){.class-portal-ring,.portal-orbit{animation:none!important}}
.portal-contribution .class-portal-ring{height:64px;box-sizing:border-box}
.portal-sky>.class-portal-ring{height:120px;top:65px;box-sizing:border-box}
@media(max-width:480px){.class-portal .class-portal-ring{height:32px}}
.portal-celebration{width:min(1000px,calc(100% - 24px));background:radial-gradient(ellipse at 50% 10%,#28345b,#101b35 75%)}
.portal-sky{height:290px;background:radial-gradient(circle at 50% 50%,#5caaa744,transparent 55%)}
.portal-sky>.class-portal-ring{width:170px;height:170px;left:calc(50% - 85px);top:60px;border:6px solid #b7fff1;animation:portal-open 1.5s ease-out both,class-portal-breathe 3s 1.5s ease-in-out infinite;background:radial-gradient(circle,#071a32 22%,#355eb8 48%,#9df5ed 69%,#6454c9 75%);box-shadow:0 0 45px #70e9e888,inset 0 0 40px #89c6fd}
.portal-sky>.portal-orbit{width:240px;height:240px;left:calc(50% - 120px);top:25px;border-style:dashed}
.portal-sky>.portal-orbit.second{width:280px;height:280px;left:calc(50% - 140px);top:5px;border-style:dotted}
.portal-rays{position:absolute;inset:-60px;background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0deg 22deg,#8eebeb15 24deg 27deg,transparent 30deg);animation:class-portal-orbit 35s linear infinite}
.portal-wave{position:absolute;width:170px;height:170px;left:calc(50% - 85px);top:60px;border-radius:50%;border:2px solid #acece9;animation:portal-wave 3.5s ease-out infinite;pointer-events:none}
.portal-wave.second{animation-delay:1.75s}
.portal-particles{position:absolute;left:50%;top:145px;pointer-events:none}.portal-particles i{position:absolute;width:5px;height:5px;border-radius:50%;background:#d1fff0;box-shadow:0 0 9px #91e6ff;animation:portal-spark 3s var(--delay) ease-out infinite}
.portal-bonus-big{font-size:clamp(26px,5vw,46px);font-weight:850;color:#aeffdb;text-shadow:0 0 26px #65cbaa55}
.class-portal.unlocked{border-color:#8ee6d599;box-shadow:inset 0 0 25px #84b8e511}
.class-portal-aura .lb-icon-slot>.chest-icon{animation:portal-aura 4s ease-in-out infinite}
@keyframes portal-open{from{opacity:0;transform:scale(.2) rotate(-90deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@keyframes portal-wave{from{transform:scale(.75);opacity:.6}to{transform:scale(2.4);opacity:0}}
@keyframes portal-spark{0%{transform:translate(0,0) scale(.2);opacity:0}20%{opacity:.8}100%{transform:translate(var(--dx),var(--dy)) scale(.3);opacity:0}}
@keyframes portal-aura{50%{box-shadow:0 0 24px #7acbdd99}}
@media(max-width:480px){.portal-sky{height:230px}.portal-sky>.class-portal-ring{top:30px}.portal-sky>.portal-orbit{top:-5px}.portal-sky>.portal-orbit.second{top:-25px}.portal-wave{top:30px}.portal-particles{top:115px}}
@media(prefers-reduced-motion:reduce){.portal-sky>.class-portal-ring,.portal-rays,.portal-wave,.portal-particles i,.class-portal-aura .lb-icon-slot>.chest-icon{animation:none!important}.portal-wave,.portal-particles{display:none}}
.daily-tasks{margin:12px 0;padding:16px;color:var(--text);border:1px solid #8acdc740;border-radius:18px;background:linear-gradient(120deg,#459eae12,#9c73e912)}
.daily-tasks summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;font-weight:700;min-height:28px;align-items:center}
.daily-tasks summary strong{font-size:.85rem;color:var(--text-bright);white-space:nowrap}
.daily-tasks p,.daily-tasks small{font-size:.85rem;line-height:1.6}.daily-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.daily-task{display:flex;flex-direction:column;gap:8px;background:#8296b610;border:1px solid #8296b630;border-radius:14px;padding:14px;min-width:0}
.daily-task progress{width:100%;height:8px;accent-color:#55bfa6}.daily-task span,.daily-task strong{font-size:.8rem}.daily-task.earned{border-color:#55bfa660}
@media(max-width:520px){.daily-task-grid{grid-template-columns:1fr}.daily-tasks{padding:14px}}
.chest-shop{margin:16px 0;padding:20px;border:1px solid #9575e84d;border-radius:22px;background:linear-gradient(130deg,#805cf211,#34d3df0b);min-width:0}
.chest-hero{display:flex;align-items:center;gap:20px;margin-bottom:18px}.chest-hero h3{margin:6px 0;font-size:1.45rem}.chest-hero p{line-height:1.55;margin:8px 0}.chest-kicker{font-size:.67rem;letter-spacing:.13em;color:#9272d7;font-weight:800}.chest-art{width:140px;flex-shrink:0;filter:drop-shadow(0 12px 16px #845bea33)}.chest-art svg{width:100%}.chest-message{font-size:.86rem;line-height:1.5}.chest-odds,.chest-collection{margin-top:16px}.chest-odds summary,.chest-collection summary{cursor:pointer;padding:10px 0;font-weight:650}.chest-odds p,.chest-collection>p{font-size:.85rem;line-height:1.6;opacity:.8}.chest-odds>div{display:flex;gap:16px;flex-wrap:wrap}
.chest-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:10px;margin:14px 0}.chest-tile{font:inherit;color:inherit;background:#8d75d90b;border:1px solid #9789b433;border-radius:16px;padding:14px 7px;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;min-width:0}.chest-tile>span:not(.chest-icon){font-size:.8rem;overflow-wrap:anywhere}.chest-tile small{font-size:.65rem;opacity:.75}.chest-tile[aria-pressed=true]{border-color:#9870f6;box-shadow:inset 0 0 0 1px #9870f6;background:#9973ee14}.chest-tile.locked .chest-icon{opacity:.4;filter:grayscale(.7)}.chest-tile:disabled{cursor:default}.chest-tile:focus-visible,.chest-shop button:focus-visible{outline:3px solid #9780ec;outline-offset:3px}
.chest-icon{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:12px;background:#72b9ff18;color:#579edf;contain:content}.chest-icon svg{width:80%;height:80%;fill:#75befe40;animation:chest-float 3.8s ease-in-out infinite}.chest-rare{color:#b287f2;background:#9d6bf51c}.chest-rare svg{fill:#b880ec38;animation-duration:3.1s}.chest-legendary{color:#d69b29;background:#ffba3520}.chest-legendary svg{fill:#ffd46155;animation-duration:2.7s}.chest-tile .chest-icon{width:60px;height:60px}.lb-status .chest-icon{margin-right:7px;width:30px;height:30px;vertical-align:middle}.chest-tile.locked svg{animation:none}.chest-dialog{padding:0;border:1px solid #a88cfa66;border-radius:28px;width:min(440px,calc(100% - 24px));max-height:85dvh;overflow:auto;background:#17142a;color:#f2edff;box-shadow:0 24px 100px #6c38bd55}.chest-dialog::backdrop{background:#0a081bc4;backdrop-filter:blur(6px)}.chest-reveal{padding:30px 22px;text-align:center;background:radial-gradient(ellipse at 50% 30%,#7950c14d,transparent 65%)}.chest-reveal button{margin:7px auto;display:block}.chest-reveal [hidden]{display:none!important}.chest-reel{overflow:hidden;margin:35px 0;height:100px;mask-image:linear-gradient(90deg,transparent,black 15%,black 85%,transparent)}.chest-reel>div{display:flex;gap:12px;width:max-content;animation:chest-parade 4.5s ease-out forwards}.chest-reel .chest-icon{width:88px;height:88px}.chest-prize{margin:24px 0;animation:chest-arrive .45s ease-out}.chest-prize .chest-icon{width:125px;height:125px;border-radius:34px;box-shadow:0 0 60px #ac7ef444}.chest-prize h2{font-size:1.6rem;margin:20px 0 8px}.chest-prize p,.chest-reveal-note{font-size:.88rem;line-height:1.6;color:#c8bedf}
@keyframes chest-float{0%,100%{transform:translateY(1px) rotate(-3deg)}50%{transform:translateY(-2px) rotate(4deg)}}@keyframes chest-parade{from{transform:translateX(0)}to{transform:translateX(-1950px)}}@keyframes chest-arrive{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}
@media(max-width:520px){.chest-shop{padding:14px;border-radius:18px}.chest-hero{gap:12px;align-items:flex-start}.chest-art{width:76px}.chest-hero h3{font-size:1.15rem}.chest-hero p{font-size:.84rem}.chest-kicker{font-size:.6rem}.chest-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.chest-tile{padding:10px 4px}.chest-tile .chest-icon{width:48px;height:48px}.chest-tile>span:not(.chest-icon){font-size:.7rem}.chest-hero strong{font-size:.85rem}.chest-buy{width:100%;white-space:normal}}
@media(prefers-reduced-motion:reduce){.chest-icon svg,.chest-reel>div,.chest-prize{animation:none!important}}
.lb-table tbody tr:nth-child(n+16) .chest-icon svg{animation:none}
.chest-icon{color:var(--icon-ink,#65d4ff);background:radial-gradient(circle at 30% 15%,#ffffff20,transparent 65%),#19283d;border:1px solid color-mix(in srgb,var(--icon-ink,#65d4ff) 45%,transparent);box-shadow:inset 0 1px 0 #ffffff14}
.chest-icon svg{fill:color-mix(in srgb,var(--icon-ink,#65d4ff) 24%,#182238)}
.chest-icon svg g>*:nth-child(2n){stroke:var(--icon-accent,#a995ff)}
.chest-legendary{background:radial-gradient(circle at 70% 20%,#b595ff35,transparent 70%),#261c35;border-width:2px;box-shadow:0 0 12px color-mix(in srgb,var(--icon-ink,#65d4ff) 18%,transparent)}
.chest-motion-1 svg{animation-name:chest-sway}.chest-motion-2 svg{animation-name:chest-breathe}
@keyframes chest-sway{0%,100%{transform:rotate(-5deg) scale(.96)}50%{transform:rotate(5deg) scale(1)}}
@keyframes chest-breathe{0%,100%{transform:scale(.91);opacity:.85}50%{transform:scale(1);opacity:1}}
#lb-table-wrap .lb-table{min-width:550px}
.lb-table .lb-icon-slot{width:66px;min-width:66px;text-align:center;padding:9px 7px}
.lb-icon-slot .chest-icon{width:42px;height:42px;border-radius:13px;margin:0;display:inline-flex}
.lb-icon-empty{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border:1px dashed #8d91aa55;border-radius:13px;color:#8d91aa}
@media(max-width:600px){.lb-table .lb-icon-slot{width:54px;min-width:54px;padding:8px 5px}.lb-icon-slot .chest-icon,.lb-icon-empty{width:36px;height:36px;border-radius:11px}}
.chest-dialog{width:min(680px,calc(100% - 24px));overflow-x:hidden}.chest-opening-title{font-size:clamp(20px,4vw,27px);font-weight:750;margin-top:12px;color:#f5f0ff;letter-spacing:-.02em}.chest-carousel{position:relative;margin:28px -22px 20px;padding:18px 0 22px;background:linear-gradient(180deg,#151125cc,#35255655,#151125cc);border-block:1px solid #a789e938}
.chest-carousel .chest-reel{height:150px;margin:0;position:relative;mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
.chest-carousel .chest-track{position:relative;display:flex;gap:12px;width:max-content;animation:none;will-change:transform;padding:6px 0}
.chest-roll-card{flex:0 0 108px;width:108px;height:136px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;border-radius:16px;background:linear-gradient(150deg,#ffffff0b,#ffffff03);border:1px solid #d2c0ff22;transition:border-color .2s,background .2s}
.chest-roll-card>span:last-child{font-size:10px;line-height:1.3;color:#d6cce8;max-width:98px;min-height:26px;display:grid;place-items:center;text-align:center;padding:0 3px}.chest-roll-card .chest-icon{width:76px;height:76px;border-radius:20px}.chest-roll-card .chest-icon svg{animation:none}.chest-roll-card.is-winner{background:#a282f633;border-color:#dfc6ff;box-shadow:inset 0 0 25px #c2a4ff22}
.chest-pointer{position:absolute;z-index:3;left:50%;top:-1px;transform:translateX(-50%);width:22px;height:19px;clip-path:polygon(0 0,100% 0,50% 100%);background:#f4d993;filter:drop-shadow(0 2px 5px #fbd8a6)}
.chest-center-slot{position:absolute;pointer-events:none;inset:18px auto 22px 50%;width:112px;transform:translateX(-50%);border-inline:1px solid #f2d98a4d;background:linear-gradient(180deg,#ffefaf08,transparent)}
.chest-spin-progress{position:absolute;bottom:7px;left:15%;width:70%;height:3px;background:#b195e820;border-radius:4px;overflow:hidden}.chest-spin-progress i{display:block;height:100%;width:100%;transform-origin:left;transform:scaleX(0);background:linear-gradient(90deg,#8c7bff,#e3b7ff,#f5d38a)}
.chest-prize{position:relative;isolation:isolate}.chest-prize-halo{position:absolute;width:230px;height:230px;left:50%;top:-45px;transform:translateX(-50%);background:radial-gradient(circle,#c295f72d,transparent 68%);z-index:-1;pointer-events:none}.chest-burst{position:absolute;left:50%;top:65px;pointer-events:none}.chest-burst i{position:absolute;width:6px;height:9px;border-radius:2px;animation:chest-spark-out 950ms cubic-bezier(.1,.5,.3,1) forwards}
@keyframes chest-spark-out{0%{transform:translate(0,0) rotate(0);opacity:0}15%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--turn));opacity:0}}
@media(max-width:520px){.chest-reveal{padding:25px 16px}.chest-carousel{margin-inline:-16px}.chest-roll-card{flex-basis:94px;width:94px}.chest-roll-card>span:last-child{max-width:90px}.chest-center-slot{width:98px}.chest-roll-card .chest-icon{width:68px;height:68px}.chest-reveal .btn{max-width:100%;white-space:normal}}
@media(prefers-reduced-motion:reduce){.chest-burst{display:none}.chest-roll-card{transition:none}}
.chest-boost{margin:16px 0;padding:16px;border:1px solid #6ecfb743;border-radius:16px;background:linear-gradient(130deg,#57c9aa0d,#9381ed10)}.chest-boost h4{margin:0 0 8px;font-size:15px}.chest-boost p{font-size:13px;line-height:1.6;margin:8px 0}.chest-boost progress{display:block;width:100%;height:7px;accent-color:#58cbb1;margin:12px 0 8px}.chest-boost small{font-size:12px}.chest-boost .chest-boost-help{font-size:11px;opacity:.78;margin-bottom:0}.chest-tile .chest-bonus-tag{font-size:11px!important;color:var(--text-bright);padding:3px 8px;background:#65cca51c;border-radius:6px}.chest-tile .chest-bonus-condition{font-size:10px;line-height:1.5;opacity:.85;overflow-wrap:anywhere}.chest-tile:disabled .chest-bonus-condition{opacity:.6}
@media(max-width:480px){.chest-collection .chest-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Infernal icons: steady crimson halo, slow movement; no flashing. */
.chest-infernal{background:radial-gradient(circle at 50% 75%,#c820354d,transparent 75%),#280810;border:2px solid #ed3555;box-shadow:inset 0 0 9px #ff244533,0 0 10px #f21c4433}
.chest-infernal svg{fill:#7d122c;filter:drop-shadow(0 0 2px #ff354b);animation-duration:3.4s}
.chest-prize .chest-infernal{box-shadow:0 0 65px #f4214455,inset 0 0 22px #ff453544}
.chest-icon.chest-offscreen svg,.chest-page-hidden .chest-icon svg{animation-play-state:paused}
.chest-owned-card{display:flex;flex-direction:column;min-width:0;gap:6px}
.chest-owned-card .chest-tile{width:100%;flex:1}
.chest-sell{min-height:40px;padding:8px 5px;border:1px solid #d7a64266;border-radius:12px;background:#d7a64212;color:inherit;font:inherit;font-size:12px;cursor:pointer;overflow-wrap:anywhere}
.chest-sell:hover{background:#d7a6422b}
.chest-sell:focus-visible{outline:3px solid #d7a642;outline-offset:2px}
.chest-detail-dialog{max-width:460px;background:linear-gradient(150deg,#192d3b,#201932);max-height:calc(100dvh - 32px)}
.chest-detail-content{position:relative;padding:32px 26px 26px;text-align:center}
.chest-detail-close{position:absolute;right:12px;top:10px;width:40px;height:40px;border-radius:50%;border:1px solid #c5dbed30;background:#ffffff09;color:#edf5ff;font-size:26px;cursor:pointer}
.chest-detail-art{display:flex;justify-content:center;margin:10px 0 20px}
.chest-detail-art .chest-icon{width:100px;height:100px;border-radius:26px;box-shadow:0 0 45px #7cbcdc20}
.chest-detail-content h2{font-size:1.5rem;margin:10px 0 22px;overflow-wrap:anywhere}
.chest-detail-bonus{text-align:left;background:#ffffff07;border:1px solid #b4d8eb22;border-radius:16px;padding:16px}
.chest-detail-bonus h3{margin:0 0 10px;color:#a6efdb;font-size:1.05rem}
.chest-detail-bonus p,.chest-detail-help,.chest-detail-status{line-height:1.6;font-size:.9rem;overflow-wrap:anywhere}
.chest-detail-bonus p{margin:0}.chest-detail-help{color:#bbc7da;text-align:left}
.chest-detail-status:empty{display:none}.chest-detail-actions{display:flex;gap:10px;flex-wrap:wrap}
.chest-detail-actions button{flex:1;white-space:normal;min-height:46px}
.chest-detail-dialog button:focus-visible{outline:3px solid #acefdd;outline-offset:3px}
@media(max-width:600px){.chest-detail-dialog{margin:auto auto 0;width:100%;max-width:none;max-height:90dvh;border-radius:24px 24px 0 0}.chest-detail-content{padding:28px 20px max(22px,env(safe-area-inset-bottom))}.chest-detail-dialog[open]{animation:chest-sheet-in .2s ease-out}}
@keyframes chest-sheet-in{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.chest-detail-dialog[open]{animation:none}}
.chest-sale-dialog{max-width:440px;max-height:calc(100dvh - 24px);overflow:auto}
.chest-sale-dialog .chest-reveal>.chest-icon{display:flex;width:90px;height:90px;margin:12px auto}
.chest-sale-dialog h2{overflow-wrap:anywhere}
.chest-sale-dialog p{line-height:1.5}
.chest-sale-price{font-size:24px;font-weight:800;color:var(--text-bright)}
.chest-sale-message:empty{display:none}
.profile-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px;border:1px solid #9684cf38;background:#8c7ec00c;border-radius:20px;margin:20px 0}
.profile-tabs button{min-width:0;border:0;border-radius:14px;padding:14px 8px;font:inherit;font-weight:700;color:inherit;background:transparent;cursor:pointer}
.profile-tabs button[aria-selected=true]{background:linear-gradient(135deg,#7050be,#455aaa);color:#fff;box-shadow:0 4px 18px #6952ad33}
.profile-tabs button:focus-visible{outline:3px solid #ad91ee;outline-offset:2px}
.profile-pane[hidden]{display:none!important}
.stats-screen .stats-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.stats-screen .stats-kpis>div,.stats-screen .stats-layout>section{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.stats-screen .stats-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-screen .stats-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
 .stats-screen>.stats-hero{display:grid;grid-template-columns:40px minmax(0,1fr) 64px;gap:10px;padding:18px 14px;align-items:center}
 .stats-screen>.stats-hero .profile-avatar{width:40px;height:40px;font-size:22px}
 .stats-screen>.stats-hero h1{font-size:1.3rem;overflow-wrap:anywhere;margin:5px 0}
 .stats-screen>.stats-hero .stats-ring{grid-column:auto;width:64px;height:64px;margin:0;font-size:11px}
 .stats-screen>.stats-hero .stats-ring strong{font-size:19px}
 .stats-screen>.stats-hero .stats-ring span{font-size:8px;line-height:1.2}
 .stats-screen>.stats-hero p{font-size:12px;margin:5px 0}
 .stats-screen>.stats-hero .profile-title{font-size:12px;overflow-wrap:anywhere}
 .stats-screen>.profile-tabs{margin-top:10px}
}
.league-rewards{margin:18px 0;background:linear-gradient(125deg,#d6ae3510,#9a73ed10);border:1px solid #dab84955}
.league-rewards p{line-height:1.65}.league-rewards summary{cursor:pointer;font-weight:700;padding:12px 0}.league-rewards>small{display:block;margin-top:12px;opacity:.8}
.league-reward-coin{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:50%;border:2px solid #e5ba51;color:#e5ba51;background:#caa13415;font-size:24px}
.league-prize-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.league-prize-grid>div{display:flex;justify-content:space-between;gap:10px;padding:12px;border-radius:12px;background:#9a83cc0d;border:1px solid #9a83cc25}.league-prize-grid b{white-space:nowrap}
.profile-pane{min-width:0;display:grid;gap:18px}
.profile-pane-heading h2{margin:5px 0 0;font-size:1.7rem}
.profile-pane>.collection-section{margin:0;padding:22px;border:1px solid #9684cf30;border-radius:22px;background:#8c7ec008}
.profile-chest-slot:empty{display:none}
[data-profile-pane=collection]>.profile-chest-slot{order:1}
[data-profile-pane=collection]>.collection-section{order:2}
.chest-shop[data-profile-view=valley]>.chest-collection{display:none}
.chest-shop[data-profile-view=collection]>:not(.chest-collection):not(.chest-message):not(.chest-boost){display:none}
.chest-shop[data-profile-view=collection]>.chest-collection{display:block}
.chest-shop[data-profile-view=collection]>.chest-collection>summary{font-size:1.25rem;pointer-events:none;list-style:none}
.valley-landscape{height:360px;position:relative;overflow:hidden;isolation:isolate;border:1px solid #8ccec333;border-radius:26px;background:#102338;margin-bottom:-40px;box-shadow:0 18px 60px #061b3326}
.valley-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:55% 55%;pointer-events:none}
.valley-landscape::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#07142dbb,transparent 58%),linear-gradient(0deg,#10233899,transparent 30%)}
.valley-caption{position:absolute;z-index:2;top:28px;left:28px;max-width:54%;color:#edf9ff;text-shadow:0 2px 14px #081a32}
.valley-caption span{display:block;font-size:10px;letter-spacing:.16em;line-height:1.6;color:#9dddd7;font-weight:700}
.valley-caption strong{display:block;font-size:clamp(23px,3.5vw,36px);line-height:1.12;letter-spacing:-.035em;margin:10px 0}
.valley-caption p{max-width:240px;font-size:12px;line-height:1.6;margin:0;color:#c7dce9}
.valley-location{position:absolute;right:22px;bottom:42px;z-index:2;padding:7px 12px;border:1px solid #c2efe332;border-radius:30px;background:#092b3a99;color:#bae4df;font-size:10px;letter-spacing:.07em}
.valley-shimmer{position:absolute;inset:35% 20% 0;background:radial-gradient(ellipse at center,#96fff518,transparent 65%);animation:valley-breathe 8s ease-in-out infinite alternate;pointer-events:none}
.valley-fireflies{position:absolute;inset:0;z-index:1;pointer-events:none}
.valley-fireflies i{position:absolute;left:32%;top:70%;width:3px;height:3px;border-radius:50%;background:#e6ffba;box-shadow:0 0 9px 2px #bfffe166;animation:valley-drift 7s ease-in-out infinite alternate}
.valley-fireflies i:nth-child(2){left:73%;top:66%;animation-delay:-2s}.valley-fireflies i:nth-child(3){left:56%;top:49%;animation-delay:-4s}.valley-fireflies i:nth-child(4){left:85%;top:80%;animation-delay:-1s}.valley-fireflies i:nth-child(5){left:23%;top:84%;animation-delay:-5s}.valley-fireflies i:nth-child(6){left:63%;top:76%;animation-delay:-3s}
@keyframes valley-breathe{from{opacity:.35}to{opacity:1}}
@keyframes valley-drift{from{transform:translate3d(0,0,0);opacity:.25}to{transform:translate3d(8px,-15px,0);opacity:.85}}
@media(prefers-reduced-motion:reduce){.valley-shimmer,.valley-fireflies i{animation:none}}
.chest-shop[data-profile-view=valley]{position:relative;margin:0;border-radius:24px;border:1px solid #77c5be33;background:radial-gradient(ellipse at 50% 10%,#326e7040,transparent 60%),linear-gradient(145deg,#122b3e,#201e3a);color:#f4efff;box-shadow:0 20px 50px #18223a22;padding:28px}
.chest-shop[data-profile-view=valley] .chest-hero{flex-direction:column;align-items:center;text-align:center;gap:12px}
.chest-shop[data-profile-view=valley] .chest-art{width:190px;filter:drop-shadow(0 8px 25px #cf9c5566)}
.chest-shop[data-profile-view=valley] .chest-hero h3{font-size:1.8rem}
.chest-shop[data-profile-view=valley] .chest-buy{display:block;width:min(100%,340px);margin:16px auto;min-height:50px}
.chest-shop[data-profile-view=valley] .chest-message{text-align:center}
.chest-shop[data-profile-view=valley] .chest-kicker{color:#c7b3f2}
.chest-shop[data-profile-view=valley] .chest-art{background:radial-gradient(ellipse at center,#f6c66820,transparent 70%);filter:drop-shadow(0 10px 28px #cf9c5555)}
.chest-shop[data-profile-view=valley] .chest-buy{border:1px solid #f6dc8c;background:linear-gradient(120deg,#f4d58e,#e9b354);color:#34240e;box-shadow:0 6px 22px #e7b35026;font-weight:800}
.chest-shop[data-profile-view=valley] .chest-buy:disabled{opacity:.55;box-shadow:none}
@media(max-width:600px){.profile-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-tabs button{font-size:13px;min-height:46px}.profile-pane>.collection-section{padding:14px}.valley-landscape{height:285px;border-radius:20px}.valley-caption{top:18px;left:18px;max-width:68%}.valley-caption span{font-size:8px;letter-spacing:.1em}.valley-caption strong{font-size:24px}.valley-caption p{font-size:11px;max-width:160px}.valley-location{right:14px;bottom:30px;font-size:9px}.valley-scene{object-position:55% center}.chest-shop[data-profile-view=valley]{padding:18px}.chest-shop[data-profile-view=valley] .chest-art{width:150px}}
.chest-dialog .chest-roll-card.is-winner{border-color:var(--prize-color,#dfc6ff);box-shadow:inset 0 0 22px color-mix(in srgb,var(--prize-color,#dfc6ff) 25%,transparent)}
.chest-dialog[data-phase=revealed] .chest-prize>.chest-icon{box-shadow:0 0 45px color-mix(in srgb,var(--prize-color,#ac7ef4) 40%,transparent)}
.result-coins{margin:18px 0;padding:18px;border:1px solid #daa94466;border-radius:18px;background:linear-gradient(135deg,#d9a62914,#d9a62906);color:var(--text);text-align:left;overflow-wrap:anywhere}
.result-coins-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-weight:700}
.result-coins-heading strong{font-size:1.7rem;color:var(--text-bright);white-space:nowrap}
.result-coins ul{padding-left:20px;margin:12px 0}.result-coins li{margin:8px 0;line-height:1.5}
.result-coins li b{color:var(--text-bright)}.result-coins p{font-size:.9rem;line-height:1.55;margin:10px 0}
.result-coins details{border-top:1px solid #daa94444;padding-top:12px;margin-top:12px}.result-coins summary{cursor:pointer;line-height:1.5}

/* Sacred halo: restrained gold light, no flashing. */
.chest-holy{--icon-ink:#fff4be!important;--icon-accent:#fff!important;filter:drop-shadow(0 0 7px #ffe18b);background:radial-gradient(ellipse,#ffe49c55,transparent 70%);border-color:#ffeab0!important}.chest-holy svg{filter:drop-shadow(0 0 4px #fff5c9)}
.angel-blessed td:nth-child(2){position:relative}.angel-blessed td:nth-child(2)>:first-child:before,.angel-blessed td:nth-child(2)>:first-child:after{content:'🪽';display:inline-block;font-size:1.15em;filter:drop-shadow(0 0 5px #ffe49c);vertical-align:middle;margin:0 4px}.angel-blessed td:nth-child(2)>:first-child:after{transform:scaleX(-1)}
.angel-procession{position:absolute;inset:0;z-index:5;pointer-events:none;display:flex;align-items:center;justify-content:space-around;overflow:hidden;background:radial-gradient(ellipse,#fff3b833,transparent 70%);animation:angel-visit 3s ease-out both}.angel-procession span{font-size:clamp(38px,8vw,80px);filter:drop-shadow(0 0 18px #fff0af);animation:angel-rise 3s ease-out both}.angel-procession span:nth-child(2){animation-delay:.1s}@keyframes angel-rise{from{transform:translateY(80px);opacity:0}30%{opacity:1}to{transform:translateY(-100px);opacity:0}}@keyframes angel-visit{0%,100%{opacity:0}20%,65%{opacity:1}}
@media(prefers-reduced-motion:reduce){.angel-procession,.angel-procession span{animation:none}.angel-procession{background:none;align-items:flex-start;opacity:.65}.angel-procession span{font-size:28px}}

.angel-blessed td:nth-child(2)>:first-child:before,.angel-blessed td:nth-child(2)>:first-child:after{content:'';width:1.35em;height:1.35em;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M36 34Q3 35 2 5q9 12 18 12L13 4q16 6 23 30Z' fill='%23fff7dc' stroke='%23e6c46b'/%3E%3Cpath d='m10 18 22 14M8 25l22 9' fill='none' stroke='%23dfc998'/%3E%3C/svg%3E")}.angel-procession span svg{width:clamp(45px,15vw,80px);height:auto}

.chest-art-abyss_eye{--icon-ink:#c476ff!important;--icon-accent:#ffb279!important;background:radial-gradient(circle,#a655ee44,#190b2722)!important}.chest-art-abyss_eye svg{filter:drop-shadow(0 0 5px #ad58fd)}.chest-art-soul_reaper{--icon-ink:#ff607e!important;--icon-accent:#ffbd85!important;background:radial-gradient(circle,#e9355338,#210b1822)!important}.chest-art-soul_reaper svg{filter:drop-shadow(0 0 5px #ff496e)}

/* Custom portal contribution: amount entry and balance preview. */
.portal-contribution .portal-amounts{display:flex;flex-direction:column;gap:12px;text-align:left;padding:18px;border:1px solid var(--border);border-radius:20px;background:linear-gradient(135deg,#7f6dec12,#58d2c80c);margin-top:20px}
.portal-amount-label{display:flex;flex-direction:column;gap:10px;font-size:.8rem;font-weight:700;color:var(--text)}
.portal-amount-field{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:14px;padding:10px 14px;background:var(--bg);transition:border-color .15s,box-shadow .15s}
.portal-amount-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-dim)}
.portal-coin{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#ffe49c,#e5a529);color:#694109;box-shadow:inset 0 0 0 2px #fff3b777;font-size:20px}
.portal-amount-field input{min-width:0;width:100%;padding:0;border:0;outline:0;background:transparent;box-shadow:none;border-radius:0;color:var(--text-bright);line-height:1.3;font-family:inherit;font-size:2rem;font-weight:800;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
.portal-amount-field input::-webkit-inner-spin-button,.portal-amount-field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.portal-amount-field input:disabled{opacity:.5}.portal-currency{font-size:.85rem;color:var(--text-muted)}
.portal-amount-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.portal-available{color:var(--text-muted);font-size:.75rem}.portal-amount-footer .btn{min-height:38px;padding:8px 12px;border-radius:10px;font-size:.76rem}
.portal-receipt{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 0;text-align:left}
.portal-receipt>div{padding:12px 14px;border-radius:14px;border:1px solid var(--border-soft);background:var(--bg)}
.portal-receipt span{display:block;font-size:.72rem;font-weight:500;color:var(--text-muted);margin-bottom:6px}
.portal-receipt strong{font-size:1.05rem;color:var(--text-bright);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.portal-contribution .portal-confirm{width:100%;min-height:48px;border-radius:14px}
@media(max-width:360px){.portal-contribution .portal-amounts{padding:12px}.portal-amount-footer{align-items:stretch;flex-direction:column}.portal-receipt{gap:6px}.portal-receipt>div{padding:10px}}

.portal-rules{text-align:left;margin:14px 0;color:var(--text-muted);font-size:.8rem}.portal-rules summary{cursor:pointer;color:var(--text);padding:8px 0}.portal-rules p{text-align:left}

/* Wings belong to the nickname row, not the outer frame grid. */
.angel-blessed td:nth-child(2)>:first-child:before,.angel-blessed td:nth-child(2)>:first-child:after{content:none!important;display:none!important}
.angel-blessed .ranked-nickname{display:flex;align-items:center;gap:5px;min-width:0;overflow-wrap:anywhere}
.angel-blessed .ranked-nickname:before,.angel-blessed .ranked-nickname:after{content:'';display:block;flex:0 0 18px;width:18px;height:20px;filter:drop-shadow(0 0 4px #ffe49c);background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M36 34Q3 35 2 5q9 12 18 12L13 4q16 6 23 30Z' fill='%23fff7dc' stroke='%23e6c46b'/%3E%3Cpath d='m10 18 22 14M8 25l22 9' fill='none' stroke='%23dfc998'/%3E%3C/svg%3E")}.angel-blessed .ranked-nickname:after{transform:scaleX(-1)}
.council-notice{max-width:min(460px,calc(100vw - 32px));white-space:normal;line-height:1.5;pointer-events:auto}.council-notice button{display:block;margin-top:10px;padding:7px 14px;border-radius:8px;border:1px solid #d6b976;background:#243b46;color:#fff4d7;cursor:pointer}

.chest-icon.chest-sovereign{--icon-ink:#b2fbdf;--icon-accent:#fff1be;color:#bcffe6;background:radial-gradient(circle at 35% 20%,#456280,#12182e 65%);border:1px solid #f0d39b;box-shadow:0 0 0 3px #668f9633,0 0 22px #72edcb65,inset 0 0 12px #fff3b72c}.chest-sovereign svg{filter:drop-shadow(0 0 3px #8fedc9)}.chest-tile[data-item=world_lord]{border-color:#cdbb89;background:radial-gradient(ellipse at top,#30485b,#192135)}.chest-tile[data-item=world_lord] small{color:#ebd8a8;line-height:1.5}.chest-tile[data-item=world_lord].locked .chest-icon{filter:saturate(.2);opacity:.55}

/* World sovereign: a complete royal row, with a quiet glint confined to its nameplate. */
/* Separate cell borders let the end cells curve without a straight collapsed seam. */
table.lb-table:has(>tbody>tr:is(.world-sovereign,.race-veteran)) {border-collapse:separate;border-spacing:0;}
.lb-table tbody tr.world-sovereign {
  --sovereign-surface:#152b36;--sovereign-panel:#20363f;--sovereign-gold:#e6bf70;--sovereign-light:#fff1bc;--sovereign-teal:#9ee7d3;
  --text:#e6f1ed;--text-bright:#fff4d5;--text-muted:#c4d7d0;--text-dim:#c4d7d0;--warm:#ffe0a0;
  --success-bright:#beffe4;--success-dim:#244b40;--success:#6bbd98;
  --bg-soft:var(--sovereign-panel);--panel:var(--sovereign-panel);--border-soft:#8d835950;--accent-bright:var(--sovereign-teal);
  color:var(--text);background:transparent;animation:none;
}
:root[data-theme-tone=light] .lb-table tbody tr.world-sovereign {
  --sovereign-surface:#fff3d4;--sovereign-panel:#f5e6bf;--sovereign-gold:#9b6920;--sovereign-light:#725016;--sovereign-teal:#1c6558;
  --text:#493c27;--text-bright:#53380d;--text-muted:#655334;--text-dim:#655334;--warm:#704611;--border-soft:#a87c3455;
  --success-bright:#15543e;--success-dim:#e2f2e8;--success:#3d8068;
}
.lb-table tbody tr.world-sovereign>td {
  color:var(--text);background:var(--sovereign-surface);border-block:2px solid var(--sovereign-gold);box-shadow:none;
}
.lb-table tbody tr.world-sovereign>td:first-child {
  border-radius:12px 0 0 12px;color:var(--sovereign-light);font-weight:900;
  border-left:3px solid var(--sovereign-gold);
}
.lb-table tbody tr.world-sovereign>td:last-child {
  border-radius:0 12px 12px 0;
  border-right:3px solid var(--sovereign-gold);
}
.lb-table tbody tr.world-sovereign.me>td {color:var(--text);}
.lb-table tbody tr.world-sovereign .lb-coins,.lb-table tbody tr.world-sovereign .lb-score-value {color:var(--sovereign-light);font-weight:850;}
.lb-table .world-sovereign .ranked-name.lb-sovereign-name {
  position:relative;isolation:isolate;display:inline-grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;
  width:min(100%,340px);max-width:340px;min-width:240px;min-height:68px;box-sizing:border-box;padding:10px 16px 10px 10px;overflow:hidden;
  border:2px solid var(--sovereign-gold);border-radius:15px;color:var(--text-bright)!important;
  background:radial-gradient(ellipse at 0 0,#9ee7d31b,transparent 66%),var(--sovereign-panel);
  box-shadow:inset 0 0 0 2px #fff1bc0a,0 3px 12px #081b251c;line-height:1.2;
}
.lb-sovereign-name::after {
  content:'';position:absolute;z-index:1;pointer-events:none;top:0;bottom:0;left:0;width:42%;
  border-block:2px solid var(--sovereign-light);opacity:0;transform:translateX(-130%);animation:sovereign-glint 8s ease-in-out infinite;
}
.lb-sovereign-name .ranked-identity {position:relative;z-index:2;min-width:0;padding-right:6px;}
.lb-sovereign-name .ranked-nickname {color:var(--sovereign-light)!important;font-size:1.12em;letter-spacing:.015em;font-weight:950;}
.lb-sovereign-name small {color:var(--text-muted)!important;line-height:1.35;}
.lb-sovereign-name .lb-sovereign-title {
  display:block;margin-top:5px;color:var(--sovereign-teal);font:850 max(10px,.67em)/1.4 var(--font-ui);letter-spacing:.05em;white-space:nowrap;overflow-wrap:normal;
}
.lb-sovereign-crown {display:block;position:relative;z-index:2;width:42px;height:38px;align-self:center;flex-shrink:0;color:var(--sovereign-gold);}
.lb-sovereign-crown svg {display:block;width:100%;height:100%;}
.lb-sovereign-name .ranked-you {position:relative;z-index:2;margin-right:2px;}
.lb-sovereign-flare {position:absolute;z-index:1;right:5px;top:5px;width:32px;height:34px;pointer-events:none;color:var(--sovereign-light);}
.lb-sovereign-flare span {position:absolute;display:block;font-size:9px;line-height:1;opacity:.45;animation:sovereign-stars 6s ease-in-out infinite;}
.lb-sovereign-flare span:nth-child(1) {left:2px;top:2px;}
.lb-sovereign-flare span:nth-child(2) {right:1px;top:11px;font-size:6px;animation-delay:-2s;}
.lb-sovereign-flare span:nth-child(3) {left:12px;top:24px;font-size:5px;animation-delay:-4s;}
.lb-table .world-sovereign .lb-sovereign-name:focus-visible {outline:3px solid var(--sovereign-teal);outline-offset:3px;}
@keyframes sovereign-glint {0%,58%{transform:translateX(-130%);opacity:0}64%{opacity:.65}82%{transform:translateX(350%);opacity:0}100%{transform:translateX(350%);opacity:0}}
@keyframes sovereign-stars {0%,100%{transform:translateY(1px) scale(.85);opacity:.35}50%{transform:translateY(-1px) scale(1.1);opacity:.75}}
/* Long tables keep the same royal look without animating hundreds of rows. */
.lb-table tbody tr:nth-child(n+16) .lb-sovereign-name::after,.lb-table tbody tr:nth-child(n+16) .lb-sovereign-flare span {animation:none;}
.chest-page-hidden .lb-sovereign-name::after,.chest-page-hidden .lb-sovereign-flare span,
.documenthidden .lb-sovereign-name::after,.documenthidden .lb-sovereign-flare span {animation-play-state:paused;}
@media(min-width:1100px) {
  .board-display .lb-table .world-sovereign .ranked-name.lb-sovereign-name {
    grid-template-columns:max(42px,1.5em) minmax(0,1fr) auto;gap:.45em;width:min(100%,18em);max-width:18em;min-width:14em;min-height:4em;
    padding:.45em .7em .45em .45em;border-radius:.7em;
  }
  .board-display .lb-sovereign-crown {width:max(42px,1.5em);height:max(38px,1.4em);}
}
@media(max-width:600px) {
  .lb-table .world-sovereign .ranked-name.lb-sovereign-name {grid-template-columns:30px minmax(0,1fr) auto;gap:6px;width:min(100%,250px);max-width:250px;min-width:220px;min-height:64px;padding:8px 10px 8px 7px;border-radius:12px;}
  .lb-sovereign-crown {width:30px;height:30px;}.lb-sovereign-name .ranked-nickname {font-size:1.05em;}.lb-sovereign-name .lb-sovereign-title {font-size:max(10px,.7em);letter-spacing:.025em;}
}
@media(prefers-reduced-motion:reduce) {
  .lb-sovereign-name::after,.lb-sovereign-flare span {animation:none!important;}
  .lb-table .world-sovereign .profile-link {transition:none;}.lb-table .world-sovereign .profile-link:hover {transform:none;}
}

/* A personal racing trophy: sapphire, silver, and a small finish-line pattern. */
[data-frame=race_veteran_frame],.frame-race_veteran_frame,.race-veteran,.race-veteran-name {
  --veteran-bg:#15304a;--veteran-panel:#214462;--veteran-ink:#eaf5ff;--veteran-muted:#c3d7e9;--veteran-silver:#b5d9ed;--veteran-gold:#ffe2a0;
  --cosmetic-color:var(--veteran-silver);--cosmetic-glow:#72b6e54d;--cosmetic-tint:#79b7f022;
  --frame-art:linear-gradient(140deg,#98d7ff25,transparent 55%),var(--veteran-bg);
}
:root[data-theme-tone=light] [data-frame=race_veteran_frame],:root[data-theme-tone=light] .frame-race_veteran_frame,
:root[data-theme-tone=light] .race-veteran,:root[data-theme-tone=light] .race-veteran-name {
  --veteran-bg:#eaf4ff;--veteran-panel:#dcecfb;--veteran-ink:#143e61;--veteran-muted:#3a5874;--veteran-silver:#4b7da4;--veteran-gold:#785011;
  --cosmetic-glow:#538ab02b;--cosmetic-tint:#558abb18;
}
.lb-table tbody tr.race-veteran:not(.world-sovereign) {
  --text:var(--veteran-ink);--text-bright:var(--veteran-ink);--text-muted:var(--veteran-muted);--text-dim:var(--veteran-muted);
  --warm:var(--veteran-gold);--bg-soft:var(--veteran-panel);--panel:var(--veteran-panel);--border-soft:#729dc947;
  --success-bright:#beffe4;--success-dim:#244b40;--success:#6bbd98;background:transparent;
}
:root[data-theme-tone=light] .lb-table tbody tr.race-veteran:not(.world-sovereign) {--success-bright:#15543e;--success-dim:#e2f2e8;--success:#3d8068;}
.lb-table tbody tr.race-veteran:not(.world-sovereign)>td {
  color:var(--text);background:var(--veteran-bg);border-block:2px solid var(--veteran-silver);box-shadow:none;
}
.lb-table tbody tr.race-veteran:not(.world-sovereign)>td:first-child {border-radius:12px 0 0 12px;color:var(--veteran-gold);border-left:3px solid var(--veteran-gold);}
.lb-table tbody tr.race-veteran:not(.world-sovereign)>td:last-child {border-radius:0 12px 12px 0;border-right:3px solid var(--veteran-silver);}
.lb-table tbody tr.race-veteran:not(.world-sovereign) .lb-score-value {color:var(--veteran-ink);font-weight:850;}
.ranked-name.race-veteran-name:not(.lb-sovereign-name),.ranked-name[data-frame=race_veteran_frame]:not(.lb-sovereign-name) {
  --text-bright:var(--veteran-ink);--text-muted:var(--veteran-muted);
  position:relative;isolation:isolate;grid-template-columns:42px minmax(0,1fr) auto;gap:9px;box-sizing:border-box;
  width:min(100%,360px);max-width:360px;min-width:240px;min-height:88px;padding:10px 12px 12px 9px;overflow:hidden;
  border:2px solid var(--veteran-silver);border-radius:15px;background:var(--frame-art);color:var(--veteran-ink)!important;
  box-shadow:inset 0 0 0 1px #fff9e133,0 3px 14px #08294824;
}
.race-veteran-name:not(.lb-sovereign-name)::after {
  content:'';position:absolute;z-index:0;pointer-events:none;left:0;right:0;bottom:0;height:5px;opacity:.65;
  background:conic-gradient(var(--veteran-silver) 25%,transparent 0 50%,var(--veteran-silver) 0 75%,transparent 0) 0 0/10px 10px;
}
.race-veteran-name:not(.lb-sovereign-name) .ranked-identity {position:relative;z-index:1;min-width:0;}
.race-veteran-name:not(.lb-sovereign-name) .ranked-nickname {color:var(--veteran-ink)!important;font-size:1.08em;font-weight:900;}
.race-veteran-name:not(.lb-sovereign-name) .rank-frame-icon {
  width:42px;height:42px;box-sizing:border-box;border:1px solid var(--veteran-gold);border-radius:12px;
  background:linear-gradient(140deg,#fff0b51f,transparent),var(--veteran-panel);color:var(--veteran-gold);font-size:1.6em;box-shadow:inset 0 0 0 2px #ffe2a010;
}
.race-veteran-note {display:block;margin-top:6px;padding-top:5px;border-top:1px solid var(--border-soft);color:var(--text-bright);font:800 max(10px,.62em)/1.35 var(--font-ui);white-space:normal;overflow-wrap:normal;}
.race-veteran-note>span {display:block;margin-top:2px;color:var(--text-muted);font-size:1em;font-weight:650;letter-spacing:.025em;}
.lb-sovereign-name .race-veteran-note {border-top-color:var(--sovereign-gold);color:var(--sovereign-light);}
.player-pill[data-frame=race_veteran_frame],.player-pill[data-frame=race_veteran_frame]:hover,.player-pill[data-frame=race_veteran_frame].active {
  color:var(--veteran-ink);border-color:var(--veteran-silver);
  background:conic-gradient(var(--veteran-silver) 25%,transparent 0 50%,var(--veteran-silver) 0 75%,transparent 0) left bottom/8px 4px repeat-x,var(--frame-art);
}
.player-pill[data-frame=race_veteran_frame] .player-pill-frame {color:var(--veteran-gold);background:var(--veteran-panel);border-color:var(--veteran-gold);}
.stats-hero.frame-race_veteran_frame,.public-profile-modal.frame-race_veteran_frame {
  --text:var(--veteran-ink);--text-bright:var(--veteran-ink);--text-muted:var(--veteran-muted);--text-dim:var(--veteran-muted);--accent-bright:var(--veteran-gold);
  --panel:var(--veteran-panel);--bg-soft:var(--veteran-panel);--border-soft:#729dc94d;
  background:var(--frame-art);border:2px solid var(--veteran-silver);box-shadow:inset 0 0 0 3px #ffe2a014,0 12px 35px #08294824;
}
.profile-identity.frame-race_veteran_frame .profile-avatar,.public-profile-head.frame-race_veteran_frame .public-profile-avatar {
  color:var(--veteran-gold);border:2px solid var(--veteran-gold);background:var(--veteran-panel);box-shadow:0 0 0 3px #b5d9ed22,0 5px 18px #08294824;
}
.frame-race_veteran_frame .frame-preview-name {color:var(--veteran-ink)!important;}
.race-veteran-honor {display:flex;align-items:center;gap:12px;box-sizing:border-box;max-width:100%;margin-top:12px;padding:12px 14px;border:1px solid var(--veteran-silver,var(--border));border-radius:14px;background:var(--veteran-panel,var(--bg-soft));color:var(--veteran-ink,var(--text-bright));}
.race-veteran-honor>span {display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;font-size:28px;}
.race-veteran-honor>div {min-width:0;}.race-veteran-honor b {display:block;font-size:.84rem;line-height:1.4;overflow-wrap:anywhere;}
.race-veteran-honor small {display:block;margin-top:3px;color:var(--veteran-muted,var(--text-muted));font-size:.72rem;line-height:1.4;}
@media(min-width:1100px) {
  .board-display .ranked-name.race-veteran-name:not(.lb-sovereign-name) {grid-template-columns:max(42px,1.5em) minmax(0,1fr) auto;gap:.45em;width:min(100%,18em);max-width:18em;min-width:14em;padding:.45em .7em .55em .45em;border-radius:.7em;}
  .board-display .race-veteran-name:not(.lb-sovereign-name) .rank-frame-icon {width:max(42px,1.5em);height:max(42px,1.5em);font-size:1em;}
}
@media(max-width:600px) {
  .ranked-name.race-veteran-name:not(.lb-sovereign-name) {grid-template-columns:30px minmax(0,1fr) auto;gap:6px;min-width:220px;max-width:280px;padding:8px 10px 10px 7px;}
  .race-veteran-name:not(.lb-sovereign-name) .rank-frame-icon {width:30px;height:34px;border-radius:9px;font-size:1.35em;}
  .race-veteran-honor {gap:9px;padding:10px;}.race-veteran-honor>span {flex-basis:32px;width:32px;height:32px;font-size:24px;}
}

/* Pause the icon wrapper too: portal glow animates here, outside its SVG. */
.chest-icon.chest-offscreen,
.chest-page-hidden .chest-icon {animation-play-state:paused!important}
