/* ===== client/css/00_base.css ===== */
/* Everkin base styles (from the v3.9 page head; moved to a file in v5.3). */
:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#f1f3ff;background:#0b1020}*{box-sizing:border-box}body{margin:0;padding-bottom:85px}header{padding:19px 16px 13px;background:#151d35;border-bottom:1px solid #384564;position:sticky;top:0;z-index:5}header strong{font-size:23px;letter-spacing:2px;color:#b7b3ff}header small{display:block;color:#a6b5d6;margin-top:4px}.wallet{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.chip{background:#263352;border:1px solid #455779;border-radius:20px;padding:6px 10px;font-size:12px}.tabs{display:flex;overflow:auto;gap:7px;padding:10px 12px;background:#11192e;position:sticky;top:95px;z-index:4}.tabs button{white-space:nowrap;flex:none}.tabs button.on{background:#6655bc;border-color:#a29aff}main{padding:13px;max-width:700px;margin:auto}section{background:#171f35;border:1px solid #354260;border-radius:15px;padding:16px;margin-bottom:14px}h1{font-size:24px;margin:0 0 8px}h2{font-size:18px;margin:0 0 13px}h3{font-size:15px;margin:18px 0 8px}p{line-height:1.5;color:#bac6dd}button,input,select{font:inherit}button{border:1px solid #465778;background:#263657;color:white;padding:11px 13px;border-radius:10px;min-height:44px}button:disabled{opacity:.45}button.primary{background:#6b5ad1;border-color:#a49cff;font-weight:700}button.on{background:#544a89;border-color:#b9afff}.grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.stack{display:grid;gap:9px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #2d3b57;padding:10px 0}.row:last-child{border:0}.row small{display:block;color:#aab8d3;font-size:12px;margin-top:3px}.row button{flex-shrink:0}.muted{font-size:13px;color:#aab8d3}.gold{color:#e9c77e}.bar{height:12px;background:#44364b;border-radius:10px;overflow:hidden}.bar span{display:block;height:100%;background:#6dd2a2}.bar.enemy span{background:#e1838e}.choice{text-align:left;min-height:74px}.choice small{display:block;margin-top:6px;color:#bac5dc}.pill{background:#354069;border-radius:7px;padding:3px 6px;font-size:11px}.log{background:#0e162a;border-radius:9px;padding:12px;max-height:260px;overflow:auto;font-size:12px;color:#c2cce0}.log div{border-bottom:1px solid #27314a;padding:6px 0}.field{display:block;margin:12px 0;color:#c2cce0;font-size:13px}input,select{width:100%;background:#10182b;color:white;border:1px solid #4a5b80;border-radius:8px;padding:11px;margin-top:6px}input[type=checkbox]{width:auto}label.check{display:flex;gap:8px;align-items:center;margin:10px 0}nav.bottom{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:#11192d;border-top:1px solid #354260;padding:8px 5px max(8px,env(safe-area-inset-bottom));z-index:10}nav.bottom button{font-size:11px;min-height:49px;padding:6px 8px;border:0;background:transparent}nav.bottom button.on{color:#c2b5ff;background:#2b2954}.notice{position:fixed;bottom:82px;left:15px;right:15px;background:#4b4184;border:1px solid #b7aaff;padding:13px;border-radius:10px;z-index:20;box-shadow:0 5px 20px #0008}details{margin:8px 0}summary{cursor:pointer;padding:10px;background:#202b46;border-radius:8px}.accent{color:#bdb4ff}a{color:#c8c0ff}button.full{width:100%} .tiny{font-size:11px}.warn{color:#f2b4b4} @media(min-width:650px){.tabs{top:95px}} 

/* v0.4 — image 1 visual language: midnight navy, cyan borders, gold highlights */
:root{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:#e7f4ff;background:#040d1e}body{background:radial-gradient(ellipse at 70% -10%,#10355c 0%,#061529 40%,#030916 100%);color:#dcecff;padding-bottom:90px}header{background:linear-gradient(105deg,#031024,#061c36 62%,#07162d);border-bottom:1px solid #126e9d;padding:14px max(16px,calc((100vw - 1500px)/2));box-shadow:0 8px 28px #0009}header strong{font-family:'Everkin Serif',Georgia,serif;font-size:31px;color:#f1f7ff;letter-spacing:3px;text-shadow:0 0 17px #46bbff77}header small{color:#72b9dc;letter-spacing:2px;font-size:10px}.wallet{position:absolute;right:max(16px,calc((100vw - 1500px)/2));top:18px;margin:0}.chip{border:1px solid #17466d;background:#07182c;color:#ffdc87;border-radius:9px}.tabs{background:#06152b;border-bottom:1px solid #16416b;justify-content:center;top:76px;padding:7px 10px;gap:4px}.tabs button{border:1px solid transparent;border-radius:6px;background:#081b35;color:#b5d5ef;padding:12px 20px}.tabs button.on{background:linear-gradient(#09466d,#072840);border-color:#35caff;box-shadow:inset 0 0 18px #1faefc44;color:#baf3ff}main{max-width:1520px;padding:17px 15px}section{background:linear-gradient(155deg,#091e36,#06162b);border:1px solid #1a5277;border-radius:9px;box-shadow:0 8px 25px #0004}h1,h2{font-family:'Everkin Serif',Georgia,serif;color:#f6f8ff}h1{font-size:28px}h2{font-size:22px}p,.muted{color:#a8c5df}button{background:#0a2746;border:1px solid #1a6796;border-radius:6px;color:#d9eeff}button.on{background:#0d496b;border-color:#32c8ff}button.primary{background:linear-gradient(#edb94e,#b87622);border-color:#ffdb7a;color:#1b1521}button:hover:not(:disabled){filter:brightness(1.16)}input,select{background:#06182d;border:1px solid #23547a;color:#e3f5ff}nav.bottom{background:#04162c;border-top:1px solid #167db0}nav.bottom button.on{color:#5edcff;background:#0c3653}.gold{color:#ffd57c}.notice{background:#0a3d5d;border-color:#39bff9}.bar span{background:#30d9c1}.market-head{display:flex;justify-content:space-between;gap:18px;align-items:end;padding:10px 4px 18px}.market-head h1{margin:4px 0}.market-head p{margin:3px 0;font-size:13px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#4ad5ff;font-weight:800}.counter{font:600 12px system-ui;color:#78bedf;background:#0b2945;border:1px solid #17527b;padding:5px 9px;border-radius:30px;vertical-align:middle;white-space:nowrap}.market-tools{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.market-tools input{width:230px}.market-tools select{width:auto;max-width:170px}.market-tools input,.market-tools select{margin:0;padding:10px}.market-layout{display:grid;grid-template-columns:184px minmax(0,1fr) 276px;gap:11px;align-items:start}.market-sidebar,.market-center,.market-detail{background:linear-gradient(145deg,#07182e,#041226);border:1px solid #17689c;border-radius:9px;padding:12px;min-width:0}.market-sidebar{position:sticky;top:143px}.market-detail{position:sticky;top:143px;border-color:#c99432;padding:13px;box-shadow:0 0 20px #9a5b181c}.sidebar-heading{font-size:11px;color:#8ecce9;letter-spacing:1.4px;margin:8px 0 12px;font-weight:800}.market-sidebar button{display:block;width:100%;text-align:left;border:0;background:transparent;min-height:36px;padding:8px 9px}.market-sidebar .side-active{background:#0a4c70;border-left:3px solid #42cfff;color:#fff}.market-sidebar button span{float:right}.market-sidebar .reset{margin-top:15px;text-align:center;border:1px solid #1d79a8}.market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.weapon-card{text-align:left;display:flex;flex-direction:column;min-width:0;min-height:262px;padding:0;border:1px solid #287eaa;background:linear-gradient(#0c1c33,#061426);overflow:hidden;transition:transform .15s,box-shadow .15s}.weapon-card:hover{transform:translateY(-2px)}.weapon-card.picked{box-shadow:0 0 0 2px #d4a74c,0 0 24px #ecac4730}.weapon-card.uncommon{border-color:#21987c}.weapon-card.rare{border-color:#297de2}.weapon-card.epic{border-color:#9453dc}.weapon-card.legendary{border-color:#d28c32}.weapon-card.ascendant{border-color:#efbd66;box-shadow:inset 0 0 22px #b18b3422}.card-top{padding:9px 9px 2px;min-height:54px}.card-top b{display:block;font-size:12px;line-height:1.3;color:#f4f8ff}.rarity{display:inline-block;margin-top:4px;font-size:10px;padding:2px 6px;border-radius:5px;color:#c9e8ff;background:#2a3f5b}.rarity.Uncommon{background:#09543d;color:#b2ffda}.rarity.Rare{background:#134b99;color:#d5eaff}.rarity.Epic{background:#582b88;color:#f3d5ff}.rarity.Legendary{background:#7e4a1a;color:#ffe2a1}.rarity.Ascendant{background:#996824;color:#fff4c8}.weapon-art{display:block;width:100%;height:113px;object-fit:contain;mix-blend-mode:screen;filter:contrast(1.15) saturate(1.2);background:radial-gradient(ellipse at center,#143659 0%,transparent 70%)}.card-icons{font-size:12px;padding:5px 8px;line-height:1.7;white-space:normal}.attack-label,.defense-label{font-size:9px;color:#7caec9;letter-spacing:.8px}.card-ability{font-size:10px;color:#8fd6e5;padding:3px 8px 8px;margin-top:auto}.card-price{background:#081c33;border-top:1px solid #174368;padding:8px 7px;color:#ffdb80;font-size:12px;font-weight:800}.card-price span{float:right;color:#78b4cf;font-size:10px}.pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:13px 2px 2px;font-size:11px;color:#91bad4}.pager span{margin-right:auto}.pager button{min-height:33px;padding:5px 10px}.detail-header h2{margin:6px 0;font-size:23px}.detail-art{width:100%;height:220px;object-fit:contain;mix-blend-mode:screen;filter:saturate(1.35);background:radial-gradient(ellipse,#163a5a,transparent 72%);border-bottom:1px solid #325371}.detail-stats>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1b3d59;padding:10px 0;gap:8px}.detail-stats span{font-size:10px;color:#77aeca;letter-spacing:1px}.detail-stats b{font-size:13px;text-align:right}.detail-ability{background:#0b2a42;border:1px solid #285f83;padding:11px;margin-top:14px;border-radius:6px}.detail-ability b{color:#ffd78b;font-size:13px}.detail-ability p{font-size:11px;line-height:1.5;margin:5px 0 0}.flavor{font:italic 13px 'Everkin Serif',Georgia,serif;line-height:1.6}.detail-price{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #30516d;padding:13px 0;color:#87a9c1;font-size:11px}.detail-price b{font-size:21px;color:#ffcf66}.purchase{width:100%;background:linear-gradient(#f9ce62,#d18c2b);color:#1b1721;font-weight:900;border:1px solid #ffe18a;min-height:49px}.owned{text-align:center;font-size:11px}.element-legend{margin-top:11px;border:1px solid #175b8d;background:#05152b;border-radius:8px;display:flex;align-items:center;gap:5px;padding:10px;overflow:auto}.element-legend>b{font:700 12px 'Everkin Serif',Georgia,serif;min-width:145px;color:#a5d8f5}.element-legend>div{min-width:90px;text-align:center}.element-legend img{width:65px;height:53px;object-fit:contain;mix-blend-mode:screen}.element-legend small{display:block;text-transform:capitalize;font-size:10px;color:#9ccde9}@media(max-width:1100px){.market-layout{grid-template-columns:145px minmax(0,1fr)}.market-detail{grid-column:2;position:static}.market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.market-head{display:block}.market-tools{justify-content:flex-start;margin-top:12px}.wallet{position:static;margin-top:8px}.tabs{top:111px}.market-sidebar{top:165px}}@media(max-width:650px){header{padding:12px 12px 9px}header strong{font-size:25px}.wallet{gap:4px}.chip{font-size:10px;padding:5px 7px}.tabs{top:93px;justify-content:flex-start}.tabs button{padding:8px 12px;font-size:12px}main{padding:11px 8px}.market-head{padding:7px 3px 12px}.market-head h1{font-size:25px}.market-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px}.market-tools input{width:100%;grid-column:1/-1}.market-tools select{max-width:none;width:100%;font-size:12px}.market-layout{grid-template-columns:minmax(0,1fr)}.market-sidebar{position:static;display:flex;flex-wrap:wrap;gap:4px;padding:7px}.market-sidebar .sidebar-heading{width:100%;margin:3px 0;font-size:10px}.market-sidebar button{width:auto;min-height:32px;font-size:11px;padding:5px 8px}.market-sidebar .reset{margin:0}.market-center{padding:7px}.market-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.weapon-card{min-height:242px}.weapon-art{height:105px}.card-top{min-height:51px}.card-top b{font-size:11px}.card-icons{font-size:11px}.market-detail{grid-column:auto}.detail-art{height:220px}.element-legend{gap:8px}.element-legend>b{min-width:110px}nav.bottom button{font-size:10px;padding:4px 5px;min-width:0}.pager{gap:5px}.pager span{font-size:10px}}
.shop-status{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 12px;padding:10px 12px;background:#082541;border:1px solid #1975a2;border-radius:8px;color:#a7d8f2;font-size:12px}.shop-status span{padding:4px 7px}.shop-status b{color:#ffda83}.stock-line{font-size:10px;letter-spacing:.6px;padding:6px 8px;color:#8ff0c8;font-weight:800;background:#092d30}.stock-line.out{background:#401b2b;color:#ff9b9b}.weapon-card.sold-out .weapon-art{filter:grayscale(.75) brightness(.65)}.sold-text{color:#ff9696}.market-detail .purchase:disabled{opacity:.6;filter:grayscale(.65);cursor:not-allowed}
/* v0.6 Battle Arena */
.arena-panel{padding:12px!important;overflow:hidden;background:linear-gradient(155deg,#071b34,#0b2946 55%,#081325)!important;border-color:#1c759d!important}
.arena-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 5px 10px}.arena-title strong{color:#ffe1a0;letter-spacing:1.3px;font-size:14px}.round-badge{border:1px solid #a98243;background:#382e24;color:#ffda91;border-radius:20px;padding:5px 12px;font-weight:900;font-size:12px}
.arena-stage{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;align-items:end;min-height:235px;border:1px solid #27739a;border-radius:12px;overflow:hidden;background:radial-gradient(ellipse at 50% 82%,#29668c 0%,#102c55 49%,#08152f 100%)}
.arena-stage:before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 20% 20%,#51b6d940,transparent 35%),radial-gradient(circle at 80% 18%,#a24d9e35,transparent 40%),linear-gradient(180deg,transparent 64%,#0a2338 65%,#102b43 100%)}
.arena-stage:after{content:'';position:absolute;bottom:11%;left:-15%;width:130%;height:19%;border:2px solid #6ac3df35;border-radius:50%;transform:perspective(200px) rotateX(54deg);pointer-events:none}
.fighter{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;min-width:0;padding:12px 5px 16px}.fighter-name{font-size:12px;font-weight:800;color:#e9f7ff;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.fighter-sprite{width:min(100%,175px);height:144px;object-fit:contain;filter:drop-shadow(0 12px 8px #0008)}.fighter.enemy .fighter-sprite{transform:scaleX(-1)}.fighter-health{width:92%;max-width:180px;height:11px;border-radius:9px;overflow:hidden;background:#3b2634;border:1px solid #7898b5}.fighter-health span{display:block;height:100%;background:linear-gradient(90deg,#1ba881,#8ef0b8);transition:width .3s}.fighter.enemy .fighter-health span{background:linear-gradient(90deg,#c2435e,#f18c93)}.fighter-hp{font-size:11px;color:#d4e7f8}.arena-vs{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);font-weight:1000;font-size:24px;color:#ffe5a7;text-shadow:0 2px 10px #000,0 0 18px #c58a43;z-index:2}
.arena-forecast{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.forecast-side{padding:9px;border:1px solid #245b7d;background:#06172a;border-radius:9px;font-size:12px}.forecast-side b{color:#b5dcf7;display:block;margin-bottom:5px}.forecast-side div{line-height:1.8}.arena-energy{font-size:12px;color:#9ed7ff}.battle-actions{padding:12px!important}.battle-actions h2{margin-bottom:6px}.action-sub{color:#a7bed4;font-size:12px;margin:0 0 12px}.battle-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.battle-pick{display:flex;align-items:center;gap:8px;text-align:left;padding:8px;min-height:74px;border:1px solid #295d7f;background:#0a2038;border-radius:9px;position:relative}.battle-pick.on{border:2px solid #f5c76c;background:#26384c;box-shadow:inset 0 0 16px #f2bb4030}.battle-pick:disabled{opacity:.4}.battle-pick img{width:43px;height:48px;object-fit:contain;flex:none}.battle-pick-info{min-width:0;flex:1}.battle-pick-info b{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-pick-info small{font-size:10px;color:#a9c7de;display:block;line-height:1.45}.pick-check{position:absolute;right:4px;top:3px;font-size:13px;color:#ffde8b}.selection-heading{display:flex;align-items:center;justify-content:space-between;margin:14px 0 8px;gap:6px}.selection-heading b{font-size:13px}.selection-heading span{font-size:11px;color:#b6d7eb}.battle-card{min-height:74px}.battle-card .card-glyph{width:37px;height:45px;border-radius:6px;display:grid;place-items:center;background:linear-gradient(155deg,#31496d,#111a36);border:1px solid #6588b0;font-size:22px;flex:none}.round-history{display:grid;gap:8px}.round-summary{border:1px solid #315c78;border-radius:9px;background:#091e32;padding:10px}.round-summary header{position:static;background:none;border:0;padding:0;display:flex;justify-content:space-between;font-size:12px;color:#ffe0a1}.round-summary .summary-lines{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px;font-size:11px}.round-summary .summary-lines>div{background:#102b43;border-radius:7px;padding:8px}.round-summary .summary-lines b{display:block;color:#c9e7fb;margin-bottom:3px}.round-summary .summary-lines small{display:block;color:#8fbed8;line-height:1.5}.battle-submit{margin-top:13px;background:linear-gradient(180deg,#f0c666,#b47b32)!important;color:#151b2c!important;border:1px solid #ffdc91!important;font-weight:900;letter-spacing:.7px}
@media(min-width:650px){.arena-stage{min-height:330px}.fighter-sprite{height:220px;width:220px}.battle-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v0.7: compact mobile layout, lightweight turn-result overlay */
body{padding-bottom:65px}header{padding:7px 12px 6px}header strong{font-size:22px}header small{font-size:8px;letter-spacing:1px}.wallet{top:8px;right:10px;gap:3px}.chip{padding:4px 6px;font-size:10px}.tabs{top:47px;padding:3px 5px;gap:3px;justify-content:flex-start}.tabs button{padding:7px 10px;min-height:32px;font-size:11px}main{padding:7px 8px}section{padding:10px;margin-bottom:8px}h1{font-size:20px}h2{font-size:16px;margin-bottom:7px}h3{margin:10px 0 5px}.arena-panel{padding:8px!important}.arena-title{margin-bottom:4px}.arena-stage{min-height:155px!important;height:155px!important}.fighter{padding:3px 3px 5px}.fighter-sprite{height:94px!important;width:min(100%,120px)!important}.fighter-name{font-size:11px}.fighter-hp{font-size:10px}.arena-vs{font-size:18px}.arena-forecast{margin-top:5px;gap:5px}.forecast-side{padding:6px;font-size:10px}.forecast-side div{line-height:1.35}.battle-actions{padding:8px!important}.battle-actions h2{font-size:15px}.action-sub{display:none}.selection-heading{margin:7px 0 5px}.battle-picker{gap:5px}.battle-pick{padding:5px;min-height:55px;gap:5px}.battle-pick img{width:33px;height:39px}.battle-pick-info b{font-size:10px}.battle-pick-info small{font-size:9px;line-height:1.2}.battle-card .card-glyph{width:27px;height:34px;font-size:17px}.battle-submit{margin-top:7px;min-height:42px}nav.bottom{padding:3px 2px max(3px,env(safe-area-inset-bottom))}nav.bottom button{min-height:42px;padding:3px 5px;font-size:10px}.battle-summary-bar{display:flex;align-items:center;gap:6px;padding:7px 8px;margin-top:5px;border:1px solid #28587b;border-radius:7px;background:#09213b;font-size:11px}.battle-summary-bar button{margin-left:auto;min-height:30px;padding:4px 9px;font-size:11px}.battle-summary-bar b{color:#f9cf82}.battle-result-actions{display:flex;gap:6px;margin-top:8px}.battle-result-actions button{flex:1;min-height:40px}.battle-overlay{position:fixed;inset:0;z-index:100;background:#010817b8;display:flex;align-items:center;justify-content:center;padding:14px}.battle-overlay[hidden]{display:none}.battle-modal{width:min(100%,430px);max-height:min(78dvh,660px);overflow:auto;background:linear-gradient(155deg,#0c2a49,#071427);border:1px solid #4abbe3;box-shadow:0 20px 65px #000b,0 0 30px #26a8dd24;border-radius:13px;padding:14px}.battle-modal-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.battle-modal-top h2{margin:0;font-size:19px}.battle-modal-top button{min-height:34px;padding:4px 10px}.battle-modal .round-summary{margin-bottom:8px}.battle-modal .log{max-height:200px}.battle-modal .modal-result{font-size:13px;color:#c6e5f4}.battle-modal .modal-result b{color:#ffdc8a}.battle-modal .modal-footer{display:flex;gap:7px;margin-top:12px}.battle-modal .modal-footer button{flex:1}
@media(max-width:390px){.wallet{position:static;margin-top:3px}.chip{font-size:9px;padding:2px 5px}.tabs{top:73px}.fighter-sprite{height:82px!important}.arena-stage{height:143px!important;min-height:143px!important}.battle-pick{min-height:50px}.battle-pick-info small{font-size:8.5px}}
@media(min-width:650px){.arena-stage{height:220px!important;min-height:220px!important}.fighter-sprite{height:165px!important;width:180px!important}.battle-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v0.8 unified compact responsive UI */
:root{--panel:#071c32;--line:#1a6287;--muted:#93b9d1;--glow:#43d4ee;--gold:#e8b65d}
body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
header{padding:7px 12px;min-height:57px;display:flex;align-items:center;gap:10px;position:sticky;top:0}
header strong{font-size:20px;letter-spacing:1px}header small{font-size:9px;letter-spacing:.8px;margin-top:0}
.wallet{position:static;margin-left:auto;display:flex;flex-wrap:nowrap;gap:4px;align-items:center}
.wallet .chip{padding:4px 6px;font-size:10px;white-space:nowrap}
.tabs{position:sticky;top:57px;justify-content:flex-start;padding:4px 8px;gap:4px;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}.tabs button{padding:7px 10px;min-height:34px;font-size:12px}
main{padding:9px;max-width:1100px}section{padding:12px;margin-bottom:9px}h1{font-size:21px;margin:0 0 5px}h2{font-size:17px;margin:0 0 8px}h3{margin:10px 0 5px}p{margin:5px 0 10px;font-size:13px;line-height:1.4}
button{padding:7px 9px;min-height:36px;font-size:13px}input,select{padding:8px;margin-top:4px}.field{margin:6px 0;font-size:12px}.row{padding:6px 0}.row small{font-size:11px}.grid,.stack{gap:6px}
nav.bottom{padding:3px 3px max(3px,env(safe-area-inset-bottom));gap:2px}
nav.bottom button{flex:1;min-width:0;padding:5px 1px;min-height:49px;font-size:10px;border-radius:7px}
nav.bottom button.on{border:1px solid #2483ad}
.screen-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.screen-head h1{margin:0}.screen-head small{color:var(--muted)}
.quickstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:8px}
.metric{border:1px solid #225879;border-radius:8px;padding:8px;background:#071b32;min-width:0}.metric strong{display:block;color:#e9c776;font-size:17px}.metric small{font-size:10px;color:#92b8cf}
.compact-list{max-height:42vh;overflow:auto;scrollbar-width:thin}.compact-list .row{font-size:12px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:9px}.split>section{min-width:0}
.pet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.pet-tile{padding:8px;display:grid;justify-items:center;gap:4px;text-align:center;min-width:0;border:1px solid #245a7c;background:#081c35;border-radius:9px}
.pet-tile.active{border-color:#efc46b;box-shadow:inset 0 0 0 1px #e9bd6b55}
.pet-tile img{height:76px;width:95px;max-width:100%;object-fit:contain}.pet-tile b{font-size:12px}.pet-tile small{font-size:10px;color:var(--muted)}
.tag{border:1px solid #2c668b;background:#0c2b45;border-radius:20px;padding:3px 7px;font-size:10px;white-space:nowrap}
.tight-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.achievement{padding:9px;border:1px solid #235778;background:#081e34;border-radius:8px;font-size:12px}
.achievement.locked{opacity:.48}.achievement b{display:block;color:#e6c17a;margin-bottom:4px}
.battle-picker{max-height:180px;overflow:auto;scrollbar-width:thin}.battle-pick{min-height:63px;padding:5px}.battle-pick img{max-height:48px}
.arena-panel{padding:8px}.arena-stage{min-height:130px}.fighter-sprite{max-height:106px}.arena-forecast{padding:6px}
.battle-actions{padding:9px}.battle-actions h2{font-size:15px;margin:0 0 4px}.battle-actions .action-sub{font-size:11px;margin:0 0 5px}.selection-heading{margin:6px 0}
.battle-submit{margin-top:8px}.battle-actions>p:last-child{display:none}
.market-head{padding:3px 0 8px;align-items:center}.market-head h1{font-size:20px}.market-head p{display:none}
.market-layout{grid-template-columns:150px minmax(0,1fr) 245px;gap:7px}.market-sidebar,.market-center,.market-detail{padding:8px}.market-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.weapon-card{min-height:214px}.weapon-art{height:82px}.card-top{min-height:40px;padding:6px}.card-icons{padding:3px 6px}.card-ability{padding:3px 6px}.detail-art{height:140px}.market-detail,.market-sidebar{top:105px}
@media(max-width:760px){.market-layout{display:block}.market-sidebar{display:none}.market-center{padding:7px}.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-detail{position:static;margin-top:8px}.market-tools{justify-content:stretch}.market-tools input{width:100%;flex:1}.market-tools select{max-width:46%}.weapon-card{min-height:203px}.weapon-art{height:75px}.detail-art{height:115px}.element-legend{display:none}.market-head{display:block}.market-head h1{font-size:20px}.market-tools{margin-top:6px}.split{grid-template-columns:1fr}}
@media(max-width:420px){header strong{font-size:17px}.wallet .chip{font-size:9px;padding:3px 4px}.pet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.arena-stage{min-height:120px}.fighter-sprite{max-height:95px}}

/* v0.9: explicit equipment categories and readable card previews */
.gear-group{border:1px solid #23577c;border-radius:9px;background:#06182c;padding:9px;margin-top:9px}.gear-group-head{display:flex;align-items:center;justify-content:space-between;color:#f4d58d;letter-spacing:.5px;font-size:13px}.gear-hint{font-size:11px;margin:4px 0 6px;line-height:1.35}.gear-intro{font-size:12px;margin:3px 0 7px}.gear-scroll{max-height:235px;overflow-y:auto;overscroll-behavior:contain}.gear-row{gap:8px;padding:7px 1px}.gear-row>span{min-width:0;flex:1}.gear-row b{font-size:12px}.gear-row small{font-size:10px;line-height:1.4;white-space:normal}.gear-row button{font-size:11px;flex:none;min-width:82px;padding:7px 8px}.battle-card{min-height:82px}.battle-card .battle-pick-info b{white-space:normal;line-height:1.15}.battle-card .card-effect,.card-effect{display:block!important;white-space:normal!important;line-height:1.3!important;color:#d5e8f8!important;font-size:10px!important;margin-top:3px}.battle-card .exile-note{color:#ffcf83;font-size:9px}.battle-card .battle-pick-info{padding-right:8px}.battle-picker{align-items:stretch}@media(max-width:390px){.battle-card{min-height:91px}.battle-card .card-effect{font-size:9px!important}.gear-row button{min-width:76px}}
.gear-item-identity{display:flex;align-items:center;gap:9px;min-width:0}.gear-item-identity>span{min-width:0}.gear-item-art{width:54px;height:42px;object-fit:cover;border-radius:7px;border:1px solid #50628d;flex-shrink:0}.weapon-art{object-fit:contain}.detail-art{object-fit:contain}

.weapon-art,.detail-art,.gear-item-art{
  display:block;object-fit:contain!important;object-position:center center!important;
  margin-left:auto!important;margin-right:auto!important;
  padding:0!important;transform:none!important;mix-blend-mode:normal!important;
}
.weapon-art{width:100%!important;height:112px!important;background:#061325!important}
.detail-art{width:100%!important;height:220px!important;background:#061325!important}
.gear-item-art{width:54px!important;height:42px!important;flex-shrink:0}

/* v1.2: centered art without atlas separators, catalog captions, or rarity bands */
.weapon-art,.detail-art,.gear-item-art {object-fit:contain!important;object-position:50% 50%!important;transform:none!important;margin-inline:auto!important}
.weapon-art {height:116px!important;max-height:116px!important;background:#050f21!important}
.detail-art {height:210px!important;background:#050f21!important}

.weapon-art,.detail-art,.gear-item-art{object-fit:contain!important;object-position:center center!important;transform:none!important;margin-inline:auto!important;max-width:100%!important}
.weapon-art{width:100%!important;height:150px!important;max-height:150px!important;background:#051023!important}
.detail-art{width:min(100%,220px)!important;height:220px!important;background:#051023!important}
.gear-item-art{width:52px!important;height:52px!important;object-fit:contain!important}

/* v1.4: consistent high-resolution, square item artwork */
.weapon-art,.detail-art,.gear-item-art{object-fit:contain!important;object-position:center!important;transform:none!important;mix-blend-mode:normal!important;margin-inline:auto!important}
.weapon-art{width:100%!important;height:128px!important;background:#051023!important}
.detail-art{width:100%!important;height:240px!important;background:#051023!important}

/* v1.4.1: guaranteed visible marketplace art containers */
.market-grid .weapon-art,.market-detail .detail-art{
 display:block!important;visibility:visible!important;opacity:1!important;
 object-fit:contain!important;object-position:center!important;
 mix-blend-mode:normal!important;filter:none!important;
 background:#061325!important;
 width:100%!important;max-width:100%!important;
 border:0!important;box-sizing:border-box!important;
}
.market-grid .weapon-art{height:125px!important;min-height:125px!important}
.market-detail .detail-art{height:230px!important}

/* v2.0 item gallery */
.gallery-overlay{position:fixed;inset:0;background:rgba(2,8,17,.82);backdrop-filter:blur(3px);z-index:60;display:flex;align-items:stretch;justify-content:center;padding:10px}
.gallery-panel{width:min(1100px,100%);background:#07182b;border:1px solid #2a6287;border-radius:14px;display:flex;flex-direction:column;max-height:100%;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.45)}
.gallery-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #17456a;background:#0b223a}
.gallery-controls{display:grid;grid-template-columns:1.4fr repeat(3,minmax(110px,.6fr));gap:8px;padding:10px 12px;border-bottom:1px solid #14324e;background:#08192c}
.gallery-controls input,.gallery-controls select{width:100%;padding:8px 10px;border-radius:10px;border:1px solid #23577c;background:#06182c;color:#eaf4ff}
.gallery-scroll{overflow:auto;padding:10px 12px 14px}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.gallery-card{border:1px solid #23577c;border-radius:12px;background:linear-gradient(180deg,#0b2240,#081a2c);padding:8px;display:flex;flex-direction:column;gap:6px}
.gallery-card img{display:block;width:100%;height:112px;object-fit:contain;object-position:center;border-radius:8px;background:#061325}
.gallery-title{font-size:12px;line-height:1.25;min-height:30px}
.gallery-meta{display:flex;flex-wrap:wrap;gap:4px;font-size:11px}
.gallery-meta .tag{margin:0}
.gallery-stat{font-size:11px;color:#c7dff6;line-height:1.3}
.gallery-pager{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-top:1px solid #14324e;background:#08192c}
.dev-gallery-btn{background:linear-gradient(180deg,#163861,#0d2643)}

/* v2.2 reliable embedded PNG display */
.weapon-art,.detail-art,.gear-item-art,.gallery-card img,.battle-pick img {
  object-fit:contain!important;object-position:center!important;mix-blend-mode:normal!important;
  filter:none!important;transform:none!important;
}
.weapon-art,.detail-art{background:radial-gradient(circle at 50% 45%,#163351,#071427 80%)!important}

/* v2.5 dev icon editor + hidden item indexes */
.weapon-art,.detail-art,.gear-item-art,.battle-pick img,.gallery-card img {
  object-fit:contain!important;object-position:center center!important;
  mix-blend-mode:normal!important;filter:none!important;
  background:transparent!important;transform:none!important;
}
.weapon-card .weapon-art {width:100%!important;height:126px!important;max-height:126px!important;display:block!important;margin:0 auto!important}
.market-detail .detail-art,.detail-art{width:100%!important;height:230px!important;display:block!important;margin:auto!important}
.gear-item-art{height:54px!important;min-width:54px!important;object-fit:contain!important}

.gallery-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;align-items:start}.gallery-side{border-left:1px solid #14324e;background:#08192c;padding:12px}.gallery-card{cursor:pointer;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}.gallery-card:hover{transform:translateY(-1px)}.gallery-card.selected{border-color:#f0c75a;box-shadow:0 0 0 1px rgba(240,199,90,.35)}.gallery-editor{display:flex;flex-direction:column;gap:10px}.gallery-editor h3{margin:0}.editor-summary{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid #21496a;border-radius:12px;background:linear-gradient(180deg,#0b2240,#09182b)}.editor-summary img{width:100%;max-height:170px;object-fit:contain;object-position:center}.icon-editor-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:6px;align-items:center}.icon-editor-grid .head{font-size:11px;color:#9fc4df;text-transform:uppercase;letter-spacing:.08em}.icon-editor-grid input{width:100%;padding:8px;border-radius:8px;border:1px solid #29557a;background:#061325;color:#ecf6ff}.editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.editor-actions .full{grid-column:1/-1}.mini-row{display:flex;gap:8px;align-items:center}.mini-row input{flex:1}.dev-note{font-size:11px;color:#9fc4df}.gallery-index-badge{font-size:11px;color:#9fc4df}@media (max-width:960px){.gallery-layout{grid-template-columns:1fr}.gallery-side{border-left:none;border-top:1px solid #14324e}}

/* v2.5.1 Samsung/Android gallery scrolling fix */
.gallery-overlay{height:100dvh;max-height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:contain}
.gallery-panel{height:100%;min-height:0;max-height:100%;overflow:hidden}
.gallery-head,.gallery-controls{flex-shrink:0}
.gallery-layout{flex:1 1 auto;min-height:0;overflow:hidden;grid-template-columns:minmax(0,1fr) minmax(280px,340px);align-items:stretch}
.gallery-layout>div:first-child{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.gallery-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:contain}
.gallery-side{min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:contain}
.gallery-pager{flex-shrink:0}
@media(max-width:960px){
 .gallery-overlay{padding:0}
 .gallery-panel{width:100%;max-width:100%;border-radius:0;border:0}
 .gallery-head{padding:9px 12px}
 .gallery-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;padding:8px}
 .gallery-controls>input:first-child{grid-column:1/-1}
 .gallery-layout{display:block;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:contain}
 .gallery-layout>div:first-child{display:block;overflow:visible;min-height:auto}
 .gallery-scroll{overflow:visible;min-height:auto;max-height:none;touch-action:auto}
 .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .gallery-side{overflow:visible;min-height:auto;border-left:0;border-top:1px solid #14324e}
 .gallery-pager{position:sticky;bottom:0;z-index:2}
}
@media(max-width:360px){.gallery-grid{grid-template-columns:minmax(0,1fr)}}

/* v2.6 compact responsive design */
:root{--ui-line:#234663;--ui-accent:#e8be62}
html{scroll-behavior:smooth}
button,select,input{font:inherit}
button{min-height:38px;touch-action:manipulation}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #e8be62;outline-offset:2px}
section{min-width:0}
section h1,section h2{margin-top:0}
section p{line-height:1.45}
.gallery-overlay{padding:8px}
.gallery-panel{max-width:1280px}
.gallery-head{gap:10px}
.gallery-controls{gap:7px}
.gallery-layout{display:flex!important;flex:1 1 auto;min-height:0;overflow:hidden}
.gallery-layout>div:first-child{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.gallery-scroll{min-height:0;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.gallery-side{display:none!important}
.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:9px}
.gallery-card{min-width:0}
.gallery-card img{object-fit:contain}
.gallery-card .gallery-stat{line-height:1.45}
.gallery-pager{padding:8px;position:static}
.gallery-head button,.gallery-pager button{white-space:nowrap}
.editor-overlay{position:fixed;inset:0;z-index:110;background:rgba(1,8,20,.85);display:flex;justify-content:center;align-items:center;padding:12px;overscroll-behavior:contain}
.editor-dialog{display:flex;flex-direction:column;width:min(850px,100%);max-height:calc(100dvh - 24px);min-height:0;overflow:hidden;background:#091a2f;border:1px solid #3d729a;border-radius:16px;box-shadow:0 20px 80px rgba(0,0,0,.65)}
.editor-top{padding:14px 16px;border-bottom:1px solid var(--ui-line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.editor-top h2{font-size:18px;margin:0}
.editor-body{padding:14px;overflow-y:auto;min-height:0;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.editor-info{display:flex;gap:12px;align-items:center;margin-bottom:12px;background:#102641;border:1px solid var(--ui-line);border-radius:12px;padding:10px}
.editor-info img{height:100px;width:100px;object-fit:contain;flex-shrink:0}
.editor-info .muted{font-size:12px}
.editor-chipline{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.editor-chipline span{border:1px solid #365d7b;background:#152e4a;border-radius:6px;padding:4px 7px;font-size:12px}
.editor-form-head{display:grid;grid-template-columns:minmax(100px,1fr) 90px 90px;gap:8px;margin-bottom:6px;color:#b7d4e8;font-size:12px;font-weight:700}
.editor-form-row{display:grid;grid-template-columns:minmax(100px,1fr) 90px 90px;gap:8px;align-items:center;margin-bottom:5px}
.editor-form-row input{width:100%;min-width:0;padding:7px;border:1px solid #365e7d;background:#061425;color:white;border-radius:7px;text-align:center}
.editor-form-row label{font-size:13px;white-space:nowrap}
.editor-bottom{border-top:1px solid var(--ui-line);background:#0d223b;padding:12px 14px;display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap}
.editor-bottom .action-right{display:flex;gap:8px;flex-wrap:wrap}
.editor-bottom .primary{background:#e6b954;color:#102139;font-weight:800}
.editor-warning{color:#f5b6a6;font-size:12px;margin:8px 0 0}
.editor-error{color:#ffc4a8;font-size:12px;min-height:16px;margin:6px 0}
.gallery-toolbar-note{font-size:12px;color:#abcde3}
@media(max-width:960px){
 .gallery-layout{display:flex!important;overflow:hidden!important}
 .gallery-layout>div:first-child{display:flex!important;overflow:hidden!important}
 .gallery-scroll{overflow-y:auto!important;min-height:0!important;max-height:none!important;touch-action:pan-y!important}
 .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .gallery-card{padding:6px}
 .gallery-head{padding:10px}
 .gallery-controls{grid-template-columns:repeat(2,minmax(0,1fr));padding:7px}
 .gallery-controls input:first-child{grid-column:1/-1}
 .gallery-pager{position:static}
 .editor-overlay{padding:0;align-items:stretch}
 .editor-dialog{max-height:100dvh;height:100dvh;border:0;border-radius:0}
 .editor-body{padding:10px 12px}
 .editor-info img{width:76px;height:76px}
 .editor-top{padding:10px 12px}
 .editor-bottom{padding:9px 12px}
 .editor-bottom button{min-height:42px}
 main{padding-bottom:76px}
 .market-head{gap:8px}
 .market-tools{gap:6px}
 .arena-panel{margin-bottom:8px}
}
@media(max-width:370px){
 .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .editor-form-head,.editor-form-row{grid-template-columns:minmax(95px,1fr) 70px 70px}
}

.enemy-picker-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.enemy-picker-head h2{margin:0 0 4px}
.enemy-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}
.enemy-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#b6d4e7;font-weight:700;min-width:0}
.enemy-controls input,.enemy-controls select{width:100%;min-width:0;background:#0a1d34;border:1px solid #365a7c;color:#f2f7fc;border-radius:9px;padding:10px;font-size:14px;min-height:42px}
.enemy-preview{border:1px solid #2d5070;border-radius:12px;background:linear-gradient(150deg,#0c223d,#09172a);padding:12px;margin:12px 0}
.enemy-preview-title{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.enemy-preview-title span{color:#a6c8de;font-size:12px}
.enemy-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.enemy-stats span{display:flex;flex-direction:column;align-items:center;background:#122e4c;border-radius:8px;padding:7px 3px;gap:3px}
.enemy-stats small{font-size:9px;color:#b5d1e5}.enemy-stats b{font-size:15px}
.enemy-icons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.enemy-icons>div{display:flex;flex-direction:column;gap:5px;background:#10283f;padding:9px;border-radius:8px;font-size:13px}
.enemy-icons b{color:#d3e7f6;font-size:11px}.enemy-rewards{color:#d7d2b4;font-size:12px;margin-top:10px}
.enemy-record-line{display:flex;gap:14px;flex-wrap:wrap;font-size:13px}
@media(max-width:600px){.enemy-controls{grid-template-columns:1fr 1fr}.enemy-controls label:first-child{grid-column:1/-1}.enemy-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.enemy-picker-head .chip{font-size:11px}.enemy-preview{padding:9px}.enemy-icons{gap:5px}.enemy-record{padding:10px}}

.round-uses{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #31536f}
.round-uses>div>b{font-size:11px;color:#bed9eb}
.round-used-list{display:flex;flex-direction:column;gap:5px;margin-top:6px}
.used-gear{display:flex;align-items:center;gap:7px;background:#112c49;border:1px solid #244d70;border-radius:8px;padding:6px;font-size:12px}
.used-gear img{width:38px;height:38px;object-fit:contain;flex-shrink:0}
.used-gear small{display:block;color:#a9c6d9;font-size:10px}
.used-ability{grid-column:1/-1;font-size:12px;color:#e5c879}
.result-victory,.result-defeat{font-size:clamp(28px,6vw,44px)!important;text-align:center;text-transform:uppercase;letter-spacing:.09em;flex:1}
.result-victory{color:#f2c35b;text-shadow:0 2px 14px #b78227,0 0 30px #7d521e}
.result-defeat{color:#ff5151;text-shadow:0 2px 16px #8d1d28}
.enemy-edit-selects{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}
.enemy-edit-selects label,.enemy-edit-label,.enemy-edit-stats label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#b6d6e9}
.enemy-edit-selects input,.enemy-edit-selects select,.enemy-edit-label input,.enemy-edit-stats input{min-width:0;width:100%;padding:9px;background:#071729;color:#f3f9ff;border:1px solid #315b7b;border-radius:8px}
.enemy-edit-summary{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.enemy-edit-summary span{font-size:11px;color:#a6c7df;padding:5px 8px;border:1px solid #31536d;border-radius:6px}
.enemy-edit-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}
.enemy-editor-dialog h3{font-size:13px;margin:15px 0 9px;border-bottom:1px solid #2a4b68;padding-bottom:5px}
@media(max-width:480px){.round-uses{grid-template-columns:1fr}.used-ability{grid-column:auto}.enemy-edit-selects{grid-template-columns:1fr 1fr}.enemy-edit-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}

.threat-name{font-weight:850;letter-spacing:.015em}
.threat-easy{color:#60d994!important}
.threat-moderate{color:#f6d565!important}
.threat-hard{color:#ff686e!important}
.threat-mythic{color:#ff80d2!important;text-shadow:0 0 10px rgba(255,100,203,.36)}
.enemy-controls select.threat-easy{color:#60d994}
.enemy-controls select.threat-moderate{color:#f6d565}
.enemy-controls select.threat-hard{color:#ff686e}
.enemy-controls select.threat-mythic{color:#ff80d2}
.enemy-preview-title .threat-name{font-size:17px}
.fighter-name .threat-name{font-size:inherit}
.enemy-edit-summary .threat-name{font-size:12px}
.threat-key{display:flex;flex-wrap:wrap;gap:9px;margin:6px 0 0;font-size:11px}
.threat-key span{white-space:nowrap}

.fighter.enemy.mythic-foe .fighter-sprite{filter:drop-shadow(0 0 14px rgba(255,110,211,.55))}.fighter.enemy.campaign-boss .fighter-sprite{width:min(100%,215px)!important;height:175px!important;filter:drop-shadow(0 0 22px rgba(255,209,112,.45)) drop-shadow(0 18px 14px rgba(0,0,0,.45))}.campaign-boss-image{width:148px}.campaign-boss-image img{height:148px;filter:drop-shadow(0 0 18px rgba(248,198,93,.45)) drop-shadow(0 18px 14px rgba(0,0,0,.38))}.campaign-boss-title h3{font-size:clamp(20px,3vw,26px)}@media(max-width:760px){.fighter.enemy.campaign-boss .fighter-sprite{height:126px!important;width:138px!important}.campaign-boss-image{width:104px}.campaign-boss-image img{height:108px}}
.enemy-preview.mythic-foe{border-color:#d968af;box-shadow:inset 0 0 18px rgba(185,61,158,.16)}
.enemy-theme-caption{color:#99bdd4;font-size:11px;line-height:1.4;margin:3px 0 9px}
.enemy-edit-image-row{display:flex;gap:12px;align-items:center;border:1px solid #284e6e;border-radius:10px;padding:8px;margin:9px 0;background:#10273d}
.enemy-edit-image-row img{width:78px;height:78px;object-fit:cover;flex-shrink:0;border-radius:8px}
.enemy-edit-image-row b{font-size:14px}.enemy-edit-image-row p{margin:5px 0 0;color:#adcce1;font-size:11px;line-height:1.4}

/* Everkin v3.9 Ascendant Trials */
.campaign-screen{max-width:1000px;margin:auto}.campaign-hero{border-color:#b28b45;background:radial-gradient(ellipse at 80% 0,#233c61 0,transparent 65%),linear-gradient(145deg,#131b35,#071527);padding:17px}.campaign-hero h1{font-size:clamp(22px,4vw,32px);color:#ffe6b0;margin:5px 0 10px}.campaign-hero>p{max-width:680px}.campaign-progress-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0}.campaign-progress-stats>span{padding:10px;border:1px solid #265878;background:#06172e;border-radius:8px;display:flex;flex-direction:column;gap:3px}.campaign-progress-stats b{color:#ffd887;font-size:18px}.campaign-progress-stats small{font-size:10px;color:#97bfd8}.campaign-progress{height:8px;background:#122d42;border-radius:100px;overflow:hidden}.campaign-progress span{display:block;height:100%;background:linear-gradient(90deg,#3bb8cc,#f4c65d);border-radius:100px;transition:width .2s}.campaign-next{margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.campaign-next>div{display:flex;flex-direction:column;gap:5px;min-width:0}.campaign-next b{font-size:14px}.campaign-next small{color:#9ebfd6;font-size:11px}.campaign-next button{white-space:nowrap}.campaign-map-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px}.campaign-map-heading h2{margin:0}.campaign-map-heading small{color:#8aafc7;font-size:11px}.campaign-leagues{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.campaign-league{min-height:100px;display:flex;flex-direction:column;justify-content:center;text-align:left;align-items:flex-start;gap:6px;padding:9px;background:#081d32;border:1px solid #285271}.campaign-league small{color:#b3c9d6;font-size:9px;font-weight:750}.campaign-league b{font:700 13px 'Everkin Serif',Georgia,serif;line-height:1.3}.campaign-league span{font-size:10px;color:#93b6ca}.campaign-league.chosen{border-color:#ffcb6a;background:#253449;box-shadow:0 0 0 1px #ffcb6a55}.campaign-league.cleared{border-color:#398d76}.campaign-league.locked{opacity:.65}.campaign-section-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.campaign-section-head h2{font-size:clamp(21px,3vw,28px);margin:4px 0}.campaign-section-head p{margin:0}.campaign-gate-tag{font-size:10px;white-space:nowrap;border:1px solid #b9965c;border-radius:6px;padding:8px;color:#ebce8d}.campaign-track{max-width:760px;margin:auto}.campaign-step{display:flex;align-items:center;gap:12px;padding:9px 12px;margin-bottom:5px;border:1px solid #284864;background:#091d33;border-radius:10px;position:relative}.campaign-step::after{content:'';position:absolute;bottom:-7px;left:26px;width:2px;height:8px;background:#386a91;z-index:1}.campaign-step-number{display:grid;place-items:center;background:#183c57;border:1px solid #2f7096;border-radius:50%;width:31px;height:31px;flex:none;color:#a7d6ef;font-weight:800;font-size:12px}.campaign-step>img{width:57px;height:57px;object-fit:contain;flex:none}.campaign-step-info{min-width:0;display:flex;flex-direction:column;gap:4px;flex:1}.campaign-step-info small{font-size:9px;font-weight:700;letter-spacing:.08em;color:#90b8d3}.campaign-step-info b{font-size:13px}.campaign-step-info span{font-size:10px;color:#88aec8;text-transform:capitalize}.campaign-step-action{margin-left:auto}.campaign-step-action button{min-width:83px}.campaign-step.complete .campaign-step-number{background:#174c3f;border-color:#2bb783;color:#a3ffd3}.campaign-step.current{border-color:#e8b95d;box-shadow:inset 0 0 18px #d7a94420}.campaign-step.locked{opacity:.66}.campaign-done{color:#77e6b5;font-size:11px;font-weight:800;white-space:nowrap}.campaign-locked{color:#9ba9be;font-size:11px}.campaign-boss{margin-top:15px;border-radius:12px;border:1px solid #b68040;background:linear-gradient(160deg,#2b233a,#0b1f35 75%);padding:14px;box-shadow:0 0 30px #d6a35416}.campaign-boss.locked{border-color:#6d5965}.campaign-boss.current{border:2px solid #f4c26e;box-shadow:0 0 25px #f4bb4a44}.campaign-boss.complete{border-color:#47b58e}.campaign-boss-top{display:flex;gap:12px;align-items:center}.campaign-boss-image{background:radial-gradient(circle,#6e4e7060,transparent 76%);width:115px;flex:none}.campaign-boss-image img{width:100%;height:118px;object-fit:contain;filter:drop-shadow(0 0 13px #f8c65d44)}.campaign-boss-title{flex:1;min-width:0}.campaign-boss-title h3{font:700 clamp(17px,3vw,23px) 'Everkin Serif',Georgia,serif;color:#ffdb91;margin:5px 0}.campaign-boss-title p{margin:0 0 8px}.campaign-boss-title span{font-size:11px;color:#b3d4e6;text-transform:capitalize}.campaign-boss-equipment{margin-top:10px;border-top:1px solid #5b5370;padding-top:12px}.campaign-boss-equipment>b{font-size:11px;color:#f7d79d}.campaign-boss-gear-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:7px;margin-top:9px}.campaign-boss-gear{display:flex;flex-direction:column;gap:6px;padding:10px;background:#0b1c32;border:1px solid #695c5c;border-radius:8px}.campaign-boss-gear strong{font-size:12px;color:#fff0ce}.campaign-boss-gear small{font-size:10px;color:#a9c9db;line-height:1.6}.campaign-boss-footer{display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid #5b5370;margin-top:10px;padding-top:10px;font-size:12px;color:#e9d5ae}.campaign-boss-footer small{display:block;color:#9fb7c8;font-size:10px;margin-top:4px}.campaign-boss-footer button{white-space:nowrap}.campaign-footnote{font-size:11px;line-height:1.5;color:#88b0c9;margin:13px 0 2px}.campaign-battle-tag{color:#ffd38b;font-size:11px;text-align:center;background:#27344b;border:1px solid #ac8950;padding:7px;border-radius:7px;margin-top:7px}
@media(max-width:760px){.campaign-leagues{grid-template-columns:repeat(2,minmax(0,1fr))}.campaign-league{min-height:77px}.campaign-hero{padding:12px}.campaign-boss-image{width:80px}.campaign-boss-image img{height:92px}.campaign-boss-footer{flex-wrap:wrap}.campaign-map-heading{align-items:flex-start;flex-direction:column}.campaign-gate-tag{display:none}.campaign-next{flex-wrap:wrap}.campaign-next button{width:100%}.campaign-step{padding:7px;gap:8px}.campaign-step>img{height:46px;width:46px}.campaign-step-number{width:25px;height:25px}.campaign-step::after{left:19px}.campaign-step-info b{font-size:12px}.campaign-step-action button{min-width:65px;padding:5px}.campaign-progress-stats b{font-size:15px}.campaign-progress-stats>span{padding:8px}}
@media(min-width:761px) and (max-width:1000px){.campaign-leagues{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* v3.9 dev encounter tuning */
.dev-edit-toggle{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:12px}
.dev-edit-toggle button.on{background:#165479;border-color:#70d4ef}
.dev-checkbox{margin:12px 0;align-items:center;font-size:12px}
.dev-checkbox input{width:auto;margin:0 6px 0 0;accent-color:#f2c369}
.dev-loadout-layout{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}
.dev-loadout-layout>div{min-width:0;padding:9px;border:1px solid #28506e;border-radius:10px;background:#091d32}
.dev-loadout-layout b{font-size:12px;color:#f2d18a}
.dev-picker{display:grid;grid-template-columns:1fr;gap:5px;margin:7px 0}
.dev-picker input,.dev-picker select{width:100%;min-width:0}
.dev-picker button{min-height:36px}
.dev-loadout-list{display:flex;flex-direction:column;gap:5px;max-height:250px;overflow:auto}
.dev-loadout-chip{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px;background:#0b2945;border:1px solid #225579;border-radius:8px}
.dev-loadout-chip b{display:block;color:#e8f4ff;line-height:1.3}
.dev-loadout-chip small{display:block;color:#91bed8;font-size:10px}
.dev-loadout-chip button{padding:4px 8px;min-height:28px;font-size:12px}
.dev-empty{font-size:11px;color:#8fb7cb;padding:7px 0}
.dev-bias-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:12px}
.dev-bias-grid label{font-size:11px;color:#b7d6e7;min-width:0;text-transform:capitalize}
.dev-bias-grid input{width:100%;min-width:0;text-align:center}
.boss-gear-editor{border:1px solid #355675;border-radius:10px;margin:9px 0;background:#091c34;padding:0 9px 9px}
.boss-gear-editor[hidden]{display:none!important}
.boss-gear-editor summary{padding:12px 5px;background:transparent;color:#e8d3a4;font-size:12px}
.boss-gear-editor summary span{display:block;margin-top:4px;font-size:10px}
.boss-gear-editor>.enemy-edit-label{margin:8px 0}
@media(max-width:600px){.dev-loadout-layout{grid-template-columns:1fr}.dev-bias-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.enemy-editor-dialog .enemy-edit-selects{grid-template-columns:1fr 1fr}}
@media(max-width:380px){.enemy-editor-dialog .enemy-edit-selects{grid-template-columns:1fr}}
/* v3.9 shared bag, per-pet gear, item provenance, and trade UI */
nav.bottom button{font-size:9px;padding-inline:0;letter-spacing:-.1px}
.inv-intro{background:linear-gradient(120deg,#09283f,#08182f)}
.inv-grid,.inv-pet-compact{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:9px;margin:12px 0}
.inv-tile{display:flex;flex-direction:column;align-items:center;min-width:0;min-height:204px;background:linear-gradient(180deg,#0b2b48,#07162c);border:1px solid #286387;border-radius:12px;padding:7px;text-align:center;gap:4px}
.inv-art-wrap{width:100%;height:108px;position:relative;display:flex;justify-content:center;align-items:center;background:radial-gradient(circle,#15476970,transparent 75%);border-radius:8px}
.inv-art{width:100%;height:106px;object-fit:contain;object-position:center;mix-blend-mode:normal;filter:none}
.inv-count{position:absolute;right:0;top:0;padding:3px 6px;border-radius:7px;background:#c18d34;color:#0d1727;font-weight:900;font-size:12px}
.inv-title{color:#f2f7ff;font-size:12px;font-weight:800;line-height:1.25;max-width:100%;min-height:30px;overflow-wrap:anywhere}
.inv-minor{font-size:10px;color:#9fc3d9}
.inv-action{margin-top:auto;width:100%;font-size:11px;min-height:32px;padding:6px;background:#103b5c;border:1px solid #3d94be}
.inv-filters{display:grid;grid-template-columns:2fr 1fr;gap:8px;align-items:end}
.inv-filters input,.inv-filters select{width:100%;min-width:0;margin:0}
.inv-empty{border:1px dashed #345675;border-radius:9px;padding:18px;color:#9fc4da;font-size:12px;margin:9px 0}
.inv-pages{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px;color:#9fc2d9}
.inv-pages button{min-height:31px;padding:5px 9px;font-size:11px}
.inv-trade-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px;background:#0a2741;border:1px solid #275d7f;border-radius:9px;margin:10px 0}
.inv-auth{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.inv-auth input{grid-column:1/-1}
.inv-trade-form label{font-size:11px;color:#b3d6ea;min-width:0}
.inv-trade-form input,.inv-trade-form select{width:100%;min-width:0}
.inv-trade-form .inv-recipient-items{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px}
.inv-trade-form>.primary{grid-column:1/-1}
.inv-recipient-items button{font-size:11px}
.inv-trades{display:grid;gap:7px;margin:12px 0}
.inv-trade{display:flex;gap:8px;justify-content:space-between;align-items:center;padding:8px;border:1px solid #26567a;border-radius:8px;font-size:12px}
.inv-trade small{display:block;color:#9dc0d7;margin-top:4px}
.inv-trade>div{display:flex;gap:5px}
.inv-trade button{font-size:11px}
.inv-history{max-height:270px;overflow:auto;background:#051729;border-radius:8px;padding:8px;display:grid;gap:5px}
.inv-history>div{padding:6px;border-bottom:1px solid #24405b;font-size:11px}
.inv-history small{color:#88b6cf}
.inv-note{font-size:12px;color:#f5c78b}
@media(max-width:480px){.inv-grid,.inv-pet-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.inv-tile{min-height:179px;padding:5px}.inv-art-wrap{height:80px}.inv-art{height:79px}.inv-title{font-size:10px;min-height:26px}.inv-filters{grid-template-columns:1fr 1fr}.inv-trade-form{grid-template-columns:1fr}.inv-trade-form .inv-recipient-items,.inv-trade-form>.primary{grid-column:1}}
@media(max-width:355px){.inv-grid,.inv-pet-compact{grid-template-columns:repeat(2,minmax(0,1fr))}}

.inv-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}
.inv-resource{border:1px solid #275775;background:#09243e;border-radius:10px;display:flex;flex-direction:column;align-items:center;text-align:center;padding:11px 5px;gap:5px}
.inv-resource span{font-size:28px}.inv-resource b{font-size:11px;color:#ecf4ff}.inv-resource small{color:#f0cb83}
@media(max-width:410px){.inv-resources{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}}

/* v4.0 closed-alpha adapter styles. */
.alpha-login-banner{border:1px solid #a78041;background:linear-gradient(145deg,#152943,#0a2032)}
.alpha-login-banner button{border-color:#d5a45c;color:#ffdb94}
.inv-auth #inv-invite-code{grid-column:1/-1;min-width:0}
#alpha-bug-text{display:block;width:100%;min-height:100px;padding:12px;border-radius:10px;background:#081829;border:1px solid #2d6c90;color:#e7f5ff;margin:10px 0}
/* ===== client/css/10_onboarding.css ===== */
/* v4.1 onboarding: no in-game navigation is accessible without an account. */
body.alpha-gated{overflow:hidden!important;padding:0!important;background:#050e1c!important}
body.alpha-gated > header,body.alpha-gated > #tabs,body.alpha-gated > main,body.alpha-gated > nav,body.alpha-gated > #notice{display:none!important}
#alpha-portal[hidden]{display:none!important}
#alpha-portal{position:fixed;inset:0;z-index:10000;overflow-y:auto;background:radial-gradient(ellipse at 70% 10%,#123153 0%,#071526 42%,#030916 100%);color:#e8f3fd;font:14px system-ui,sans-serif}
#alpha-portal button{cursor:pointer}
#alpha-portal .alpha-auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,480px);max-width:1700px;margin:auto}
.alpha-hero{position:relative;isolation:isolate;min-height:100vh;background:linear-gradient(90deg,rgba(5,13,31,.10),rgba(5,13,31,.85)),url('everkin_welcome_art.webp') center 36%/cover no-repeat}
.alpha-hero:after{position:absolute;content:'';inset:0;z-index:-1;background:linear-gradient(180deg,transparent 48%,#051629dd)}
.alpha-hero-text{position:absolute;left:clamp(20px,5vw,100px);right:40px;bottom:clamp(60px,12vh,175px);max-width:610px}
.alpha-hero-text h1{font:700 clamp(36px,4.7vw,75px)/1.05 'Everkin Serif',Georgia,serif;letter-spacing:-.025em;margin:15px 0 22px;text-shadow:0 2px 25px #010914}
.alpha-hero-text p{max-width:500px;font-size:clamp(14px,1.4vw,18px);line-height:1.6;color:#cad8e9}
.alpha-eyebrow{display:block;font:800 11px system-ui;letter-spacing:2.8px;color:#5bd1ef}
.alpha-entry{padding:26px clamp(20px,2.5vw,42px) 16px;background:linear-gradient(150deg,#061426,#071b31);border-left:1px solid #1b4e76;display:flex;flex-direction:column;justify-content:space-between;gap:25px}
.alpha-entry-top,.alpha-wizard-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.alpha-brand{display:flex;align-items:center;gap:12px;color:#f6e0a2}.alpha-star{font-size:28px;color:#6cdaef}
.alpha-brand strong{display:block;font:700 26px 'Everkin Serif',Georgia,serif;letter-spacing:3px;text-shadow:0 0 24px #1e85bc77}.alpha-brand small{display:block;font:700 9px system-ui;letter-spacing:1.2px;color:#8abdd7}
.alpha-auth-card{max-width:430px;width:100%;margin:0 auto}.alpha-step-pill{display:inline-block;border:1px solid #b18d55;color:#f4d9a0;border-radius:30px;font-size:10px;font-weight:800;letter-spacing:1.5px;padding:7px 11px}
.alpha-auth-card h2{font:700 28px 'Everkin Serif',Georgia,serif;line-height:1.17;margin:20px 0 10px}.alpha-auth-card>p{color:#a5bfd5;line-height:1.55;font-size:13px}
.alpha-switch{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:24px 0 17px;background:#031022;padding:5px;border:1px solid #214965;border-radius:9px}
.alpha-switch button{background:transparent;color:#9dc2dc;border:0;min-height:42px;border-radius:6px;font-weight:700}
.alpha-switch button.active{color:#fbe7b0;background:#153955;border:1px solid #4c9aba}
#alpha-auth-form{display:grid;gap:15px}#alpha-auth-form label,.alpha-name-label{font-size:12px;color:#cbddea;font-weight:700}
#alpha-auth-form input,.alpha-name-label input{display:block;width:100%;margin-top:6px;border:1px solid #2d5876;border-radius:8px;background:#051427;color:#f2fbff;font-size:15px;padding:13px;min-height:47px}
#alpha-auth-form input:focus,.alpha-name-label input:focus{border-color:#64d8f1;outline:2px solid #1e96c544}
.alpha-submit{background:linear-gradient(#f3c768,#d29133)!important;border:1px solid #fff0ba!important;border-radius:8px!important;color:#14213a!important;min-height:49px;font-weight:850!important;padding:11px 15px;text-align:center;width:100%}
.alpha-submit:disabled{opacity:.6}.alpha-footnote{color:#91abc2!important;font-size:12px!important;margin-top:13px!important}.alpha-entry-footer{text-align:center;color:#5e819e;font-size:11px}
.alpha-error{min-height:15px;color:#ffac9c;font-size:12px;line-height:1.35}

.alpha-auth-divider{display:flex;align-items:center;gap:10px;margin:14px 0 10px;color:#8fb2ca;font-size:12px;text-transform:uppercase;letter-spacing:1.2px}
.alpha-auth-divider:before,.alpha-auth-divider:after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,#335f7d,transparent)}
.alpha-secondary,.alpha-linkish{background:#10263d!important;color:#dceafb!important;border:1px solid #34627f!important;border-radius:8px!important;min-height:46px;font-weight:800!important;padding:11px 15px;text-align:center;width:100%}
.alpha-linkish{margin-top:12px;background:transparent!important;border:0!important;color:#9fd1ec!important;min-height:auto;padding:2px 0;text-align:left}
.alpha-hero-creatures{display:flex;align-items:flex-end;gap:10px;margin-top:26px;flex-wrap:wrap}
.alpha-hero-creatures img{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 12px 12px #0009)}
.alpha-auth-shell--centered{display:block;min-height:100vh}
.alpha-hero--centered{min-height:100vh;background:linear-gradient(180deg,rgba(4,14,28,.3),rgba(4,14,28,.82)),url('everkin_welcome_art.webp') center center/cover no-repeat;display:flex;align-items:center;justify-content:center;padding:32px 18px;position:relative}
.alpha-centered-overlay{position:absolute;inset:0;background:radial-gradient(circle at 50% 20%,rgba(52,105,153,.24),transparent 42%),linear-gradient(180deg,rgba(5,14,28,.08),rgba(3,9,22,.78));pointer-events:none}
.alpha-centered-inner{position:relative;z-index:1;width:min(1180px,100%)}
.alpha-centered-brand{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.alpha-auth-card--centered{max-width:520px;margin:0 auto;background:linear-gradient(180deg,rgba(8,24,43,.94),rgba(7,20,37,.96));border:1px solid #386687;border-radius:18px;padding:24px 26px 22px;box-shadow:0 26px 70px rgba(0,0,0,.45)}
.alpha-centered-showcase{max-width:950px;margin:20px auto 0;background:rgba(6,22,40,.72);backdrop-filter:blur(4px);border:1px solid #315f7d;border-radius:16px;padding:14px 18px 18px;box-shadow:0 20px 55px rgba(0,0,0,.3)}
.alpha-showcase-head{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:10px}
.alpha-showcase-head b{font:700 20px 'Everkin Serif',Georgia,serif;color:#f6ecd2}.alpha-showcase-head small{color:#9ec4da;font-size:11px}
.alpha-showcase-creatures{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:end}
.alpha-showcase-creatures img{width:100%;height:112px;object-fit:contain;background:linear-gradient(180deg,rgba(18,45,72,.52),rgba(8,21,38,.2));border:1px solid #2d5672;border-radius:12px;padding:6px;filter:drop-shadow(0 10px 14px rgba(0,0,0,.35))}
.alpha-loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px}.alpha-loading strong{font:700 50px 'Everkin Serif',Georgia,serif;color:#f5d99e}.alpha-loading p{color:#b4c7dc}
.alpha-wizard{min-height:100vh;background:radial-gradient(ellipse at 40% 0%,#173457,#08182d 47%,#030914)}
.alpha-wizard-head{padding:13px clamp(16px,3vw,42px);border-bottom:1px solid #205476;background:#071429da}
.alpha-onboarding-step{color:#9ac5db;font-size:11px;font-weight:800;letter-spacing:1.4px}
.alpha-signout{background:#101f34!important;color:#d8eafa!important;border:1px solid #32617a!important;border-radius:7px!important;padding:8px 12px!important;min-height:36px!important;font-size:12px}
.alpha-wizard-content{max-width:1210px;margin:auto;padding:clamp(18px,3.5vw,42px);}
.alpha-wizard-title{text-align:center;margin-bottom:26px}.alpha-wizard-title h1{font:700 clamp(30px,4.2vw,48px) 'Everkin Serif',Georgia,serif;margin:8px 0 8px}.alpha-wizard-title p{font-size:13px;color:#aac3d8}
.alpha-starter-layout{display:grid;grid-template-columns:minmax(370px,.95fr) minmax(0,1fr);gap:20px;align-items:stretch}
.alpha-starter-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.alpha-species-option{display:flex;align-items:center;text-align:left;gap:8px;background:linear-gradient(#0e2844,#091c31)!important;border:1px solid #2c5c7b!important;border-radius:12px!important;padding:9px!important;min-height:104px!important;transition:transform .15s,border-color .15s}
.alpha-species-option:hover{transform:translateY(-2px)}.alpha-species-option.selected{border:2px solid #f4bf67!important;box-shadow:inset 0 0 25px #dba84f17,0 0 20px #e7bb3f20}
.alpha-species-option img{width:90px;height:91px;object-fit:contain;flex:none}.alpha-species-option b{font:700 19px 'Everkin Serif',Georgia,serif;color:#f8f7ef}.alpha-species-option small{display:block;color:#8fb3cd;font-size:11px;line-height:1.4;margin-top:4px}
.alpha-starter-preview{border:1px solid #3a7393;background:linear-gradient(#112e48,#07182d);border-radius:15px;padding:16px 20px 20px;text-align:center}
.alpha-preview-art{min-height:170px;background:radial-gradient(ellipse at center,#26517177,transparent 70%);position:relative}.alpha-preview-art>img{width:min(100%,350px);height:195px;object-fit:contain;filter:drop-shadow(0 15px 18px #0008)}
.alpha-floating-spark{position:absolute;top:7px;left:22%;font-size:24px;color:#f1d995}.alpha-starter-preview h2{font:700 32px 'Everkin Serif',Georgia,serif;margin:2px 0}.alpha-species-sub{font-size:12px;color:#e4bd7b;letter-spacing:1.4px;text-transform:uppercase}.alpha-starter-preview>p{color:#a9c4db;font-size:12px;margin:9px 0 14px}
.alpha-color-heading{text-align:left;font-weight:800;font-size:12px;margin:12px 0 10px}
.alpha-color-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin-bottom:17px}.alpha-color{background:transparent!important;border:0!important;padding:3px!important;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0!important}
.alpha-color span{display:block;width:29px;height:29px;border-radius:100%;background:var(--swatch);border:2px solid #ffffff86}.alpha-color.chosen span{outline:2px solid #f2d18e;outline-offset:3px}.alpha-color small{font-size:9px;color:#b8cbda;white-space:nowrap}
.alpha-name-label{text-align:left;display:block;margin-bottom:12px}
.alpha-tutorial-main{max-width:1000px;margin:0 auto;padding:20px 13px 75px}.alpha-tutorial-intro{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px;margin-top:7vh;border:1px solid #2a678d;padding:30px;background:linear-gradient(#102f4d,#07192d);border-radius:18px}
.alpha-tutorial-pet{min-height:340px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#24537588,transparent 68%)}.alpha-tutorial-pet img{width:100%;max-width:420px}.alpha-tutorial-intro h1{font:700 40px 'Everkin Serif',Georgia,serif;margin:8px 0 12px}.alpha-tutorial-intro p{line-height:1.7;color:#b4cfe3}
.alpha-guide-list{display:grid;gap:12px;margin:25px 0;color:#e3d2aa}
.alpha-tutorial-tip{border:1px solid #b58b50;background:linear-gradient(#20324a,#102138);padding:15px;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.alpha-tutorial-tip h2{font:700 23px 'Everkin Serif',Georgia,serif;margin:4px 0}.alpha-tutorial-tip p{margin:2px 0;color:#b6cde1}.alpha-tutorial-flag{white-space:nowrap;color:#ffda9f;font-weight:900}
.alpha-tutorial-battle .arena-panel,.alpha-tutorial-battle .battle-actions{max-width:1000px}
#alpha-logout-top{padding:4px 8px;min-height:30px;background:#122940;border:1px solid #386986;font-size:11px;color:#f4d39c}
.alpha-account-settings{margin-top:15px}.alpha-account-settings .alpha-submit{max-width:270px}
@media(max-width:850px){#alpha-portal .alpha-auth-shell{display:block}.alpha-hero{min-height:235px;background-position:center 34%}.alpha-hero-text{bottom:17px;left:22px;right:20px}.alpha-hero-text h1{font-size:28px;margin:5px 0}.alpha-hero-text p{display:none}.alpha-hero-creatures{gap:4px;margin-top:12px}.alpha-hero-creatures img{width:52px;height:52px}.alpha-entry{min-height:calc(100vh - 235px);padding:20px}.alpha-centered-brand{display:block;margin-bottom:10px}.alpha-auth-card--centered{padding:18px}.alpha-showcase-head{display:block}.alpha-showcase-creatures{grid-template-columns:repeat(3,minmax(0,1fr))}.alpha-showcase-creatures img{height:92px}.alpha-starter-layout{grid-template-columns:1fr}.alpha-starter-choices{order:1}.alpha-starter-preview{order:0}.alpha-tutorial-intro{grid-template-columns:1fr;margin-top:10px}.alpha-tutorial-pet{min-height:180px}.alpha-tutorial-pet img{max-height:250px}}
@media(max-width:510px){.alpha-entry{padding:15px 17px}.alpha-entry-top .alpha-brand strong,.alpha-wizard-head .alpha-brand strong,.alpha-centered-brand .alpha-brand strong{font-size:20px}.alpha-brand small{font-size:8px}.alpha-auth-card h2{font-size:25px}.alpha-auth-card--centered{padding:16px 14px}.alpha-centered-showcase{padding:10px 10px 12px}.alpha-showcase-creatures{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.alpha-showcase-creatures img{height:84px}.alpha-wizard-head{padding:11px}.alpha-onboarding-step{font-size:9px}.alpha-starter-choices{gap:7px}.alpha-species-option{min-height:86px!important;padding:5px!important}.alpha-species-option img{width:60px;height:68px}.alpha-species-option b{font-size:15px}.alpha-species-option small{font-size:9px}.alpha-wizard-content{padding:14px}.alpha-starter-preview{padding:10px}.alpha-preview-art{min-height:130px}.alpha-preview-art>img{height:150px}.alpha-color-grid{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:8px}.alpha-tutorial-tip{display:block}.alpha-tutorial-flag{display:none}.alpha-tutorial-main{padding:10px 6px 70px}.alpha-tutorial-intro{padding:14px}.alpha-tutorial-intro h1{font-size:30px}}

/* Allow the server battle round-result dialog to appear above the tutorial gate. */
body.alpha-gated #battle-overlay:not([hidden]){z-index:10025!important}


/* v4.1.2 auth backgrounds: desktop uses horizontal art, mobile uses vertical art. */
.alpha-auth-shell--desktop,.alpha-auth-shell--mobile{min-height:100vh}
.alpha-hero--desktop{min-height:100vh;background:linear-gradient(180deg,rgba(3,10,24,.14),rgba(3,10,24,.7)),var(--alpha-auth-bg) center center/cover no-repeat;display:flex;align-items:center;justify-content:center;padding:34px 22px;position:relative}
.alpha-desktop-overlay{position:absolute;inset:0;background:radial-gradient(circle at 50% 18%,rgba(45,101,170,.10),transparent 38%),linear-gradient(180deg,rgba(4,10,22,.06),rgba(4,10,22,.4));pointer-events:none}
.alpha-auth-card--desktop{max-width:470px;margin:0 auto;background:linear-gradient(180deg,rgba(8,24,43,.88),rgba(6,19,35,.94));border:1px solid #3e7196;border-radius:18px;padding:26px 28px 24px;box-shadow:0 28px 90px rgba(0,0,0,.45),0 0 0 1px rgba(255,233,173,.05) inset}
.alpha-centered-brand{justify-content:flex-end;margin-bottom:20px}
.alpha-centered-brand .alpha-brand{margin-right:auto}
.alpha-auth-shell--mobile{display:block}
.alpha-mobile-stage{min-height:100vh;position:relative;background:linear-gradient(180deg,rgba(4,11,24,.08),rgba(4,11,24,.3) 38%,rgba(4,11,24,.88) 100%),var(--alpha-auth-bg) center top/cover no-repeat;display:flex;align-items:flex-end;justify-content:center;padding:20px 14px 14px}
.alpha-mobile-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,10,23,.1),rgba(3,10,23,.55) 52%,rgba(3,10,23,.92) 100%);pointer-events:none}
.alpha-mobile-card-wrap{position:relative;z-index:1;width:min(100%,460px)}
.alpha-auth-card--mobile{width:100%;background:linear-gradient(180deg,rgba(8,24,43,.9),rgba(6,20,36,.96));border:1px solid #3b6d90;border-radius:18px;padding:20px 18px 18px;box-shadow:0 20px 70px rgba(0,0,0,.42)}
.alpha-mobile-brand{margin-bottom:10px}.alpha-mobile-brand .alpha-brand{gap:9px}.alpha-mobile-brand .alpha-brand strong{font-size:21px}.alpha-mobile-brand .alpha-brand small{font-size:7px}
.alpha-mobile-brand .alpha-signout{display:none}
.alpha-auth-card--mobile h2{font-size:28px}
.alpha-auth-card--mobile .alpha-step-pill{margin-bottom:10px}
.alpha-auth-card--mobile #alpha-auth-form{gap:13px}
.alpha-auth-card--mobile .alpha-secondary,.alpha-auth-card--mobile .alpha-submit{min-height:48px}
@media(min-width:851px){
  .alpha-auth-shell--mobile{display:none!important}
}
@media(max-width:850px){
  .alpha-auth-shell--desktop{display:none!important}
  #alpha-portal .alpha-auth-shell--mobile{display:block}
  .alpha-centered-brand{margin-bottom:0}
}
@media(max-width:510px){
  .alpha-mobile-stage{padding:12px 10px 10px;background-position:center top}
  .alpha-auth-card--mobile{padding:18px 14px 16px;border-radius:16px}
  .alpha-auth-card--mobile h2{font-size:24px}
}

/* v5.3 training-complete celebration (the welcome layout with the victory screen's animations) */
#alpha-portal .ek-complete-celebrate .ek-complete-screen{position:relative;overflow:hidden}
#alpha-portal .ek-complete-sparkles{position:absolute;inset:0;pointer-events:none}
#alpha-portal .ek-complete-sparkles i{position:absolute;left:calc(6% + var(--i) * 6.5%);top:calc(12% + (var(--i) * 37 % 70) * 1%);width:6px;height:6px;border-radius:50%;
 background:#ffe3a8;box-shadow:0 0 12px 3px #f3cf8288;opacity:0;animation:ekSpark 3.6s ease-in-out infinite;animation-delay:calc(var(--i) * .27s)}
#alpha-portal .ek-complete-celebrate .ek-complete-image img{animation:ekRiseIn .9s cubic-bezier(.2,.8,.2,1) both,ekFloat 5s ease-in-out .9s infinite}
#alpha-portal .ek-complete-celebrate .ek-complete-image{background:radial-gradient(circle,#f3cf8240,#739ab022 40%,transparent 66%);animation:ekGlow 3.2s ease-in-out infinite}
#alpha-portal .ek-complete-celebrate .ek-complete-panel{animation:ekPanelIn .7s .15s cubic-bezier(.2,.8,.2,1) both;border-color:#d5ad5f}
#alpha-portal .ek-complete-celebrate .ek-victory-stars{display:flex;gap:.6em;color:#ffdb86;font-size:24px;margin-bottom:6px}
#alpha-portal .ek-complete-celebrate .ek-victory-stars span{animation:ekStar 1.8s ease-in-out infinite}
#alpha-portal .ek-complete-celebrate .ek-victory-stars span:nth-child(2){animation-delay:.3s}#alpha-portal .ek-complete-celebrate .ek-victory-stars span:nth-child(3){animation-delay:.6s}
#alpha-portal .ek-complete-celebrate h1{text-shadow:0 0 20px #dd9f508c;animation:ekTitleGlow 2.6s ease-in-out infinite}
#alpha-portal .ek-complete-rewards{margin:18px 0}
#alpha-portal .ek-complete-rewards span{opacity:0;animation:ekRewardIn .5s ease-out both}
#alpha-portal .ek-complete-rewards span:nth-child(1){animation-delay:.55s}#alpha-portal .ek-complete-rewards span:nth-child(2){animation-delay:.75s}
#alpha-portal .ek-complete-rewards span:nth-child(3){animation-delay:.95s}#alpha-portal .ek-complete-rewards span:nth-child(4){animation-delay:1.15s}
@keyframes ekSpark{0%,100%{opacity:0;transform:scale(.4)}45%{opacity:.95;transform:scale(1)}}
@keyframes ekRiseIn{from{opacity:0;transform:translateY(40px) scale(.94)}to{opacity:1;transform:none}}
@keyframes ekFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes ekGlow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.12)}}
@keyframes ekPanelIn{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes ekStar{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.3);opacity:1}}
@keyframes ekTitleGlow{0%,100%{text-shadow:0 0 14px #dd9f5066}50%{text-shadow:0 0 26px #ffd98aaa}}
@keyframes ekRewardIn{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){#alpha-portal .ek-complete-celebrate *,#alpha-portal .ek-complete-sparkles i{animation:none!important;opacity:1!important}#alpha-portal .ek-complete-sparkles{display:none}}
@media(max-width:850px){#alpha-portal .ek-complete-celebrate .ek-complete-rewards span small{display:none}}
#alpha-portal .ek-complete-celebrate .ek-complete-screen{align-items:start;padding-top:clamp(24px,4vh,48px)}
#alpha-portal .ek-complete-celebrate .ek-complete-image{align-self:center}
@media(min-width:851px){#alpha-portal .ek-complete-celebrate .ek-complete-rewards{gap:7px}#alpha-portal .ek-complete-celebrate .ek-complete-rewards span{padding:11px 14px}}
/* ===== client/css/12_theme.css ===== */
/* Everkin v4.2 — visual system, built around the existing secure alpha gameplay. */
:root {--ek-ink:#eaf4ff;--ek-muted:#a8c4db;--ek-line:#355e80;--ek-gold:#ecc477;--ek-dark:#061527;--ek-blue:#102a48;--ek-light:#62d2ef}
html,body{scroll-behavior:smooth}
body{background:radial-gradient(ellipse at 50% 0,#133354 0,#07192d 54%,#040d1d 100%);color:var(--ek-ink);font-family:Inter,'Segoe UI',system-ui,sans-serif}
body>header{background:linear-gradient(90deg,#071527,#102a44);border-bottom:1px solid #3e6587;box-shadow:0 6px 28px #0004}
body>header strong{font-family:'Everkin Serif',Georgia,serif;font-size:25px;color:#f5d891;text-shadow:0 0 20px #b38a4550;letter-spacing:.11em}
body>header small{color:#93bdd6;letter-spacing:.14em}
body>.tabs{background:#07192ce8;border-bottom:1px solid #274c6e;gap:6px;padding-block:6px}
body>.tabs button{border-radius:10px!important;font-size:12px;letter-spacing:.015em;padding-inline:13px!important;transition:background .18s ease,color .18s ease}
body>.tabs button.on{background:linear-gradient(180deg,#303c57,#182d47)!important;color:#ffe1a0!important;border-color:#947d51!important;box-shadow:inset 0 -2px #edbe67}
body>main{max-width:1200px;padding:15px 16px 110px}
body>main section{border-radius:14px;background:linear-gradient(145deg,rgba(15,39,65,.96),rgba(7,23,41,.97));border-color:#284f71;box-shadow:0 8px 28px #0002}
body>main h1,body>main h2{letter-spacing:.005em}
body button{transition:filter .15s ease,background .15s ease,transform .15s ease}
body button:hover:not(:disabled){filter:brightness(1.09)}
body button:focus-visible{outline:3px solid #f5cb83!important;outline-offset:2px!important}
nav.bottom{background:#071626;border-top:1px solid #3a5b78;box-shadow:0 -5px 24px #0006}
nav.bottom button.on{background:linear-gradient(#1d344e,#0d2540);color:#f9d68e;border:1px solid #8b774e}
.pet-avatar{width:94px;height:94px;border-radius:16px;background:radial-gradient(circle at 55% 25%,#385b7955,#0b1d34 65%);border:1px solid #426d90;position:relative;display:grid;place-items:center;overflow:hidden}
.pet-avatar img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 8px #0006)}
.polished-pet-avatar>span{position:absolute;right:4px;top:3px;color:var(--pet-accent);text-shadow:0 0 8px var(--pet-accent)}
.pet-grid{gap:11px}.pet-tile{border-radius:14px;padding:11px;border-color:#315c7c;background:linear-gradient(155deg,#153553,#081c34)}.pet-tile.active{box-shadow:inset 0 0 0 1px #e0b974,0 0 18px #a3762333}
/* Login and registration: entire viewport displays art, never limited by the previous two-column grid */
#alpha-portal .alpha-auth-shell--desktop{display:block!important;min-width:100%!important;width:100%!important;max-width:none!important;margin:0!important;min-height:100dvh!important}
#alpha-portal .alpha-auth-shell--desktop .alpha-hero--desktop{width:100vw!important;max-width:none!important;min-height:100dvh!important;background-image:linear-gradient(90deg,rgba(4,12,28,.13) 0%,rgba(4,12,28,.11) 50%,rgba(4,12,28,.37) 100%),var(--alpha-auth-bg)!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:clamp(20px,3vw,55px)!important}
#alpha-portal .alpha-desktop-overlay{background:linear-gradient(90deg,rgba(4,12,25,.04),rgba(4,12,25,.13) 70%,rgba(4,12,25,.42));pointer-events:none}
#alpha-portal .alpha-auth-shell--desktop .alpha-centered-inner{position:relative;z-index:2;width:min(1300px,100%)!important;display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,440px);align-items:center;gap:20px}
#alpha-portal .alpha-centered-brand{grid-column:1/-1;justify-content:space-between;align-self:start;margin-bottom:0}
#alpha-portal .alpha-centered-brand .alpha-brand strong{font-family:'Everkin Serif',Georgia,serif;font-size:clamp(36px,4.5vw,58px);color:#f3d18a;text-shadow:0 4px 24px #010916,0 0 16px #a1744580}
#alpha-portal .alpha-centered-brand .alpha-brand small{font-size:10px;letter-spacing:.2em;color:#eff1eb}
#alpha-portal .alpha-auth-card--desktop{grid-column:2;margin:clamp(20px,6vh,90px) 0 12vh;max-width:440px;border-radius:16px;background:linear-gradient(145deg,rgba(5,18,33,.93),rgba(10,28,47,.94));backdrop-filter:blur(9px);border:1px solid #6982a1;box-shadow:0 20px 75px #0008,0 0 35px #b4982412;padding:27px 30px}
#alpha-portal .alpha-auth-card h2{font:700 clamp(25px,2.5vw,34px) 'Everkin Serif',Georgia,serif;margin:13px 0 6px}
#alpha-portal .alpha-auth-card>p{font-size:12px;line-height:1.55;margin-bottom:20px}
#alpha-portal .alpha-auth-card input{background:#091b32;border:1px solid #46647e;border-radius:7px;color:#f5f7fa;min-height:42px;padding:10px 13px}
#alpha-portal .alpha-auth-card #alpha-auth-form{gap:12px}
#alpha-portal .alpha-auth-card label{font-size:11px}
#alpha-portal .alpha-submit{background:linear-gradient(180deg,#f7d88b,#dda94c)!important;border:1px solid #ffe6ab!important;color:#1e2b3d!important;border-radius:8px;box-shadow:inset 0 1px #fff7ca7a,0 7px 20px #0005;font-size:14px;font-weight:800!important}
#alpha-portal .alpha-secondary{background:#11253d!important;border-color:#6f85a1!important;color:#e5f0ff!important}
#alpha-portal .alpha-step-pill{border:1px solid #8c7a5c;background:#4a3a1b35;color:#f3d791;font-size:9px;letter-spacing:.18em}
/* Mobile: art uses whole screen; compact form sits over bottom quarter/third */
#alpha-portal .alpha-auth-shell--mobile{display:block!important;width:100%!important;min-height:100dvh!important}
#alpha-portal .alpha-mobile-stage{min-height:100dvh!important;padding:12px 12px max(14px,env(safe-area-inset-bottom))!important;align-items:flex-end;background-position:center 31%!important}
#alpha-portal .alpha-mobile-overlay{background:linear-gradient(to bottom,rgba(2,9,21,.02) 0%,rgba(2,9,21,.06) 37%,rgba(2,9,21,.51) 68%,rgba(2,9,21,.85) 100%)}
#alpha-portal .alpha-mobile-card-wrap{width:min(100%,342px)!important;margin:0 auto!important}
#alpha-portal .alpha-auth-card--mobile{width:100%!important;padding:12px 15px 11px;border-radius:14px;background:linear-gradient(180deg,rgba(7,22,41,.86),rgba(5,17,33,.95));border:1px solid #7189a4;backdrop-filter:blur(10px);box-shadow:0 14px 45px #0008}
#alpha-portal .alpha-mobile-brand{margin-bottom:5px}
#alpha-portal .alpha-mobile-brand .alpha-brand strong{font-size:23px;color:#f5d58e}
#alpha-portal .alpha-mobile-brand .alpha-brand small{font-size:7px}
#alpha-portal .alpha-mobile-brand .alpha-star{font-size:18px}
#alpha-portal .alpha-auth-card--mobile .alpha-step-pill{font-size:8px;padding:4px 7px;margin:2px 0 3px}
#alpha-portal .alpha-auth-card--mobile h2{font-size:21px!important;margin:6px 0 3px!important}
#alpha-portal .alpha-auth-card--mobile>p{font-size:10px!important;margin:0 0 9px!important}
#alpha-portal .alpha-auth-card--mobile #alpha-auth-form{gap:8px!important}
#alpha-portal .alpha-auth-card--mobile input{min-height:37px;padding:8px 10px;font-size:13px;margin-top:3px}
#alpha-portal .alpha-auth-card--mobile .alpha-submit,#alpha-portal .alpha-auth-card--mobile .alpha-secondary{min-height:38px!important;padding:8px;font-size:12px}
#alpha-portal .alpha-auth-card--mobile .alpha-auth-divider{margin:7px 0 5px;font-size:10px}
#alpha-portal .alpha-auth-card--mobile .alpha-footnote{margin:7px 0 0!important;font-size:9px!important}
#alpha-portal .alpha-mobile-card-wrap .alpha-entry-footer{margin-top:5px;color:#c7d5e5;font-size:9px}
/* Onboarding: art-first species cards and character color studio */
#alpha-portal .ek-pet-wizard{min-height:100dvh;background:linear-gradient(#061426c0,#061426bc),url('/assets/creation_realm.webp') center center/cover fixed}
#alpha-portal .ek-pet-wizard .alpha-wizard-head{background:#061426e5;backdrop-filter:blur(7px);border-color:#42627e;position:relative;z-index:2}
#alpha-portal .ek-wizard-main{max-width:1540px;margin:auto;padding:24px clamp(13px,3vw,50px) 60px}
#alpha-portal .ek-wizard-back{border:1px solid #617e9a85;background:linear-gradient(#06182cdc,#081b31f0);border-radius:16px;padding:23px clamp(12px,2.5vw,35px) 25px;box-shadow:0 25px 70px #0005;backdrop-filter:blur(9px)}
#alpha-portal .ek-wizard-kicker{font:800 10px/1.5 system-ui;letter-spacing:.21em;color:#72d9ef}
#alpha-portal .ek-wizard-back>h1,#alpha-portal .ek-wizard-custom-title h1{font:700 clamp(30px,3.7vw,53px)/1.1 'Everkin Serif',Georgia,serif;margin:9px 0;color:#f9e5bf;letter-spacing:-.018em;text-shadow:0 6px 14px #000a}
#alpha-portal .ek-wizard-back>p,#alpha-portal .ek-wizard-custom-title p{color:#b7ccdf;margin:8px 0 22px;font-size:13px}
#alpha-portal .ek-species-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
#alpha-portal .ek-species-card{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center;min-height:340px;padding:17px 7px 12px;background:linear-gradient(160deg,#0d2341,#08182c)!important;border:1px solid #53758f!important;border-radius:12px!important;transition:transform .16s,border-color .16s,box-shadow .16s}
#alpha-portal .ek-species-card.selected{border:2px solid #ffe1a0!important;box-shadow:0 0 0 2px #ebbc6930,0 0 21px #f7c57955}
#alpha-portal .ek-species-card:hover{transform:translateY(-3px)}
#alpha-portal .ek-species-card img{width:100%;height:175px;min-width:0;object-fit:contain;flex:1;filter:drop-shadow(0 12px 17px #0009)}
#alpha-portal .ek-species-card h3{font:700 22px 'Everkin Serif',Georgia,serif;margin:4px 0 2px;color:#f7eddb}
#alpha-portal .ek-species-card small{font:600 10px/1.4 system-ui;color:#9cbdd0}
#alpha-portal .ek-species-icon{display:grid;place-items:center;width:34px;height:34px;border:1px solid #6d92a4;border-radius:50%;font-size:20px;color:#f4d484;box-shadow:0 0 13px #4ec8ff33}
#alpha-portal .ek-species-caption{font-size:11px;color:#bfd0e0;min-height:42px;line-height:1.35;margin-top:3px}
#alpha-portal .ek-card-selected{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(90deg,#97703b,#c49a51);color:#0f1c31;font-size:10px;font-weight:850;padding:3px}
#alpha-portal .ek-species-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:20px;color:#bcd1e6;font-size:12px}
#alpha-portal .ek-species-footer .alpha-submit{max-width:255px}
#alpha-portal .ek-wizard-custom{max-width:1170px;margin:auto}
#alpha-portal .ek-text-button{color:#d0e8ff;background:#12294199;border:1px solid #506d89;border-radius:8px;min-height:35px}
#alpha-portal .ek-wizard-custom-title{text-align:center;padding:8px 0 4px}
#alpha-portal .ek-custom-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.9fr);gap:17px;align-items:stretch}
#alpha-portal .ek-custom-vista{min-height:480px;position:relative;overflow:hidden;border:1px solid #537e9c;border-radius:16px;background:linear-gradient(180deg,#0b253820 15%,#06142788 60%,#061427 98%),url('/assets/creation_realm.webp') center center/cover;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;box-shadow:0 20px 45px #0005}
#alpha-portal .ek-custom-vista .ek-hero-pet{position:relative;z-index:1;width:min(70%,420px);height:350px;object-fit:contain;filter:drop-shadow(0 22px 18px #000a);margin-bottom:55px}
#alpha-portal .ek-platform{position:absolute;bottom:72px;width:70%;height:40px;border-radius:50%;border:2px solid #a6cde070;background:radial-gradient(ellipse,#6d899aa8,#09162b22 70%);box-shadow:0 10px 12px #0008}
#alpha-portal .ek-custom-moon{position:absolute;top:20px;right:28px;color:#f6d48f;font-size:27px;filter:drop-shadow(0 0 15px #ffe19c)}
#alpha-portal .ek-custom-vista-label{position:absolute;bottom:11px;left:15px;z-index:2;font:700 27px 'Everkin Serif',Georgia,serif;color:#f8e9c6;text-shadow:0 3px 9px #000}
#alpha-portal .ek-custom-vista-label small{display:block;margin-top:2px;font:700 10px system-ui;letter-spacing:.17em;color:#bcd3e6;text-transform:uppercase}
#alpha-portal .ek-custom-panel{background:linear-gradient(#081b30f5,#061527f8);border:1px solid #567897;border-radius:16px;padding:clamp(13px,2vw,25px);display:flex;flex-direction:column;gap:12px;box-shadow:0 25px 55px #0005}
#alpha-portal .ek-companion-id{display:flex;gap:11px;align-items:center;border-bottom:1px solid #335672;padding-bottom:10px}
#alpha-portal .ek-companion-id img{width:66px;height:70px;object-fit:contain;background:#123353;border-radius:8px}
#alpha-portal .ek-companion-id strong{font:700 24px 'Everkin Serif',Georgia,serif;color:#f6e6c2}.ek-companion-id small{display:block;font-size:10px;color:#d4b77f}.ek-companion-id p{color:#b7cfe0!important;font-size:11px;margin:4px 0!important}
#alpha-portal .ek-field-title{display:flex;justify-content:space-between;gap:8px;font-size:13px;font-weight:850;color:#f1ddbb}
#alpha-portal .ek-field-title small{font-size:10px;color:#94b3ce;font-weight:400}
#alpha-portal .ek-color-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
#alpha-portal .ek-color-choice{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:69px;border:1px solid transparent;background:#13283d66;border-radius:9px;padding:7px 2px}
#alpha-portal .ek-color-choice i{display:block;width:31px;height:31px;border-radius:50%;border:2px solid #c8d7e8;box-shadow:inset 0 -5px 8px #0004,0 2px 5px #0006}
#alpha-portal .ek-color-choice.chosen{border-color:#f3d48d;background:#5f54372a}
#alpha-portal .ek-color-choice.chosen i{outline:2px solid #ffe6aa;outline-offset:3px}
#alpha-portal .ek-color-choice span{font-size:10px;color:#b7d4e8}
#alpha-portal .ek-pet-label{font-size:12px;font-weight:800;color:#e1d1b0}
#alpha-portal .ek-pet-label input{width:100%;padding:12px;margin-top:6px;background:#071729;border:1px solid #53718a;color:#f4f9ff;border-radius:8px;font-size:14px}
#alpha-portal .ek-create-note{color:#93afc4;font-size:10px;line-height:1.4}
/* Tutorial, all verified battles and the Elemental Arena use one coherent arena presentation */
#alpha-portal .alpha-tutorial-main{max-width:1180px}
#alpha-portal .alpha-tutorial-intro{background:linear-gradient(#061b33e0,#09243be0),url('/assets/arena_falls.webp') center/cover;border-color:#557c99}
#alpha-portal .alpha-tutorial-tip{border-color:#c19b62;background:linear-gradient(#182d46,#102239)}
#alpha-portal .ek-tutorial-intro-pet{background:radial-gradient(circle,#2d638b66,transparent 70%)}
#alpha-portal .ek-tutorial-intro-pet img{height:340px;object-fit:contain}
.ek-combat-screen{--ek-battle-border:#4d708d;display:grid;gap:10px;padding-bottom:8px}
.ek-combat-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 15px;background:#0a2038cc;border:1px solid #315b7a;border-radius:11px}
.ek-combat-top h1{font:700 23px 'Everkin Serif',Georgia,serif;margin:3px 0 0;color:#ffe0a1}
.ek-round-status{min-width:100px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;color:#e1ceaa;font-size:10px;font-weight:750;letter-spacing:.08em}
.ek-round-status b{font:700 26px 'Everkin Serif',Georgia,serif}.ek-round-dots{display:flex;gap:3px;width:100%;justify-content:end}.ek-round-dots i{width:8px;height:8px;border-radius:50%;background:#36526d;border:1px solid #769ab8}.ek-round-dots i.lit{background:#d4a75a;border-color:#f5deaa;box-shadow:0 0 8px #f2c268}
.ek-battlefield{isolation:isolate;position:relative;overflow:hidden;min-height:375px;border:1px solid #4e7494;border-radius:14px;background:linear-gradient(#07172e22,#07172e77),url('/assets/arena_falls.webp') center 58%/cover;box-shadow:0 20px 45px #0005;margin:0;padding:0!important}
.ek-battlefield-vignette{position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(180deg,#07172b66 0,transparent 29%,transparent 52%,#08162cb8 100%)}
.ek-battle-hud{position:absolute;top:13px;z-index:2;min-width:190px;max-width:42%;display:flex;gap:8px;align-items:center;padding:7px 10px;background:linear-gradient(#0a1d33ed,#0a203bea);border:1px solid #7296ae;border-radius:10px;box-shadow:0 6px 18px #0008}
.ek-hud-left{left:13px}.ek-hud-right{right:13px;flex-direction:row-reverse;text-align:right}
.ek-battle-hud img{width:45px;height:45px;object-fit:contain;background:#2f557680;border-radius:8px}
.ek-battle-hud>div{min-width:0;flex:1}.ek-battle-hud strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ek-battle-hud small{color:#b7d4e7;font-size:10px;display:block}
.ek-health-line{height:9px;width:100%;background:#461c2c;border:1px solid #8c9eab;border-radius:10px;overflow:hidden;margin:5px 0}.ek-health-line span{display:block;height:100%;background:linear-gradient(90deg,#319e72,#88df8a);border-radius:8px;transition:width .24s}.ek-health-line.enemy span{background:linear-gradient(90deg,#b65a56,#f1b36b)}
.ek-fighter-field{position:absolute;inset:40px 0 19px;display:grid;grid-template-columns:1fr 72px 1fr;align-items:end;gap:0;padding:0 25px;pointer-events:none}
.ek-fighter-player,.ek-fighter-opponent{display:flex;justify-content:center;align-items:flex-end;height:100%;max-width:100%;min-width:0}
.ek-fighter-field img{width:min(100%,290px);height:clamp(170px,23vw,315px);object-fit:contain;filter:drop-shadow(0 14px 14px #000c)}
.ek-fighter-opponent img{width:min(100%,285px);transform:scaleX(-1)}
.ek-arena-vs{font:900 18px 'Everkin Serif',Georgia,serif;text-align:center;align-self:center;color:#ffdea1;text-shadow:0 3px 14px #000}
.ek-battlefield-footer{position:absolute;bottom:9px;left:13px;right:13px;display:flex;justify-content:space-between;gap:10px;color:#f0e1bd;font-size:11px;font-weight:700;text-shadow:0 3px 9px #000}
.ek-boss-gear{border:1px solid #bd8c49;background:#48321c55;border-radius:9px;padding:8px 12px;color:#ffe4a3;font-size:12px}
.ek-battle-controls{padding:12px!important;border:1px solid #376383!important;border-radius:14px!important;background:linear-gradient(180deg,#092541,#061729)!important;box-shadow:0 12px 25px #0005}
.ek-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding-bottom:12px;border-bottom:1px solid #305271}
.ek-actions button{background:linear-gradient(#112f4a,#091b30)!important;border:1px solid #446c90!important;border-radius:9px;min-height:69px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#dbefff;font-weight:800;font-size:12px}
.ek-actions button span{font-size:26px;line-height:1}.ek-actions button.active{background:linear-gradient(#8e342e,#4e1b20)!important;border-color:#ffb778!important;box-shadow:inset 0 0 12px #ff7b4a33,0 0 10px #e5835b44;color:#ffe4b7}
.ek-command-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:9px 2px}.ek-command-head h2{font:700 19px 'Everkin Serif',Georgia,serif;margin:0;color:#f7e5ba}.ek-command-head p{margin:3px 0 0;color:#aac7de;font-size:11px}
.ek-turn-resources{display:flex;flex-wrap:wrap;gap:5px;justify-content:end}.ek-turn-resources span{border-radius:15px;border:1px solid #456988;background:#102f4c;padding:5px 9px;color:#e5c887;font-size:10px;font-weight:700;white-space:nowrap}
.ek-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;max-height:240px;overflow-y:auto;padding:5px 2px 7px}
.ek-gear-choice{min-height:64px;display:flex;align-items:center;gap:8px;text-align:left;padding:7px;background:#0c2641;border:1px solid #416587;border-radius:10px}
.ek-gear-choice.on{border:2px solid #f9c969;background:#23364b;box-shadow:inset 0 0 14px #f5bd3f19}
.ek-gear-choice img{width:54px;height:52px;object-fit:contain;flex:none}
.ek-choice-body{flex:1;min-width:0}.ek-choice-body b{display:block;font-size:11px;line-height:1.35;color:#eef4fc}.ek-choice-body small{display:block;font-size:10px;color:#9fbdd4;white-space:normal;line-height:1.3;margin-top:4px}
.ek-choice-check{width:23px;height:23px;border:1px solid #507a93;border-radius:6px;display:grid;place-items:center;color:#ffe6ae;flex:none}.ek-gear-choice.on .ek-choice-check{background:#b28c47;color:#14233a}
.ek-card-symbol,.ek-gear-symbol{width:43px;height:48px;display:grid;place-items:center;flex:none;border-radius:7px;background:linear-gradient(#273f67,#0e2040);border:1px solid #6f8eaa;color:#f4dcab;font-size:23px}
.ek-empty{padding:18px;color:#aacce1;font-size:12px;border:1px dashed #56728c;border-radius:10px}
.ek-controls-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #2f5572;padding-top:11px;margin-top:5px}.ek-controls-bottom p{font-size:11px;color:#adc3d8;line-height:1.4;margin:0}
.ek-resolve{width:min(100%,260px);flex:none;min-height:44px;border:1px solid #fff0b8;border-radius:8px;background:linear-gradient(#f1ce75,#b98534)!important;color:#17253a!important;font-weight:900;font-size:13px}.ek-resolve:disabled{opacity:.46}
/* Player home; every card performs actual game navigation */
.ek-home{display:grid;gap:18px}.ek-home-banner{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:330px;padding:40px;background:linear-gradient(90deg,#061729df 0,#061729b6 55%,#06172977),url('/assets/creation_realm.webp') center/cover;border:1px solid #587892;border-radius:17px;box-shadow:0 22px 45px #0006}
.ek-home-intro{max-width:570px;position:relative;z-index:1}.ek-home-intro h1{font:700 clamp(31px,4vw,54px)/1.05 'Everkin Serif',Georgia,serif;color:#fff0c9;margin:13px 0}.ek-home-intro h1 em{font-style:normal;color:#efc677}.ek-home-intro p{color:#bbd3e6;font-size:14px;line-height:1.5;max-width:480px}
.ek-home-primary{background:linear-gradient(#f8d783,#d6a149)!important;border:1px solid #ffe8a9!important;color:#1a2637!important;border-radius:9px;font-weight:900;padding:11px 19px;margin-top:13px;min-height:44px}
.ek-home-companion{position:relative;z-index:1;min-width:240px;max-width:325px;text-align:center;padding:10px;background:radial-gradient(circle,#41648770,transparent 75%)}
.ek-home-companion>img{width:270px;height:215px;object-fit:contain;filter:drop-shadow(0 16px 18px #0008)}.ek-home-companion>div{display:grid;gap:4px}.ek-home-companion b{font:700 21px 'Everkin Serif',Georgia,serif;color:#ffde9b}.ek-home-companion span{color:#c4d9e9;font-size:11px;text-transform:capitalize}
.ek-home-section-title{display:flex;align-items:end;justify-content:space-between;gap:10px}.ek-home-section-title h2{font:700 30px 'Everkin Serif',Georgia,serif;color:#f7e4bb;margin:4px 0 0}.ek-home-section-title>span{font-size:12px;color:#8fb4d2}
.ek-home-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ek-home-links button{min-height:150px;border:1px solid #365f80;border-radius:14px;background:linear-gradient(145deg,#112d4b,#081c33);text-align:left;position:relative;padding:20px;display:flex;flex-direction:column;align-items:start;gap:7px}
.ek-home-links button:hover{transform:translateY(-2px);border-color:#cdaf70}.ek-home-icon{font-size:28px;color:#e9c47c}.ek-home-links button b{font:700 20px 'Everkin Serif',Georgia,serif;color:#ffebbe}.ek-home-links button small{font-size:11px;color:#afcce2}.ek-home-arrow{position:absolute;right:19px;top:18px;color:#a0bdd4;font-size:23px}
/* Tablets and phones */
@media(max-width:1000px){#alpha-portal .ek-species-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}#alpha-portal .ek-species-card{min-height:270px}#alpha-portal .ek-species-card img{height:143px}#alpha-portal .ek-custom-grid{grid-template-columns:1fr 1fr}#alpha-portal .ek-custom-vista{min-height:395px}#alpha-portal .ek-custom-vista .ek-hero-pet{height:290px;margin-bottom:35px}.ek-home-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){#alpha-portal .alpha-auth-shell--desktop{display:none!important}#alpha-portal .alpha-auth-shell--mobile{display:block!important}#alpha-portal .ek-custom-grid{grid-template-columns:1fr}#alpha-portal .ek-custom-vista{min-height:280px}#alpha-portal .ek-custom-vista .ek-hero-pet{height:220px;margin-bottom:40px}#alpha-portal .ek-platform{bottom:45px}#alpha-portal .ek-custom-vista-label{bottom:5px}.ek-combat-screen{gap:7px}.ek-battlefield{min-height:280px}.ek-fighter-field img{height:210px}.ek-home-banner{padding:24px}.ek-home-companion{min-width:150px}}
@media(max-width:650px){body>main{padding:9px 8px 85px}body>header strong{font-size:19px}body>.tabs button{padding:8px 11px!important}.ek-combat-top h1{font-size:18px}.ek-battlefield{min-height:250px}.ek-battle-hud{top:8px;min-width:0;max-width:48%;padding:5px;gap:4px}.ek-battle-hud img{height:29px;width:29px}.ek-battle-hud strong{font-size:10px}.ek-battle-hud small{font-size:8px}.ek-hud-left{left:6px}.ek-hud-right{right:6px}.ek-fighter-field{grid-template-columns:1fr 28px 1fr;padding:0 6px;inset:40px 0 16px}.ek-fighter-field img{height:178px}.ek-arena-vs{font-size:12px}.ek-battlefield-footer{font-size:9px}.ek-actions button{min-height:57px;font-size:10px}.ek-actions button span{font-size:21px}.ek-command-head{display:block}.ek-turn-resources{justify-content:start;margin-top:7px}.ek-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:265px}.ek-gear-choice{padding:5px;min-height:65px}.ek-gear-choice img{height:35px;width:36px}.ek-choice-body b{font-size:10px}.ek-choice-body small{font-size:9px}.ek-choice-check{width:18px;height:18px}.ek-controls-bottom{display:block}.ek-controls-bottom p{margin-bottom:7px}.ek-resolve{width:100%;max-width:none}#alpha-portal .ek-species-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#alpha-portal .ek-species-card{min-height:247px;padding:10px 6px 8px}#alpha-portal .ek-species-card img{height:122px}#alpha-portal .ek-species-card h3{font-size:19px}#alpha-portal .ek-species-footer{display:block}#alpha-portal .ek-species-footer .alpha-submit{max-width:none;margin-top:12px}#alpha-portal .ek-wizard-back{padding:16px 9px}.ek-home-banner{min-height:310px;padding:19px;display:block}.ek-home-intro h1{font-size:29px}.ek-home-intro p{font-size:12px}.ek-home-companion{display:none}.ek-home-links{gap:8px}.ek-home-links button{min-height:122px;padding:13px}.ek-home-links button b{font-size:17px}.ek-home-links button small{font-size:10px}.ek-home-section-title h2{font-size:23px}.ek-home-section-title>span{display:none}}
@media(max-width:390px){#alpha-portal .alpha-auth-card--mobile{padding:10px}#alpha-portal .alpha-auth-card--mobile h2{font-size:18px!important}#alpha-portal .alpha-auth-card--mobile .alpha-footnote{display:none}.ek-choice-grid{grid-template-columns:1fr 1fr}#alpha-portal .ek-species-card{min-height:225px}#alpha-portal .ek-species-card img{height:100px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:0.01ms!important;animation-duration:0.01ms!important}}
/* Additional pets use the same six illustrated species and eight color choices. */
.ek-create-in-game{background:linear-gradient(#0b2441d9,#081a32f6),url('/assets/creation_realm.webp') center/cover!important;border-color:#3a6a90!important;padding:20px!important}
.ek-create-in-game>h2{font:700 30px 'Everkin Serif',Georgia,serif;color:#f5dfb3;margin:7px 0}.ek-create-in-game>p{color:#b8d0e2}
.ek-create-species-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:17px 0}
.ek-create-species{min-width:0;min-height:160px;display:flex;align-items:center;flex-direction:column;gap:3px;border-radius:11px;background:linear-gradient(#0c2541,#071629)!important;border:1px solid #476a83!important;padding:9px 5px!important}
.ek-create-species.picked{border:2px solid #f6cb84!important;box-shadow:0 0 15px #edb96755}.ek-create-species img{width:100%;height:95px;object-fit:contain}.ek-create-species b{font:700 17px 'Everkin Serif',Georgia,serif;color:#f8dfaa}.ek-create-species small{color:#a6c0d1;font-size:9px}
.ek-create-details{display:grid;grid-template-columns:minmax(0,.85fr) minmax(290px,1fr);gap:12px}
.ek-create-preview{background:radial-gradient(ellipse at center,#25507b9e,#08162bd9 73%);border:1px solid #43698a;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:10px}
.ek-create-preview img{width:100%;height:235px;object-fit:contain;filter:drop-shadow(0 12px 18px #000a)}.ek-create-preview strong{font:700 22px 'Everkin Serif',Georgia,serif;color:#f8dca4}.ek-create-preview small{font-size:11px;color:#c0d6e6}
.ek-create-form{background:#081b30ed;border:1px solid #3b6282;border-radius:12px;padding:18px;display:grid;gap:10px}.ek-create-form>b{font-size:13px;color:#f3d7a0}
.ek-create-form .ek-color-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.ek-create-form .ek-color-choice{background:#0d2a45;border:1px solid #365a7b;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:62px;border-radius:8px}.ek-create-form .ek-color-choice.chosen{border-color:#f3d18a;background:#413c296e}
.ek-create-form .ek-color-choice i{display:block;width:27px;height:27px;border-radius:50%;border:2px solid #ffffff91;box-shadow:inset 0 -5px 8px #0003}.ek-create-form .ek-color-choice span{font-size:10px;color:#bbd2e4}.ek-create-form>small{color:#a4bed1;font-size:10px}
@media(max-width:700px){.ek-create-species-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ek-create-details{grid-template-columns:1fr}.ek-create-preview img{height:160px}.ek-create-species{min-height:135px}.ek-create-species img{height:75px}}
/* A earned graduation moment, not a generic popup. */
#alpha-portal .ek-complete-screen{min-height:calc(100dvh - 84px);width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,450px);gap:clamp(15px,4vw,55px);align-items:center;padding:clamp(20px,5vw,65px);background:linear-gradient(90deg,#06152b28,#06152bcc),url('/assets/creation_realm.webp') center/cover}
#alpha-portal .ek-complete-image{display:flex;align-items:center;justify-content:center;min-height:380px;background:radial-gradient(circle,#739ab03d,transparent 64%)}
#alpha-portal .ek-complete-image img{width:min(100%,540px);max-height:480px;object-fit:contain;filter:drop-shadow(0 24px 18px #030916b8)}
#alpha-portal .ek-complete-panel{background:linear-gradient(#091d35eb,#061628f6);border:1px solid #b79a63;border-radius:19px;padding:clamp(18px,3vw,36px);box-shadow:0 24px 65px #0009}
#alpha-portal .ek-complete-panel h1{font:700 clamp(30px,4vw,52px)/1.09 'Everkin Serif',Georgia,serif;color:#ffe3a8;margin:16px 0}
#alpha-portal .ek-complete-panel p{font-size:14px;line-height:1.7;color:#c6d9ed}
#alpha-portal .ek-complete-discover{display:grid;gap:10px;border-top:1px solid #355a76;border-bottom:1px solid #355a76;padding:19px 0;margin:21px 0;color:#f6e2b2;font-size:13px}
@media(max-width:850px){#alpha-portal .ek-complete-screen{display:flex;flex-direction:column;gap:4px;padding:12px 10px 35px}#alpha-portal .ek-complete-image{min-height:190px}#alpha-portal .ek-complete-image img{height:185px}#alpha-portal .ek-complete-panel{padding:20px;max-width:480px}#alpha-portal .ek-complete-panel h1{font-size:29px}}
/* Tutorial victory moment: intentionally gated only as a client presentation;
   the server has already verified and saved the win. */
#alpha-portal .ek-tutorial-complete{min-height:100dvh;padding:20px;position:relative;display:grid;place-items:center;background:linear-gradient(#041326aa,#041326d9),url('/assets/creation_realm.webp') center/cover}
#alpha-portal .ek-celebration-inner{position:relative;z-index:1;width:min(650px,100%);border:1px solid #b99862;border-radius:18px;text-align:center;padding:28px clamp(16px,3vw,38px);background:linear-gradient(#0b2745e9,#071a32f6);box-shadow:0 28px 85px #0009}
#alpha-portal .ek-celebration-inner h1{font:700 clamp(31px,4vw,54px) 'Everkin Serif',Georgia,serif;color:#f8e2a6;margin:11px 0}
#alpha-portal .ek-celebration-inner>p{color:#c5d8e8;font-size:14px}
#alpha-portal .ek-celebration-vista{background:radial-gradient(ellipse,#4478a160,transparent 71%);padding:0 10px;margin:10px 0}
#alpha-portal .ek-celebration-vista img{height:260px;width:min(100%,410px);object-fit:contain;filter:drop-shadow(0 14px 18px #000a)}
#alpha-portal .ek-celebration-next{margin:10px 0 21px;padding:15px;border:1px solid #426789;border-radius:10px;background:#071b32da}
#alpha-portal .ek-celebration-next b{font:700 19px 'Everkin Serif',Georgia,serif;color:#ffe1a5}
#alpha-portal .ek-celebration-next>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;text-align:left;margin-top:12px}
#alpha-portal .ek-celebration-next span{color:#c8dcf1;font-size:12px}
#alpha-portal .ek-celebration-inner .alpha-submit{max-width:330px}
@media(max-width:520px){#alpha-portal .ek-celebration-vista img{height:175px}#alpha-portal .ek-celebration-next>div{grid-template-columns:1fr}#alpha-portal .ek-celebration-inner{padding:19px 15px}}
/* Smaller, single-line wizard chrome leaves more room for creature and battle art on phones. */
@media(max-width:650px){
 #alpha-portal .alpha-wizard-head{gap:7px;padding:8px 10px;min-height:56px}
 #alpha-portal .alpha-wizard-head .alpha-brand{gap:5px}
 #alpha-portal .alpha-wizard-head .alpha-brand strong{font-size:17px;letter-spacing:.07em}
 #alpha-portal .alpha-wizard-head .alpha-brand small{display:none}
 #alpha-portal .alpha-wizard-head .alpha-star{font-size:18px}
 #alpha-portal .alpha-wizard-head .alpha-signout{white-space:nowrap;padding:6px 8px!important;font-size:10px;min-height:30px!important}
 #alpha-portal .alpha-onboarding-step{font-size:8.5px;letter-spacing:.04em;white-space:nowrap}
 #alpha-portal .alpha-tutorial-tip{padding:11px 12px}
}

/* v4.3 · Combined equipment / icon legibility / pet identity */
.ek-three-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.ek-icons-stack{display:grid;gap:5px;min-width:0;margin:5px 0 3px}
.ek-icon-row{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap;line-height:1.3}
.ek-icon-kind{font-size:25px;line-height:1.2;flex:none;filter:drop-shadow(0 1px 3px #0007)}
.ek-icon-label{font-size:10px;font-weight:900;letter-spacing:.05em;color:#f3c782;min-width:56px}
.ek-icon-defense .ek-icon-label{color:#9bd2ee}
.ek-element-icons{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.ek-element-badge{display:inline-flex;align-items:center;gap:3px;font-size:18px;font-weight:800;white-space:nowrap;color:#f0f5ff;padding:2px 6px;background:#153653a8;border:1px solid #37637b;border-radius:7px}
.ek-element-badge b{font-size:13px;font-variant-numeric:tabular-nums;color:#fff0c5}
.ek-no-icons{color:#779bb5;font-size:15px}
.ek-gear-choice .ek-icons-stack{gap:2px;margin-top:6px}
.ek-gear-choice .ek-icon-kind{font-size:23px}.ek-gear-choice .ek-icon-label{font-size:9px;min-width:50px}.ek-gear-choice .ek-element-badge{font-size:16px;padding:2px 4px}
.ek-gear-choice{min-height:108px;align-items:flex-start;padding:10px!important}
.ek-gear-choice>img{width:58px;height:74px}
.ek-choice-grid-equipment{max-height:360px}
.ek-choice-grid-item{max-height:none;overflow:visible}
.ek-consumables-empty{grid-column:1/-1;min-height:150px;display:grid;justify-items:center;align-content:center;text-align:center;border:1px dashed #456b85;background:#0a2038cc;border-radius:13px;padding:18px;color:#b6cfdf}
.ek-consumables-empty>span{font-size:30px}.ek-consumables-empty h3{font:700 21px 'Everkin Serif',Georgia,serif;color:#e8d6af;margin:6px}.ek-consumables-empty p{max-width:410px;font-size:12px}.ek-consumables-empty button{border-color:#66839b}
.round-summary .ek-icons-stack{padding:5px;background:#081a2b77;border-radius:8px}
.round-summary .ek-icon-row{gap:5px}.round-summary .ek-element-badge{font-size:17px}
.ek-round-dual>div{min-width:0}.ek-round-dual .round-used-list{margin-bottom:12px}.ek-round-subtitle{display:block;margin:14px 0 6px;color:#f0d495!important}
.ek-round-gear{align-items:flex-start!important;min-width:0}.ek-round-gear>img{width:53px;height:64px;object-fit:contain}
.ek-round-gear>span:last-child{flex:1;min-width:0}.ek-round-gear strong,.ek-round-card strong{font-size:12px;display:block}
.ek-round-gear .ek-icon-kind{font-size:21px}.ek-round-gear .ek-icon-label{font-size:9px;min-width:48px}
.ek-round-gear .ek-element-badge{font-size:15px}.ek-ability-name{color:#f0c98c;font-size:12px;padding:7px}
.weapon-card{min-height:330px!important}.weapon-card .card-icons{padding:6px 9px!important;margin-top:auto}
.weapon-card .ek-icons-stack{gap:6px}.weapon-card .ek-icon-kind{font-size:23px}.weapon-card .ek-icon-label{font-size:9px;min-width:45px}.weapon-card .ek-element-badge{font-size:17px}
.market-detail .ek-detail-icon-rows{display:block!important;width:100%;padding:7px 0!important}
.market-detail .ek-icon-kind{font-size:27px}.market-detail .ek-element-badge{font-size:21px}
.gear-item-identity small .ek-icons-stack{display:grid}.gear-item-identity .ek-icon-row{display:flex}.gear-item-identity .ek-icon-kind{font-size:23px}.gear-item-identity .ek-element-badge{font-size:16px}
.ek-pet-portrait-panel{display:grid;grid-template-columns:minmax(200px,1fr) 1fr;align-items:center;gap:20px;padding:20px!important;background:linear-gradient(135deg,#11304d,#071c32)!important}
.ek-pet-portrait-stage{display:flex;align-items:center;justify-content:center;min-height:280px;background:radial-gradient(ellipse at 50% 62%,#326c8960,transparent 67%);border:1px solid #396885;border-radius:14px}
.ek-pet-portrait-stage img{width:100%;max-width:430px;height:300px;object-fit:contain;filter:drop-shadow(0 14px 14px #0009)}
.ek-pet-portrait-info h2{font:700 34px 'Everkin Serif',Georgia,serif;color:#f8dfa8;margin:8px 0}.ek-pet-portrait-info p{color:#b1cbe0;font-size:13px;max-width:400px}.ek-pet-portrait-info small{color:#709bb9;font-size:11px}
.polished-pet-avatar img,.pet-tile .pet-avatar img{object-fit:contain;filter:drop-shadow(0 3px 8px #0009)}
.ek-coach-panel{position:relative;z-index:4;padding:15px 17px;border:2px solid #e8bc73;border-radius:13px;background:linear-gradient(120deg,#172b45,#071b34);box-shadow:0 0 35px #edbc6b2a}
.ek-coach-counter{font-size:10px;font-weight:900;letter-spacing:.15em;color:#78d2ec}.ek-coach-panel h3{font:700 21px 'Everkin Serif',Georgia,serif;color:#f9dfa7;margin:6px 0}.ek-coach-panel p{font-size:13px;color:#d6e4f0;line-height:1.5}
.ek-coach-actions{display:flex;justify-content:flex-end;gap:8px}.ek-coach-actions button{min-height:38px;padding:7px 15px;border-radius:8px}
.ek-coach-focus{position:relative;z-index:2!important;outline:3px solid #ffd57c!important;outline-offset:3px;box-shadow:0 0 30px #f6c7797d!important}
.ek-dev-tutorial-launch{border:1px solid #bc9551;padding:16px;margin:14px 0;background:#3b2d2038;border-radius:10px}.ek-dev-tutorial-launch p{margin:7px 0 11px}
#alpha-portal .ek-victory-screen{min-height:calc(100dvh - 82px);display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,460px);gap:25px;align-items:center;padding:clamp(20px,5vw,70px);background:linear-gradient(90deg,#06162950,#061629dd),url('/assets/creation_realm.webp') center center/cover}
#alpha-portal .ek-victory-portrait{min-height:330px;display:flex;align-items:center;justify-content:center}
#alpha-portal .ek-victory-portrait img{max-width:590px;max-height:470px;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 20px 25px #000b)}
#alpha-portal .ek-victory-info{background:linear-gradient(#0c2340f2,#071528f7);border:1px solid #d5ad5f;border-radius:18px;box-shadow:0 24px 70px #0008;padding:32px 26px;text-align:center}
#alpha-portal .ek-victory-stars{color:#ffdb86;font-size:24px;letter-spacing:.3em;margin-bottom:16px}
#alpha-portal .ek-victory-info h1{font:800 clamp(42px,5vw,64px) 'Everkin Serif',Georgia,serif;letter-spacing:.05em;color:#f8d98f;margin:10px 0;text-shadow:0 0 20px #dd9f508c}
#alpha-portal .ek-victory-info p{color:#cfdfec;line-height:1.7;font-size:14px}
#alpha-portal .ek-victory-rewards{display:grid;gap:9px;margin:25px 0;text-align:left}
#alpha-portal .ek-victory-rewards span{padding:15px;background:#15314b;border:1px solid #426c87;border-radius:9px;color:#ffe6a6;font-size:14px}
@media(max-width:850px){#alpha-portal .ek-victory-screen{grid-template-columns:1fr;gap:5px;padding:14px 10px 30px}#alpha-portal .ek-victory-portrait{min-height:170px}#alpha-portal .ek-victory-portrait img{max-height:200px}#alpha-portal .ek-victory-info{padding:18px 14px;max-width:480px;width:100%;justify-self:center}.ek-pet-portrait-panel{grid-template-columns:1fr}.ek-pet-portrait-stage{min-height:200px}.ek-pet-portrait-stage img{height:240px}}
@media(max-width:650px){.ek-icons-stack{gap:5px}.ek-icon-kind{font-size:20px}.ek-icon-label{font-size:8px;min-width:46px}.ek-element-badge{font-size:16px;padding:2px 4px}.ek-choice-grid-equipment{grid-template-columns:1fr;max-height:310px}.ek-gear-choice{min-height:100px}.ek-gear-choice .ek-icon-kind{font-size:21px}.weapon-card{min-height:332px!important}.ek-coach-panel{padding:11px}.ek-coach-panel h3{font-size:18px}.ek-coach-panel p{font-size:11px}.ek-pet-portrait-panel{padding:10px!important}.ek-pet-portrait-stage img{height:210px}}
.inv-tile .ek-icons-stack{padding:3px;margin:5px 0;gap:2px;align-items:stretch;width:100%}
.inv-tile .ek-icon-row{gap:3px;justify-content:center}
.inv-tile .ek-icon-kind{font-size:16px}
.inv-tile .ek-icon-label{font-size:8px;min-width:37px}
.inv-tile .ek-element-badge{font-size:13px;padding:1px 3px}
.inv-tile .ek-element-badge b{font-size:10px}
.inv-tile{min-height:210px}
.gallery-stat .ek-icons-stack{margin-bottom:6px;gap:3px}.gallery-stat .ek-icon-kind{font-size:19px}.gallery-stat .ek-element-badge{font-size:15px}

/* v4.4.4: fixed-size, optically aligned creation portraits and collection counter */
.ek-create-species,.ek-create-species.picked{box-sizing:border-box;border-width:1px!important;}
.ek-create-species.picked{outline:2px solid #f6cb84;outline-offset:-2px;}
.ek-create-species img{display:block;flex:0 0 95px;object-position:center center;}
.ek-create-preview{min-width:0;}
.ek-create-preview .ek-centered-pet{display:block;width:min(100%,320px);height:235px;flex:0 0 235px;object-fit:contain;object-position:center center;margin-inline:auto;}
.ek-your-everkin-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.ek-your-everkin-header h2{margin:0;}
#alpha-portal .ek-species-card,#alpha-portal .ek-species-card.selected{box-sizing:border-box;border-width:1px!important;}
#alpha-portal .ek-species-card.selected{outline:2px solid #ffe1a0;outline-offset:-2px;}
#alpha-portal .ek-species-card img{object-position:center center;}
#alpha-portal .ek-custom-vista .ek-hero-pet{object-position:center center;}
@media(max-width:700px){.ek-create-species img{flex-basis:75px}.ek-create-preview .ek-centered-pet{height:160px;flex-basis:160px;}}

/* v4.4.5: never reflow image slots when switching palette options. */
.ek-create-preview .ek-centered-pet,
#alpha-portal .ek-custom-vista .ek-hero-pet,
#alpha-portal .ek-companion-id img {
 object-fit:contain!important;
 object-position:center center!important;
 transform:none!important;
 transition:none!important;
}
.ek-create-species,.ek-create-species.picked,
#alpha-portal .ek-species-card,#alpha-portal .ek-species-card.selected {
 border-width:1px!important;
 box-sizing:border-box!important;
}
.ek-create-species.picked,#alpha-portal .ek-species-card.selected {
 outline:2px solid #f6cb84;
 outline-offset:-2px;
}
.ek-create-preview .ek-centered-pet{width:min(100%,320px);height:235px;flex:0 0 235px;}
@media(max-width:700px){.ek-create-preview .ek-centered-pet{height:160px;flex-basis:160px;}}

/* Everkin v4.4.6 interface layer: typography, navigation, account menu, staff panel.
   Loaded after everkin_polish.css. */
@font-face{font-family:'Everkin Serif';src:url('/assets/fonts/lora-latin.woff') format('woff');font-weight:400 700;font-style:normal;font-display:swap}
:root{--ek-surface:#0b2140;--ek-surface-2:#0e2a4a;--ek-border:#355e80;--ek-gold-2:#f3cf82;--ek-danger:#e0786a;--ek-ok:#7fdcae;--ek-focus:#f5cb83}
.ek-ico{width:18px;height:18px;flex:none;vertical-align:-3px}

/* Header + wallet */
body>header{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
body>header>small{margin-top:0;flex:1}
#wallet{margin-top:0;align-items:center;gap:8px}
.ek-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px 5px 8px!important;line-height:1.1}
.ek-chip b{font-variant-numeric:tabular-nums;color:#fff3d4}
.ek-chip small{font-size:10px;color:#9fbcd4;letter-spacing:.04em;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ek-chip .ek-ico{width:16px;height:16px;color:#f1c66f}

/* Account menu */
.ek-account{position:relative}
.ek-account-button{display:flex;align-items:center;gap:8px;min-height:38px!important;padding:4px 10px 4px 4px!important;border-radius:999px!important;background:#112a45!important;border:1px solid #3d6688!important;color:#e7f1fb}
.ek-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(#f3d18a,#c9963f);color:#14223a;font-weight:900;font-size:14px}
.ek-account-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700}
.ek-chev{width:14px;height:14px;opacity:.8}
.ek-account-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:220px;padding:6px;border-radius:12px;background:#0a1d33;border:1px solid #47698b;box-shadow:0 18px 40px #000a}
.ek-account-menu[hidden]{display:none}
.ek-account-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent!important;border:0!important;border-radius:8px!important;min-height:40px;padding:8px 10px;color:#e3eefa;font-size:13px}
.ek-account-menu button:hover,.ek-account-menu button:focus-visible{background:#163556!important}
.ek-menu-signout{color:#ffc1b5!important;border-top:1px solid #29496a!important;border-radius:0 0 8px 8px!important;margin-top:4px}
.ek-role-badge{display:inline-block;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;padding:3px 7px;border-radius:999px;border:1px solid #5f7f9b;color:#cfe2f3;background:#173350}
.ek-role-admin{border-color:#e2b866;color:#ffe2a3;background:#4a3818}
.ek-role-moderator{border-color:#6fc3d8;color:#bff0ff;background:#123f4f}

/* Primary navigation */
body>.tabs{justify-content:center}
body>.tabs button{display:inline-flex;align-items:center;gap:7px}
body>.tabs button .ek-ico{width:17px;height:17px;opacity:.85}
body>.tabs button.on .ek-ico{opacity:1;color:#f6cf7f}
.ek-subnav{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px;padding:5px;border:1px solid #2a5272;border-radius:12px;background:#081a2fcc}
.ek-subnav button{min-height:38px;padding:7px 14px;border-radius:8px!important;background:transparent!important;border:1px solid transparent!important;color:#b9d2e6;font-size:13px;font-weight:700}
.ek-subnav button.on{background:#183a5c!important;border-color:#6a8fb0!important;color:#ffe2a3}

/* Bottom navigation is for phones only; desktop already has the top bar. */
nav.bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
nav.bottom button .ek-ico{width:20px;height:20px}
nav.bottom button span{font-size:10px}
@media(min-width:900px){nav.bottom{display:none!important}body>main{padding-bottom:40px!important}.notice{bottom:24px!important;left:auto!important;right:24px!important;max-width:420px}}
@media(max-width:899px){body>.tabs{display:none}body>main{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}.ek-account-name{display:none}.ek-chip small{display:none}}
@media(max-width:520px){body>header>small{display:none}#wallet{gap:5px}.ek-chip{padding:4px 7px!important;font-size:11px}}

/* Typography: consistent self-hosted display serif everywhere Georgia was requested */
h1,h2,h3,.ek-home-intro h1,.alpha-brand strong{font-family:'Everkin Serif',Georgia,serif}

/* Pet page */
.ek-pet-species{color:#e8c47e!important;font-weight:700;letter-spacing:.02em;margin:0 0 4px!important}
.ek-pet-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.ek-pet-tags .tag{display:inline-flex;align-items:center;gap:6px}
.ek-swatch{display:inline-block;width:11px;height:11px;border-radius:50%;border:1px solid #fff8}
.ek-stat-grid{column-gap:32px!important}
.ek-stat-value{display:flex;align-items:baseline;gap:8px}
.ek-stat-value small{margin:0!important;font-size:11px;color:#9fc1d9;cursor:help}
.gear-row{justify-content:space-between}
.gear-row>.gear-item-identity{flex:1;justify-content:flex-start;text-align:left}
.gear-item-identity>span{flex:1;display:flex;flex-direction:column;align-items:flex-start}
.gear-item-identity .ek-icons-stack{justify-items:start}
.gear-item-identity .ek-icon-row{justify-content:flex-start}

/* Rarity frames: collectible items look as valuable as they are */
.inv-tile{position:relative;border-width:1px}
.inv-tile.rarity-uncommon{border-color:#58b37c!important;box-shadow:inset 0 0 0 1px #58b37c33}
.inv-tile.rarity-rare{border-color:#4f9be6!important;box-shadow:inset 0 0 0 1px #4f9be644,0 0 14px #4f9be622}
.inv-tile.rarity-epic{border-color:#a874f0!important;box-shadow:inset 0 0 0 1px #a874f055,0 0 18px #a874f033}
.inv-tile.rarity-legendary{border-color:#f0b54d!important;box-shadow:inset 0 0 0 1px #f0b54d66,0 0 22px #f0b54d44}
.inv-tile.rarity-ascendant{border-color:#ff8ad6!important;box-shadow:inset 0 0 0 1px #ff8ad666,0 0 26px #b28cff55;background:linear-gradient(160deg,#2a1d4a,#0c1d36)!important}
.inv-tile.rarity-uncommon .inv-minor{color:#7fd9a1}.inv-tile.rarity-rare .inv-minor{color:#7cbaf5}.inv-tile.rarity-epic .inv-minor{color:#c7a2ff}.inv-tile.rarity-legendary .inv-minor{color:#ffd27d}.inv-tile.rarity-ascendant .inv-minor{color:#ffb3e6}
.ek-element-badge{cursor:help}

/* Battle */
.ek-combat-top{flex-wrap:wrap}
.ek-help-button{display:inline-flex;align-items:center;gap:7px;min-height:38px!important;padding:6px 12px!important;border-radius:999px!important;background:#10304d!important;border:1px solid #4c7699!important;color:#d8ebfa;font-size:12px;font-weight:700;margin-left:auto}
.ek-rate-pill{margin-left:auto;font-size:11px;font-weight:800;padding:5px 10px;border-radius:999px;border:1px solid #b98d4a;color:#ffd99a;background:#3a2c14;cursor:help}
.ek-rate-pill+.ek-help-button{margin-left:0}
.ek-more-gear{grid-column:1/-1;min-height:44px;border:1px dashed #5b80a0!important;background:#0a2038!important;color:#cfe4f5;border-radius:10px}
.ek-modal-backdrop{position:fixed;inset:0;z-index:10050;background:#020812cc;display:grid;place-items:center;padding:16px;backdrop-filter:blur(3px)}
.ek-modal{width:min(620px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:linear-gradient(#0d2643,#071a30);border:1px solid #6b8fb0;border-radius:16px;padding:20px 22px;box-shadow:0 30px 80px #000c;color:#e6f1fb;outline:none}
.ek-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ek-modal-head h2{margin:0;color:#ffe2a3}
.ek-modal-close{min-height:36px!important;width:36px;padding:0!important;border-radius:50%!important}
.ek-help-steps{display:grid;gap:10px;padding-left:20px;margin:16px 0;line-height:1.5;color:#cfe0ee}
.ek-help-steps b{color:#fff0c8}
.ek-elem-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:8px 0 12px}
.ek-elem-grid span{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border:1px solid #2f5677;border-radius:9px;background:#0a2038;font-size:11px;color:#bcd3e6}
.ek-elem-grid b{font-size:20px}
@media(max-width:520px){.ek-elem-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ek-help-button span{display:none}}

/* Onboarding stepper and auth */
.ek-stepper{display:flex;gap:6px;list-style:none;margin:0;padding:0;align-items:center}
.ek-stepper li{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7d9ab3}
.ek-stepper li span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;border:1px solid #4b6d8b;font-size:11px;letter-spacing:0}
.ek-stepper li+li:before{content:'';width:18px;height:1px;background:#3c5d7b;margin-right:4px}
.ek-stepper li.current{color:#ffe2a3}.ek-stepper li.current span{background:#d9a74b;border-color:#ffe2a3;color:#14223a}
.ek-stepper li.done{color:#9fd9b7}.ek-stepper li.done span{background:#1d4a3a;border-color:#7fdcae;color:#c9f5dd}
@media(max-width:650px){#alpha-portal .alpha-wizard-head{flex-wrap:wrap}.ek-stepper{order:3;width:100%;justify-content:center;padding-top:6px}.ek-stepper li{font-size:9px}.ek-stepper li+li:before{width:10px}}
.ek-pass-wrap{position:relative;display:block}
.ek-pass-wrap input{padding-right:64px!important}
.ek-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);margin-top:3px;min-height:30px!important;padding:4px 10px!important;font-size:11px!important;border-radius:6px!important;background:#163352!important;border:1px solid #46698a!important;color:#d8ebfa!important}
.ek-field-help{display:block;margin-top:5px;font-weight:400;color:#8fb0c9;font-size:11px}
.ek-check{display:flex!important;align-items:flex-start;gap:9px;font-weight:600!important;line-height:1.4;cursor:pointer}
.ek-check input{width:18px!important;height:18px;min-height:0!important;margin:1px 0 0!important;flex:none;accent-color:#e3b25c}
#alpha-portal a{color:#9fd8f2}
.ek-forgot{text-align:center!important;width:100%;margin-top:10px!important}
.ek-reset-intro{color:#c3d6e6;font-size:13px;line-height:1.5;margin:0}
.alpha-error.ok,.ek-admin-flash{color:var(--ek-ok)!important}
.ek-spinner{width:34px;height:34px;border-radius:50%;border:3px solid #2c4f70;border-top-color:#f3cf82;animation:ek-spin .9s linear infinite;margin:14px auto}
@keyframes ek-spin{to{transform:rotate(360deg)}}
.ek-retry{max-width:240px;margin-top:10px}
#alpha-portal .alpha-auth-card--mobile .ek-check{font-size:11px}

/* Victory */
#alpha-portal .ek-victory-rewards span{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#alpha-portal .ek-victory-rewards .ek-ico{width:24px;height:24px;color:#f3cf82}
#alpha-portal .ek-victory-rewards small{flex-basis:100%;padding-left:34px;color:#b9cfe1;font-size:12px}
#alpha-portal .ek-reward-gold{background:linear-gradient(90deg,#4b3916,#15314b)!important;border-color:#d9ac5a!important;font-size:18px!important}
.ek-countup{font-variant-numeric:tabular-nums;font-style:normal}
#alpha-portal .ek-complete-discover span{display:flex;align-items:center;gap:10px}
.ek-home-icon .ek-ico{width:30px;height:30px}
.ek-home-primary{display:inline-flex;align-items:center;gap:8px}

/* Account settings */
.ek-account-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.ek-account-facts p{margin:0;padding:10px 12px;border:1px solid #2c5373;border-radius:10px;background:#0a2038;display:grid;gap:3px}
.ek-account-facts b{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#9fc1d9}
.ek-form-grid{display:grid;gap:10px;max-width:420px;margin-top:10px}
.ek-form-grid label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#d2e3f1}
.ek-form-grid input{padding:10px 12px;border-radius:8px;border:1px solid #46698a;background:#071729;color:#f2f8ff}
.ek-legal-links{font-size:12px}.ek-legal-links a{color:#9fd8f2}

/* Staff panel */
.ek-admin .screen-head{align-items:center}
.ek-admin-body{padding:16px!important}
.ek-admin-error{border:1px solid #a4574c;background:#3a1a1a;color:#ffc7bd;border-radius:10px;padding:10px 12px}
.ek-admin-flash{border:1px solid #2f7a59;background:#0f3226;border-radius:10px;padding:10px 12px}
.ek-admin-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:16px}
.ek-admin-stat{display:grid!important;gap:4px;text-align:left;padding:14px!important;border-radius:12px!important;background:linear-gradient(145deg,#112d4b,#081c33)!important;border:1px solid #365f80!important}
.ek-admin-stat strong{font:700 28px 'Everkin Serif',Georgia,serif;color:#ffe2a3}.ek-admin-stat small{color:#a9c6dc}
.ek-admin-guide ul{display:grid;gap:8px;padding-left:18px;color:#c7d9e8;line-height:1.5}
.ek-admin-search{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin-bottom:14px}
.ek-admin-search input,.ek-admin-search select{min-height:42px;padding:8px 12px;border-radius:8px;border:1px solid #46698a;background:#071729;color:#f2f8ff}
.ek-admin-search>input{flex:1 1 260px;width:auto!important;min-width:0;margin:0!important}
.ek-admin-search>select,.ek-admin-search>button{width:auto!important;flex:none;margin:0!important}
.ek-admin-search label input{width:100%!important;margin:0!important}
.ek-admin-search label{display:grid;gap:4px;font-size:11px;font-weight:700;color:#bcd3e6}
.ek-admin-search label.grow{flex:1;min-width:200px}
.ek-admin-search input[type=number]{width:90px}
.ek-admin-list{display:grid;gap:10px}
.ek-admin-user,.ek-admin-bug{border:1px solid #2f5677;border-radius:12px;padding:12px 14px;background:#0a2038}
.ek-admin-user.is-suspended{border-color:#a4574c;background:#1f1a2a}
.ek-admin-user header,.ek-admin-bug header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.ek-admin-user header>div{display:grid;gap:3px;justify-items:start}
.ek-admin-user header b{font-size:15px}
.ek-admin-user small,.ek-admin-bug small{color:#93b2ca;font-size:11px}
.ek-admin-user select{width:auto!important;flex:none;margin:0!important;min-height:36px;border-radius:8px;border:1px solid #5d82a3;background:#10304d;color:#fff;padding:4px 8px}
.ek-reason{color:#ffc7bd!important}
.ek-status-bad{color:#ffb4a6;font-size:11px;font-weight:800}.ek-status-ok{color:var(--ek-ok);font-size:12px}.ek-status-open{color:#ffe2a3;font-size:12px}
.ek-admin-pets{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.ek-admin-pet{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:8px;border:1px solid #2c5373;background:#0d2a47;font-size:12px}
.ek-admin-pet small{color:#8fb0c9}
.ek-admin-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.ek-admin-buttons button{min-height:36px;padding:6px 12px;font-size:12px}
button.danger{background:#9b3b33!important;border-color:#e0786a!important;color:#fff!important}
button.danger-outline{border-color:#c0695d!important;color:#ffc7bd!important;background:transparent!important}
.ek-link{background:none!important;border:0!important;min-height:0!important;padding:0 4px!important;color:#9fd8f2!important;text-decoration:underline;font-size:12px}
.ek-admin-action{margin-top:10px;padding:12px;border:1px solid #5d82a3;border-radius:10px;background:#0d2745;display:grid;gap:10px}
.ek-admin-action h3{margin:0}
.ek-admin-action label{display:grid;gap:5px;font-size:12px;font-weight:700}
.ek-admin-action input,.ek-admin-action select,.ek-admin-action textarea{padding:9px 11px;border-radius:8px;border:1px solid #46698a;background:#071729;color:#f2f8ff;font:inherit}
.ek-admin-callout{border:1px solid #d9ac5a;background:#2d2412;border-radius:12px;padding:12px 14px;margin-bottom:14px}
.ek-admin-callout p{margin:6px 0 10px;color:#ead8b4}
.ek-admin-callout code{display:inline-block;padding:6px 10px;background:#0a1626;border-radius:6px;font-size:14px;margin-right:6px;user-select:all}
.ek-admin-callout textarea{width:100%;font-family:ui-monospace,Menlo,Consolas,monospace;background:#0a1626;color:#ffe9bf;border:1px solid #6f5a33;border-radius:8px;padding:8px;margin-bottom:8px}
.ek-table-wrap{overflow-x:auto}
.ek-admin-table{width:100%;border-collapse:collapse;font-size:12px}
.ek-admin-table th{text-align:left;color:#9fc1d9;font-size:10px;letter-spacing:.08em;text-transform:uppercase;padding:8px;border-bottom:1px solid #2f5677}
.ek-admin-table td{padding:8px;border-bottom:1px solid #1d3a57;vertical-align:top}
.ek-admin-log{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ek-admin-log li{display:grid;grid-template-columns:150px 1fr;gap:10px;padding:8px 10px;border-radius:8px;background:#0a2038;font-size:13px}
.ek-admin-log time{color:#8fb0c9;font-size:12px}.ek-admin-log small{color:#a9c6dc}
@media(max-width:650px){.ek-admin-log li{grid-template-columns:1fr}.ek-admin-user header{flex-direction:column}}

@media(prefers-reduced-motion:reduce){.ek-spinner{animation-duration:3s}}
.ek-action-ico{width:26px;height:26px}

/* Forfeit + confirm dialog */
.ek-controls-actions{display:flex;gap:8px;align-items:center;flex:none}
.ek-forfeit{min-height:44px;padding:8px 16px!important;border-radius:8px!important;background:transparent!important;border:1px solid #b9675c!important;color:#ffc7bd!important;font-weight:800;font-size:13px}
.ek-forfeit:hover:not(:disabled){background:#3a1a1a!important}
@media(max-width:650px){.ek-controls-actions{width:100%}.ek-controls-actions .ek-resolve{flex:1}}
.ek-confirm{width:min(440px,100%)}
.ek-confirm h2{margin:0 0 8px;color:#ffe2a3;font-size:22px}
.ek-confirm p{color:#cfe0ee;line-height:1.55;margin:0 0 18px}
.ek-confirm-actions{display:flex;justify-content:flex-end;gap:8px}
.ek-confirm-actions button{min-height:42px;padding:8px 18px;border-radius:8px}

/* Developer sandbox + grants */
.ek-dev-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;margin:12px 0 16px}
.ek-dev-grid button{min-height:46px;text-align:left;padding:10px 12px;border-radius:10px;background:linear-gradient(#123352,#0b2440)!important;border:1px solid #42698c!important;color:#e7f2fb;font-weight:700;font-size:13px}
.ek-dev-grid button:hover{border-color:#d9ac5a!important}
.ek-dev-item{margin-top:6px}
.ek-dev-note{margin-top:12px;font-size:12px}
.ek-grant-form{display:grid;gap:14px}
.ek-grant-form>label,.ek-grant-to{display:grid;gap:5px;font-size:12px;font-weight:700;color:#d2e3f1;max-width:420px}
.ek-grant-form input{padding:9px 11px;border-radius:8px;border:1px solid #46698a;background:#071729;color:#f2f8ff;font:inherit;width:100%}
.ek-grant-form fieldset{border:1px solid #2f5677;border-radius:12px;padding:12px 14px 14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;margin:0}
.ek-grant-form fieldset>label:not(.ek-check){display:grid;gap:5px;font-size:12px;font-weight:700;color:#bcd3e6}
.ek-grant-form fieldset>.ek-admin-search,.ek-grant-form fieldset>.ek-admin-pets{grid-column:1/-1;margin:0}
.ek-grant-form legend{padding:0 6px;font:700 15px 'Everkin Serif',Georgia,serif;color:#ffe2a3}
.ek-grant-form .ek-check{align-self:end;font-size:12px;color:#d2e3f1}
.ek-controls-bottom p{flex:1;min-width:0}
.ek-controls-actions .ek-resolve{width:auto;min-width:220px}

/* v4.8.2 Admin → Loot & crafting (server-wide economy settings) */
.ek-econ{display:grid;gap:14px}
.ek-econ>.ek-admin-callout{margin:0}
.ek-econ-card{display:grid;gap:10px;padding:14px 16px;border:1px solid #2f5677;border-radius:12px;background:#0a2038}
.ek-econ-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.ek-econ-head h3{margin:0;color:#ffe2a3}
.ek-econ-scope{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7fdcae;border:1px solid #2f7a59;border-radius:999px;padding:3px 9px;background:#0f3226}
.ek-econ-card>.muted{margin:0}
.ek-econ-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.ek-econ-grid label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#d2e3f1;padding:9px;border-radius:9px;border:1px solid transparent}
.ek-econ-grid small{font-weight:400;color:#8fb0c9;font-size:11px;line-height:1.35}
.ek-econ input{width:100%;min-width:0;padding:8px 10px;border-radius:8px;border:1px solid #46698a;background:#071729;color:#f2f8ff;font:inherit}
.ek-econ-table td small{display:block;color:#8fb0c9;font-size:11px;margin-top:2px;max-width:320px}
.ek-econ-table td input{max-width:150px}
.ek-econ-table td:last-child{color:#cfe0ee;font-size:12px;white-space:nowrap}
.ek-econ-changed,.ek-econ-grid label.ek-econ-changed{background:#2d2412;border-color:#6f5a33}
.ek-econ-note{font-size:11px}
.ek-grant-form fieldset>.ek-grant-wide{grid-column:1/-1;margin:0}
@media(max-width:650px){
 .ek-econ-table thead{display:none}
 .ek-econ-table,.ek-econ-table tbody{display:block;width:100%}
 .ek-econ-table tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:11px 2px;border-bottom:1px solid #1d3a57}
 .ek-econ-table td{display:block;border:0!important;padding:0!important;white-space:normal!important}
 .ek-econ-table td:first-child{grid-column:1/-1}
 .ek-econ-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#9fc1d9;margin-bottom:4px}
 .ek-econ-table td input{max-width:none}
 .ek-econ-head{display:grid;gap:6px}.ek-econ-scope{justify-self:start}
}

/* v4.8.3 Admin → Economy dashboard */
.ek-stat-static{cursor:default}
.ek-stat-up strong{color:#ffcf8a}.ek-stat-down strong{color:#7fdcae}
.ek-stats-picker{display:flex;gap:6px;flex-wrap:wrap}
.ek-stats-picker button{min-height:34px;padding:5px 12px;border-radius:999px!important;background:#0a2038!important;border:1px solid #365f80!important;color:#cfe0ee;font-size:12px;font-weight:700}
.ek-stats-picker button.on{background:#183a5c!important;border-color:#d9ac5a!important;color:#ffe2a3}
.ek-stats-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.ek-stats-mini td:last-child,.ek-stats-mini th:last-child{text-align:right}
.ek-stats-top{margin:0;padding-left:20px;display:grid;gap:6px}
.ek-stats-top li span{float:right;color:#ffe2a3;font-weight:800}.ek-stats-top small{color:#8fb0c9}
/* ===== client/css/16_trading_post.css ===== */
/* Everkin Trading Post: warm parchment panels on the night-sky game frame (matches the approved mockup). */
.tp,.tp-backdrop,#ek-confirm{--tp-paper:#f3e6c9;--tp-paper-2:#f8efdc;--tp-paper-3:#ead9b4;--tp-edge:#c9a96d;--tp-edge-2:#b48f50;--tp-ink:#2f2114;--tp-ink-2:#5e4630;--tp-faint:#9b8364;
 --tp-gold-1:#f8d77f;--tp-gold-2:#dca543;--tp-navy:#16223a;--tp-navy-2:#22314f;--tp-tile:#1b2540}
.tp{display:grid;gap:14px;color:var(--tp-ink);font-family:Inter,'Segoe UI',system-ui,sans-serif}
.tp-panel{position:relative;background:linear-gradient(180deg,var(--tp-paper-2),var(--tp-paper));border:1px solid var(--tp-edge);border-radius:14px;
 box-shadow:inset 0 0 0 3px #fbf5e8,inset 0 0 0 4px #dcc395,0 14px 34px #0007}
.tp h1,.tp h2,.tp h3{font-family:'Everkin Serif',Georgia,serif;color:var(--tp-ink);margin:0}
.tp-faint{color:var(--tp-faint);font-size:12px}
.tp-id{position:absolute;top:9px;right:12px;font-size:11px;letter-spacing:.02em;color:#ad9670;opacity:.8;font-variant-numeric:tabular-nums}

/* Header */
.tp-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;flex-wrap:wrap}
.tp-hero-title{display:flex;gap:14px;align-items:center;min-width:0}
.tp-hero-ico{width:46px;height:46px;color:#5b3f1f;stroke-width:1.5}
.tp-hero h1{font-size:clamp(28px,3.2vw,38px);line-height:1.05}
.tp-hero p{margin:4px 0 0;color:var(--tp-ink-2);font-size:13px;max-width:560px}
.tp-hero-actions{display:flex;gap:8px;flex-wrap:wrap}

/* Buttons */
.tp-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 18px!important;border-radius:9px!important;font-weight:800;font-size:14px;cursor:pointer;transition:filter .15s,transform .15s}
.tp-btn:hover:not(:disabled){filter:brightness(1.07)}.tp-btn:active:not(:disabled){transform:translateY(1px)}.tp-btn:disabled{opacity:.5;cursor:not-allowed}
.tp-btn-gold{background:linear-gradient(180deg,var(--tp-gold-1),var(--tp-gold-2))!important;border:1px solid #fff0bf!important;color:#2a1c0b!important;box-shadow:inset 0 1px #fff8d8,0 4px 12px #8a5d1a55}
.tp-btn-dark{background:linear-gradient(180deg,var(--tp-navy-2),var(--tp-navy))!important;border:1px solid #0d1426!important;color:#f3e6c9!important;box-shadow:inset 0 1px #ffffff1a}
.tp-btn-dark.is-on{outline:2px solid var(--tp-gold-2);outline-offset:1px}
.tp-btn-ghost{background:#fbf5e8!important;border:1px solid var(--tp-edge-2)!important;color:var(--tp-ink)!important}
.tp-btn .ek-ico{width:18px;height:18px}
.tp-wide{width:100%;margin-top:12px;min-height:46px;font-size:15px}
.tp-badge{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#c8442f;color:#fff;font-size:11px;font-weight:900;display:grid;place-items:center;border:2px solid var(--tp-paper)}
.ek-nav-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:2px;border-radius:999px;background:#c8442f;color:#fff;font-size:10px;font-weight:900}
nav.bottom .ek-nav-badge{position:absolute;top:2px;right:18%;margin:0}
nav.bottom button{position:relative}

/* Toolbar */
.tp-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,170px)) minmax(0,1fr);gap:10px;padding:10px;border-radius:12px;background:#0d1a2e;border:1px solid #2c4562}
.tp-select{position:relative;display:flex;align-items:center;gap:6px;background:#16243b;border:1px solid #3a5674;border-radius:8px;padding:0 10px;color:#e8dcc2;min-height:42px}
.tp-select .ek-ico{width:16px;height:16px;flex:none;opacity:.8}
.tp-select select{flex:1;min-width:0;background:transparent;border:0;color:inherit;font-size:13px;font-weight:600;font-family:inherit;padding:10px 0;appearance:auto;margin:0!important;width:auto!important;min-height:0!important}
.tp-select select option{color:#111}
.tp-search{display:flex;align-items:center;gap:6px;background:#16243b;border:1px solid #3a5674;border-radius:8px;padding:0 4px 0 12px;min-height:42px;color:#e8dcc2}
.tp-search input{flex:1;min-width:0;background:transparent!important;border:0!important;color:#f3ead7!important;font-size:13px;padding:10px 0!important;margin:0!important;outline:none;width:auto!important;min-height:0!important}
.tp-search button{background:transparent!important;border:0!important;color:#e8dcc2;min-height:36px;padding:0 8px!important}
.tp-search:focus-within,.tp-select:focus-within{outline:2px solid #e3b25c;outline-offset:1px}

/* Layout */
.tp-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);gap:14px;align-items:start}
.tp-list{padding:10px;display:grid;gap:10px;background:linear-gradient(180deg,#e9d8b2,#e2cea4);min-height:220px}
.tp-back{display:flex;align-items:center;gap:14px}
.tp-section-title{color:#f5e6c4!important;font-size:24px}
.tp-error{background:#5a1f1a;color:#ffd7cf;border:1px solid #b2574a;border-radius:10px;padding:10px 14px;margin:0}
.tp-empty{display:grid;justify-items:center;gap:10px;padding:40px 16px;text-align:center;color:var(--tp-ink-2)}
.tp-empty .ek-ico{width:44px;height:44px;color:#8a6a3c}

/* Listing card */
.tp-card{position:relative;display:grid;grid-template-columns:136px minmax(0,1fr) auto;gap:16px;align-items:center;text-align:left;width:100%;padding:10px 14px 10px 10px!important;border-radius:12px!important;
 background:linear-gradient(180deg,#fdf8ec,#f6ebd3)!important;border:1px solid var(--tp-edge)!important;color:var(--tp-ink)!important;box-shadow:0 2px 0 #c5a66a,0 6px 14px #4a33151f;cursor:pointer;transition:transform .15s,box-shadow .15s}
.tp-card:hover{transform:translateY(-1px);box-shadow:0 2px 0 #c5a66a,0 10px 20px #4a331533}
.tp-card.is-selected{border:2px solid #e2ae45!important;box-shadow:0 0 0 3px #f6d58a88,0 10px 22px #8a5d1a40}
.tp-card-preview{cursor:default;margin:6px 0 14px}
.tp-card-art{width:136px;height:108px;border-radius:9px;overflow:hidden;background:radial-gradient(circle at 50% 40%,#3d6aa0,#16264a 75%);border:1px solid #8c6f3f;display:grid;place-items:center}
.tp-card-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 8px #0008)}
.tp-card-body{display:grid;gap:3px;min-width:0}
.tp-card-title{font:700 19px/1.2 'Everkin Serif',Georgia,serif;color:var(--tp-ink)}
.tp-by{font-size:12px;color:var(--tp-ink-2);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tp-by em{font-style:normal;color:#2c5d8f;font-weight:700}
.tp-card-msg{font-size:12px;color:var(--tp-ink-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4;max-width:300px}
.tp-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--tp-faint);margin-top:4px}
.tp-meta span{display:inline-flex;align-items:center;gap:4px}
.tp-mi{width:13px;height:13px}
.tp-chip{font-size:10px;font-weight:800;padding:2px 7px;border-radius:999px;letter-spacing:.02em}
.tp-chip-mine{background:#e7d3a5;color:#5a3f1c;border:1px solid #c9a96d}
.tp-chip-offer{background:#d6e6d3;color:#1f5232;border:1px solid #8fb999}
.tp-status{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;padding:2px 7px;border-radius:999px;background:#e2d5bb;color:#5e4630}
.tp-status-completed,.tp-status-accepted{background:#cfe6d2;color:#1d5a34}
.tp-status-cancelled,.tp-status-declined,.tp-status-withdrawn{background:#ecd0c8;color:#7c2c1e}
.tp-status-expired{background:#e1dccf;color:#6b5f4b}

/* Item tiles (dark gems on parchment, like the mockup) */
.tp-items-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.tp-card>.tp-items-row{flex-wrap:nowrap;justify-content:flex-end;padding-top:12px}
.tp-tile{position:relative;flex:none;width:52px;height:52px;border-radius:8px;background:radial-gradient(circle at 50% 35%,#2d3b60,var(--tp-tile) 72%);border:2px solid #4b3d24;display:grid;place-items:center;box-shadow:inset 0 0 0 1px #ffffff14,0 2px 4px #0004}
.tp-tile img{width:86%;height:86%;object-fit:contain;filter:drop-shadow(0 2px 3px #000a)}
.tp-count{position:absolute;right:2px;bottom:1px;min-width:16px;padding:0 4px;border-radius:5px;background:#0d1322dd;color:#fff;font-size:10px;font-weight:900;line-height:16px;text-align:center}
.tp-check{position:absolute;top:-6px;right:-6px;width:20px;height:20px;border-radius:50%;background:#f2c55e;color:#2a1c0b;font-style:normal;font-weight:900;font-size:12px;display:grid;place-items:center;border:2px solid #fff3cf}
.tp-r-uncommon{border-color:#3f8f5a}.tp-r-rare{border-color:#3f78c6}.tp-r-epic{border-color:#8b5bd6}.tp-r-legendary{border-color:#e0a536;box-shadow:0 0 10px #f0b54d66}.tp-r-ascendant{border-color:#ff8ad6;box-shadow:0 0 12px #ff8ad666}
.tp-more{display:grid;place-items:center;width:52px;height:52px;border-radius:8px;background:#e6d5ae;border:1px dashed var(--tp-edge-2);color:var(--tp-ink-2);font-size:11px;font-weight:800;text-align:center;line-height:1.1}
.tp-gold-tile{background:radial-gradient(circle at 50% 35%,#7a5a1d,#3b2a10 75%);border-color:#c9973e}
.tp-coin{width:28px!important;height:28px!important;color:#ffd36b}

/* Detail panel */
.tp-detail{padding:18px;position:sticky;top:120px;display:grid;gap:12px;max-height:calc(100dvh - 140px);overflow:auto}
.tp-detail-empty{min-height:220px;place-items:center;color:var(--tp-ink-2);text-align:center}
.tp-detail-head{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:center}
.tp-detail-art{width:120px;height:110px;border-radius:10px;overflow:hidden;background:radial-gradient(circle at 50% 40%,#3d6aa0,#16264a 75%);border:1px solid #8c6f3f;display:grid;place-items:center}
.tp-detail-art img{width:100%;height:100%;object-fit:contain}
.tp-detail h2{font-size:24px;padding-right:56px}
.tp-when{margin:2px 0 0;font-size:12px;color:var(--tp-ink-2)}
.tp-message{background:#fbf6ea;border:1px solid #dcc595;border-radius:10px;padding:10px 12px;font-size:13px;color:var(--tp-ink-2);line-height:1.5}
.tp-detail h3{font-size:18px;margin-top:4px}.tp-detail h3 span{font-family:Inter,system-ui,sans-serif;font-size:15px;color:var(--tp-ink-2)}
.tp-grid-detail{display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:8px}
.tp-grid-detail .tp-tile{width:100%;height:auto;aspect-ratio:1}
.tp-offers-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;border-top:1px solid #dcc595;padding-top:10px}
.tp-offers{display:grid;gap:8px}
.tp-offer{background:#fbf6ea;border:1px solid #dcc595;border-radius:10px;padding:10px 12px;display:grid;gap:8px}
.tp-offer-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--tp-faint)}
.tp-offer-top b{color:var(--tp-ink);font-size:13px}
.tp-offer .tp-tile{width:46px;height:46px}
.tp-offer-msg{margin:0;font-size:12px;color:var(--tp-ink-2);font-style:italic}
.tp-offer-actions{display:flex;justify-content:flex-end;gap:8px}
.tp-offer-actions .tp-btn{min-height:36px;padding:6px 14px!important;font-size:13px}
.tp-closed-note{margin:6px 0 0;padding:10px 12px;border-radius:10px;background:#e8dcc3;color:var(--tp-ink-2);font-size:13px}
.tp-pages{display:flex;justify-content:center;align-items:center;gap:12px;padding:6px;color:var(--tp-ink-2);font-weight:700;font-size:13px}
.tp-pages .tp-btn{min-height:34px;padding:4px 14px!important}

/* Popups */
.tp-backdrop{z-index:10040}
.tp-modal{width:min(780px,100%);padding:0!important;background:linear-gradient(180deg,#f8efdc,#efdfbd)!important;border:2px solid var(--tp-edge)!important;color:var(--tp-ink)!important;display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden!important;font-family:Inter,'Segoe UI',system-ui,sans-serif}
.tp-modal-offer{width:min(560px,100%)}
.tp-modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 10px}
.tp-modal-head h2{font:700 24px 'Everkin Serif',Georgia,serif;color:var(--tp-ink);margin:0}
.tp-x{background:transparent!important;border:0!important;color:var(--tp-ink)!important;font-size:22px;min-height:36px;width:36px;padding:0!important}
.tp-modal-body{padding:0 20px 14px;overflow:auto;flex:1}
.tp-modal-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 20px 16px;border-top:1px solid #dcc595;background:#f3e5c6}
.tp-modal .tp-error{margin:0 20px 10px}
.tp-steps{display:flex;justify-content:space-around;gap:6px;list-style:none;margin:0 20px 12px;padding:10px;border-top:1px solid #dcc595;border-bottom:1px solid #dcc595}
.tp-steps li{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#9b8364}
.tp-steps li span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:2px solid #c9b48a;font-size:12px}
.tp-steps li.current{color:var(--tp-ink)}.tp-steps li.current span{background:#3a2a17;border-color:#3a2a17;color:#ffe2a3}
.tp-steps li.done{color:#2f6a43}.tp-steps li.done span{background:#2f6a43;border-color:#2f6a43;color:#fff}
.tp-modal-sub{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:4px 0 10px;font-size:14px;color:var(--tp-ink-2)}
.tp-modal-sub b{font-size:13px;color:var(--tp-ink)}
.tp-pick-tabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:10px;padding:4px;background:#e9d9b6;border-radius:9px}
.tp-pick-tabs button{flex:1;min-height:34px;padding:6px 10px!important;border-radius:7px!important;background:transparent!important;border:0!important;color:var(--tp-ink-2)!important;font-weight:700;font-size:12px}
.tp-pick-tabs button.on{background:#3a2a17!important;color:#ffe9b8!important}
.tp-pick-tools{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:8px;margin-bottom:10px}
.tp-modal .tp-search,.tp-modal .tp-select{background:#fffaf0;border-color:var(--tp-edge);color:var(--tp-ink)}
.tp-modal .tp-search input{color:var(--tp-ink)!important}
.tp-pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;min-height:120px}
.tp-pick{display:grid;gap:4px;justify-items:center}
.tp-pick-main{display:grid;justify-items:center;gap:5px;width:100%;padding:8px 4px!important;border-radius:10px!important;background:#fbf5e8!important;border:1px solid #dcc595!important;color:var(--tp-ink)!important;min-height:0!important}
.tp-pick-main:hover:not(:disabled){border-color:#c9973e!important}
.tp-pick-main:disabled{opacity:.55}
.tp-pick.is-picked .tp-pick-main{background:#fff3cf!important;border:2px solid #e2ae45!important;box-shadow:0 0 0 2px #f6d58a66}
.tp-pick-main .tp-tile{width:58px;height:58px}
.tp-pick-name{font-size:11px;font-weight:700;line-height:1.2;text-align:center;color:var(--tp-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:26px}
.tp-pick-n{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:800;color:#7a5418}
.tp-pick-n button{width:20px;height:20px;min-height:0!important;padding:0!important;border-radius:50%!important;background:#3a2a17!important;color:#ffe9b8!important;border:0!important;font-weight:900;line-height:1}
.tp-pick-empty{grid-column:1/-1;text-align:center;padding:24px}
.tp-pick-pages{gap:4px}
.tp-pick-pages button{min-width:32px;min-height:32px;padding:0!important;border-radius:6px!important;background:#fbf5e8!important;border:1px solid #dcc595!important;color:var(--tp-ink)!important;font-weight:700}
.tp-pick-pages button.on{border:2px solid #3a2a17!important}
.tp-form{display:grid;gap:12px}
.tp-form label,.tp-gold-label,.tp-msg-label{display:grid;gap:5px;font-size:13px;font-weight:800;color:var(--tp-ink)}
.tp-form input,.tp-form textarea,.tp-form select,.tp-msg-label textarea{width:100%;padding:10px 12px;border-radius:8px;border:1px solid var(--tp-edge);background:#fffaf0;color:var(--tp-ink);font:inherit;font-weight:500}
.tp-form small,.tp-msg-label small{justify-self:end;font-weight:500;color:var(--tp-faint)}
.tp-form-items{display:grid;gap:6px;font-size:13px;font-weight:800}
.tp-review-notes{display:grid;gap:6px;margin:0;padding-left:18px;font-size:13px;color:var(--tp-ink-2);line-height:1.5}
.tp-offer-target{position:relative;display:flex;gap:12px;align-items:center;padding:10px;border-radius:10px;background:#fbf6ea;border:1px solid #dcc595;margin-bottom:12px}
.tp-offer-target-art{width:86px;height:64px;border-radius:8px;overflow:hidden;background:radial-gradient(circle at 50% 40%,#3d6aa0,#16264a 75%);display:grid;place-items:center;flex:none}
.tp-offer-target-art img{width:100%;height:100%;object-fit:contain}
.tp-offer-target b{font:700 19px 'Everkin Serif',Georgia,serif;display:block}
.tp-slots{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;margin-bottom:10px}
.tp-slot{aspect-ratio:1;border-radius:8px;border:1px dashed #c9b48a;background:#f6ecd5;color:#b89f73;display:grid;place-items:center;font-size:20px;padding:0!important;min-height:0!important}
.tp-slot.is-full{border:0;background:transparent!important;cursor:pointer}
.tp-slot .tp-tile{width:100%;height:100%}
.tp-offer-picker{border:1px solid #dcc595;border-radius:10px;padding:8px 10px;margin-bottom:12px;background:#f6ecd5}
.tp-offer-picker summary{font-weight:800;font-size:13px;cursor:pointer;padding:4px 0;background:transparent;color:var(--tp-ink)}
.tp-offer-picker[open] summary{margin-bottom:8px}
.tp-gold-input{display:flex;align-items:center;gap:8px;padding:4px 6px 4px 10px;border-radius:9px;border:1px solid var(--tp-edge);background:#fffaf0}
.tp-gold-input input{flex:1;min-width:0;border:0!important;background:transparent!important;font-size:16px!important;font-weight:800;color:var(--tp-ink)!important;padding:8px 0!important;margin:0!important;outline:none}
.tp-steppers{display:flex;gap:4px}
.tp-steppers button{min-height:30px!important;padding:3px 8px!important;border-radius:6px!important;background:#f0e2c2!important;border:1px solid var(--tp-edge)!important;color:var(--tp-ink)!important;font-size:11px;font-weight:800}
.tp-gold-label{margin-bottom:10px}.tp-gold-label .tp-faint{font-weight:500}
.tp-hold-note{margin:8px 0 0}

/* Inventory: locked items */
.inv-locked-note{display:block;font-size:10px;color:#e6c27a;text-align:center;margin-top:3px}

/* Responsive */
@media(max-width:1180px){.tp-card{grid-template-columns:110px minmax(0,1fr)}.tp-card-art{width:110px;height:92px}.tp-card>.tp-items-row{grid-column:1/-1;justify-content:flex-start;padding-top:0}}
@media(max-width:980px){.tp-layout{grid-template-columns:1fr}.tp-detail{position:static;max-height:none}.tp-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.tp-toolbar .tp-search{grid-column:1/-1}}
@media(max-width:600px){.tp-hero{padding:14px}.tp-hero h1{font-size:26px}.tp-hero p{font-size:12px}.tp-hero-actions{width:100%;flex-wrap:nowrap}.tp-hero-actions .tp-btn{flex:1;padding:8px 8px!important;font-size:13px;white-space:nowrap;min-height:40px}.tp-hero-actions .tp-btn .ek-ico{display:none}.tp-hero-ico{width:34px;height:34px}
 .tp-toolbar{grid-template-columns:1fr 1fr}.tp-toolbar .tp-select:nth-child(3){grid-column:1/-1}
 .tp-card{grid-template-columns:84px minmax(0,1fr);gap:10px;padding:8px!important}.tp-card-art{width:84px;height:76px}.tp-card-title{font-size:16px}.tp-tile,.tp-more{width:44px;height:44px}
 .tp-detail-head{grid-template-columns:90px minmax(0,1fr)}.tp-detail-art{width:90px;height:84px}.tp-detail h2{font-size:20px}
 .tp-modal-backdrop.tp-backdrop{padding:0;place-items:end stretch}.tp-modal{max-height:94dvh;border-radius:16px 16px 0 0!important;width:100%}
 .tp-steps li{font-size:11px;gap:4px}.tp-steps li span{width:22px;height:22px}.tp-pick-tools{grid-template-columns:1fr}.tp-pick-grid{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}
 .tp-slots{grid-template-columns:repeat(5,minmax(0,1fr))}.tp-steppers button{padding:3px 6px!important}}
@media(prefers-reduced-motion:reduce){.tp-card,.tp-btn{transition:none}}

/* Keep game-wide element styles out of the parchment popups */
.tp-modal label,.tp-modal p,.tp-modal span,.tp-modal small,.tp-modal li,.tp-modal b{color:inherit}
.tp-modal .tp-faint{color:var(--tp-faint)}
.tp-modal .tp-pick-name,.tp-modal .tp-modal-sub b,.tp-modal .tp-offer-target b{color:var(--tp-ink)}
.tp-modal .tp-modal-sub span{color:var(--tp-ink-2)}
.tp-modal .tp-select select{color:var(--tp-ink)}
.tp-modal .tp-search .ek-ico{color:var(--tp-ink-2)}
.tp-modal summary{background:transparent!important;border:0!important;padding:4px 0!important;color:var(--tp-ink)!important}
.tp-modal input,.tp-modal textarea,.tp-modal select{box-shadow:none}
.tp-modal textarea{min-height:70px;resize:vertical}
.tp-modal .tp-steps li span{color:inherit}
.tp-modal .tp-steps li.current span{color:#ffe2a3}
.tp-modal .tp-steps li.done span{color:#fff}
.tp-modal .tp-count{color:#fff}
.tp-modal .tp-check{color:#2a1c0b}
.tp-modal .tp-pick-n button{color:#ffe9b8!important}
.tp-modal .tp-steppers button{color:var(--tp-ink)!important}
.tp-modal .tp-btn-ghost{color:var(--tp-ink)!important}
.tp-modal .tp-gold-input input::placeholder,.tp-modal input::placeholder,.tp-modal textarea::placeholder{color:#a8916f}
.tp-detail .tp-count,.tp-list .tp-count{color:#fff}
.tp-pick.is-picked .tp-pick-main:disabled{opacity:1}
/* Kinmail shortcut next to player names */
.tp-msg-btn{display:inline-flex!important;align-items:center;gap:4px;min-height:26px!important;padding:2px 9px!important;margin-left:6px;border-radius:999px!important;background:#fbf5e8!important;border:1px solid var(--tp-edge)!important;color:#2c5d8f!important;font-size:11.5px;font-weight:800;vertical-align:1px}
.tp-msg-btn .ek-ico{width:14px;height:14px}
.tp-msg-btn:hover{border-color:#2c5d8f!important}
/* ===== client/css/18_mail.css ===== */
/* Everkin Kinmail: parchment post office (mailbox page) + night-sky notification drawer and toasts. */
.km,.km-backdrop,.km-drawer,.km-toasts{--tp-paper:#f3e6c9;--tp-paper-2:#f8efdc;--tp-paper-3:#ead9b4;--tp-edge:#c9a96d;--tp-edge-2:#b48f50;--tp-ink:#2f2114;--tp-ink-2:#5e4630;--tp-faint:#9b8364;
 --tp-gold-1:#f8d77f;--tp-gold-2:#dca543;--tp-navy:#16223a;--tp-navy-2:#22314f}

/* ---------------------------------------------------------------- header buttons */
.km-hbtn{position:relative;display:grid!important;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px!important;padding:0!important;border-radius:999px!important;background:#112a45!important;border:1px solid #3d6688!important;color:#e7f1fb!important}
.km-hbtn .ek-ico{width:19px;height:19px}
.km-hbtn:hover,.km-hbtn.is-on{border-color:#d9ac5a!important;color:#ffe2a3!important}
.km-count{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d0452f;color:#fff;font-size:10.5px;font-weight:900;line-height:19px;text-align:center;border:2px solid #061c36}
.km-count[hidden]{display:none}

/* ---------------------------------------------------------------- mailbox layout */
.km{display:grid;grid-template-columns:230px minmax(300px,440px) minmax(0,1fr);gap:14px;align-items:start;font-family:Inter,'Segoe UI',system-ui,sans-serif}
.km button{white-space:normal}
.km-side{position:sticky;top:96px;display:flex;flex-direction:column;gap:2px;padding:16px 10px;border-radius:14px;background:#0b1d33cc;border:1px solid #2c4a68;min-height:520px}
.km-side h2{display:flex;align-items:center;gap:9px;margin:2px 8px 14px;font:700 24px 'Everkin Serif',Georgia,serif;color:#f5d891}
.km-side h2 .ek-ico{width:24px;height:24px;color:#f3cf82}
.km-compose{margin:0 4px 12px;width:calc(100% - 8px)}
.km-folders{display:flex;flex-direction:column;gap:2px}
.km-f{display:flex!important;align-items:center;gap:11px;width:100%;min-height:40px!important;padding:8px 10px!important;border-radius:9px!important;background:transparent!important;border:1px solid transparent!important;color:#cfe0ee!important;font-size:13.5px;text-align:left}
.km-f .ek-ico{width:18px;height:18px;color:#9fc1d9;flex:none}
.km-f span{flex:1;min-width:0}
.km-f em{font-style:normal;font-size:11px;font-weight:800;background:#d0452f;color:#fff;border-radius:999px;padding:1px 7px}
.km-f em.is-soft{background:#28405e;color:#cfe0ee}
.km-f:hover{background:#13294a!important}
.km-f.on{background:#1d3a5c!important;color:#ffe2a3!important;border-color:#6a8fb0!important}.km-f.on .ek-ico{color:#f3cf82}
.km-sep{height:1px;background:#2c4a68;margin:8px 6px}
.km-folders small{padding:2px 10px;color:#7f9cb6;font-size:10px;letter-spacing:.1em;text-transform:uppercase}
.km-quota{margin-top:auto;padding:14px 10px 4px;font-size:11px;color:#9fbcd4;display:grid;gap:6px}
.km-bar{height:6px;border-radius:9px;background:#22385a;overflow:hidden}.km-bar i{display:block;height:100%;background:linear-gradient(90deg,#f3cf82,#d9a74b)}

/* list */
.km-list{padding:0!important;overflow:hidden;display:flex;flex-direction:column;min-height:520px;color:var(--tp-ink)}
.km-list-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 16px 10px;border-bottom:1px solid #dcc595}
.km-list-head h2{font:700 24px 'Everkin Serif',Georgia,serif;color:var(--tp-ink);margin:0}
.km-small{min-height:32px!important;padding:5px 11px!important;font-size:12px!important}
.km-search{margin:12px 14px 8px}
.km-input{display:flex;align-items:center;gap:8px;width:100%;padding:0 11px;border-radius:8px;background:#fffaf0!important;border:1px solid var(--tp-edge)!important;color:var(--tp-ink)!important;font:500 14px Inter,system-ui,sans-serif}
.km-input .ek-ico{width:17px;height:17px;color:var(--tp-faint);flex:none}
.km-input input,input.km-input,textarea.km-input{font-weight:500!important;background:transparent!important;border:0!important;color:var(--tp-ink)!important;margin:0!important;padding:10px 0!important;font:inherit;width:100%;outline:none;box-shadow:none}
input.km-input,textarea.km-input{font-weight:500;padding:10px 11px!important;background:#fffaf0!important;border:1px solid var(--tp-edge)!important}
.km-input:focus-within,input.km-input:focus,textarea.km-input:focus{border-color:#b07a25!important;box-shadow:0 0 0 3px #e8b85a40}
.km-input input::placeholder,textarea.km-input::placeholder,.km-reply textarea::placeholder{color:#a8916f}
.km-chips{display:flex;gap:6px;padding:2px 14px 10px}
.km-chips button{min-height:30px!important;padding:4px 12px!important;border-radius:999px!important;background:#ead9b4!important;border:0!important;color:#5e4630!important;font-size:12px;font-weight:700}
.km-chips button.on{background:#3a2a17!important;color:#ffe9b8!important}
.km-rows{display:flex;flex-direction:column;flex:1;overflow:auto;max-height:calc(100vh - 290px);min-height:200px}
.km-row{position:relative;display:grid!important;grid-template-columns:40px minmax(0,1fr) auto;gap:11px;align-items:center;width:100%;min-height:72px!important;padding:11px 16px 11px 18px!important;border:0!important;border-top:1px solid #e6d3aa!important;border-radius:0!important;background:transparent!important;color:var(--tp-ink)!important;text-align:left}
.km-row:hover{background:#fbf1d9!important}
.km-row.is-unread{background:#fff6dc!important}
.km-row.is-unread:before{content:'';position:absolute;left:6px;top:50%;width:7px;height:7px;margin-top:-3px;border-radius:50%;background:#d0452f}
.km-row.is-sel{background:#fbe7b5!important;box-shadow:inset 3px 0 #dca543}
.km-row-static{cursor:default}
.km-row-main{display:grid;gap:1px;min-width:0}
.km-row b{font-size:14px;color:var(--tp-ink)}.km-row.is-unread b{font-weight:900}
.km-sub{font-size:13px;color:#4e3a26;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.km-row.is-unread .km-sub{font-weight:700;color:var(--tp-ink)}
.km-pre{font-size:12px;color:var(--tp-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.km-row time{font-size:11px;color:var(--tp-faint);align-self:start;padding-top:3px}
.km-pager{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid #dcc595;font-size:12px;color:var(--tp-ink-2)}
.km-empty{display:grid;justify-items:center;gap:10px;margin:0;padding:48px 24px;color:var(--tp-faint);text-align:center;font-size:14px}
.km-empty .ek-ico{width:34px;height:34px;opacity:.6}

/* avatars + tags */
.km-av{--s:40px;width:var(--s);height:var(--s);border-radius:50%;flex:none;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 38%,#2c4a7a,#122241);box-shadow:0 0 0 2px #fbf5e8,0 0 0 3px #c9a96d}
.km-av img{width:118%;height:118%;object-fit:cover;object-position:50% 20%}
.km-av-sys,.km-av-kind{background:#3a2a17;color:#ffd77f}
.km-av .ek-ico{width:calc(var(--s)*.48);height:calc(var(--s)*.48)}
.km-k-trade{background:#264a2b;color:#bff0b0}.km-k-pvp{background:#5d1f1a;color:#ffc4b5}.km-k-guild{background:#2b2f6b;color:#cdd3ff}.km-k-event{background:#4a3613;color:#ffd77f}.km-k-staff{background:#1f3c5b;color:#bfe0ff}
.km-tag{display:inline-block;margin-left:7px;padding:1px 7px;border-radius:999px;font-size:9.5px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;vertical-align:2px}
.km-tag-trade{background:#e6f0da;color:#3c6a2a}.km-tag-pvp{background:#f6d9d2;color:#8b2a1c}.km-tag-guild{background:#dfe4f6;color:#2d3f8a}.km-tag-event{background:#f6e7c6;color:#7a5418}.km-tag-staff{background:#dbe9f6;color:#1f4c78}
.km-tag-needs{background:#d0452f;color:#fff}

/* reader */
.km-read{display:flex;flex-direction:column;gap:14px;padding:22px 24px!important;color:var(--tp-ink);min-height:520px}
.km-read-empty{display:grid;place-items:center}
.km-read-empty p{display:grid;justify-items:center;gap:10px;color:var(--tp-faint);text-align:center;max-width:320px}
.km-read-empty .ek-ico{width:40px;height:40px;opacity:.55}
.km-back{display:none!important}
.km-from{display:flex;gap:16px;align-items:center}
.km-from h2{font:700 clamp(22px,2.2vw,30px)/1.15 'Everkin Serif',Georgia,serif;color:var(--tp-ink);margin:0;overflow-wrap:anywhere}
.km-meta{margin:4px 0 0;font-size:13px;color:var(--tp-ink-2)}.km-meta em{font-style:normal;color:#2c5d8f;font-weight:700}
.km-letter{background:#fffaf0;border:1px solid #dcc595;border-radius:12px;padding:20px 22px;font:16px/1.7 'Everkin Serif',Georgia,serif;color:#3b2a1a;box-shadow:inset 0 0 40px #f1e2bf;white-space:pre-wrap;overflow-wrap:anywhere}
.km-attach{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px dashed var(--tp-edge);border-radius:10px;background:#f6ecd5;font-size:13px;color:var(--tp-ink-2)}
.km-attach>.ek-ico{width:20px;height:20px;color:#7a5418;flex:none}.km-attach .tp-btn{margin-left:auto;white-space:nowrap}
.km-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.km-acts .tp-btn{min-height:40px;padding:8px 14px!important;font-size:13.5px}
.km-acts-end{margin-left:auto;display:flex;gap:8px}
.km-btn-red{background:#fff1ec!important;border:1px solid #d0452f!important;color:#a22e1d!important}
.km-note{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:#3c6a2a}.km-note .ek-ico{width:16px;height:16px}
.km-reply{display:grid;gap:8px;justify-items:end}
.km-reply textarea{width:100%;min-height:86px;resize:vertical;border-radius:10px;border:1px solid var(--tp-edge)!important;background:#fffaf0!important;color:var(--tp-ink)!important;padding:11px 12px;font:14px/1.5 Inter,system-ui,sans-serif;margin:0}
.km-reply textarea:focus{outline:none;border-color:#b07a25!important;box-shadow:0 0 0 3px #e8b85a40}

/* thread: "earlier in this conversation" as chat bubbles (Option B) */
.km-thread{margin:0!important}
.km-thread>summary{display:inline-flex!important;align-items:center;gap:6px;padding:5px 12px!important;border-radius:999px!important;background:#ead9b4!important;border:0!important;color:#5e4630!important;font-size:12px;font-weight:800;list-style:none}
.km-thread>summary::-webkit-details-marker{display:none}
.km-thread>summary:before{content:'▸';transition:transform .15s}.km-thread[open]>summary:before{transform:rotate(90deg)}
.km-bubbles{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding:12px;border-radius:12px;background:#efe1c2}
.km-bubble{max-width:82%;padding:9px 13px;border-radius:14px 14px 14px 4px;background:#fffaf0;border:1px solid #e0cb9e;color:#3b2a1a}
.km-bubble p{margin:0;color:#3b2a1a;font-size:13.5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.km-bubble small{display:block;margin-top:4px;font-size:11px;color:var(--tp-faint)}
.km-bubble.is-mine{align-self:flex-end;border-radius:14px 14px 4px 14px;background:#22385a;border-color:#22385a;color:#eef5ff}
.km-bubble.is-mine p{color:#eef5ff}.km-bubble.is-mine small{color:#a8c1db}

/* ---------------------------------------------------------------- compose + report popups */
.km-modal{width:min(560px,100%)}
.km-modal-sm{width:min(470px,100%)}
.km-form{display:grid;gap:12px;padding-top:4px!important}
.km-field{display:grid;gap:5px;font-size:13px;font-weight:800;color:var(--tp-ink)!important}
.km-to{position:relative;display:block}
.km-sugg{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:5;display:flex;flex-direction:column;background:#fff;border:1px solid var(--tp-edge);border-radius:9px;box-shadow:0 12px 26px #0003;overflow:hidden}
.km-sugg:empty{display:none}
.km-sugg button{display:flex!important;align-items:center;gap:9px;width:100%;min-height:42px!important;padding:6px 11px!important;border:0!important;border-radius:0!important;background:#fff!important;color:var(--tp-ink)!important;font-size:13.5px;text-align:left}
.km-sugg button b{font-weight:700}
.km-sugg button small{margin-left:auto;color:var(--tp-faint);font-weight:500}
.km-sugg button.on,.km-sugg button:hover{background:#fbe7b5!important}
.km-sugg .km-av{box-shadow:none}
.km-counter{justify-self:end;font-weight:500;color:var(--tp-faint)!important;font-size:11px}
.km-reasons{border:0;margin:0;padding:0;display:grid;gap:6px}
.km-reasons legend{font-size:13px;font-weight:800;margin-bottom:6px;color:var(--tp-ink)}
.km-reasons label,.km-check{display:flex;align-items:center;gap:9px;padding:8px 11px;border-radius:9px;background:#fffaf0;border:1px solid #e0cb9e;font-size:13.5px;cursor:pointer;color:var(--tp-ink)}
.km-reasons input,.km-check input{width:18px;height:18px;margin:0;accent-color:#b07a25;flex:none}
.km-check{background:transparent;border:0;padding:2px 0}

/* ---------------------------------------------------------------- bell drawer (Option B tie-in) */
.km-drawer{position:fixed;top:var(--ek-pop-top,72px);right:var(--ek-pop-right,12px);z-index:60;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 90px);display:flex;flex-direction:column;
 background:linear-gradient(180deg,#0d2240,#091a31);border:1px solid #3d6688;border-radius:16px;box-shadow:0 26px 60px #000c;color:#e3eefa;font-family:Inter,'Segoe UI',system-ui,sans-serif;animation:km-drop .16s ease-out}
@keyframes km-drop{from{opacity:0;transform:translateY(-6px)}}
.km-drawer button{white-space:normal}
.km-drawer-head{display:flex;align-items:center;gap:10px;padding:16px 16px 8px 20px}
.km-drawer-head h2{flex:1;margin:0;font:700 25px 'Everkin Serif',Georgia,serif;color:#f5d891}
.km-link{min-height:32px!important;padding:4px 6px!important;background:transparent!important;border:0!important;color:#8fd0ff!important;font-weight:700;font-size:13px}
.km-link:hover{text-decoration:underline}
.km-icon-btn{display:grid!important;place-items:center;width:34px;min-height:34px!important;padding:0!important;border-radius:999px!important;background:transparent!important;border:1px solid #2d4f70!important;color:#cfe0ee!important}
.km-icon-btn .ek-ico{width:16px;height:16px}
.km-drawer-tabs{display:flex;gap:4px;padding:4px 14px 10px;overflow-x:auto;border-bottom:1px solid #22405f;scrollbar-width:none}
.km-drawer-tabs::-webkit-scrollbar{display:none}
.km-drawer-tabs button{display:inline-flex!important;align-items:center;gap:6px;min-height:34px!important;padding:5px 11px!important;border-radius:9px!important;background:transparent!important;border:0!important;color:#cfe0ee!important;font-weight:700;font-size:13px;white-space:nowrap}
.km-drawer-tabs button.on{background:#1d3a5c!important;color:#fff!important}
.km-drawer-tabs b{min-width:18px;padding:0 5px;border-radius:999px;background:#d0452f;color:#fff;font-size:10.5px;line-height:18px;text-align:center}
.km-drawer-body{flex:1;overflow:auto;padding:4px 14px 14px;display:flex;flex-direction:column;gap:8px}
.km-drawer-body h4{margin:12px 4px 2px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#9fbcd4}
.km-drawer-body .km-empty{color:#9fbcd4}
.km-drawer-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;border-top:1px solid #22405f}
.km-drawer-foot .tp-btn{min-height:38px;padding:7px 14px!important;font-size:13px}
.km-card{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:13px 34px 13px 13px;border-radius:13px;background:#10294a;border:1px solid #29496b;cursor:default;text-align:left}
.km-card[role=button]{cursor:pointer}
.km-card[role=button]:hover{border-color:#4f7aa3}
.km-card.is-needs{background:#122e52;border-color:#4a76a0}
.km-card.is-unread{box-shadow:inset 3px 0 #f0c063}
.km-card-body{display:grid;gap:3px;min-width:0}
.km-card-body b{font-size:14.5px;color:#fff}
.km-card-body p{margin:0;font-size:13px;line-height:1.4;color:#c4d6e8;overflow-wrap:anywhere}
.km-card-body small{font-size:11.5px;color:#8ea9c2}
.km-card .km-av{box-shadow:none;border-radius:12px}
.km-card-x{position:absolute;top:8px;right:6px;display:grid!important;place-items:center;width:26px;min-height:26px!important;padding:0!important;border-radius:999px!important;background:transparent!important;border:0!important;color:#7f9cb6!important;opacity:.7}
.km-card-x:hover{opacity:1;color:#fff!important}.km-card-x .ek-ico{width:14px;height:14px}
.km-dot{position:absolute;top:13px;right:32px;width:8px;height:8px;border-radius:50%;background:#f0c063}
.km-acts.is-compact{margin-top:7px;gap:7px}
.km-acts.is-compact .tp-btn{min-height:34px;padding:5px 13px!important;font-size:13px}
.km-drawer .tp-btn-ghost{background:#0b2240!important;border-color:#4a6f94!important;color:#e7f1fb!important}
.km-drawer-mail{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;min-height:58px!important;padding:9px 11px!important;border-radius:11px!important;background:#10294a!important;border:1px solid #29496b!important;color:#e3eefa!important;text-align:left}
.km-drawer-mail.is-unread{box-shadow:inset 3px 0 #f0c063}
.km-drawer-mail span{display:grid;min-width:0}
.km-drawer-mail b{font-size:13.5px;color:#fff}.km-drawer-mail em{font-style:normal;font-size:13px;color:#dbe7f3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.km-drawer-mail small{font-size:12px;color:#8ea9c2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.km-drawer-mail time{font-size:11px;color:#8ea9c2;align-self:start}
.km-drawer-mail .km-av{box-shadow:none}

/* ---------------------------------------------------------------- toasts */
.km-toasts{position:fixed;left:20px;bottom:20px;z-index:70;display:flex;flex-direction:column;gap:8px;width:min(380px,calc(100vw - 24px));pointer-events:none}
.km-toast{pointer-events:auto;display:grid!important;grid-template-columns:38px minmax(0,1fr);gap:11px;align-items:center;width:100%;min-height:60px!important;padding:10px 14px!important;border-radius:13px!important;
 background:#0e2645f2!important;border:1px solid #4a76a0!important;color:#e3eefa!important;text-align:left;box-shadow:0 16px 40px #000a;animation:km-in .25s ease-out;transition:opacity .35s,transform .35s;white-space:normal}
.km-toast b{display:block;font-size:13.5px;font-weight:600;color:#fff}.km-toast b em{font-style:normal;font-weight:800}
.km-toast small{display:block;font-size:12.5px;color:#bcd2e6;margin-top:2px}
.km-toast .km-av{box-shadow:none}
.km-toast.is-leaving{opacity:0;transform:translateX(-14px)}
@keyframes km-in{from{opacity:0;transform:translateY(10px)}}

/* ---------------------------------------------------------------- responsive */
@media(max-width:1180px){.km{grid-template-columns:200px minmax(0,1fr)}.km-read{grid-column:2}.km-side{grid-row:span 2}}
@media(max-width:980px){
 .km{grid-template-columns:1fr;gap:10px}
 .km-side{position:static;min-height:0;flex-direction:column;padding:12px 10px}
 .km-side h2{margin:0 6px 10px;font-size:22px}
 .km-folders{flex-direction:row;overflow-x:auto;gap:6px;scrollbar-width:none;padding-bottom:2px}
 .km-folders::-webkit-scrollbar{display:none}
 .km-f{width:auto;flex:none;white-space:nowrap!important;border:1px solid #2c4a68!important;min-height:36px!important}
 .km-sep,.km-folders small,.km-quota{display:none}
 .km-compose{margin:0 0 10px;width:100%}
 .km-read{grid-column:auto;min-height:0}
 .km-list{min-height:0}.km-rows{max-height:none}
 .km.has-sel .km-side,.km.has-sel .km-list{display:none}
 .km:not(.has-sel) .km-read{display:none}
 .km-back{display:inline-flex!important;align-items:center;gap:4px;align-self:flex-start;min-height:34px!important;padding:4px 10px 4px 4px!important;background:transparent!important;border:0!important;color:#2c5d8f!important;font-weight:800}
 .km-back .ek-ico{width:18px;height:18px}
}
@media(max-width:600px){
 .km-read{padding:14px!important;gap:12px}
 .km-from{gap:12px}.km-from .km-av{--s:48px!important}
 .km-letter{padding:14px;font-size:15px}
 .km-acts .tp-btn{flex:1 1 auto}
 .km-acts-end{margin-left:0;width:100%}.km-acts-end .tp-btn{flex:1}
 .km-hbtn{width:36px;min-width:36px;height:36px;min-height:36px!important}
 /* v5.3.1: on phones the drawer drops down from the header (under the bell), above the bottom bar, and dims the page */
 .km-drawer{top:var(--ek-pop-top,64px);bottom:auto;left:8px;right:8px;width:auto;max-height:calc(100dvh - var(--ek-pop-top,64px) - 78px - env(safe-area-inset-bottom));
  border-radius:16px;animation:km-down .18s ease-out;box-shadow:0 18px 44px #000b,0 0 0 100vmax #02081299}
 .km-toasts{left:12px;bottom:calc(84px + env(safe-area-inset-bottom))}
}
@keyframes km-up{from{transform:translateY(30px);opacity:0}}
@keyframes km-down{from{transform:translateY(-10px);opacity:0}}
@media(max-width:899px){.km-toasts{bottom:calc(84px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.km-drawer,.km-toast{animation:none;transition:none}}
@media(max-width:520px){#wallet>.ek-chip:nth-child(3){display:none}}

/* Staff panel: Kinmail reports + announcements */
.ek-admin-quote{margin:6px 0 0;padding:10px 12px;border-left:3px solid #d0452f;background:#071729;border-radius:0 8px 8px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:#dbe7f3}
.ek-admin-bug.is-resolved{opacity:.65}
.ek-admin-announce{margin:0 0 16px}
/* ===== client/css/20_spellbook.css ===== */
/* v4.6 Spellbook — matches Everkin parchment and midnight panels. */
.spellbook-screen{display:grid;gap:14px}.spellbook-screen>section{background:#132842;border:1px solid #405876;border-radius:13px;padding:18px;color:#e4edf5}
.spellbook-screen .spell-row{display:flex;align-items:center;gap:14px;padding:14px 12px;border-bottom:1px solid #34506b;flex-wrap:wrap}
.spellbook-screen .spell-prepared{background:#293d51;border-left:3px solid #e3b964}.spell-symbol{font-size:28px;color:#f6c876}
.spell-row-info{flex:1;min-width:200px;display:grid;gap:4px}.spell-row-info b{color:#f6d58a}.spell-row-info small{font-size:12px;color:#b9cce2;line-height:1.4}
.spell-row-actions{display:flex;flex-wrap:wrap;gap:7px}.spell-row-actions button{padding:9px 12px}.spell-prepared-pills{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.spell-prepared-pills span{border:1px solid #a88843;background:#25394f;color:#ffe3a5;border-radius:18px;padding:7px 12px;font-size:13px}
.spell-scroll-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:12px}.spell-scroll{border:1px solid #607993;border-radius:10px;padding:12px;display:grid;gap:8px}
.spell-scroll b{color:#ffdc97}.spell-scroll small{color:#b6c9db}.spell-merchant{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:12px}.spell-milestone{border-bottom:1px solid #304761;padding:8px;color:#d7e6f4}
.ek-card-choice:disabled,.ek-gear-choice:disabled{opacity:.48;cursor:not-allowed}
/* ===== client/css/22_battle_intent.css ===== */
/* Enemy Intent bar (v5.3.2): one glanceable row right under the arena — the move it looks like, the phrase, the
   element of its attacks and, only when certain, "Seen through". ⓘ opens the details. No read meter. */
.ek-intent-bar{position:relative;display:grid!important;grid-template-columns:44px minmax(0,1fr) auto 40px;align-items:center;gap:4px 10px;
 margin:0;padding:8px 8px 8px 10px;border:1px solid #c79a52;border-radius:12px;color:#ecdbb8;
 background:linear-gradient(100deg,#3a2a14 0%,#22263a 38%,#14273e 100%);box-shadow:0 6px 18px #0007,inset 0 1px 0 #ffffff12}
/* a notch pointing up at the enemy (right side of the arena) */
.ek-intent-bar::before{content:"";position:absolute;top:-7px;right:24%;width:12px;height:12px;background:#22263a;border-left:1px solid #c79a52;border-top:1px solid #c79a52;transform:rotate(45deg)}
.ek-intent-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;font-size:24px;line-height:1;background:#0b1a2c;border:1px solid #c79a5299;box-shadow:inset 0 0 12px #f3cf8222}
.ek-intent-main{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px}
.ek-intent-kicker{flex-basis:100%;font-size:10px;font-weight:900;letter-spacing:.12em;color:#f3cf82;white-space:nowrap;line-height:1.2}
.ek-intent-move{font:700 21px/1.15 'Everkin Serif',Georgia,serif!important;letter-spacing:0!important;color:#fff2d2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ek-intent-bar .ek-intent-sentence{flex-basis:100%;margin:1px 0 0!important;font-size:13px!important;line-height:1.3!important;color:#d8e6f3}
.ek-intent-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.ek-intent-el,.ek-intent-seen{display:inline-flex;align-items:center;gap:3px;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:800;white-space:nowrap}
.ek-intent-el{background:#0b1a2c;border:1px solid #3e6283;color:#d6e8f6}
.ek-intent-seen{background:#123b2a;border:1px solid #4fbf86;color:#a7f3c7}
.ek-intent-more{width:40px;height:40px;min-height:40px!important;padding:0!important;border-radius:50%!important;border:1px solid #5b7aa8!important;background:#0f2238!important;color:#e6f0fb!important;font-size:18px!important;line-height:1}
.ek-intent-details{grid-column:1/-1;border-top:1px solid #c79a5255;margin-top:4px;padding-top:6px;display:grid;gap:4px}
.ek-intent-details p{margin:0!important;font-size:12px!important;line-height:1.4!important;color:#d3e2ef}
.ek-intent-details b{color:#ffe6ae}
.ek-intent-note{color:#a9c1d6!important}
.ek-intent-bar.is-seen{border-color:#4fbf86}.ek-intent-bar.is-seen::before{border-color:#4fbf86}
.ek-intent-bar.is-seen .ek-intent-icon{border-color:#4fbf86}
.ek-intent-bar.is-hidden .ek-intent-move,.ek-intent-bar.is-vague .ek-intent-move{color:#d6e2ee}
@media(max-width:420px){
 .ek-intent-bar{grid-template-columns:40px minmax(0,1fr) 36px;padding:7px 6px 7px 8px;gap:3px 8px}
 .ek-intent-icon{width:40px;height:40px;font-size:22px}
 .ek-intent-side{grid-column:2/3;grid-row:2;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}
 .ek-intent-more{grid-column:3;grid-row:1;width:36px;height:36px;min-height:36px!important}
 .ek-intent-move{font-size:20px!important}
}

/* the stance picker repeats the intent above the choices */
.ek-stance-intent{margin:0 0 8px!important;font-size:14px;padding:8px 10px;border-radius:10px;background:#1d2434;border:1px solid #c79a5288;color:#e9eef5}
.ek-stance-intent b{color:#ffe2a3}
.ek-stance-intent .ek-intent-seen{margin-left:4px}

/* last-round report (legacy layouts only) */
.ek-tactical-report{border-top:1px solid #566f88;padding:14px 6px;margin-top:14px}
.ek-tactical-report p{margin:5px 0 0;line-height:1.5}
/* ===== client/css/24_crafting.css ===== */
/* Forge recipes and materials. */
.ek-forge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:12px;margin:16px 0}
.ek-forge-recipe{border:1px solid #54728b;background:#0a2036;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px}
.ek-forge-recipe h3{margin:0;color:#f1d49d;font-size:1.1rem}
.ek-forge-recipe button{margin-top:auto}.ek-forge-mats{font-size:.93rem}.ek-forge-cost{font-size:.83rem;color:#b7cadb}
.ek-forge-caps{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px}
.ek-forge-caps div{background:#0e2a42;padding:12px;border-radius:10px;display:flex;flex-direction:column;gap:5px}
.ek-forge-caps small{color:#aac6d8}.ek-drop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
.ek-drop-grid label{display:flex;flex-direction:column;gap:4px}.ek-drop-grid input{width:100%}
.ek-forge-rewards{border:1px solid #96754b;background:linear-gradient(120deg,#17263c,#2d251b);border-radius:12px;padding:14px;margin:10px 0}
.ek-forge-rewards h2{font-size:1.12rem;color:#ffe4a7;margin:0 0 8px}
.ek-forge-rewards p{margin:4px 0 9px}.ek-forge-rewards small{color:#aec0d3}
.ek-forge-recipe .ek-forge-mat-icon{width:56px;height:56px;object-fit:contain;align-self:flex-start}
.ek-forge-rates{font-size:12px;margin-top:10px}
/* ===== client/css/26_arena.css ===== */
/* Arena picker, energy meter, victory loot and elemental matchups. */
/* Everkin v4.8.1 */
.ek481-picker .enemy-controls{grid-template-columns:minmax(0,1fr) minmax(160px,240px)}
.ek481-enemy-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:9px;max-height:570px;overflow-y:auto;padding:4px 2px 12px;margin:10px 0}
.ek481-foe{display:flex;align-items:center;text-align:left;gap:10px;min-width:0;border:1px solid #36516d;border-radius:11px;background:#10283f;color:#e6f1fc;padding:9px;min-height:83px;cursor:pointer}
.ek481-foe img{width:66px;height:66px;object-fit:contain;flex-shrink:0}.ek481-foe-body{min-width:0;display:flex;flex-direction:column;gap:4px}.ek481-foe-body b{font-size:14px}.ek481-foe-body small{font-size:11px;color:#c0d6e7}.ek481-foe.chosen{border:2px solid #f1c777;background:#23374a}.ek481-foe.locked{opacity:.52;cursor:not-allowed;filter:grayscale(.7)}.ek481-foe[hidden]{display:none}.ek481-active{margin-left:auto;color:#f3ce83}
.battle-pick.ek481-unavailable{opacity:.42;filter:grayscale(.9);cursor:not-allowed;border-color:#33465a}.battle-pick.ek481-unavailable:hover{transform:none}.ek481-spell-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:5px 0}.ek481-cost{font-size:13px;color:#ffe19e;background:#473516;padding:4px 8px;border-radius:6px;border:1px solid #a78648}.ek481-spell-meta span{font-size:10px;color:#bed5e5}.ek481-spell-meta em{font-size:10px;color:#ffbfbf}.ek481-icons .ek-icons-stack{display:flex;flex-direction:column;gap:3px}.ek481-icons .ek-icon-row{font-size:11px}.battle-card .card-effect{color:#b4d4e7}
.battle-modal{width:min(95vw,650px);max-height:calc(100dvh - 30px);overflow-y:auto;padding:19px 22px}.battle-modal .result-victory,.battle-modal .result-defeat{font-size:clamp(22px,4vw,34px)!important;text-shadow:none}.battle-modal-top button{margin-left:auto}.battle-modal .modal-footer{position:sticky;bottom:0;background:#081c31;padding-top:10px;z-index:2}.ek481-outcome-note{color:#c6deeb;margin:8px 0}.ek481-reward{background:#102e49;border:1px solid #345d7b;border-radius:11px;padding:13px}.ek481-reward h3{margin:0 0 10px;color:#f6d38b}.ek481-loot-items{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ek481-loot-items>div{padding:8px;border-radius:7px;background:#0a2138}.ek481-loot-items strong{display:block;font-size:12px}.ek481-loot-items small{display:block;font-size:11px;color:#b4cfe1;margin-top:4px}.ek481-loot-items .ek481-mat-detail{grid-column:1/-1}.ek481-details{margin-top:10px}.ek481-details>summary{cursor:pointer;color:#d6e9f5}
/* Kinmail recipient suggestions appear in Trading Post overlays; elevate all ancestor layers too */
.km-modal:has(#km-c-to:focus) .km-form,.km-modal:has(#km-c-to:focus) .km-field:has(.km-to),.km-modal:has(#km-c-to:focus) .km-to{position:relative;z-index:10060;overflow:visible!important}
.km-modal .km-sugg{z-index:10070!important}.km-modal:has(.km-sugg:not(:empty)) .tp-modal-body{overflow:visible!important}
@media(max-width:600px){.ek481-picker .enemy-controls{grid-template-columns:1fr}.ek481-enemy-list{max-height:48dvh;grid-template-columns:1fr}.battle-modal{padding:12px;max-height:calc(100dvh - 12px)}.ek481-loot-items{grid-template-columns:1fr}.ek481-loot-items .ek481-mat-detail{grid-column:auto}}

/* Everkin v4.8.1 inventory refinements */
.ek481-inv-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ek481-inv-tabs button{padding:11px 10px;border-radius:10px;border:1px solid #2d5575;background:#0b2036;color:#d7e8f6;font-weight:700}.ek481-inv-tabs button.on{background:linear-gradient(180deg,#f0c666,#b47b32);color:#182030;border-color:#ffdc91}.ek481-search-only{grid-template-columns:1fr}.ek481-search-only input{width:100%}.ek481-recipe-cost{display:grid;gap:2px;margin:6px 0 8px}.ek481-recipe-cost small{display:block;color:#a9c7de;font-size:11px;line-height:1.35}.ek481-material-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px;margin:12px 0}.ek481-material-chip{border:1px solid #355b76;background:#0b2238;border-radius:10px;padding:10px;display:grid;gap:4px}.ek481-material-chip b{color:#f3d089}.ek481-material-chip small{color:#b8d2e3}.ek481-drop-usage{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:12px 0}.ek481-drop-usage>div{background:#0a2036;border:1px solid #32566f;border-radius:10px;padding:9px}.ek481-drop-usage b{display:block;color:#f3d089}.ek481-drop-usage small{display:block;color:#b6d0e1;font-size:11px}.ek481-inline-actions{display:flex;gap:8px;flex-wrap:wrap}.ek481-inv-grid .inv-tile .inv-action[disabled]{opacity:.68}.ek481-inv-grid .inv-tile{min-height:255px}
@media(max-width:680px){.ek481-inv-tabs{grid-template-columns:1fr 1fr}}
/* v4.8.1a battle and unlocked boss gallery refinements */
.ek482-stance-budget{color:#ffe6a5;background:#1f3548;border:1px solid #5f7190;border-radius:8px;padding:9px 12px;margin:8px 0 11px;font-weight:750;font-size:14px}
.ek482-stance-cost{display:inline-block;margin-top:6px;padding:4px 7px;font-size:13px;font-weight:800;color:#ffe1a1;background:#4a381f;border:1px solid #b18c4e;border-radius:6px}
.ek-stance-choice:disabled .ek482-stance-cost{filter:grayscale(1)}
.ek482-energy-meter{display:grid;gap:6px;background:#0c2a40;border:1px solid #527493;border-radius:11px;padding:11px 13px;margin:12px 0}
.ek482-energy-meter strong{font-size:17px;color:#ffe09b}.ek482-energy-meter small{display:block;font-size:12px;color:#c5dbe9;margin-top:4px}
.ek482-energy-track{height:7px;border-radius:5px;background:#263c50;overflow:hidden}.ek482-energy-track>span{display:block;height:100%;background:linear-gradient(90deg,#f8c76f,#ffe3aa);transition:width .18s}
.ek482-energy-over{border-color:#c55e63}.ek482-energy-over strong{color:#ffc1c1}
.battle-card .ek481-cost{font-size:15px;padding:6px 9px}.battle-card .ek481-spell-meta{margin:7px 0}.battle-card .ek481-icons{margin:7px 0}.battle-card .ek482-spell-effect{font-size:13px;line-height:1.5;color:#e1edfa;padding:7px;background:#142e44;border-radius:7px}.battle-card .ek482-spell-effect b{display:block;color:#ffdca0;margin-bottom:3px;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.battle-card .ek482-spell-effect span{display:block}.battle-card{min-height:125px;align-items:flex-start}
.ek482-gallery-heading{grid-column:1/-1;margin:14px 2px 0;color:#e8c687;font-size:15px;letter-spacing:.04em}
.ek481-enemy-list .ek481-foe.ek481-boss{border-color:#b48c55;background:linear-gradient(120deg,#352745,#182d44)}
.ek481-enemy-list .ek481-foe.ek481-boss.chosen{border:2px solid #f0c86c}
.ek482-empty-foes{grid-column:1/-1;text-align:center;background:#12273e;border:1px dashed #476780;padding:20px;border-radius:11px;color:#c4d6e6}
@media(max-width:600px){.battle-card .ek481-cost{font-size:13px}.battle-card .ek482-spell-effect{font-size:12px}.ek482-energy-meter strong{font-size:15px}}

/* Modern battle choice layout shares the same spell treatment as the legacy picker. */
.ek-card-choice.ek481-unavailable{opacity:.43;filter:grayscale(.85);cursor:not-allowed;border-color:#33465a}
.ek-card-choice .ek-choice-body{display:block;min-width:0}
.ek-card-choice .ek481-spell-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.ek-card-choice .ek481-cost{font-size:16px;line-height:1.25;padding:6px 10px}
.ek-card-choice .ek481-icons{margin:8px 0;font-size:13px}
.ek-card-choice .ek482-spell-effect{background:#142e44;color:#e2eefb;border-radius:8px;padding:9px;font-size:14px;line-height:1.5}
.ek-card-choice .ek482-spell-effect b{display:block;font-size:12px;color:#ffdc9f;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
.ek-card-choice .ek482-spell-effect span{display:block}
.ek-card-choice{min-height:130px;align-items:flex-start}
@media(max-width:600px){.ek-card-choice .ek481-cost{font-size:14px}.ek-card-choice .ek482-spell-effect{font-size:12px}}

/* v4.8.1 Material Art patch (merged in v4.8.2): material loot portraits, precise counts and compact Per Day quota cards */
.ek481-reward .ek481-loot-art-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
.ek481-reward .ek481-loot-art-grid .ek481-drop-tile{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 9px;border:1px solid #315774;background:#09243b;border-radius:9px}
.ek481-drop-tile .ek481-drop-art{width:55px;height:55px;flex:none;display:grid;place-items:center;border-radius:9px;background:radial-gradient(circle,#254867 0%,#142b40 78%)}
.ek481-drop-tile .ek481-drop-art img{width:100%;height:100%;object-fit:contain}
.ek481-drop-tile .ek481-drop-art span{font-size:28px}
.ek481-drop-tile .ek481-drop-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.ek481-drop-tile .ek481-drop-copy strong{font-size:12px;line-height:1.3;color:#e8f3fb;overflow-wrap:anywhere}
.ek481-drop-tile .ek481-drop-quantity{font-size:16px;line-height:1.1;font-weight:900;color:#f4d38e;font-variant-numeric:tabular-nums}
.ek481-drop-tile.ek481-drop-empty{opacity:.65}
.ek481-reward .ek481-daily-heading{margin:12px 0 7px;font-weight:800;font-size:12px;color:#d8eafa}
.ek481-daily-caps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ek481-daily-cap{display:flex;flex-direction:column;gap:3px;padding:7px 9px;background:#0b233a;border:1px solid #2c4e68;border-radius:7px}
.ek481-daily-cap b{font-size:11px;color:#bad6e8}.ek481-daily-cap span{color:#f1ce87;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.ek481-material-chip img.ek481-material-icon{height:58px;width:58px;object-fit:contain;align-self:center}
.inv-resource img.ek481-material-icon{width:55px;height:55px;object-fit:contain;display:block;margin:0 auto 4px}
@media(max-width:600px){.ek481-reward .ek481-loot-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ek481-drop-tile .ek481-drop-art{width:42px;height:42px}.ek481-drop-tile .ek481-drop-copy strong{font-size:11px}.ek481-drop-tile .ek481-drop-quantity{font-size:14px}.ek481-daily-caps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.ek481-reward .ek481-loot-art-grid{grid-template-columns:1fr}}
/* Final readability: keep material names and counts legible beside 640px source art. */
.ek481-drop-tile .ek481-drop-art{width:60px;height:60px}
.ek481-drop-tile .ek481-drop-copy strong{font-size:13px}
.ek481-drop-tile .ek481-drop-quantity{font-size:18px}
.ek481-daily-cap b{font-size:12px}
.ek481-daily-cap span{font-size:13px}
@media(max-width:600px){.ek481-drop-tile .ek481-drop-art{width:45px;height:45px}.ek481-drop-tile .ek481-drop-copy strong{font-size:11px}.ek481-drop-tile .ek481-drop-quantity{font-size:15px}}

/* Everkin 4.8.8 */
.ek488-matchup,.ek-tactical-intent small.ek488-matchup{display:block;text-transform:none!important;letter-spacing:0!important;margin-top:4px;opacity:.9;font-size:.82em;line-height:1.35}
/* ===== client/css/27_battle_pick.css ===== */
/* Choose your Everkin before battle (v5.3.2) */
.ek-pick{display:grid;gap:14px;padding-bottom:8px}
.ek-pick-head h1{font:700 clamp(24px,4vw,34px)/1.1 'Everkin Serif',Georgia,serif;color:#ffe0a1;margin:4px 0 6px}
.ek-pick-head p{margin:0;color:#b9d0e3;font-size:14px;line-height:1.45;max-width:60ch}
.ek-pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.ek-pick-card{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr);grid-template-areas:"art id" "art stats" "meta meta";gap:6px 12px;align-items:center;
 text-align:left;padding:12px!important;min-height:118px;border-radius:16px!important;border:1px solid #3c5f80!important;background:linear-gradient(160deg,#10304d,#081a2e)!important;color:#e7f2fc!important;
 box-shadow:0 8px 22px #0005;transition:transform .12s,border-color .12s,box-shadow .12s;cursor:pointer}
.ek-pick-card:hover:not(:disabled){border-color:#7aa2c4!important}
.ek-pick-card:active:not(:disabled){transform:scale(.985)}
.ek-pick-card.on{border:2px solid #f0ca7e!important;background:linear-gradient(160deg,#2a3a4a,#122a40)!important;box-shadow:0 0 0 3px #f0ca7e2e,0 10px 26px #0007}
.ek-pick-card:focus-visible{outline:3px solid #ffe0a0;outline-offset:2px}
.ek-pick-card.is-locked{opacity:.55;cursor:not-allowed}
.ek-pick-art{grid-area:art;width:76px;height:76px;border-radius:14px;background:radial-gradient(circle at 50% 60%,#3d6283,#10263d 72%);display:grid;place-items:center;overflow:hidden}
.ek-pick-art img{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 4px 6px #000a)}
.ek-pick-id{grid-area:id;min-width:0;padding-right:26px}
.ek-pick-id b{display:block;font:700 19px/1.15 'Everkin Serif',Georgia,serif;color:#ffe6ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ek-pick-id small{display:block;margin-top:2px;font-size:12px;color:#b9d0e3}
.ek-pick-stats{grid-area:stats;display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;font-weight:700;color:#dbe9f5}
.ek-pick-meta{grid-area:meta;font-size:12px;color:#9fbdd4}
.ek-pick-meta em{font-style:normal;color:#8ff0b6;font-weight:800}
.ek-pick-warn{position:absolute;left:12px;bottom:10px;transform:translateY(0);font-size:11px;font-weight:800;color:#ffc7bd;background:#3a1a1a;border:1px solid #b9675c;border-radius:99px;padding:1px 8px}
.ek-pick-card .ek-pick-warn{position:static;grid-column:1/-1;justify-self:start}
.ek-pick-check{position:absolute;top:10px;right:10px;width:26px;height:26px;border-radius:50%;border:1px solid #5b7aa8;display:grid;place-items:center;font-weight:900;color:#14233a}
.ek-pick-card.on .ek-pick-check{background:#f0ca7e;border-color:#ffe8b0}
.ek-pick-bar{position:sticky;bottom:12px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:16px;
 border:1px solid #8b774e;background:linear-gradient(#0d2440f2,#071a2ff5);box-shadow:0 12px 30px #000a;backdrop-filter:blur(6px)}
.ek-pick-sel{display:flex;align-items:center;gap:10px;min-width:0}
.ek-pick-sel img{width:42px;height:42px;object-fit:contain;border-radius:10px;background:#16304b}
.ek-pick-sel small{display:block;font-size:10px;font-weight:900;letter-spacing:.12em;color:#9fc0dc}
.ek-pick-sel b{display:block;font-size:16px;color:#ffe6ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ek-pick-go{min-height:48px;min-width:150px;padding:10px 20px!important;border-radius:12px!important;font-weight:900!important;font-size:16px!important;
 background:linear-gradient(#f8d783,#d6a149)!important;border:1px solid #ffe8a9!important;color:#1a2637!important}
.ek-pick-go:disabled{opacity:.55}
/* the Everkin in use, above the Arena and Trials pickers */
.ek-pick-current{display:flex;align-items:center;gap:10px;padding:8px 10px;margin:0 0 10px;border-radius:14px;border:1px solid #315b7a;background:#0a2038cc}
.ek-pick-current img{width:40px;height:40px;object-fit:contain;border-radius:10px;background:#16304b}
.ek-pick-current span{flex:1;min-width:0;font-size:13px;color:#cfe0f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ek-pick-current small{display:block;font-size:10px;font-weight:900;letter-spacing:.12em;color:#9fc0dc}
.ek-pick-current b{color:#ffe6ae;font-size:15px}
.ek-pick-current button{min-height:40px;padding:6px 14px!important;border-radius:99px!important}
@media(max-width:760px){
 .ek-pick-grid{grid-template-columns:1fr 1fr;gap:10px}
 .ek-pick-card{grid-template-columns:1fr;grid-template-areas:"art" "id" "stats" "meta";justify-items:center;text-align:center;padding:12px 8px!important;min-height:0}
 .ek-pick-art{width:88px;height:88px}.ek-pick-art img{width:84px;height:84px}
 .ek-pick-id{padding:0;text-align:center;max-width:100%}
 .ek-pick-id b{font-size:17px}
 .ek-pick-stats{justify-content:center;gap:2px 8px;font-size:11px}
 .ek-pick-meta{font-size:11px}
 .ek-pick-card .ek-pick-warn{justify-self:center}
 .ek-pick-bar{bottom:calc(72px + env(safe-area-inset-bottom));padding:8px 10px}
 .ek-pick-go{min-width:0;flex:none}
}
@media(max-width:340px){.ek-pick-grid{grid-template-columns:1fr}.ek-pick-card{grid-template-columns:76px minmax(0,1fr);grid-template-areas:"art id" "art stats" "meta meta";justify-items:stretch;text-align:left}.ek-pick-id{text-align:left}.ek-pick-stats{justify-content:flex-start}.ek-pick-art{width:76px;height:76px}}
/* ===== client/css/30_design.css ===== */
/* Everkin v4.8.7 — The Elemental Codex. UI-only consolidation.
   One final design layer to avoid altering validated game mechanics or item art. */
:root{
  --ek-bg:#07182b;--ek-panel:#0d2944;--ek-panel-raised:#153854;
  --ek-edge:#3d607b;--ek-edge-strong:#7898a9;
  --ek-paper:#efe1c1;--ek-ink:#372819;--ek-accent:#e0b966;
  --ek-body:#e5eef7;--ek-muted:#b7ccdd;
  --ek-r-sm:8px;--ek-r-md:12px;--ek-r-lg:16px;
  --ek-space-1:4px;--ek-space-2:8px;--ek-space-3:12px;
  --ek-space-4:16px;--ek-space-5:24px;
}
html{scroll-padding-top:90px;scroll-behavior:smooth}
body{color:var(--ek-body)}
body>main{width:100%;min-width:0}
body>main>*,#app,#app>*,.ek-home,.ek-combat-screen,.km,.tp,.tp-layout,.tp-main,.market-layout{min-width:0;max-width:100%}
body>header{border-bottom:1px solid #4a719067;background:linear-gradient(110deg,#061a2c,#0b2844)!important}
body>header>strong{letter-spacing:.06em;color:#f5dca4}
body>.tabs{gap:4px;flex-wrap:wrap}
body>.tabs button{border-radius:9px!important;min-height:44px;padding:9px 13px!important;font-size:14px;transition:background .15s,color .15s,border-color .15s}
body>.tabs button.on{background:#20425c!important;border-color:#b49661!important}
body>.tabs button:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid #f4ca7a!important;outline-offset:3px}
.ek-subnav{padding:6px;gap:6px;margin:0 0 16px;max-width:100%}
.ek-subnav button{font-size:14px;min-height:42px;white-space:normal}
.ek-secondary-return{display:flex;margin-bottom:10px}.ek-secondary-return button{color:var(--ek-muted);border:0!important;background:transparent!important;min-height:40px;font-weight:700}
body>main h1{font-size:clamp(25px,3vw,34px);line-height:1.2}
body>main h2{font-size:clamp(20px,2vw,25px);line-height:1.25}
body>main h3{font-size:clamp(17px,1.6vw,21px);line-height:1.3}
body>main p,body>main li{line-height:1.55}
body>main .muted,body>main .inv-minor{color:var(--ek-muted)}
body>main section{border-radius:var(--ek-r-lg)}
button,input,select,textarea{font-family:Inter,'Segoe UI',system-ui,sans-serif}
button{touch-action:manipulation}button:disabled{cursor:not-allowed}
.ek-home-banner{border-color:#688394;box-shadow:inset 0 0 0 1px #efc67712,0 22px 52px #0008}
.ek-home-primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:15px!important;line-height:1.25}
.ek-home-links button{border:1px solid #365d7b;transition:transform .15s,border-color .15s,background .15s}
.ek-home-links button b{line-height:1.2}
.ek-home-links button small{font-size:13px!important;line-height:1.4!important;color:#bed6e7!important}
.ek-home-links button:focus-visible,.ek-home-links button:hover{background:linear-gradient(140deg,#1b4161,#102b44)!important}
.ek-home-companion>div span{font-size:13px!important}
/* Inventory: the tabs carry navigation, the cards carry information. */
.ek481-inv-tabs{position:relative;gap:8px}.ek481-inv-tabs button{font-size:14px!important;min-height:45px}
.inv-grid,.ek481-inv-grid{grid-template-columns:repeat(auto-fill,minmax(min(155px,100%),1fr));gap:12px}
.inv-tile{border-radius:12px;overflow:hidden}.inv-tile .inv-title{font-size:14px!important;line-height:1.3!important;overflow-wrap:anywhere}
.inv-tile .inv-minor,.ek481-recipe-cost small{font-size:12px!important;line-height:1.3}
.inv-tile .inv-action{min-height:40px!important;font-size:13px!important}
.inv-intro{padding:14px 16px!important}.quickstats{gap:8px;min-width:0}
.ek481-material-chip{border-radius:12px}.ek481-material-chip small{font-size:12px!important}
/* Battle: larger tactical metadata, readable without zooming. */
.ek-command-head p,.ek-controls-bottom p,.ek-coach-panel p{font-size:14px;line-height:1.45}
.ek-turn-resources{gap:7px;flex-wrap:wrap}.ek-turn-resources span{font-size:13px!important}
.ek-choice-body b{font-size:14px!important;line-height:1.3}.ek-choice-body small{font-size:12px!important;line-height:1.4}
.ek-gear-choice{border-radius:11px;min-width:0}.ek-gear-choice .ek-icon-label{font-size:11px!important}
.ek-battlefield-footer{font-size:12px}.ek-actions button{font-size:14px!important}
.ek-resolve{min-height:46px;font-size:15px!important}
/* Trading post and mail share the parchment design but not viewport overflow. */
.tp,.tp-main,.tp-layout,.tp-card,.tp-detail,.tp-panel,.tp-list,.tp-hero{min-width:0;max-width:100%;box-sizing:border-box}
.tp-hero-actions{flex-wrap:wrap!important;min-width:0;max-width:100%}
.tp-hero-actions .tp-btn{min-width:0;white-space:normal!important;overflow-wrap:anywhere;min-height:44px}
.tp-card-title,.tp-detail h2{overflow-wrap:anywhere}
.tp-sub,.tp-card-small,.tp-detail small,.tp-faint{line-height:1.4}
.tp-pick-main{min-height:70px!important}.tp-pick-name{font-size:12px!important}
.tp-form label,.tp-form input,.tp-form textarea,.tp-form select{font-size:14px}
/* Critical mobile bug: grid children were allowed to size the whole page to 1078px. */
.km{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,1fr);box-sizing:border-box}
.km>*{min-width:0;max-width:100%;box-sizing:border-box}
.km-side,.km-list,.km-read{min-width:0;max-width:100%;overflow-wrap:anywhere}
.km-folders{min-width:0;max-width:100%;overscroll-behavior-x:contain}
.km-row,.km-row-main,.km-list-head,.km-read,.km-letter,.km-from>div{min-width:0}
.km-read{overflow-wrap:anywhere}
.km-row .km-sub,.km-row .km-pre{max-width:100%}
.km-f{font-size:14px}.km-row b{font-size:14px}.km-pre{font-size:12px}
.km-acts,.km-list-head{flex-wrap:wrap}
@media(min-width:1181px){.km{grid-template-columns:minmax(185px,230px) minmax(280px,440px) minmax(0,1fr)}}
@media(min-width:981px) and (max-width:1180px){.km{grid-template-columns:minmax(178px,200px) minmax(0,1fr)}.km-read{grid-column:2}}
@media(max-width:980px){.km{grid-template-columns:minmax(0,1fr)}.km-folders{display:flex;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap}.km-f{flex:0 0 auto}.km-read{grid-column:1}.km:not(.has-sel) .km-read{display:none}}
/* Responsive density: tablet grids and phone tap targets. */
@media(max-width:899px){
 body>main{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
 nav.bottom{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;padding:4px 6px calc(5px + env(safe-area-inset-bottom));}
 nav.bottom button{min-width:0;min-height:53px;font-size:12px;gap:3px}
 nav.bottom button span{font-size:11px!important;white-space:nowrap}
 .ek-subnav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}
 .ek-subnav button{flex:0 0 auto;white-space:nowrap}
 .ek-home-banner{min-height:270px}
 .ek-home-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 body>main{padding-left:10px!important;padding-right:10px!important}
 body>main p,body>main li{font-size:14px}
 .ek-home-banner{min-height:280px;padding:20px!important}
 .ek-home-intro h1{font-size:clamp(26px,7vw,34px)}
 .ek-home-intro p{font-size:14px!important}
 .ek-home-links button{min-height:126px;padding:13px}
 .ek-home-links button b{font-size:17px!important}
 .ek-home-links button small{font-size:12px!important}
 .ek-choice-grid-equipment{grid-template-columns:minmax(0,1fr)}
 .ek-gear-choice{min-height:88px;padding:10px}
 .ek-battle-hud strong{font-size:12px!important}.ek-battle-hud small{font-size:11px!important}
 .ek-battlefield-footer{font-size:11px!important}
 .ek-actions button{min-height:57px!important}
 .ek-battle-controls{min-width:0}
 .tp-hero-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px}
 .tp-hero-actions .tp-btn{padding:9px 7px!important;font-size:13px!important;min-height:44px!important}
 .tp-hero-actions .tp-btn:last-child{grid-column:1/-1}
 .tp-toolbar{min-width:0;max-width:100%}
 .tp-layout{min-width:0}.tp-card,.tp-detail{min-width:0}
 .tp-modal,.km-modal{width:100%;max-width:100vw}
 .km-side{padding:10px}.km-list-head,.km-pager{gap:8px;flex-wrap:wrap}
 .km-row{padding:10px!important;grid-template-columns:36px minmax(0,1fr);gap:9px}
 .km-row time{grid-column:2;justify-self:start;padding-top:0}
 .km-av{--s:36px}.km-read{padding:12px!important}
 .km-from{align-items:flex-start}.km-from h2{font-size:21px}
 .km-letter{padding:14px;font-size:15px}
 .ek481-inv-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ek481-inv-tabs button{min-height:46px}
}
@media(max-width:350px){
 body>main{padding-left:7px!important;padding-right:7px!important}
 nav.bottom{padding-left:2px;padding-right:2px}
 nav.bottom button{padding:5px 2px!important}nav.bottom button span{font-size:10.5px!important}
 .ek-home-links{gap:7px}.ek-home-links button{padding:10px;min-height:135px}
 .ek-home-links button b{font-size:16px!important}
 .ek-subnav button{padding:8px 10px!important;font-size:13px}
 .tp-hero-actions .tp-btn{font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ek-home-links button{transition:none}}
/* Prevent wide stat descriptions from pushing the narrow Pets layout off-screen. */
@media(max-width:420px){
 .ek-stat-grid,.ek-stat-grid .row{min-width:0;max-width:100%;box-sizing:border-box}
 .ek-stat-grid .row{flex-wrap:wrap;gap:3px 7px}
 .ek-stat-grid .ek-stat-value{min-width:0;max-width:100%;flex-wrap:wrap;gap:2px 6px}
 .ek-stat-grid .ek-stat-value small{min-width:0;max-width:100%;font-size:12px!important;overflow-wrap:anywhere}
}
/* The Marketplace already has a filter and detailed item cards; avoid a second
   decorative element catalogue overwhelming the primary mobile shopping task. */
@media(max-width:899px){.element-legend{display:none!important}}
/* ===== client/css/32_desktop_shell.css ===== */
/* Everkin — centered desktop shell and single-viewport command console, Oct 2026. */
@media (min-width: 980px) {
 body>header,body>.tabs,body>main,body>nav.bottom {width:min(75vw,1320px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
 body>header{border-inline:1px solid #254763;border-radius:0 0 10px 10px}
 body>.tabs{border-inline:1px solid #254763;border-bottom:1px solid #254763;border-radius:0 0 10px 10px}
 body>main{padding:12px 0 32px!important}
 body>main>.ek-combat-screen{width:100%!important}
 body>nav.bottom{border-inline:1px solid #254763}
 .market-layout{grid-template-columns:minmax(125px,165px) minmax(0,1fr) minmax(190px,245px)!important;gap:10px!important}
 .market-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important}
 .ek-home-links{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:980px) and (max-width:1330px){.market-layout{grid-template-columns:minmax(110px,140px) minmax(0,1fr) minmax(175px,200px)!important}}
.ek-combat-screen{gap:7px!important}
.ek-combat-top{padding:7px 12px!important;min-height:46px!important}
.ek-combat-top h1{font-size:19px!important;margin:0!important}
.ek-battlefield{min-height:clamp(155px,22dvh,190px)!important;height:clamp(155px,22dvh,190px)!important}
.ek-fighter-field{inset:31px 0 14px!important}
.ek-fighter-field img{height:clamp(105px,18dvh,170px)!important;width:min(100%,210px)!important}
.ek-battle-hud{padding:5px 8px!important}
.ek-battle-controls.ek-command-console{padding:9px 12px!important;display:flex;flex-direction:column;gap:7px;min-width:0}
.ek-tactical-report{margin-top:1px!important;padding:4px 7px!important;font-size:11px!important}
.ek-tactical-report p{font-size:10px!important;margin:0!important}
.ek-command-console-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ek-command-console-head h2{font:700 19px 'Everkin Serif',Georgia,serif!important;margin:0!important;color:#f6dba1}
.ek-command-console-head .ek-wizard-kicker{font-size:9px!important}
.ek-energy-chip{font-size:11px;font-weight:800;color:#f0d08d;border:1px solid #55728d;background:#102c47;padding:5px 9px;border-radius:20px;white-space:nowrap}
.ek-command-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.ek-command-toolbar button{min-width:0;min-height:64px!important;padding:7px!important;display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;gap:2px 7px;text-align:left;border:1px solid #416b90!important;background:linear-gradient(#183a57,#0b233b)!important;border-radius:9px;box-shadow:none!important}
.ek-command-toolbar button>span{grid-row:1/3;font-size:24px;color:#f0ca83;text-align:center}
.ek-command-toolbar button b{font-size:13px;color:#f3ecde;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ek-command-toolbar button small{font-size:10px;color:#accbe2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ek-command-toolbar button.complete{border-color:#b9975a!important;background:linear-gradient(#30455a,#1a3448)!important}
.ek-command-toolbar button:focus-visible{outline:2px solid #ffe0a0!important;outline-offset:1px}
.ek-command-summary{display:grid;grid-template-columns:2fr 2fr 1fr 1fr;gap:7px}
.ek-command-summary>span{padding:6px 8px;border-radius:7px;background:#071a2d;border:1px solid #2e526c;min-width:0;display:flex;flex-direction:column;gap:2px}
.ek-command-summary strong{font-size:9px;letter-spacing:.05em;color:#e8c682}
.ek-command-summary small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#cce0ed}
.ek-command-console-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#aac8d9}
.ek-command-console-footer .ek-controls-actions{display:flex;align-items:center;gap:7px}
.ek-command-console-footer button{min-height:38px!important}
.ek-command-console-footer .ek-resolve{width:auto!important;min-width:220px!important}
.ek-command-backdrop{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;z-index:110;background:#010916c9;backdrop-filter:blur(4px)}
.ek-command-popover{width:min(870px,100%);max-height:min(84dvh,640px);overflow:auto;padding:15px;background:linear-gradient(155deg,#123754,#071a2e 60%,#061426);border:1px solid #8aa4ad;border-radius:17px;box-shadow:0 25px 90px #000c,0 0 36px #3b8db63d}
.ek-command-popup-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px;border-bottom:1px solid #45677d;padding-bottom:10px}
.ek-command-popup-header h2{font:700 23px 'Everkin Serif',Georgia,serif!important;color:#f3d596;margin:3px 0!important}
.ek-command-popup-header p{color:#a8cddd;margin:0!important;font-size:12px!important}
.ek-command-close{font-size:20px;min-width:40px;min-height:38px}
.ek-command-grid{display:grid;gap:8px;align-items:stretch}
.ek-command-grid-items{grid-template-columns:repeat(4,minmax(0,1fr))}   /* v5.9.3: 8 slots, 4 x 2 */
.ek-command-choice{min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:151px;padding:6px!important;border:1px solid #496c8b!important;border-radius:10px;background:#0a2945!important;color:#e7f3ff;text-align:center}
.ek-command-choice img{width:100%!important;height:67px!important;object-fit:contain!important;flex:none}
.ek-command-choice b{font-size:11px;line-height:1.15;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ek-command-choice small{font-size:9px;color:#bcd4e5;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}
.ek-command-choice .ek-choice-check{position:absolute;right:5px;top:5px;width:20px;height:20px;background:#10283e;color:#f4d490}
.ek-command-choice.on,.ek-command-popover button.on{background:#2b4354!important;border:2px solid #f0ca7e!important}
.ek-command-grid-spells{grid-template-columns:repeat(3,minmax(0,1fr))}
.ek-command-grid-spells .ek-gear-choice{min-height:102px!important;padding:10px!important}
.ek-command-grid-stances{grid-template-columns:repeat(5,minmax(0,1fr))}
.ek-command-stance{min-height:145px;padding:10px 7px!important;display:flex;flex-direction:column;align-items:center;gap:7px;border:1px solid #527490!important;border-radius:11px;background:#0e304c!important;color:#e8f4ff}
.ek-command-stance>span{font-size:27px}.ek-command-stance b{font-size:14px;color:#ffdf9f}.ek-command-stance small{font-size:11px;line-height:1.35;color:#c3d8e5}.ek-command-stance em{font-size:9px;color:#eccc88;font-style:normal}
.ek-command-empty{grid-column:1/-1;padding:25px;text-align:center;color:#bed8eb;border:1px dashed #537791;border-radius:10px}
.ek-command-note{font-size:12px!important;grid-column:1/-1;color:#b8d3e2}
.ek-command-popup-footer{border-top:1px solid #41627d;padding-top:10px;margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:#b0d2e9}
.ek-command-popup-footer button{min-width:110px}
@media(max-width:720px){
 .ek-battlefield{height:195px!important;min-height:195px!important}
 .ek-command-toolbar{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .ek-command-toolbar button{min-height:64px!important;padding:4px!important;display:flex;flex-direction:column;gap:3px;text-align:center}
 .ek-command-toolbar button>span{font-size:20px}.ek-command-toolbar button b{font-size:10px}.ek-command-toolbar button small{font-size:9px}
 .ek-command-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .ek-command-console-head h2{font-size:17px!important}
 .ek-command-console-footer{flex-wrap:wrap;gap:5px}
 .ek-command-console-footer .ek-controls-actions{width:100%}.ek-command-console-footer .ek-resolve{min-width:0!important;flex:1}
 .ek-command-grid-items{grid-template-columns:repeat(4,minmax(0,1fr))}
 .ek-command-grid-stances{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ek-command-grid-spells{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ek-command-backdrop{padding:9px}
 .ek-command-popover{padding:11px;max-height:84dvh}
}

/* Keep the active arena in the viewport; overlay choices are intentionally independent. */
@media(min-width:980px) and (min-height:680px){
 body:has(.ek-combat-screen):not(:has(.ek-command-backdrop)){padding-bottom:0!important}
 body:has(.ek-combat-screen) nav.bottom{display:none!important}
 .ek-combat-screen .ek-combat-top{padding:5px 10px!important}
}
@media(min-width:980px){
 #alpha-portal .alpha-auth-shell--desktop{max-width:min(75vw,1320px)!important;grid-template-columns:minmax(0,1fr) minmax(320px,440px)!important}
}

/* v5.3 spells in Battle commands mirror the equipment cards */
.ek-spell-choice .ek-spell-plate{position:relative;width:100%;height:67px;flex:none;display:grid;place-items:center;border-radius:8px;
 background:radial-gradient(circle at 50% 45%,#2b4f7a,#0c2038 70%);border:1px solid #3b6286}
.ek-spell-choice .ek-spell-rune{font-size:34px;line-height:1;filter:drop-shadow(0 0 8px #ffd98a66)}
.ek-spell-choice .ek-spell-cost{position:absolute;left:5px;top:5px;padding:1px 6px;border-radius:99px;background:#10283e;border:1px solid #f0ca7e88;color:#ffe2a3;font-size:10px;font-weight:800}
.ek-spell-plate.el-fire{background:radial-gradient(circle at 50% 45%,#7a3a1f,#2a1410 72%)}.ek-spell-plate.el-water,.ek-spell-plate.el-ice{background:radial-gradient(circle at 50% 45%,#1f5a7a,#0c2038 72%)}
.ek-spell-plate.el-earth{background:radial-gradient(circle at 50% 45%,#5a4a2a,#1e1a10 72%)}.ek-spell-plate.el-air{background:radial-gradient(circle at 50% 45%,#4f6d7d,#13222b 72%)}
.ek-spell-plate.el-lightning{background:radial-gradient(circle at 50% 45%,#6d5f1c,#1f1c0a 72%)}.ek-spell-plate.el-nature{background:radial-gradient(circle at 50% 45%,#2f6a35,#0f2112 72%)}
.ek-spell-plate.el-shadow{background:radial-gradient(circle at 50% 45%,#4a2f6a,#170f22 72%)}.ek-spell-plate.el-light{background:radial-gradient(circle at 50% 45%,#7a6a3a,#24200f 72%)}
.ek-spell-plate.el-physical{background:radial-gradient(circle at 50% 45%,#55606d,#181d24 72%)}
.ek-command-choice .ek-spell-extra{color:#ffe2a3}
.ek-command-choice .ek-spell-status{color:#ffb4a6;font-weight:700}
.ek-command-choice:disabled{opacity:.55;cursor:not-allowed}
/* ===== client/css/34_round_ledger.css ===== */
/* Round-linked equipment ledger: transparent icon glyphs, no colored badges. */
.ek-battlefield{overflow:hidden}
.ek-round-spine{position:absolute;z-index:3;left:50%;top:8px;bottom:17px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;pointer-events:none;min-width:45px}
.ek-round-spine-label{font-size:8px;letter-spacing:.13em;font-weight:800;color:#d1ddeb;text-shadow:0 2px 5px #051225}
.ek-round-spine-list{display:flex;flex-direction:column;align-items:center;gap:3px;overflow-y:auto;scrollbar-width:thin;pointer-events:auto;max-height:100%;padding:0 5px 3px}
.ek-round-node{display:grid;place-items:center;width:39px;height:26px!important;min-height:26px!important;padding:0!important;font-size:11px!important;border-radius:20px!important;border:1px solid #7394b0!important;background:#07223bcc!important;color:#ecf2fc!important;box-shadow:0 2px 9px #0008}
.ek-round-node.on{border-color:#f3c666!important;background:#25435b!important;color:#ffe2a0!important;box-shadow:0 0 0 1px #ffdb70,0 0 12px #ffc85277;font-weight:900}
.ek-round-node:disabled{opacity:.38}
.ek-round-node:focus-visible{outline:2px solid #ffe2a0;outline-offset:2px}
.ek-battlefield-footer{align-items:center!important;z-index:4;pointer-events:none}
.ek-review-auto-toggle{pointer-events:auto;display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:750;letter-spacing:.015em;color:#e8eef4;padding:4px 8px;border-radius:8px;background:#071e32cd;border:1px solid #67849d;cursor:pointer;user-select:none;white-space:nowrap}
.ek-review-auto-toggle input{position:absolute;opacity:0;width:1px;height:1px;margin:0;padding:0}
.ek-review-checkmark{display:grid;place-items:center;width:15px;height:15px;border:1px solid #a2b7c8;border-radius:3px;color:transparent;background:#132a3e;font-size:12px;line-height:1}
.ek-review-auto-toggle input:checked+.ek-review-checkmark{color:#0a2337;background:#f4d38f;border-color:#f5d993}
.ek-review-auto-toggle:focus-within{outline:2px solid #ffd988;outline-offset:2px}
.ek-round-review{background:#071a2c;border:1px solid #385b76;border-radius:10px;overflow:hidden;margin-top:0;padding:0!important;min-width:0}
.ek-review-heading{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;min-height:39px!important;padding:6px 12px!important;border:none!important;border-radius:0!important;background:linear-gradient(100deg,#122e46,#071c30)!important;gap:8px}
.ek-review-heading-left{display:flex;align-items:center;gap:10px;min-width:0}
.ek-review-heading-left strong{font:700 14px 'Everkin Serif',Georgia,serif;color:#f1d69e;white-space:nowrap}
.ek-review-eyebrow{font-size:9px;font-weight:700;letter-spacing:.055em;color:#a5c7db;white-space:nowrap}
.ek-review-caret{font-size:20px;color:#efcf8d;min-width:11px;line-height:1}
.ek-review-outcome{display:flex;gap:12px;font-size:10px;color:#d7e7ef;white-space:nowrap}
.ek-review-heading:focus-visible{outline:2px solid #ffe09d;outline-offset:-3px}
.ek-round-review-body{padding:5px 7px 7px}
.ek-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ek-review-side{min-width:0;border-radius:8px;border:1px solid #365877;background:#061a2c;overflow:hidden}
.ek-review-player{border-left:3px solid #efb95c}
.ek-review-enemy{border-left:3px solid #a78aff}
.ek-review-side-top{display:flex;align-items:center;justify-content:space-between;padding:5px 9px;border-bottom:1px solid #26445f;gap:6px}
.ek-review-side-name{font-size:9px;letter-spacing:.06em;font-weight:900;color:#eac981}
.ek-review-enemy .ek-review-side-name{color:#c7b6ff}
.ek-review-side-title{font-size:9px;color:#afc8d6}
.ek-review-item-list{display:grid;gap:0;min-width:0}
.ek-review-item{display:grid;grid-template-columns:minmax(100px,27%) minmax(0,1fr);min-width:0;padding:3px 7px;gap:7px;align-items:center;min-height:72px}
.ek-review-item+.ek-review-item{border-top:1px solid #28455f}
.ek-review-identity{display:flex;align-items:center;gap:6px;min-width:0}
.ek-review-identity img{width:34px;height:43px;object-fit:contain;flex:none;filter:drop-shadow(0 3px 4px #0007)}
.ek-review-item-placeholder{font-size:24px}
.ek-review-identity-label{display:flex;flex-direction:column;min-width:0;gap:3px}
.ek-review-identity-label b{font-size:11px;line-height:1.1;overflow-wrap:anywhere;color:#f2f5f7}
.ek-review-identity-label small{font-size:9px;letter-spacing:.08em;color:#a0bbcf}
.ek-review-effects{display:grid;min-width:0;gap:3px}
.ek-review-effect-line{display:grid;grid-template-columns:60px minmax(0,1fr);gap:3px;align-items:center;min-width:0;min-height:25px}
.ek-review-effect-line+.ek-review-effect-line{border-top:1px solid #25405a;padding-top:3px}
.ek-review-type{font-size:9px;letter-spacing:.025em;display:inline-flex;gap:3px;align-items:center;color:#eabb6e;white-space:nowrap}
.ek-review-type.defense{color:#8ec4e9}
.ek-review-icons{display:flex;align-items:center;gap:3px 7px;flex-wrap:wrap;min-width:0}
.ek-review-effect{display:inline-flex;align-items:center;gap:1px;white-space:nowrap;line-height:1.1;border:none!important;background:none!important;padding:0!important}
.ek-review-symbol{font-size:15px;font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif}
.ek-review-qty{font-size:10px;font-weight:800;font-variant-numeric:tabular-nums;color:#e2e7ed}
.ek-review-none{font-size:12px;color:#7899ad}
.ek-review-abilities{display:flex;align-items:center;gap:7px;border-top:1px solid #28455f;padding:5px 8px;font-size:9px;color:#abc8da}
.ek-review-abilities>span:first-child{color:#f3d08f;white-space:nowrap;font-weight:bold}
.ek-review-abilities>span:last-child{min-width:0;overflow-wrap:anywhere}
.ek-review-signatures{border-top:1px solid #586385}
.ek-review-signatures>small{display:block;margin:5px 8px 0;font-size:9px;color:#e5c98e}
.ek-review-signatures .ek-review-item{min-height:65px}
@media (max-width:750px){
 .ek-round-spine{top:4px;bottom:21px}.ek-round-spine-label{display:none}
 .ek-round-node{width:29px;height:24px!important;min-height:24px!important;font-size:9px!important}
 .ek-review-auto-toggle{font-size:9px;padding:3px 5px}
 .ek-review-grid{grid-template-columns:minmax(0,1fr);gap:6px}
 .ek-review-item{grid-template-columns:minmax(94px,30%) minmax(0,1fr);min-height:76px}
 .ek-review-heading{padding:6px 8px!important}.ek-review-outcome{gap:5px;font-size:9px}
 .ek-review-heading-left{gap:4px;flex-wrap:wrap}.ek-review-eyebrow{font-size:8px}.ek-review-heading-left strong{font-size:13px}
 .ek-review-effect-line{grid-template-columns:52px minmax(0,1fr)}
 .ek-review-icons{gap:4px 6px}.ek-review-symbol{font-size:14px}
}
@media (max-width:390px){
 .ek-review-auto-toggle{font-size:8px;gap:3px}
 .ek-review-identity img{width:28px;height:39px}.ek-review-identity-label b{font-size:10px}
 .ek-review-item{grid-template-columns:88px minmax(0,1fr);gap:5px;padding:4px}
 .ek-review-effect-line{grid-template-columns:47px minmax(0,1fr)}.ek-review-type{font-size:8px}
 .ek-review-icons{gap:3px 5px}.ek-review-symbol{font-size:13px}.ek-review-qty{font-size:9px}
}
/* Dense eight-type loadouts: eight unboxed icon × count pairs still fit a single
   desktop line, leaving the combat command console within a normal desktop frame. */
@media(min-width:980px){
 .ek-review-item{grid-template-columns:minmax(86px,23%) minmax(0,1fr);min-height:60px;padding:2px 5px;gap:4px}
 .ek-review-identity img{width:28px;height:36px}
 .ek-review-identity-label b{font-size:10px}
 .ek-review-effect-line{grid-template-columns:53px minmax(0,1fr);min-height:22px;gap:2px}
 .ek-review-type{font-size:8px;letter-spacing:0}
 .ek-review-icons{gap:1px 4px}
 .ek-review-symbol{font-size:13px}
 .ek-review-qty{font-size:9px}
 .ek-review-side-top{padding:4px 7px}
 .ek-round-review-body{padding:4px 6px 5px}
 .ek-review-heading{min-height:35px!important;padding:4px 10px!important}
 .ek-combat-screen{gap:5px!important}
 .ek-battlefield{height:165px!important;min-height:165px!important}
 .ek-fighter-field img{height:145px!important}
}
@media(min-width:980px) and (min-height:760px){
 body:has(.ek-combat-screen)>main{padding-top:6px!important;padding-bottom:8px!important}
 .ek-combat-screen{gap:4px!important}
 .ek-battlefield{height:152px!important;min-height:152px!important}
 .ek-fighter-field{inset:25px 0 9px!important}
 .ek-fighter-field img{height:130px!important}
 .ek-round-spine{top:2px;bottom:8px;gap:1px}
 .ek-round-spine-label{font-size:7px;line-height:10px}
 .ek-round-spine-list{gap:1px}
 .ek-round-node{height:21px!important;min-height:21px!important;width:35px;font-size:10px!important}
 .ek-battle-controls.ek-command-console{padding:6px 10px!important;gap:4px}
 .ek-command-toolbar button{min-height:53px!important}
 .ek-command-summary>span{padding:4px 7px}
 .ek-command-console-footer button{min-height:34px!important}
}
/* The new history ledger replaces the old one-line tactical report. */
.ek-combat-screen .ek-tactical-report{display:none!important}
.ek-review-stance{color:#a9c8de}
.arena-stage .ek-ended-round-spine{z-index:5;top:8px;bottom:8px}
@media(max-width:750px){.ek-review-stance{display:none}}
/* ===== client/css/36_tutorial.css ===== */
/* Guided first battle (v5.3.2): a popup coach card over the battle, a spotlight on what it talks about, and a
   💡 Hint button in the action bar to open the card again. Nothing is drawn inside the battle layout. */
#ek-tut-coach[hidden],#ek-tut-spot[hidden]{display:none!important}
.ek-tut-coach{position:fixed;z-index:10060;left:50%;transform:translateX(-50%);width:min(440px,calc(100vw - 20px));
 max-height:min(52dvh,460px);display:flex;animation:ek-tut-in .22s ease-out}
.ek-tut-coach.dock-top{top:calc(10px + env(safe-area-inset-top))}
.ek-tut-coach.dock-bottom{bottom:calc(84px + env(safe-area-inset-bottom))}
.ek-tut-coach.dock-center{top:50%;transform:translate(-50%,-50%);max-height:min(76dvh,620px)}
@keyframes ek-tut-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.ek-tut-coach{animation:none}}
.ek-tut-coach .ek-tut-panel{display:flex;flex-direction:column;gap:8px;width:100%;min-height:0;margin:0;padding:12px 14px 12px;
 border:2px solid #e8bc73;border-radius:16px;background:linear-gradient(160deg,#1b3150,#0a1d36 70%);box-shadow:0 18px 50px #000c,0 0 0 1px #00000066}
.ek-tut-body{overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.ek-tut-panel p{font-size:15px!important;line-height:1.5!important;color:#e3ecf6;margin:0}
.ek-tut-panel b{color:#fbe3ad}
.ek-tut-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.ek-tut-head h3{margin:3px 0 0!important;font:700 19px/1.2 'Everkin Serif',Georgia,serif!important;color:#f9dfa7}
.ek-tut-close{flex:none;width:40px;height:40px;min-height:40px!important;padding:0!important;border-radius:50%!important;border:1px solid #5b7aa8!important;background:#122540!important;color:#e6f0fb!important;font-size:16px!important}
.ek-tut-panel .ek-coach-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center}
.ek-tut-panel .ek-coach-actions button{min-height:44px;padding:8px 16px;font-size:15px;border-radius:10px}
.ek-tut-panel .ek-coach-actions button.primary{min-width:130px}
.ek-tut-panel .ek-coach-actions button[disabled]{opacity:.6;cursor:not-allowed}
.ek-tut-panel .ek-tut-skip{margin-right:auto;background:transparent!important;border:0!important;color:#9fc0dc!important;text-decoration:underline;padding:8px 4px!important}
.ek-tut-wheel{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:3px 12px;margin:6px 0;padding:8px 10px;border-radius:10px;background:rgba(9,22,40,.6);border:1px solid #2c4a72;font-size:13px;color:#dbe7f5}
.ek-tut-recap{border-left:3px solid #78d2ec;padding:6px 10px;background:rgba(120,210,236,.08);border-radius:0 8px 8px 0}
.ek-tut-recap span{display:block;font-size:10px;font-weight:900;letter-spacing:.14em;color:#78d2ec}
.ek-tut-recap p{font-size:14px!important}
.ek-tut-intent{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:10px;border:1px solid #c79a52;background:linear-gradient(100deg,#3a2a14,#1b2638);font-size:14px!important}
.ek-tut-intent>span:first-child{font-size:24px;line-height:1}
.ek-tut-intent small{display:block;font-size:10px;font-weight:900;letter-spacing:.12em;color:#f3cf82}
.ek-tut-good{color:#8ff0b6!important}
.ek-tut-warn{color:#ffc27a!important}
.ek-tut-status{padding:8px 10px;border-radius:9px;background:rgba(255,213,124,.08);border:1px solid #6d5a2e;font-size:14px!important}
.ek-tut-status.ok{background:rgba(143,240,182,.1);border-color:#3d8a5f}
.ek-tut-status.warn{background:rgba(255,120,120,.1);border-color:#a24b4b}
.ek-tut-cheat{border:1px solid #2c4a72;border-radius:10px;padding:6px 10px;background:rgba(9,22,40,.55);color:#dbe7f5;font-size:14px}
.ek-tut-cheat summary{cursor:pointer;font-weight:700;color:#f9dfa7;min-height:36px;display:flex;align-items:center}
.ek-tut-cheat table{width:100%;border-collapse:collapse;margin:6px 0;font-size:13px}
.ek-tut-cheat th,.ek-tut-cheat td{text-align:left;padding:5px 6px;border-bottom:1px solid #22385a;vertical-align:top}
.ek-tut-cheat th{color:#78d2ec;font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.ek-tut-cheat p{font-size:13px!important}

/* spotlight: dims everything except the highlighted control; taps still go through */
#ek-tut-spot{position:fixed;z-index:10055;pointer-events:none;border-radius:14px;opacity:0;transition:top .2s,left .2s,width .2s,height .2s,opacity .2s;
 box-shadow:0 0 0 3px #ffd57c,0 0 0 9999px rgba(2,8,18,.62),0 0 30px 6px rgba(246,199,121,.55)}
#ek-tut-spot.on{opacity:1}
@media(prefers-reduced-motion:reduce){#ek-tut-spot{transition:none}}
/* glow on the next thing to do */
.ek-tut-focus{position:relative;z-index:3!important;outline:3px solid #ffd57c!important;outline-offset:3px;box-shadow:0 0 0 6px rgba(255,213,124,.18),0 0 28px rgba(246,199,121,.55)!important;animation:ek-tut-pulse 1.6s ease-in-out infinite}
@keyframes ek-tut-pulse{0%,100%{outline-color:#ffd57c}50%{outline-color:#fff1c7}}
@media (prefers-reduced-motion:reduce){.ek-tut-focus{animation:none}}
/* the tutorial always keeps an eye on the Enemy Intent bar */
.ek-tutorial-battle .ek-intent-bar{border-width:2px}

/* 💡 Hint button (action bar) */
.ek-tut-hint{min-height:44px;padding:8px 14px!important;border-radius:999px!important;border:1px solid #ffd57c!important;background:#3b2d12!important;color:#ffe9b5!important;font-weight:800;font-size:14px!important;white-space:nowrap;box-shadow:0 0 14px #f6c77955}

/* clearer right and wrong answers in the choice popups */
.ek-tut-badge{display:inline-block;margin-top:4px;font-style:normal;font-size:11px;font-weight:800;letter-spacing:.04em;color:#0f2a1b;background:#8ff0b6;border-radius:999px;padding:2px 8px}
.ek-tut-badtag{display:inline-block;margin-top:4px;font-style:normal;font-size:11px;font-weight:800;color:#ffd6cf;background:#5a1f1f;border:1px solid #c0645a;border-radius:999px;padding:2px 8px}
.ek-tut-rec{display:inline-block;margin-top:3px;font-style:normal;font-size:10px;font-weight:800;color:#2b1405;background:#ffc27a;border-radius:999px;padding:2px 7px;white-space:nowrap}
.ek-command-stance.ek-tut-good-choice{border:2px solid #8ff0b6!important;box-shadow:0 0 0 3px #8ff0b633,0 0 18px #8ff0b644!important}
.ek-command-stance.ek-tut-bad-choice{opacity:.75}
.ek-command-popover .ek-tut-status{margin:0 0 8px}

/* battle help tables (shared with 35_staff_help.js) */
.ek-help-table{width:100%;border-collapse:collapse;margin:6px 0 12px;font-size:14px}
.ek-help-table th,.ek-help-table td{text-align:left;padding:6px;border-bottom:1px solid #22385a;vertical-align:top}
.ek-help-table th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#78d2ec}
.ek-help-wheel{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px 12px;font-size:14px;margin:6px 0 12px}
@media (min-width:900px){
 .ek-tut-coach{left:auto;right:20px;transform:none;width:420px}
 .ek-tut-coach.dock-bottom{bottom:20px}
 .ek-tut-coach.dock-center{top:50%;right:20px;transform:translateY(-50%)}
}
@media (max-width:650px){
 .ek-tut-panel p{font-size:14px!important}
 .ek-tut-wheel,.ek-help-wheel{grid-template-columns:1fr}
 .ek-tut-cheat table{font-size:12px}
}

/* v5.13: young-reader cards: one picture per card and a "Do this" line */
.ek-tut-pic{display:block;width:100%;max-width:320px;height:auto;margin:2px auto 0;font-family:inherit}
.ek-tut-pic text{font-family:inherit;letter-spacing:.01em}
.ek-tut-do{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;background:rgba(143,240,182,.12);border:1px solid #3d8a5f;font-size:15px!important;color:#eaf7ee!important}
.ek-tut-do span{flex:none;font-size:11px;font-weight:900;letter-spacing:.12em;color:#8ff0b6}
.ek-tut-do b{color:#fff}
.ek-tut-note{display:block;margin-top:4px;font-size:13px;color:#9fc0dc}
.ek-tut-panel h3{text-wrap:balance}
@media (max-width:650px){.ek-tut-coach{max-height:min(60dvh,520px)}.ek-tut-do{font-size:14px!important}}

/* v5.14.1: .ek-tut-body is a shrinking flex column; flex:none keeps each picture at its full height (Lesson 6 and the
   last card were squeezed to 110px and spilled over the text). The Lesson 6 item shows only its attack row. */
/* v5.14: tutorial pictures built from real Everkin art (portraits, the Sentinel, painted items, battle chips) */
.ek-tut-scene{display:flex;flex:none;align-items:center;justify-content:center;gap:8px;row-gap:6px;flex-wrap:wrap;min-height:110px;margin:2px 0 4px;padding:8px;border-radius:12px;max-width:100%;
 background:radial-gradient(120% 90% at 50% 100%,rgba(232,188,115,.16),transparent 60%),linear-gradient(180deg,#132743,#0b1a30);border:1px solid #2c4a72}
.ek-tut-fig{display:grid;justify-items:center;gap:2px;margin:0}
.ek-tut-fig img{width:76px;height:76px;object-fit:contain;filter:drop-shadow(0 6px 10px #0009)}
.ek-tut-fig.is-item img{width:54px;height:54px}
.ek-tut-fig.is-small img{width:40px;height:40px}
.ek-tut-fig.is-me img{transform:scaleX(-1)}
.ek-tut-fig figcaption{font-size:11px;font-weight:800;color:#e3ecf6;letter-spacing:.02em}
.ek-tut-fig.is-glow-fire img{filter:drop-shadow(0 0 8px #ff7a3a) drop-shadow(0 6px 10px #0009)}
.ek-tut-fig.is-glow-burst img{filter:drop-shadow(0 0 14px #8ff07a) drop-shadow(0 0 4px #fff);animation:ek-tut-pulse 1.4s ease-in-out infinite}
.ek-tut-fig.is-fake img{filter:drop-shadow(0 0 12px #8ff07a);outline:2px dashed #8ff07a;outline-offset:2px;border-radius:12px}
.ek-tut-fig.is-tired img{filter:grayscale(.6) brightness(.8) drop-shadow(0 6px 10px #0009)}
.ek-tut-fig.is-waiting img{filter:drop-shadow(0 0 10px #c0645a)}
.ek-tut-fig.is-incoming img{transform:rotate(-20deg)}
.ek-tut-fig.is-hero img{width:92px;height:92px}
.ek-tut-side{display:grid;justify-items:center;gap:4px}
.ek-tut-hp{display:block;width:72px;height:7px;border-radius:999px;background:#2c4a72;overflow:hidden}
.ek-tut-hp i{display:block;height:100%;background:#8ff0b6}
.ek-tut-vs{font:900 18px/1 Georgia,serif;color:#f9dfa7}
.ek-tut-go{font-size:20px;color:#9fc0dc}
.ek-tut-col{display:grid;gap:4px;justify-items:start}
.ek-tut-row{display:flex;align-items:center;gap:4px}
.ek-tut-or{font-size:11px;color:#9fc0dc}
.ek-tut-grid{display:flex;flex-wrap:wrap;gap:4px;max-width:200px}
.ek-tut-step{display:grid;justify-items:center;gap:3px}
.ek-tut-step>b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e8bc73;color:#1b1406;font-size:12px}
.ek-tut-step small{font-size:11px;color:#9fc0dc}
.ek-tut-pair{display:flex}
.ek-tut-pair .ek-tut-fig img{width:40px;height:40px}
.ek-tut-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;border:1px solid #5b7aa8;background:#122540;color:#e6f0fb;font-size:12px;font-weight:800;white-space:nowrap}
.ek-tut-chip.is-good{border-color:#3d8a5f;background:#123524;color:#bff5d4}
.ek-tut-chip.is-bad{border-color:#a24b4b;background:#3a1616;color:#ffd6cf;text-decoration:line-through;text-decoration-thickness:2px}
.ek-tut-chip.is-fire{border-color:#e8572a;background:#3b1608;color:#ffd1b8}
.ek-tut-chip.is-seen{border-color:#3d8a5f;background:#8ff0b6;color:#0f2a1b;text-decoration:none}
.ek-tut-chip.is-go{background:#e8bc73;color:#1b1406;border-color:#e8bc73}
.ek-tut-intent{font-size:12px;font-weight:800;color:#f3cf82}
.ek-tut-card{display:grid;justify-items:center;gap:2px}
.ek-tut-card .ek-icons-stack{margin:0;gap:0}
.ek-tut-card .ek-icon-defense,.ek-tut-card .ek-icon-label{display:none}
.ek-tut-card .ek-icon-row{gap:4px;flex-wrap:nowrap;justify-content:center}
.ek-tut-card .ek-icon-kind{font-size:18px}
@media (max-width:420px){.ek-tut-fig img{width:60px;height:60px}.ek-tut-fig.is-item img{width:44px;height:44px}.ek-tut-scene{gap:6px;padding:6px}}
@media (prefers-reduced-motion:reduce){.ek-tut-fig.is-glow-burst img{animation:none}}

.ek-tut-do .ek-tut-do-text{flex:1 1 auto;min-width:0;display:block;color:#eaf7ee;font-weight:600;letter-spacing:0;font-size:inherit}
/* ===== client/css/38_training.css ===== */
/* Everkin v4.9.0 — Training Academy, daily quests and pet slots (parchment panels shared with profiles_ui.css). */
.tr,.q-list{display:grid;gap:14px;color:var(--tp-ink);font-family:Inter,'Segoe UI',system-ui,sans-serif}
.tr h1,.tr h2,.tr h3,.q-head h1,.q-card h2{font-family:'Everkin Serif',Georgia,serif;color:var(--tp-ink);margin:0}
.tr-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 22px}
.tr-hero h1{font-size:clamp(26px,3.2vw,36px)}
.tr-hero p{margin:6px 0 0;max-width:640px;color:var(--tp-ink-2);font-size:14px;line-height:1.5}
.tr-hero-side{display:grid;gap:8px;justify-items:end}
.tr-wallet{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;background:#16223a;color:#f3e6c9;font-size:14px}
.tr-wallet .ek-ico{width:18px;height:18px;color:#8fd3ff}
.tr-wallet b{font-size:17px}
.tr-plan{font-size:12.5px;color:var(--tp-ink-2);font-weight:700}
.tr-team{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.tr-card{display:grid;gap:8px;padding:12px;border-radius:14px;background:linear-gradient(180deg,#22314f,#16223a);border:1px solid #0d1426;color:#f3e6c9;box-shadow:0 10px 24px #0006}
.tr-card.is-sel{outline:3px solid var(--tp-gold-2);outline-offset:1px}
.tr-card.is-idle{box-shadow:0 0 0 2px #e0874b inset,0 10px 24px #0006}
.tr-card-main{display:flex;align-items:center;gap:10px;background:none!important;border:0!important;padding:0!important;color:inherit!important;text-align:left;cursor:pointer;min-height:0}
.tr-card-main img{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 4px 6px #0008)}
.tr-card-id{display:grid}.tr-card-id b{font-size:16px}.tr-card-id small{color:#c9d4e6;font-size:12px}
.tr-mini{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;height:34px;align-items:end}
.tr-mini span{position:relative;height:100%;border-radius:4px;background:#0d172b;overflow:hidden}
.tr-mini i{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(0deg,#d99a2b,#f5cf5f)}
.tr-meter{height:8px;border-radius:999px;background:#0d172b;overflow:hidden}
.tr-meter i{display:block;height:100%;background:linear-gradient(90deg,#4f8fd6,#7cd2f0);border-radius:999px}
.tr-manage .tr-meter{background:#dcc89f;max-width:340px}
.tr-status{margin:0;font-size:13px;min-height:18px}
.tr-status b{text-transform:capitalize}
.tr-idle{color:#ffb27a;font-weight:800}
.tr-ok{display:inline-flex;align-items:center;gap:5px;color:#2fa45a;font-weight:800}
.tr-card .tr-ok{color:#8ff0b6}
.tr-ok .ek-ico{width:16px;height:16px}
.tr-card-acts{display:flex;gap:6px}
.tr-card-acts .tp-btn{flex:1}
.tr-manage{padding:16px 18px;display:grid;gap:12px}
.tr-manage-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tr-manage-head img{width:84px;height:84px;object-fit:contain;filter:drop-shadow(0 6px 8px #0006)}
.tr-manage-head>div:nth-child(2){flex:1;min-width:180px}
.tr-manage-head h2{font-size:24px}
.tr-fill{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tr-fill select,.tr-crystal select{min-height:42px;border-radius:9px;border:1px solid var(--tp-edge-2);background:#fffaf0;color:var(--tp-ink);padding:4px 10px}
.tr-stats{display:grid;gap:6px}
.tr-stat{display:grid;grid-template-columns:minmax(120px,1.1fr) minmax(140px,1.6fr) minmax(120px,1fr) auto;align-items:center;gap:12px;padding:8px 10px;border-radius:10px;background:#fbf5e8;border:1px solid #e3cf9f}
.tr-stat-name{display:grid}.tr-stat-name small{font-size:11.5px;color:var(--tp-faint);line-height:1.25}
.tr-stat-bar{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;font-variant-numeric:tabular-nums;font-weight:800}
.tr-stat-bar small{font-weight:600;color:#2f6fb3}
.tr-stat-next{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px}
.tr-gem{width:14px!important;height:14px!important;vertical-align:-2px;color:#2f6fb3}
.tr-tag{display:inline-flex;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:900}
.tr-mentor{background:#e1efff;color:#1f5aa0;border:1px solid #9cc2ee}
.tr-scroll{font-size:13px;color:var(--tp-ink-2)}
.tr-cols{display:grid;grid-template-columns:1.3fr 1fr;gap:16px}
.tr-cols h3{font-size:17px;margin:0 0 8px}
.tr-cols h3:not(:first-child){margin-top:14px}
.tr-queue{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:360px;overflow:auto}
.tr-queue li{display:grid;grid-template-columns:80px 1fr auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:7px 10px;border-radius:9px;background:#fbf5e8;border:1px solid #e3cf9f;font-size:13px}
.tr-queue li b{text-transform:capitalize;grid-row:span 2}
.tr-queue li small{color:var(--tp-faint);grid-column:2}
.tr-queue li .ek-ico-btn{grid-row:1/3;grid-column:3;width:32px;height:32px;min-height:32px!important}
.tr-queue li.is-now{background:#e9f4ff;border-color:#9cc2ee}
.tr-boosts{display:grid;gap:8px}
.tr-boosts .tp-btn{justify-content:flex-start;flex-wrap:wrap}
.tr-boosts small{font-weight:500;opacity:.8;font-size:12px}
.tr-crystal{display:flex;gap:6px;flex-wrap:wrap}.tr-crystal .tp-btn{flex:1}
.tr-done{display:grid;gap:3px;font-size:12.5px;color:var(--tp-ink-2);max-height:150px;overflow:auto}
.tr-help{padding:12px 18px}
.tr-help summary{cursor:pointer;font-weight:800;font-family:'Everkin Serif',Georgia,serif;font-size:18px}
.tr-help ul{padding-left:18px;font-size:13.5px;line-height:1.5;color:var(--tp-ink-2)}
.tr-help .ek-help-table th{color:#8a6a3b}
.tr-help .ek-help-table td,.tr-help .ek-help-table th{border-bottom-color:#e3cf9f}

/* Daily quests */
.q-head{padding:18px 22px;margin-bottom:14px;color:var(--tp-ink)}
.q-head h1{font-size:30px}
.q-head p{margin:6px 0 0;color:var(--tp-ink-2)}
.q-card{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 18px}
.q-card>div:first-child{flex:1;min-width:220px}
.q-card h2{font-size:19px;margin-bottom:6px}
.q-card.is-ready{box-shadow:inset 0 0 0 3px #fbf5e8,inset 0 0 0 5px #2fa45a,0 14px 34px #0007}
.q-card.is-done{opacity:.75}
.q-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.q-tip{margin-top:12px;color:#c9d4e6!important}

/* Pet slots */
.ek-slots{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:12px 16px;margin-bottom:12px;color:var(--tp-ink)}
.ek-slots p{margin:0;flex:1;min-width:200px}
.ek-slots.is-locked{box-shadow:inset 0 0 0 3px #fbf5e8,inset 0 0 0 5px #e0874b,0 14px 34px #0007}
.ek-slot-pips{display:flex;gap:6px}
.ek-slot-pips span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;border:2px dashed #c9b07c;color:#9b8364}
.ek-slot-pips span.used{border:2px solid #d99a2b;background:linear-gradient(180deg,#f5cf5f,#d99a2b);color:#2a1c0b}
.ek-slot-pips span.locked{border-style:solid;background:#e6d6b2}
.ek-slot-pips .ek-ico{width:16px;height:16px}

@media(max-width:900px){
 .tr-stat{grid-template-columns:1fr auto;grid-template-areas:"name btn" "bar bar" "next next"}
 .tr-stat-name{grid-area:name}.tr-stat-bar{grid-area:bar}.tr-stat-next{grid-area:next}.tr-stat>button{grid-area:btn}
 .tr-cols{grid-template-columns:1fr}
}
@media(max-width:520px){
 .tr-team{grid-template-columns:1fr 1fr}
 .tr-card{padding:10px}
 .tr-card-main img{width:48px;height:48px}
 .tr-card-acts{flex-direction:column}
 .tr-hero-side{justify-items:start}
}
.ek-slots p,.q-card p,.tr-manage p{color:var(--tp-ink-2)}

/* ---------------------------------------------------------- daily quests popup in the header (v5.3.1) */
.ek-quest-pop .km-drawer-head{padding-bottom:2px}
.ek-quest-pop-sub{margin:0 20px 10px;color:#a9c4dc;font-size:13px}.ek-quest-pop-sub b{color:#f5d891}
.ek-quest-pop .km-drawer-body.q-list{gap:10px;padding-top:8px}
.ek-quest-pop .q-card{display:grid;grid-template-columns:1fr;gap:8px;padding:12px 14px}
.ek-quest-pop .q-card h2{font-size:15px;line-height:1.3}
.ek-quest-pop .q-card .q-acts{display:flex;align-items:center;gap:8px;justify-content:flex-start}
.ek-quest-pop .q-card .tp-btn{min-height:36px;padding:6px 14px!important;font-size:13px}
.ek-quest-pop .q-none{color:#a9c4dc;padding:18px 6px;text-align:center}
.ek-quest-pop .km-drawer-foot span{font-size:12px;color:#9fbcd4}
/* ===== client/css/40_profiles.css ===== */
/* Everkin v4.9.0 — profiles, trophy cases, avatars, friends list. Uses the Trading Post parchment look. */
:root{--tp-paper:#f3e6c9;--tp-paper-2:#f8efdc;--tp-paper-3:#ead9b4;--tp-edge:#c9a96d;--tp-edge-2:#b48f50;--tp-ink:#2f2114;--tp-ink-2:#5e4630;--tp-faint:#9b8364;
 --tp-gold-1:#f8d77f;--tp-gold-2:#dca543;--tp-navy:#16223a;--tp-navy-2:#22314f;--tp-tile:#1b2540;--ek-green:#2fa45a}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ek-sm{min-height:34px!important;padding:5px 12px!important;font-size:13px!important}
.ek-faint{color:var(--tp-faint);font-size:13px;margin:4px 0}
.ek-kicker{display:block;font-size:11px;font-weight:900;letter-spacing:.16em;color:#a07a3c}

/* Avatars */
.ek-av{--av:40px;display:inline-grid;place-items:center;width:var(--av);height:var(--av);flex:none;border-radius:50%;box-shadow:0 0 0 2px #fbf5e8,0 0 0 3px #c9a96d,0 3px 8px #0005;vertical-align:middle}
.ek-av svg{width:100%;height:100%;display:block;border-radius:50%}
.ek-avatar-art{box-shadow:0 0 0 2px #d9ac5a}
.km-av-user{background:none!important;box-shadow:none!important;overflow:visible}
.tp-av-art{background:radial-gradient(circle at 50% 40%,#2c4a7a,#16264a 75%)!important}
.tp-av-art .ek-av{--av:64px!important}
.tp-detail-art.tp-av-art .ek-av{--av:76px!important}
@media(max-width:1180px){.tp-card-art.tp-av-art .ek-av{--av:56px!important}}
@media(max-width:700px){.tp-card-art.tp-av-art .ek-av{--av:48px!important}.tp-detail-art.tp-av-art .ek-av{--av:60px!important}}
.tp-user-link,.ek-ulink{background:none!important;border:0!important;padding:0!important;min-height:0!important;font:inherit;font-style:italic;font-weight:800;color:#7a4f1a!important;text-decoration:underline;text-decoration-color:#c9a96d;text-underline-offset:2px;cursor:pointer}
.tp-user-link:hover,.ek-ulink:hover{color:#3d2a12!important}
.tp-offer-av{--av:26px!important;margin-right:6px;box-shadow:0 0 0 1px #c9a96d}
.tp-seller-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 6px 6px 12px;border-radius:999px;background:#16223a;color:#f3e6c9;font-size:13px}
.tp-seller-chip button{display:grid;place-items:center;width:26px;height:26px;min-height:26px!important;padding:0!important;border-radius:999px!important;background:#2c3c5f!important;border:0!important;color:#f3e6c9!important}
.tp-seller-chip .ek-ico{width:14px;height:14px}

/* Profile pages */
.ek-prof{display:grid;gap:14px;color:var(--tp-ink);font-family:Inter,'Segoe UI',system-ui,sans-serif}
.ek-prof h1,.ek-prof h2,.ek-prof h3,.ek-pmodal h2,.ek-pmodal h3{font-family:'Everkin Serif',Georgia,serif;color:var(--tp-ink);margin:0}
.ek-prof h2{display:flex;align-items:center;gap:8px;font-size:20px;margin-bottom:8px}
.ek-prof h2 .ek-ico{width:20px;height:20px;color:#9a6d2a}
.ek-prof-hero{display:flex;gap:20px;align-items:center;padding:20px 22px;flex-wrap:wrap}
.ek-prof-av{--av:112px!important}
.ek-prof-id{flex:1;min-width:220px}
.ek-prof-id h1{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:clamp(26px,3.4vw,38px);line-height:1.1;word-break:break-word}
.ek-prof-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}
.ek-member-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:linear-gradient(90deg,#7c4dff,#d16bff);color:#fff;font:800 11px Inter,system-ui,sans-serif;letter-spacing:.04em}
.ek-online{display:block;color:var(--ek-green)!important;font-weight:800;font-size:13px}
.ek-offline{display:block;color:var(--tp-faint);font-size:12.5px}
.ek-friend-tag{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 14px;border-radius:9px;background:#e4f4e8;border:1px solid #8fc79e;color:#1d5a30;font-weight:800;font-size:14px}
.ek-friend-tag .ek-ico{width:18px;height:18px}
.ek-blocked-note{display:flex;gap:8px;align-items:center;margin:0;color:#8a2c22;font-size:13px}
.ek-more-menu{position:relative}
.ek-more-menu summary{list-style:none;cursor:pointer}
.ek-more-menu summary::-webkit-details-marker{display:none}
.ek-more-menu>div{position:absolute;z-index:20;top:calc(100% + 6px);left:0;min-width:200px;display:grid;padding:6px;border-radius:10px;background:#fbf5e8;border:1px solid var(--tp-edge);box-shadow:0 10px 28px #0006}
.ek-more-menu>div button{background:none!important;border:0!important;color:var(--tp-ink)!important;text-align:left;padding:9px 10px!important;border-radius:7px!important;min-height:38px;font-size:14px;cursor:pointer}
.ek-more-menu>div button:hover{background:#f0e2c4!important}
.ek-more-menu>div button.danger{color:#a3271c!important}
.ek-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.ek-tile{display:grid;gap:2px;justify-items:start;padding:12px 14px;border-radius:12px;background:linear-gradient(180deg,#22314f,#16223a);color:#f3e6c9;border:1px solid #0d1426}
.ek-tile .ek-ico{width:20px;height:20px;color:#f2c96b}
.ek-tile b{font-size:24px;font-family:'Everkin Serif',Georgia,serif}
.ek-tile span{font-size:12px;color:#c9d4e6}
.ek-prof-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px}
.ek-prof-sec{padding:16px 18px}
.ek-prof p,.ek-pmodal p{color:var(--tp-ink-2)}
.ek-prof .ek-case p{color:#d9c8a6}
.ek-prof-side p{margin:4px 0 10px}
.ek-prof-side h2+p{margin-top:0}
.ek-prof-side h2:not(:first-child){margin-top:16px}
.ek-showcase{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.ek-show-item{display:grid;justify-items:center;gap:4px;padding:10px 6px!important;border-radius:12px!important;background:radial-gradient(circle at 50% 30%,#fffaf0,#efe0bf)!important;border:1px solid var(--tp-edge)!important;color:var(--tp-ink)!important;cursor:pointer;text-align:center}
.ek-show-item b{font-size:12.5px;line-height:1.2}
.ek-show-item small{font-size:11px;color:var(--tp-faint)}
.ek-pet-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.ek-pet-card{position:relative;display:grid;justify-items:center;gap:2px;padding:10px!important;border-radius:12px!important;background:linear-gradient(180deg,#22314f,#16223a)!important;border:1px solid #0d1426!important;color:#f3e6c9!important;cursor:pointer}
.ek-pet-card img{width:100px;height:100px;object-fit:contain;filter:drop-shadow(0 6px 8px #0008)}
.ek-pet-card small{color:#c9d4e6;font-size:12px}
.ek-mini-tro{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:800;color:#f2c96b}
.ek-mini-tro .ek-ico{width:14px;height:14px}
.ek-plist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ek-plist li{display:flex;align-items:center;gap:10px}.ek-plist li b{flex:1}
.ek-admin-tools{padding:12px 16px;border-radius:12px;background:#22314f;color:#f3e6c9}
.ek-admin-tools summary{cursor:pointer;font-weight:800}
.ek-admin-tools form{display:flex;gap:8px;align-items:center}
.ek-admin-tools input{width:110px}
.ek-prof-missing{display:grid;justify-items:center;gap:8px;padding:30px;text-align:center}
.ek-prof-missing .ek-ico{width:40px;height:40px;color:#9a6d2a}
.ek-case-foot{margin-top:-6px;padding:0 4px}

/* Pet profile */
.ek-pet-hero{background:linear-gradient(180deg,#fdf7ea,#efdfbd)}
.ek-pet-hero-art{width:180px;height:180px;object-fit:contain;filter:drop-shadow(0 10px 14px #0006)}
.ek-pet-sub{margin:4px 0;color:var(--tp-ink-2);text-transform:capitalize}
.ek-owner{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 0}
.ek-owner .ek-online{display:inline}
.ek-statbars{display:grid;gap:8px}
.ek-statbar{display:grid;grid-template-columns:76px 1fr 40px;align-items:center;gap:10px;font-size:14px}
.ek-statbar b{text-align:right;font-variant-numeric:tabular-nums}
.ek-bar{position:relative;height:12px;border-radius:999px;background:#dcc89f;overflow:hidden;box-shadow:inset 0 1px 2px #0003}
.ek-bar i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#d99a2b,#f5cf5f);border-radius:999px}
.ek-bar em{position:absolute;top:0;bottom:0;background:repeating-linear-gradient(135deg,#4f8fd6aa 0 4px,#7cb6f0aa 4px 8px)}
.ek-rings{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.ek-ring{--p:0;display:grid;place-items:center;align-content:center;width:112px;height:112px;border-radius:50%;background:radial-gradient(closest-side,#fbf5e8 76%,transparent 77%),conic-gradient(#2fa45a calc(var(--p)*1%),#dcc89f 0)}
.ek-ring b{font-size:24px;font-family:'Everkin Serif',Georgia,serif}
.ek-ring span{font-size:11px;color:var(--tp-faint);text-align:center;max-width:80px}
.ek-dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:6px 14px;margin:0}
.ek-dl div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px dashed #d6c294;padding:4px 0}
.ek-dl dt{color:var(--tp-ink-2);font-size:13px}.ek-dl dd{margin:0;font-weight:800;font-size:13px;text-align:right}
.ek-asc-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.ek-asc-row p{margin:0 0 8px}
.ek-asc-count{display:grid;justify-items:center;padding:12px 18px;border-radius:14px;background:linear-gradient(180deg,#2d1f52,#1a1235);color:#f1d4ff;min-width:120px}
.ek-asc-count b{font-size:40px;font-family:'Everkin Serif',Georgia,serif;line-height:1}
.ek-asc-count span{font-size:12px}
.ek-asc-row>div:last-child{flex:1;min-width:240px}
.ek-boss-pips{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:6px 0;padding:0}
.ek-boss-pips li{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#dcc89f;color:#7d6544;font-weight:900;font-size:12px;border:2px solid #c9b07c}
.ek-boss-pips li.on{background:linear-gradient(180deg,#f5cf5f,#d99a2b);color:#2a1c0b;border-color:#fff0bf;box-shadow:0 2px 6px #8a5d1a66}
.ek-petprof-link{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;margin-bottom:12px;color:var(--tp-ink)}
.ek-petprof-link span{display:flex;gap:8px;align-items:center}
.ek-petprof-link .ek-ico{width:20px;height:20px;color:#9a6d2a}

/* Trophy case */
.ek-case{padding:16px 18px;background:linear-gradient(180deg,#2a1d12,#1c130b);border:1px solid #6d4f2c;border-radius:14px;color:#f3e6c9;box-shadow:inset 0 0 0 3px #3a2918,0 14px 34px #0007}
.ek-case h2{display:flex;align-items:center;gap:8px;margin:0;font-family:'Everkin Serif',Georgia,serif;color:#f8e3b1;font-size:22px}
.ek-case h2 .ek-ico{width:22px;height:22px;color:#f2c96b}
.ek-case-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.ek-case-head p{margin:4px 0 0;font-size:13px;color:#d9c8a6}
.ek-case-cap{color:#a18a66}
.ek-case-tiers{display:flex;gap:6px;flex-wrap:wrap}
.ek-tier-pill{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:900;letter-spacing:.03em;color:#2a1c0b}
.ek-t-bronze.ek-tier-pill{background:#e2a26c}.ek-t-silver.ek-tier-pill{background:#dbe3ec}.ek-t-gold.ek-tier-pill{background:#f5cf5f}
.ek-t-platinum.ek-tier-pill{background:#a6ecf7}.ek-t-ascendant.ek-tier-pill{background:linear-gradient(90deg,#c9a0ff,#ffa8ea)}
.ek-case-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}
.ek-case-select select{min-height:38px;border-radius:9px;background:#3a2918;color:#f3e6c9;border:1px solid #6d4f2c;padding:4px 10px}
.ek-case-toggle{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#d9c8a6;cursor:pointer}
/* Shelves: rows of trophies standing on wooden planks; grows to 200 without layout changes. */
.ek-shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:0 6px;padding:6px 8px 0;border-radius:10px;
 background:repeating-linear-gradient(180deg,transparent 0 118px,#6e4a26 118px 126px,#3b2714 126px 128px,transparent 128px 134px),linear-gradient(180deg,#24180e,#1a110a)}
.ek-tro{display:grid;justify-items:center;align-content:end;gap:4px;height:134px;padding:6px 2px 18px!important;background:none!important;border:0!important;color:#f3e6c9!important;cursor:pointer;content-visibility:auto;contain-intrinsic-size:92px 134px;border-radius:8px!important}
.ek-tro:hover .ek-tro-svg,.ek-tro:focus-visible .ek-tro-svg{transform:translateY(-3px) scale(1.04)}
.ek-tro .ek-tro-svg{transition:transform .15s;filter:drop-shadow(0 5px 4px #000a)}
.ek-tro span{font-size:11px;line-height:1.15;text-align:center;max-width:88px;max-height:26px;overflow:hidden}
.ek-tro.is-locked span{color:#a8977a}
.ek-tro-svg.is-locked{opacity:.75}
.ek-case-empty{margin:8px 0;color:#d9c8a6}
.ek-more{display:block;margin:10px auto 0;min-height:38px;padding:6px 18px!important;border-radius:9px!important;background:#3a2918!important;color:#f3e6c9!important;border:1px solid #6d4f2c!important;cursor:pointer}

/* Modals */
.ek-pmodal-back{position:fixed;inset:0;z-index:9990;display:grid;place-items:center;padding:16px;background:#050b18cc}
.ek-pmodal{position:relative;width:min(460px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:22px;border-radius:16px;background:linear-gradient(180deg,var(--tp-paper-2),var(--tp-paper));border:1px solid var(--tp-edge);color:var(--tp-ink);box-shadow:0 20px 50px #000a}
.ek-pmodal-wide{width:min(720px,100%)}
.ek-pmodal-x{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:36px;height:36px;min-height:36px!important;padding:0!important;border-radius:999px!important;background:#16223a!important;border:0!important;color:#f3e6c9!important;cursor:pointer}
.ek-pmodal-x .ek-ico{width:16px;height:16px}
.ek-pmodal h3{margin:14px 0 8px;font-size:16px}
.ek-tro-detail{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap}
.ek-tro-detail>div{flex:1;min-width:200px}
.ek-tro-detail h2{font-size:24px;margin:8px 0 4px}
.ek-tro-detail p{margin:6px 0}
.ek-earned{display:flex;align-items:center;gap:6px;color:#1d6a35;font-weight:800}
.ek-earned .ek-ico{width:18px;height:18px}
.ek-progress{height:12px;border-radius:999px;background:#dcc89f;overflow:hidden;box-shadow:inset 0 1px 2px #0003;margin:8px 0 2px}
.ek-progress i{display:block;height:100%;background:linear-gradient(90deg,#2fa45a,#7bd88f);border-radius:999px}
.ek-progress-text,.ek-cat-line{font-size:12.5px;color:var(--tp-faint)}
.ek-tro-detail .tp-btn{margin-top:8px}
.ek-av-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.ek-av-pick{display:grid;justify-items:center;gap:4px;padding:10px 6px!important;border-radius:12px!important;background:#fbf5e8!important;border:1px solid var(--tp-edge)!important;color:var(--tp-ink)!important;cursor:pointer;font-size:12px}
.ek-av-pick.is-current{outline:3px solid var(--tp-gold-2);outline-offset:1px}
.ek-av-pick.is-locked{cursor:not-allowed;opacity:.62}
.ek-av-pick.is-locked .ek-av{filter:grayscale(1)}
.ek-av-pick small{display:flex;gap:3px;align-items:center;font-size:10.5px;color:var(--tp-faint);text-align:center;line-height:1.2}
.ek-av-pick small .ek-ico{width:11px;height:11px;flex:none}

/* Friends popup */
.ek-friends{position:fixed;z-index:9980;top:64px;right:12px;width:min(370px,calc(100vw - 24px));max-height:calc(100vh - 84px);display:flex;flex-direction:column;border-radius:16px;overflow:hidden;
 background:linear-gradient(180deg,var(--tp-paper-2),var(--tp-paper));border:1px solid var(--tp-edge);box-shadow:0 18px 44px #000a;color:var(--tp-ink);font-family:Inter,'Segoe UI',system-ui,sans-serif}
.ek-fr-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:linear-gradient(180deg,#22314f,#16223a);color:#f3e6c9}
.ek-fr-head h2{display:flex;align-items:center;gap:8px;margin:0;font:700 19px 'Everkin Serif',Georgia,serif;color:#f8e3b1}
.ek-fr-head h2 small{font:500 12px Inter,system-ui,sans-serif;color:#c9d4e6}
.ek-fr-head .ek-ico{width:20px;height:20px}
.ek-ico-btn{display:grid;place-items:center;width:36px;height:36px;min-height:36px!important;padding:0!important;border-radius:999px!important;background:#16223a!important;border:1px solid #33476e!important;color:#f3e6c9!important;cursor:pointer;flex:none}
.ek-ico-btn .ek-ico{width:16px;height:16px}
.ek-fr-search{padding:10px 12px 4px}
.ek-fr-search input{width:100%;min-height:40px;border-radius:10px;border:1px solid var(--tp-edge-2);background:#fffaf0;color:var(--tp-ink);padding:6px 12px;font-size:14px}
.ek-fr-body{overflow:auto;padding:0 6px 6px}
.ek-fr-sec h3{margin:10px 8px 4px;font:900 11px Inter,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#8a6a3b}
.ek-fr-sec ul{list-style:none;margin:0;padding:0}
.ek-fr-sec>.ek-faint{padding:0 8px}
.ek-fr-row{display:flex;align-items:center;gap:6px;padding:2px 4px;border-radius:10px}
.ek-fr-row:hover{background:#efe1c2}
.ek-fr-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:6px 4px!important;background:none!important;border:0!important;color:var(--tp-ink)!important;text-align:left;cursor:pointer;min-height:52px}
.ek-fr-row.is-online .ek-av{box-shadow:0 0 0 2px #fbf5e8,0 0 0 4px #2fa45a}
.ek-fr-name{display:grid;min-width:0}
.ek-fr-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14.5px}
.ek-fr-acts{display:flex;gap:4px;align-items:center}
.ek-fr-empty{padding:8px 10px}
.ek-fr-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid #dcc395;background:#efe1c2}
.ek-fr-foot small{font-size:11px;color:var(--tp-faint)}
.ek-linkbtn{display:inline-flex;align-items:center;gap:6px;background:none!important;border:0!important;color:#7a4f1a!important;font-weight:800;cursor:pointer;padding:4px!important;min-height:32px}
.ek-tro-toast-art{background:#2a1d12!important}
.ek-tro-toast-art .ek-ico{color:#f2c96b}

@media(max-width:820px){
 .ek-prof-grid{grid-template-columns:1fr}
 .ek-prof-hero{padding:16px;gap:14px}
 .ek-prof-av{--av:84px!important}
 .ek-pet-hero-art{width:130px;height:130px}
 .ek-friends{top:56px;bottom:0;right:0;left:0;width:100%;max-height:none;border-radius:16px 16px 0 0;z-index:10001;padding-bottom:env(safe-area-inset-bottom)}
 .ek-shelf{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}
 .ek-tro span{max-width:78px}
}
@media(max-width:480px){
 .ek-prof-actions .tp-btn{flex:1 1 auto}
 .ek-tiles{grid-template-columns:repeat(2,1fr)}
 .ek-ring{width:96px;height:96px}
}

.tr-help summary,.ek-admin-tools summary{background:none!important;border:0!important;color:inherit!important;padding:4px 0!important;box-shadow:none!important}
/* ===== client/css/42_guilds.css ===== */
/* Everkin v5.0 — Guilds (parchment look shared with the Trading Post and profiles). */
.ek-g{display:grid;gap:14px;color:var(--tp-ink);font-family:Inter,'Segoe UI',system-ui,sans-serif;min-width:0}
.ek-g h1,.ek-g h2,.ek-g h3{font-family:'Everkin Serif',Georgia,serif;color:var(--tp-ink);margin:0}
.ek-g h1{font-size:clamp(24px,3.2vw,36px);line-height:1.1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;word-break:break-word}
.ek-g h2{display:flex;align-items:center;gap:8px;font-size:20px;margin-bottom:8px}
.ek-g h2 .ek-ico{width:20px;height:20px;color:#9a6d2a}
.ek-g h3{font-size:17px;margin:10px 0 6px}
.ek-g p{margin:6px 0;line-height:1.5}
.ek-g-pad{padding:16px 18px}
.ek-g-sub{padding:0 4px}
.ek-g-text{white-space:pre-wrap;word-break:break-word}
.ek-g-warn{background:#fff1d0;border:1px solid #d9a441;border-radius:10px;padding:9px 12px;color:#6b4310;font-weight:600}
.ek-g input,.ek-g select,.ek-g textarea{background:#fffaf0;border:1px solid var(--tp-edge);border-radius:8px;color:var(--tp-ink);padding:8px 10px;font:inherit;min-height:40px;max-width:100%;box-sizing:border-box}
.ek-g textarea{width:100%;resize:vertical}
.ek-g label{display:grid;gap:4px;font-weight:700;font-size:13px;color:var(--tp-ink-2);margin:8px 0}
.ek-g label.check{display:flex;align-items:center;gap:8px;font-weight:600}
.ek-g label.check input{min-height:0}
.ek-g fieldset{border:1px solid var(--tp-edge);border-radius:10px;padding:10px 12px;margin:10px 0;display:grid;gap:8px;min-width:0}
.ek-g legend{font-weight:800;font-size:13px;padding:0 6px;color:var(--tp-ink-2)}
.ek-g p,.ek-b p{color:var(--tp-ink-2)}
.ek-g p.ek-faint,.ek-b p.ek-faint{color:var(--tp-faint)}
.ek-g details>summary,.ek-b details>summary{cursor:pointer;font-weight:800;color:#7a4f1a!important;margin:6px 0;background:none!important;border:0!important;padding:4px 0!important;box-shadow:none!important;min-height:0!important}
.ek-g-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.ek-g-inline input{flex:1 1 160px;min-width:0}
.ek-g-inline label{margin:0}
.ek-g-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ek-g-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #d8c39a;flex-wrap:wrap}
.ek-g-row>span:first-of-type,.ek-g-row>span:nth-child(2){flex:1 1 180px;min-width:0}
.ek-g-row small,.ek-g-card small{display:block;color:var(--tp-faint);font-size:12.5px}
.ek-g-reasons{margin:6px 0 10px;padding-left:20px;color:#8a3b1d;font-weight:600}
.ek-g-found-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 12px;align-items:end}
.ek-g-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px;align-items:start}
.ek-g-grid>div{display:grid;gap:14px;min-width:0}
@media(max-width:900px){.ek-g-grid{grid-template-columns:1fr}}

/* Emblems and tags */
.ek-gem{--gs:48px;display:inline-block;width:var(--gs);height:var(--gs);flex:none;filter:drop-shadow(0 3px 5px #0005);vertical-align:middle}
.ek-gem svg{width:100%;height:100%;display:block}
.ek-gtag{font-weight:900;letter-spacing:.04em;font-size:.82em;color:#5e4630;font-family:Inter,system-ui,sans-serif}
.ek-gtag-bold{color:#2f2114}
.ek-gtag-gold{background:linear-gradient(90deg,#b8860b,#f5d36b,#b8860b);-webkit-background-clip:text;background-clip:text;color:transparent}
.ek-gtag-ember{color:#c4471b;text-shadow:0 0 6px #ff9a3c66}
.ek-gtag-frost{color:#2a7fa8;text-shadow:0 0 6px #7fd0e688}
.ek-gtag-royal{color:#5a2d82;text-shadow:0 0 5px #b58cff66}
.ek-gtag-link{background:none!important;border:0!important;padding:0!important;min-height:0!important;cursor:pointer;font:inherit}
.ek-g-card{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:10px 12px!important;border-radius:12px!important;background:#fffaf0!important;border:1px solid var(--tp-edge)!important;color:var(--tp-ink)!important;cursor:pointer;min-width:0}
.ek-g-card:hover{border-color:#a07a3c!important;background:#fff6e2!important}
.ek-g-card>span{min-width:0;overflow-wrap:anywhere}
.ek-g-card-sm{width:auto;max-width:100%}
.ek-g-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}

/* Charter */
.ek-g-head{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.ek-g-head>div{flex:1;min-width:200px}
.ek-g-signers{list-style:none;margin:10px 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ek-g-signers li{display:flex;flex-direction:column;padding:6px 12px;border-radius:10px;border:1px solid var(--tp-edge);background:#fffaf0;font-size:13px}
.ek-g-signers li span{color:var(--tp-faint);font-size:12px}
.ek-g-signers li.is-signed{border-color:#3f8f5a;background:#eef8ee}.ek-g-signers li.is-signed span{color:#2f7d4f;font-weight:800}
.ek-g-signers li.is-declined{opacity:.6;text-decoration:line-through}

/* Emblem editor */
.ek-g-editor{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-start}
.ek-g-preview{display:grid;place-items:center;width:120px;height:120px;border-radius:14px;background:radial-gradient(circle,#fff8e6,#ead9b4);border:1px solid var(--tp-edge);flex:none}
.ek-g-pickers{flex:1;min-width:220px;display:grid;gap:10px}
.ek-g-pickers small{display:block;font-weight:800;color:var(--tp-ink-2);margin-bottom:4px;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.ek-g-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ek-g-chips button{min-height:34px!important;padding:4px 12px!important;border-radius:999px!important;background:#fffaf0!important;border:1px solid var(--tp-edge)!important;color:var(--tp-ink)!important;font-weight:700;font-size:13px;text-transform:capitalize;cursor:pointer}
.ek-g-chips button.on{background:var(--tp-navy)!important;color:#f8d77f!important;border-color:#0d1426!important}
.ek-g-chips button:disabled{opacity:.5;cursor:not-allowed}
.ek-g-chips select{min-height:34px}
.ek-g-swatches{display:flex;flex-wrap:wrap;gap:5px}
.ek-g-swatches.is-second{margin-top:6px}
.ek-g-swatches button{width:28px;height:28px;min-height:0!important;padding:0!important;border-radius:50%!important;background:var(--c)!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #b48f50;cursor:pointer}
.ek-g-swatches.is-second button{width:22px;height:22px;border-radius:6px!important}
.ek-g-swatches button.on{box-shadow:0 0 0 3px #16223a}
.ek-g-swatches button:disabled{opacity:.35;cursor:not-allowed}
.ek-g-glyphs{display:flex;flex-wrap:wrap;gap:4px}
.ek-g-glyphs button{padding:3px!important;min-height:0!important;border-radius:8px!important;background:#fffaf0!important;border:1px solid transparent!important;cursor:pointer;line-height:0}
.ek-g-glyphs button.on{border-color:#16223a!important;background:#ead9b4!important}
.ek-g-glyphs button:disabled{opacity:.35;cursor:not-allowed}

/* Hub banner */
.ek-g-banner{display:flex;gap:18px;align-items:center;padding:18px 20px;flex-wrap:wrap;overflow:hidden}
.ek-g-banner-art{flex:none}
.ek-g-banner-id{flex:1;min-width:220px}
.ek-g-banner-stats{display:flex;gap:10px;flex-wrap:wrap}
.ek-g-banner-stats>span{display:grid;justify-items:center;min-width:76px;padding:8px 10px;border-radius:12px;background:#16223a;color:#f3e6c9}
.ek-g-banner-stats .ek-ico{width:18px;height:18px;color:#f8d77f}
.ek-g-banner-stats b{font-size:17px}
.ek-g-banner-stats small{font-size:11px;opacity:.8}
.ek-g-theme-hall{background:linear-gradient(135deg,#f8efdc,#e7d2a5 60%,#d8b979)!important}
.ek-g-theme-banner{background:repeating-linear-gradient(90deg,#f8efdc 0 38px,#f1e1bf 38px 76px)!important}
.ek-g-theme-skyforge{background:linear-gradient(135deg,#eef4fb,#cfe0ef 55%,#f6d8a8)!important}
.ek-g-theme-monument{background:linear-gradient(135deg,#efe9df,#d5ccbd 60%,#bfb39f)!important}
.ek-g-theme-starlit{background:radial-gradient(circle at 20% 20%,#ffffff22 0 2px,transparent 3px) 0 0/36px 36px,linear-gradient(135deg,#1c2442,#3b2f68)!important}
.ek-g-theme-starlit h1,.ek-g-theme-starlit .ek-faint,.ek-g-theme-starlit .ek-kicker,.ek-g-theme-starlit .ek-g-level small{color:#f3e6c9!important}
.ek-g-level{max-width:420px;margin-top:8px}
.ek-g-level b{font-size:13px}
.ek-g-level small{display:block;font-size:12px;color:var(--tp-faint)}
.ek-g .ek-bar{height:9px;border-radius:99px;background:#e2cfa6;overflow:hidden;margin:4px 0}
.ek-g .ek-bar i{display:block;height:100%;background:linear-gradient(90deg,#dca543,#f8d77f)}
.ek-g-tabs{overflow-x:auto;flex-wrap:nowrap!important;scrollbar-width:thin}
.ek-g-tabs button{white-space:nowrap;flex:none}

/* Feed, members, roles */
.ek-g-feed{list-style:none;margin:0;padding:0;display:grid;gap:2px;max-height:420px;overflow:auto}
.ek-g-feed li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px dashed #e0cda6;font-size:14px}
.ek-g-feed li small{color:var(--tp-faint);white-space:nowrap;flex:none}
.ek-g-trophies{display:flex;flex-wrap:wrap;gap:10px}
.ek-g-trophy{display:grid;justify-items:center;gap:3px;width:78px;text-align:center}
.ek-g-trophy small{font-size:11px;line-height:1.2}
.ek-g-members{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:6px}
.ek-g-member{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;padding:8px 10px;border:1px solid #e0cda6;border-radius:12px;background:#fffaf0}
.ek-g-mmain{display:flex;align-items:center;gap:10px;background:none!important;border:0!important;padding:0!important;min-height:0!important;text-align:left;cursor:pointer;color:var(--tp-ink)!important;min-width:0;flex:1 1 200px}
.ek-g-mmain>span{min-width:0;overflow-wrap:anywhere}
.ek-g-mmain small{display:block;color:var(--tp-faint);font-size:12.5px}
.ek-g-founder{margin-left:6px;font-size:11px;font-weight:800;color:#a07a3c}
.ek-g-member select{min-height:34px;padding:4px 8px}
.ek-g-roles{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.ek-g-role{border:1px solid var(--tp-edge);border-radius:12px;padding:10px;background:#fffaf0;display:grid;gap:8px;min-width:0}
.ek-g-role.is-new{border-style:dashed}
.ek-g-role>div:first-child{display:flex;gap:6px}
.ek-g-role>div:first-child input:first-child{flex:1;min-width:0}
.ek-g-role>div:first-child input[type=number]{width:70px}
.ek-g-perms{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px}
.ek-g-perms label{display:flex!important;align-items:center;gap:6px;font-size:12.5px!important;font-weight:600!important;margin:0!important}
.ek-g-perms input{min-height:0!important}

/* Projects */
.ek-g-projects{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.ek-g-project h3{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:0}
.ek-g-project h3 small{font-family:Inter,system-ui,sans-serif;font-size:12px;color:var(--tp-faint)}
.ek-g-project.is-done{opacity:.85}
.ek-g-project.is-new{border-style:dashed}
.ek-g-need{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;margin:8px 0;font-size:13px}
.ek-g-need .ek-bar{grid-column:1/-1}
.ek-g-need form{grid-column:1/-1;margin:2px 0 6px}
.ek-g-need form input{flex:1 1 90px}

/* Vault */
.ek-g-vault{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.ek-g-vitem{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;align-items:center;padding:10px 12px;border:1px solid var(--tp-edge);border-radius:12px;background:#fffaf0;min-width:0}
.ek-g-vitem>div:nth-child(2){min-width:0}
.ek-g-vitem small{display:block;font-size:12.5px;color:var(--tp-faint)}
.ek-g-vitem .ek-g-acts{grid-column:1/-1}
.ek-g-vitem select{min-width:0;flex:1 1 120px}
.ek-g-onloan{color:#8a5a12!important;font-weight:700}
.ek-g-item{display:grid;place-items:center;width:58px;height:58px;border-radius:10px;border:2px solid #b8a67f;background:var(--tp-tile)}
.ek-g-item img{width:50px;height:50px;object-fit:contain}
.ek-g-rules select{min-height:36px}

/* Leaderboard */
.ek-g-lb .ek-g-chips{margin:8px 0}
.ek-g-table{width:100%;border-collapse:collapse;font-size:14px;margin-top:6px}
.ek-g-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--tp-ink-2);padding:6px 8px;border-bottom:2px solid var(--tp-edge)}
.ek-g-table td{padding:6px 8px;border-bottom:1px dashed #e0cda6;vertical-align:middle}
.ek-g-table tr.is-mine td{background:#fff1d0}
.ek-g-table td:first-child{font-weight:900;width:38px;text-align:center}
.ek-g-lbname{display:flex;align-items:center;gap:8px;background:none!important;border:0!important;padding:0!important;min-height:0!important;text-align:left;color:var(--tp-ink)!important;cursor:pointer}
.ek-g-lbname small{display:block;color:var(--tp-faint);font-size:12px}
.ek-g-lbname:disabled{cursor:default;opacity:.7}
@media(max-width:620px){.ek-g-table th:nth-child(4),.ek-g-table td:nth-child(4),.ek-g-table th:nth-child(5),.ek-g-table td:nth-child(5){display:none}}

/* Danger zone and admin */
.ek-danger{border-color:#c4471b!important}
.ek-danger h2,.ek-danger h2 .ek-ico{color:#9b2c11!important}
.ek-danger form{display:grid;gap:4px;max-width:420px}
.ek-danger-btn{border-color:#c4471b!important;color:#9b2c11!important}
.ek-g-admin-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px 14px}
.ek-g-admin-form label{display:grid;gap:3px;font-size:13px;font-weight:700}
.ek-g-admin-form small{font-weight:400;opacity:.75;font-size:11.5px}
.ek-g-admin-form .ek-admin-buttons{grid-column:1/-1}

@media(max-width:600px){
 .ek-g-pad{padding:13px 12px}
 .ek-g-banner{padding:14px;gap:12px}
 .ek-g-banner-art .ek-gem{--gs:84px!important}
 .ek-g-banner-stats{width:100%}
 .ek-g-banner-stats>span{flex:1;min-width:0}
 .ek-g-perms{grid-template-columns:1fr}
 .ek-g-vault,.ek-g-projects,.ek-g-roles,.ek-g-list{grid-template-columns:1fr}
}

/* Bottom navigation now carries Guild and Boards too */
nav.bottom{grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
@media(max-width:420px){nav.bottom button span{font-size:9.5px!important}nav.bottom button .ek-ico{width:19px;height:19px}}
/* ===== client/css/43_guild_events.css ===== */
/* Everkin v5.9 — guild Tournaments & Wars, the guild / player lookup, and their dialogs (parchment, like the guild page). */
.ek-ge-intro .ek-ge-how{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:8px}
.ek-ge-how>div{background:#fffaf0;border:1px solid var(--tp-edge);border-radius:12px;padding:10px 14px}
.ek-ge-how h3{margin:2px 0 4px!important}
.ek-ge-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ek-ge-head h2{margin:0!important}
.ek-ge-card{border:1px solid var(--tp-edge);border-radius:12px;background:#fffaf0;padding:12px 14px;margin:10px 0;min-width:0}
.ek-ge-card-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:flex-start}
.ek-ge-card-head>div:first-child{flex:1 1 260px;min-width:0}
.ek-ge-card-head h3{margin:4px 0 2px!important;overflow-wrap:anywhere}
.ek-ge-card-head h3 small{font-family:Inter,system-ui,sans-serif;font-size:13px;color:var(--tp-faint)}
.ek-ge-card-head small{display:block;color:var(--tp-faint);font-size:12.5px}
.ek-ge-prize{display:flex;gap:6px;align-items:flex-start;max-width:340px;font-size:13px;font-weight:700;color:#7a4f1a;background:#fff1d0;border:1px solid #e0bb6a;border-radius:10px;padding:6px 10px}
.ek-ge-prize .ek-ico{width:18px;height:18px;flex:none}
.ek-ge-chip{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;border-radius:999px;padding:3px 10px;background:#e9dcc0;color:#5e4630}
.ek-ge-chip.is-signup{background:#dff0ff;color:#1f5fa8}.ek-ge-chip.is-live{background:#ffe2d6;color:#a8361b}.ek-ge-chip.is-done{background:#e2f3e5;color:#2f7d4f}.ek-ge-chip.is-off{background:#eee;color:#777}
.ek-ge-entries{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.ek-ge-entries>span{border:1px solid var(--tp-edge);border-radius:999px;padding:3px 10px;font-size:13px;font-weight:700;background:#fff}
.ek-ge-entries>span small{color:var(--tp-faint);font-weight:600}
.ek-ge-entries>span.is-me{border-color:#3f8f5a;background:#eef8ee}
.ek-ge-signup{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.ek-ge-signup label{flex:1 1 220px;margin:0!important}
.ek-ge-in{color:#2f7d4f!important;font-weight:700}
.ek-ge-officer{border-top:1px dashed #d8c39a;padding-top:8px;margin-top:8px}
.ek-ge-officer small{color:var(--tp-faint)}
/* bracket */
.ek-ge-bracket{display:grid;grid-template-columns:repeat(var(--rounds),minmax(170px,1fr));gap:12px;overflow-x:auto;padding:4px 2px 8px;margin-top:8px}
.ek-ge-round{display:flex;flex-direction:column;justify-content:space-around;gap:10px;min-width:0}
.ek-ge-round h4{margin:0;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#7a4f1a;text-align:center}
.ek-ge-match{border:1px solid var(--tp-edge);border-radius:10px;background:#fff;overflow:hidden;font-size:13px}
.ek-ge-match>span{display:flex;justify-content:space-between;gap:6px;padding:6px 10px;font-weight:700;overflow-wrap:anywhere}
.ek-ge-match>span+span{border-top:1px solid #eadcbf}
.ek-ge-match>span small{color:var(--tp-faint);font-weight:600}
.ek-ge-match .is-win{background:#eef8ee;color:#1f6b3f}.ek-ge-match .is-out{color:#a59378;text-decoration:line-through}.ek-ge-match .is-tbd{color:#bba98a;font-style:italic}
.ek-ge-match.is-mine{border-color:#d4a03a;box-shadow:0 0 0 2px #f5d36b88}
.ek-ge-match-act{display:flex;flex-wrap:wrap;gap:6px;padding:6px 8px;border-top:1px dashed #eadcbf;background:#fffaf0;align-items:center}
.ek-ge-match-act em{font-size:12px;color:var(--tp-faint)}
.ek-ge-podium{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:8px 0}
.ek-ge-podium li{display:flex;gap:6px;align-items:center;border:1px solid var(--tp-edge);border-radius:999px;padding:4px 12px;background:#fff;font-size:14px}
/* wars */
.ek-ge-score{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;gap:10px;align-items:center;margin:10px 0 4px;font-size:18px}
.ek-ge-scorebar{height:14px;border-radius:999px;background:#c64b2c;overflow:hidden;border:1px solid #7a2a17}
.ek-ge-scorebar.is-even{background:#d8c39a;border-color:#b48f50}.ek-ge-scorebar.is-even i{background:#c9b48a}
.ek-ge-scorebar i{display:block;height:100%;background:linear-gradient(90deg,#1f5fa8,#3f8fd6)}
.ek-ge-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:8px 0}
.ek-ge-cols h4{margin:0 0 4px;font-size:14px}
.ek-ge-cols small{color:var(--tp-faint);font-size:12px}
.ek-ge-meter{position:relative;height:10px;border-radius:999px;background:#eadcbf;overflow:visible}
.ek-ge-meter i{display:block;height:100%;border-radius:999px;background:#3f8f5a}
.ek-ge-meter em{position:absolute;top:-3px;bottom:-3px;width:2px;background:#7a4f1a}
.ek-ge-top{margin:6px 0 0;padding-left:20px;font-size:13px}
.ek-ge-top b{color:#7a4f1a}
.ek-ge-fight{border-top:1px dashed #d8c39a;padding-top:8px;margin-top:6px}
.ek-ge-fight h4{margin:0 0 2px;font-size:14px}
.ek-ge-opps{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.ek-ge-opps small{color:var(--tp-faint)}
/* lookup */
.ek-ge-results{display:grid;gap:8px;margin-top:6px}
.ek-ge-res{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--tp-edge);border-radius:12px;background:#fffaf0;padding:8px 12px}
.ek-ge-res-id{min-width:0;overflow-wrap:anywhere}
.ek-ge-res-id small{display:block;color:var(--tp-faint);font-size:12.5px}
.ek-ge-res-acts{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.ek-ge-res-acts button[disabled]{opacity:.5;cursor:not-allowed}
.ek-ge-why{grid-column:1/-1;margin:0;padding-left:18px;font-size:12.5px;color:#8a3b1d}
/* dialogs */
.ek-ge-dlg{position:relative;width:min(620px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:20px 22px!important;box-shadow:0 30px 80px #000c;outline:none}
.ek-ge-dlg h2{padding-right:30px}
.ek-ge-x{position:absolute;top:10px;right:12px;width:34px;height:34px;min-height:0!important;border-radius:50%!important;border:1px solid var(--tp-edge)!important;background:#fffaf0!important;color:var(--tp-ink)!important;font-size:20px;line-height:1;padding:0!important;cursor:pointer}
.ek-ge-opt{display:flex!important;gap:10px;align-items:flex-start;border:1px solid var(--tp-edge);border-radius:10px;padding:8px 10px;margin:0!important;background:#fffaf0;cursor:pointer}
.ek-ge-opt input,.ek-ge-seg input,.ek-ge-dlg label.check input{width:auto!important;flex:none;min-height:0!important;margin:3px 0 0}
.ek-ge-opt>span{flex:1;min-width:0}
.ek-ge-opt small{display:block;font-weight:600;color:var(--tp-faint)}
.ek-ge-opt:has(input:checked){border-color:#3f8f5a;background:#eef8ee}
.ek-ge-opt:has(input:disabled){opacity:.55;cursor:not-allowed}
.ek-ge-seg{display:flex;flex-wrap:wrap;gap:6px 18px}
.ek-ge-seg label{margin:0!important;display:flex!important;align-items:center;gap:6px}
.ek-ge-seg small{color:var(--tp-faint)}
.ek-ge-sum{background:#fff1d0;border:1px solid #d9a441;border-radius:10px;padding:8px 12px;color:#6b4310!important}
.ek-ge-rules{margin:4px 0;padding-left:20px;font-size:13px;color:var(--tp-ink-2)}
.ek-ge-dlg .ek-confirm-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:12px}
/* role editor: officer-only permissions */
.ek-g-perms label.is-officer small{color:#9a6d2a;font-weight:800;font-size:10.5px;text-transform:uppercase;letter-spacing:.04em}
/* PvP page: war duels and context tags */
.ek-pvp-war{background:#2a1410;border:1px solid #c64b2c;border-radius:10px;padding:8px 12px;color:#ffd9c9}
.ek-pvp-war button{margin-left:8px;font-size:12px;padding:4px 10px;min-height:0}
.ek-pvp-ctx{display:inline-block;margin-top:4px;font-size:11.5px;font-weight:800;color:#ffd27a;background:#3a2a0e;border:1px solid #7a5a1a;border-radius:999px;padding:2px 9px}
@media(max-width:640px){
 .ek-ge-res{grid-template-columns:auto minmax(0,1fr)}
 .ek-ge-res-acts{grid-column:1/-1;justify-content:flex-start}
 .ek-ge-score{font-size:15px;grid-template-columns:1fr;text-align:center}
 .ek-ge-prize{max-width:none}
 .ek-ge-dlg{padding:16px!important}
}
/* ===== client/css/44_boards.css ===== */
/* Everkin v5.0 — Message Boards (Neopets-style index -> boards -> posts) on the parchment look. */
.ek-b{display:grid;gap:12px;color:var(--tp-ink);font-family:Inter,'Segoe UI',system-ui,sans-serif;min-width:0}
.ek-b h1,.ek-b h2{font-family:'Everkin Serif',Georgia,serif;color:var(--tp-ink);margin:0}
.ek-b h1{display:flex;align-items:center;gap:10px;font-size:clamp(22px,3vw,34px);line-height:1.15;overflow-wrap:anywhere}
.ek-b h1 .ek-ico{width:30px;height:30px;color:#9a6d2a}
.ek-b h2{display:flex;align-items:center;gap:8px;font-size:19px;margin-bottom:6px}
.ek-b h2 .ek-ico{width:19px;height:19px;color:#9a6d2a}
.ek-b p{margin:6px 0;line-height:1.5}
.ek-b-hero{padding:18px 20px}
.ek-b-note{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--tp-ink-2);background:#fff7e3;border:1px dashed var(--tp-edge);border-radius:10px;padding:8px 10px}
.ek-b-note .ek-ico{width:18px;height:18px;flex:none;color:#3f8f5a;margin-top:1px}

/* Breadcrumbs and pagination */
.ek-b-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px;padding:2px 4px;color:#f3e6c9;min-width:0}
.ek-b-crumbs button{background:none!important;border:0!important;padding:0!important;min-height:0!important;color:#f8d77f!important;font-weight:800;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ek-b-crumbs b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(60vw,520px)}
.ek-b-pages{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;color:#f3e6c9}
.ek-b-pages button{min-height:36px!important;min-width:36px;padding:4px 10px!important;border-radius:8px!important;background:var(--tp-paper-2)!important;border:1px solid var(--tp-edge)!important;color:var(--tp-ink)!important;font-weight:800;cursor:pointer}
.ek-b-pages button.on{background:var(--tp-navy)!important;color:#f8d77f!important;border-color:#0d1426!important}

/* Tables (index and topic lists) */
.ek-b-table{padding:0;overflow:hidden}
.ek-b-thead{display:grid;grid-template-columns:minmax(0,1fr) 90px 220px;gap:12px;padding:9px 16px;background:var(--tp-navy);color:#f8d77f;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.ek-b-cat,.ek-b-topic{display:grid;grid-template-columns:minmax(0,1fr) 90px 220px;gap:12px;align-items:center;width:100%;text-align:left;padding:12px 16px!important;min-height:0!important;border:0!important;border-bottom:1px dashed #d8c39a!important;border-radius:0!important;background:transparent!important;color:var(--tp-ink)!important;cursor:pointer;font:inherit}
.ek-b-cat{grid-template-columns:auto minmax(0,1fr) 90px 220px}
.ek-b-thead:not(.is-topics){grid-template-columns:minmax(0,1fr) 90px 220px;padding-left:72px}
.ek-b-cat:hover,.ek-b-topic:hover{background:#fff6e2!important}
.ek-b-cat:last-child,.ek-b-topic:last-child{border-bottom:0!important}
.ek-b-cat.is-guild{background:linear-gradient(90deg,#fff1d0,transparent)!important}
.ek-b-cat-ico{display:grid;place-items:center;width:44px;height:44px;flex:none}
.ek-b-ico{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:linear-gradient(180deg,var(--tp-navy-2),var(--tp-navy));box-shadow:inset 0 1px #ffffff22,0 2px 6px #0003}
.ek-b-ico .ek-ico{width:24px;height:24px;color:#f8d77f}
.ek-b-cat-main,.ek-b-topic-main{min-width:0;overflow-wrap:anywhere}
.ek-b-cat-main b,.ek-b-topic-main b{font-size:15.5px;color:#3d2a12}
.ek-b-cat-main small,.ek-b-topic-main small{display:block;color:var(--tp-faint);font-size:13px;margin-top:2px}
.ek-b-pin{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:99px;background:#16223a;color:#f8d77f;font-size:11px;font-weight:800;vertical-align:middle}
.ek-b-cat-n,.ek-b-topic-n{display:grid;justify-items:center;text-align:center}
.ek-b-cat-n b,.ek-b-topic-n b{font-size:16px}
.ek-b-cat-n small,.ek-b-topic-n small{font-size:11.5px;color:var(--tp-faint)}
.ek-b-cat-latest,.ek-b-topic-last{min-width:0;font-size:13px;display:grid}
.ek-b-cat-latest span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.ek-b-cat-latest small,.ek-b-topic-last small{color:var(--tp-faint);font-size:12px}
.ek-b-by{display:flex!important;align-items:center;gap:6px;flex-wrap:wrap}
.ek-b-by .ek-av{box-shadow:0 0 0 1px #c9a96d}
.ek-b-flag{margin-right:5px}
.ek-b-topic.is-pinned{background:#fffaf0!important}
.ek-b-staff{display:inline-block;margin-left:4px;padding:1px 7px;border-radius:99px;background:linear-gradient(90deg,#1f6f5a,#2fa45a);color:#fff;font-size:10.5px;font-weight:800;letter-spacing:.03em}

/* Category / board heading and composer */
.ek-b-cathead{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 18px}
.ek-b-cathead>div{flex:1;min-width:200px}
.ek-b-compose{padding:14px 18px;display:grid;gap:4px}
.ek-b-compose label{display:grid;gap:4px;font-weight:700;font-size:13px;color:var(--tp-ink-2);margin:4px 0}
.ek-b input,.ek-b textarea,.ek-b select{background:#fffaf0;border:1px solid var(--tp-edge);border-radius:8px;color:var(--tp-ink);padding:8px 10px;font:inherit;min-height:40px;max-width:100%;box-sizing:border-box}
.ek-b textarea{width:100%;resize:vertical;line-height:1.5}
.ek-b-count{justify-self:end;color:var(--tp-faint);font-size:11.5px;font-weight:600}
.ek-b-count.is-over{color:#b5441d}
.ek-b-expiry{text-align:center;color:#f3e6c9!important;opacity:.85}

/* Posts */
.ek-b-posts{display:grid;gap:10px}
.ek-b-post{display:grid;grid-template-columns:150px minmax(0,1fr);padding:0;overflow:hidden}
.ek-b-post.is-staff{border-color:#2f7d4f}
.ek-b-post.is-hidden{display:block;padding:10px 16px}
.ek-b-post.is-removed .ek-b-text{color:var(--tp-faint)}
.ek-b-author{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 10px;background:linear-gradient(180deg,#efe0bf,#e6d2a8);border-right:1px solid var(--tp-edge);text-align:center;min-width:0;overflow-wrap:anywhere}
.ek-b-author.is-deleted{justify-content:center;color:var(--tp-faint)}
.ek-b-avbtn{background:none!important;border:0!important;padding:0!important;min-height:0!important;cursor:pointer;line-height:0}
.ek-b-uname{font-size:14.5px}
.ek-b-guild{font-size:14px}
.ek-b-author dl{display:grid;grid-template-columns:auto auto;gap:1px 6px;margin:6px 0 0;font-size:12px;justify-content:center}
.ek-b-author dt{color:var(--tp-faint);text-align:right;font-weight:700}
.ek-b-author dd{margin:0;text-align:left;min-width:0}
.ek-b-author dd .ek-ulink{font-style:normal}
.ek-b-post-main{padding:10px 16px 14px;min-width:0}
.ek-b-post-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center;border-bottom:1px dashed #e0cda6;padding-bottom:6px;margin-bottom:8px}
.ek-b-post-head small{color:var(--tp-faint);font-size:12px}
.ek-b-post-acts{display:flex;gap:10px;flex-wrap:wrap}
.ek-b-post-acts .ek-linkbtn{font-size:12.5px}
.ek-b-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:15px}
.ek-b-text a{color:#1f5fa8;font-weight:700}
.ek-b-staffcopy{margin-top:10px;background:#f0f4fa;border:1px solid #b9c6da;border-radius:8px;padding:6px 10px;font-size:13px}
.ek-b-staffcopy summary{cursor:pointer;font-weight:800;color:#3d4e6e}
.ek-b-deleted{color:var(--tp-faint)}
.ek-b-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 14px;background:#eef4f1!important;border-color:#2f7d4f!important}
.ek-b-tools b{display:flex;align-items:center;gap:6px;margin-right:6px}
.ek-b-tools .ek-ico{width:18px;height:18px;color:#2f7d4f}
.ek-b-tools select{min-height:34px;width:auto!important;flex:0 1 220px;max-width:100%}

/* Admin */
.ek-b-admin-cats{list-style:none;padding:0;margin:8px 0;display:grid;gap:8px}
.ek-b-admin-cats li form,.ek-b-admin-new{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:flex-end;padding:10px;border:1px solid #2c4a68;border-radius:10px}
.ek-b-admin-cats label,.ek-b-admin-new label{display:grid;gap:3px;font-size:12.5px;font-weight:700}
.ek-b-admin-cats label.grow,.ek-b-admin-new label.grow{flex:1 1 220px}
.ek-b-admin-cats label.grow input,.ek-b-admin-new label.grow input{width:100%}
.ek-b-admin-cats label.check,.ek-b-admin-new label.check{display:flex;align-items:center;gap:6px;min-height:40px}
.ek-b-admin-cats small{width:100%;opacity:.7}
.ek-b-order{display:grid;gap:2px}
.ek-b-order button{min-height:22px!important;padding:0 8px!important;font-size:11px;line-height:1}
.ek-b-admin-cats .ek-b-ico{width:36px;height:36px}
.ek-b-admin-cats .ek-b-cat-ico{width:36px;height:36px}

@media(max-width:760px){
 .ek-b-thead{display:none}
 .ek-b-cat{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:11px 12px!important}
 .ek-b-cat-latest{grid-column:2/-1}
 .ek-b-topic{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:11px 12px!important}
 .ek-b-topic-last{grid-column:1/-1;display:flex;gap:6px;align-items:baseline}
 .ek-b-post{grid-template-columns:1fr}
 .ek-b-author{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;text-align:left;border-right:0;border-bottom:1px solid var(--tp-edge);padding:10px 12px;gap:6px 10px}
 .ek-b-author .ek-av{--av:44px!important}
 .ek-b-author dl{display:flex;flex-wrap:wrap;gap:2px 6px;margin:0;width:100%;justify-content:flex-start}
 .ek-b-author dt::after{content:':'}
 .ek-b-author dd{margin-right:8px}
 .ek-b-hero,.ek-b-cathead,.ek-b-compose{padding:13px 12px}
 .ek-b-post-main{padding:10px 12px 12px}
}
/* ===== client/css/46_item_studio.css ===== */
/* Everkin v5.1 — Developer Toolbox and Item Studio (dark admin palette). */
.ek-tb .screen-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ek-tb .screen-head h1{display:flex;align-items:center;gap:10px}
.ek-tb .screen-head h1 .ek-ico{width:26px;height:26px;color:#f4ca7a}
.ek-tb-nav button{display:inline-flex;align-items:center;gap:7px}
.ek-tb-nav .ek-ico{width:16px;height:16px}
.ek-tb-open{display:inline-flex;align-items:center;gap:7px;margin-left:auto;min-height:40px;padding:8px 14px!important;border-radius:10px!important;
 background:linear-gradient(180deg,#f8d77f,#dca543)!important;border:1px solid #fff0bf!important;color:#2a1c0b!important;font-weight:800}
.ek-tb-open .ek-ico{width:17px;height:17px}

.ek-is{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.ek-is.has-editor{grid-template-columns:minmax(0,1fr) minmax(360px,440px)}
.ek-is-panel{background:#0b213a;border:1px solid #2f5677;border-radius:14px;padding:14px;color:#e2eef8;min-width:0}
.ek-is-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}
.ek-is-head h2{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:20px}
.ek-is-head h2 .ek-ico{width:20px;height:20px;color:#f4ca7a}
.ek-is-head p{margin:0;font-size:13px}
.ek-is-headbtns{display:flex;gap:8px;flex-wrap:wrap}
.ek-is-headbtns button{display:inline-flex;align-items:center;gap:6px}
.ek-is-headbtns .ek-ico{width:16px;height:16px}
.ek-is-filters{display:grid;grid-template-columns:minmax(160px,2fr) repeat(6,minmax(110px,1fr)) auto;gap:8px;margin:12px 0 6px}
.ek-is-filters input,.ek-is-filters select,.ek-is-filters button{min-height:38px;font-size:13px;min-width:0}
.ek-is-countline{display:flex;gap:14px;align-items:center;font-size:12.5px;color:#9fc1d9;margin:4px 0 8px;flex-wrap:wrap}
.ek-is-bulk{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 10px;margin:0 0 8px;border:1px solid #d9ac5a;border-radius:10px;background:#1b2d1e}
.ek-is-bulk b{color:#ffe2a3;margin-right:4px}
.ek-is-bulk button,.ek-is-bulk select{min-height:34px;font-size:12.5px;padding:4px 10px}
.ek-is-bulk label{display:inline-flex;align-items:center;gap:4px;font-size:12.5px}
.ek-is-bulk input{width:64px;min-height:34px}
.ek-is-tablewrap{overflow-x:auto;border:1px solid #1d3a57;border-radius:10px;max-height:72vh;overflow-y:auto}
.ek-is-table{width:100%;border-collapse:collapse;font-size:12.5px}
.ek-is-table thead th{position:sticky;top:0;z-index:1;background:#0f2a47;text-align:left;color:#9fc1d9;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;padding:6px 8px;border-bottom:1px solid #2f5677;white-space:nowrap}
.ek-is-table td{padding:5px 8px;border-bottom:1px solid #16304b;vertical-align:middle}
.ek-is-table tbody tr{cursor:pointer}
.ek-is-table tbody tr:hover td{background:#123352}
.ek-is-table tr.is-open td{background:#1a3d60}
.ek-is-table tr.is-retired td{opacity:.6}
.ek-is-table td small{display:block;color:#86a5bd;font-size:11px}
.ek-is-table input[type=checkbox]{width:18px;height:18px;min-height:0}
.ek-is-sort{background:none!important;border:0!important;padding:0!important;min-height:0!important;color:inherit!important;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
.ek-is-sort.on{color:#ffe2a3!important}
.ek-is-thumb{width:36px;height:36px;object-fit:contain;border-radius:6px;background:#162b45;display:block}
.ek-is-ic{display:inline-block;margin:0 4px 0 0;white-space:nowrap}
.ek-is-ic.def{opacity:.85}
.ek-is-none{opacity:.4}
.ek-is-over{color:#ffb08a;font-weight:800}
.ek-is-rar{display:inline-block;padding:1px 7px;border-radius:99px;font-size:11px;font-weight:800;border:1px solid currentColor}
.r-common{color:#c9d3dc}.r-uncommon{color:#6fd18f}.r-rare{color:#6aa8ff}.r-epic{color:#c08bff}.r-legendary{color:#f6c35b}.r-ascendant{color:#ff8ad6}
.ek-is-tag{display:inline-block;margin:0 3px 2px 0;padding:1px 6px;border-radius:6px;font-size:10.5px;font-weight:800}
.t-new{background:#1f6f5a;color:#dffff3}.t-edit{background:#3b3f8f;color:#e6e8ff}.t-sig{background:#5a2d82;color:#f3e6ff}.t-ret{background:#5b2a2a;color:#ffd9d9}.t-hid{background:#3d4e6e;color:#dbe6f5}
.ek-is-pages{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:10px;font-size:13px}

/* editor */
.ek-is-editor{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto}
.ek-is-edhead{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.ek-is-edhead h2{margin:2px 0 8px;font-size:19px;overflow-wrap:anywhere}
.ek-is-kicker{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#9fc1d9}
.ek-is-preview{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:10px;border-radius:12px;background:#081a2f;border:1px solid #2a4c6c;margin-bottom:10px}
.ek-is-preview img{width:96px;height:96px;object-fit:contain;border-radius:10px;background:radial-gradient(circle,#24466c,#0d2138)}
.ek-is-preview .tag{font-size:11px}
.ek-is-preview .ek-icons-stack{margin:6px 0}
.ek-is-effect{font-size:12.5px;margin:4px 0}
.ek-is-warn{font-size:12.5px;padding:8px 10px;border-radius:8px;background:#3a2a12;border:1px solid #d9ac5a;color:#ffe2a3}
.ek-is-form{display:grid;gap:10px}
.ek-is-form label{display:grid;gap:4px;font-size:12.5px;font-weight:700;color:#b9d2e6}
.ek-is-form label.check{display:flex;align-items:center;gap:8px;font-weight:600}
.ek-is-form input,.ek-is-form select{min-height:38px;min-width:0}
.ek-is-form fieldset{border:1px solid #2a4c6c;border-radius:10px;padding:10px;margin:0;display:grid;gap:8px;min-width:0}
.ek-is-form legend{font-weight:800;font-size:12.5px;padding:0 6px;color:#ffe2a3}
.ek-is-grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ek-is-grid2 label:first-child{grid-column:1/-1}
.ek-is-meter{height:8px;border-radius:99px;background:#16304b;overflow:hidden}
.ek-is-meter span{display:block;height:100%;background:linear-gradient(90deg,#3f8f5a,#f4ca7a)}
.ek-is-meter.is-over span{background:linear-gradient(90deg,#f4ca7a,#e0573a)}
.ek-is-total{font-size:12.5px;margin:0}
.ek-is-overtxt{color:#ffb08a}
.ek-is-icongrid{display:grid;grid-template-columns:minmax(80px,1fr) auto auto;gap:4px 10px;align-items:center;font-size:12.5px}
.ek-is-icongrid .h{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:#9fc1d9}
.ek-is-icongrid .el{text-transform:capitalize}
.ek-is-step{display:inline-flex;align-items:center;gap:2px}
.ek-is-step button{width:30px;min-width:30px;min-height:30px!important;padding:0!important;font-size:16px;line-height:1}
.ek-is-step input{width:46px;min-height:30px!important;text-align:center;padding:2px!important}
.ek-is-acts,.ek-is-save{display:flex;gap:8px;flex-wrap:wrap}
.ek-is-radios{display:flex;gap:12px;flex-wrap:wrap}
.ek-is-radios label{display:flex!important;align-items:center;gap:6px;font-weight:600!important}
.ek-is-radios input{min-height:0!important}
.ek-is-upload input{font-size:12px}
.ek-is-dirty{font-size:12px;color:#9fc1d9;margin:0}
.ek-is-history summary{cursor:pointer;font-weight:800;margin-top:10px}
.ek-is-history ol{padding-left:18px;font-size:12px;display:grid;gap:6px}
.ek-is-history small{display:block;color:#86a5bd;overflow-wrap:anywhere}

@media(max-width:1240px){.ek-is-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.ek-is-filters input[type=search]{grid-column:1/-1}}
@media(max-width:980px){
 .ek-is.has-editor{grid-template-columns:1fr}
 .ek-is-editor{position:static;max-height:none;order:-1}
}
@media(max-width:620px){
 .ek-is-filters{grid-template-columns:1fr 1fr}
 .ek-is-panel{padding:10px}
 .ek-is-table th:nth-child(5),.ek-is-table td:nth-child(5),.ek-is-table th:nth-child(7),.ek-is-table td:nth-child(7),.ek-is-table th:nth-child(9),.ek-is-table td:nth-child(9),
 .ek-is-table th:nth-child(11),.ek-is-table td:nth-child(11),.ek-is-table th:nth-child(12),.ek-is-table td:nth-child(12){display:none}
 .ek-is-grid2{grid-template-columns:1fr}
 .ek-is-preview{grid-template-columns:72px minmax(0,1fr)}.ek-is-preview img{width:72px;height:72px}
 .ek-tb-open{margin-left:0}
}
/* ===== client/css/47_everkin_studio.css ===== */
/* Everkin Studio (v5.3.1): unreleased Everkin and enemy art, in the Developer toolbox's dark admin palette. */
.ek-tb-open-2{margin-left:8px!important;background:linear-gradient(180deg,#b9e3ff,#6fb3e6)!important;border-color:#e3f4ff!important;color:#0b2036!important}
.ek-es{display:grid;gap:12px}
.ek-es-tabs{margin:0}
.ek-es-empty{margin:14px 2px;color:#a9c4dc}
.ek-es-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin-top:12px}
.ek-es-pick{all:unset;cursor:pointer;display:block;border-radius:14px}
.ek-es-pick:focus-visible{outline:2px solid #f4ca7a;outline-offset:2px}
.ek-es-pick.on .ek-es-card{border-color:#f4ca7a;box-shadow:0 0 0 1px #f4ca7a inset}
.ek-es-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border:1px solid #2f5677;border-radius:14px;background:linear-gradient(160deg,#10304f,#0a1d33);color:#e2eef8}
.ek-es-card.is-preview{grid-template-columns:120px minmax(0,1fr);margin:6px 0 14px;background:radial-gradient(circle at 25% 30%,#1d4a74,#0a1d33 70%)}
.ek-es-art{width:76px;height:76px;border-radius:12px;background:#0b223a;display:grid;place-items:center;overflow:hidden}
.ek-es-card.is-preview .ek-es-art{width:120px;height:120px}
.ek-es-art img{width:100%;height:100%;object-fit:contain}
.ek-es-art span{font-size:34px;opacity:.75}
.ek-es-cardbody{display:grid;gap:3px;min-width:0}
.ek-es-cardbody b{font:700 18px 'Everkin Serif',Georgia,serif;color:#fff2cf;overflow:hidden;text-overflow:ellipsis}
.ek-es-cardbody small{color:#a9c4dc;font-size:12.5px}
.ek-es-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}
.ek-es-tags i{font-style:normal;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:#183a5c;color:#d5e7f6}
.ek-es-tags i.ek-es-unrel{background:#3b2a07;color:#ffd27a;border:1px solid #8a6a25}
.ek-es-editor h2{font:700 21px 'Everkin Serif',Georgia,serif;margin:0}
.ek-es-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.ek-es-form label{display:grid;gap:4px;font-size:12.5px;font-weight:700;color:#bcd4e8;min-width:0}
.ek-es-form input,.ek-es-form select,.ek-es-form textarea{min-height:38px;font-size:14px;width:100%;box-sizing:border-box}
.ek-es-wide{grid-column:1/-1}
.ek-es-form fieldset{border:1px solid #234a6c;border-radius:10px;padding:8px 10px 10px;margin:0;display:grid;gap:8px;min-width:0}
.ek-es-form legend,.ek-es-legend{font-size:12.5px;font-weight:700;color:#bcd4e8;padding:0 4px}
.ek-es-stats{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.ek-es-stats label{font-size:11.5px}
.ek-es-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;gap:6px;align-items:center}
.ek-es-row:has(> input:only-of-type){grid-template-columns:minmax(0,1fr) auto}
.ek-es-row .ek-link .ek-ico,.ek-es-form fieldset>button .ek-ico{width:16px;height:16px}
.ek-es-form fieldset>button{justify-self:start;display:inline-flex;align-items:center;gap:6px;min-height:34px;font-size:13px}
.ek-es-spellgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:6px}
.ek-es-spells{padding:6px 8px!important;display:grid;gap:4px;align-content:start;border:1px solid #234a6c;border-radius:10px;margin:0}
.ek-es-spells .ek-check{display:flex;gap:6px;align-items:center;font-weight:600;color:#e2eef8;font-size:12.5px}
.ek-es-spells input{width:16px;height:16px;min-height:0}
.ek-es-arts h3{margin:16px 0 2px;font-size:15px;color:#fff2cf}
.ek-es-arts p{margin:0 0 8px;font-size:12.5px}
.ek-es-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.ek-es-slot{display:grid;gap:6px;justify-items:center;text-align:center;padding:8px;border:1px dashed #3b6b93;border-radius:12px;background:#0a1f36}
.ek-es-slot b{font-size:12.5px}.ek-es-slot small{font-size:11.5px;color:#a9c4dc}
.ek-es-slotart{width:110px;height:110px;border-radius:10px;background:#0f2a47;display:grid;place-items:center;overflow:hidden}
.ek-es-slotart img{width:100%;height:100%;object-fit:contain}.ek-es-slotart span{font-size:11.5px;color:#7f9db6;padding:6px}
.ek-es-file{position:relative;overflow:hidden;cursor:pointer;min-height:34px;padding:6px 14px!important;font-size:13px}
.ek-es-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ek-es-actions{margin-top:14px;align-items:center}
.ek-es-enemyfilters{grid-template-columns:minmax(180px,1fr) auto!important}
.ek-es-enemyfilters .ek-check{display:flex;gap:8px;align-items:center;font-size:13px}
.ek-es-enemies{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:6px}
.ek-es-enemy{display:grid;gap:4px;justify-items:center;text-align:center;padding:8px;border:1px solid #234a6c;border-radius:12px;background:#0a1f36}
.ek-es-enemy.is-replaced{border-color:#5fb37d}
.ek-es-enemyart{width:120px;height:120px;border-radius:10px;background:radial-gradient(circle,#173b5e,#0b223a);display:grid;place-items:center}
.ek-es-enemyart img{width:100%;height:100%;object-fit:contain}
.ek-es-enemy b{font-size:13px}.ek-es-enemy small{font-size:11px;color:#9fbcd4}
.ek-es-crop{color:#ffcf7a}
.ek-es-enemybtns{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}
@media(max-width:1100px){.ek-is.has-editor:has(.ek-es-editor){grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
 .ek-es-form{grid-template-columns:1fr}
 .ek-es-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .ek-es-row{grid-template-columns:1fr auto}.ek-es-row input+input{grid-column:1}
 .ek-tb-open-2{margin-left:0!important}
 .ek-es-card.is-preview{grid-template-columns:90px minmax(0,1fr)}.ek-es-card.is-preview .ek-es-art{width:90px;height:90px}
}
/* ===== client/css/48_pvp.css ===== */
/* Everkin v5.1 — PvP Arena. Reuses the PvE arena classes (arena-panel, fighter, battle-picker, battle-submit). */
.ek-pvp{display:grid;gap:12px;min-width:0}
.ek-pvp .arena-panel{margin-bottom:0}
.ek-pvp-hero p{margin:10px 0 0;color:#cfe0ee;font-size:14px;line-height:1.5}
.ek-pvp-sec h2{margin:0 0 10px;font-size:18px}
.ek-pvp-duels{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.ek-pvp-duel{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;padding:10px 12px!important;border-radius:12px!important;
 background:linear-gradient(180deg,#123352,#0b2440)!important;border:1px solid #2f5677!important;color:#e7f2fb!important;min-height:0;cursor:pointer}
.ek-pvp-duel:hover{border-color:#d9ac5a!important}
.ek-pvp-duel.is-yours{border-color:#f4ca7a!important;box-shadow:0 0 0 1px #f4ca7a55}
.ek-pvp-vs{display:flex;align-items:center;gap:4px}
.ek-pvp-vs img{width:44px;height:44px;object-fit:cover;border-radius:50%;background:#1a3554;border:2px solid #42698c}
.ek-pvp-vs b{font-size:11px;color:#f4ca7a}
.ek-pvp-duel-id{min-width:0;display:grid;gap:3px}
.ek-pvp-duel-id b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ek-pvp-duel-id small,.ek-pvp-duel-state small{color:#9fc1d9;font-size:12px}
.ek-pvp-duel-state{display:grid;justify-items:end;gap:2px;text-align:right}
.ek-pvp-duel-state strong{color:#f4ca7a}
.ek-pvp-duel-state em{color:#9fc1d9;font-style:normal;font-size:12.5px}
.res-win{color:#6fd18f!important}.res-loss{color:#ff9a8a!important}.res-none{color:#c9d3dc!important}
.ek-pvp-hp{display:block;height:5px;border-radius:9px;background:#2a1a1a;overflow:hidden}
.ek-pvp-hp i{display:block;height:100%;background:linear-gradient(90deg,#3f8f5a,#8be08b)}
.ek-pvp-hp.is-them i{background:linear-gradient(90deg,#b5441d,#ff9a6a)}
.ek-pvp-ch{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #1d3a57}
.ek-pvp-ch:last-child{border-bottom:0}
.ek-pvp-ch small{display:block;color:#9fc1d9;font-size:12.5px}
.ek-pvp-ch q{display:block;color:#e7f2fb;font-style:italic;font-size:13px;margin-top:2px}
.ek-pvp-acts{display:flex;gap:6px;flex-wrap:wrap}
.ek-pvp-steps{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.ek-pvp-steps>li>b{display:block;margin-bottom:8px;color:#ffe2a3;letter-spacing:.04em}
.ek-pvp-search{display:flex;gap:8px;max-width:460px}
.ek-pvp-search input{flex:1;min-width:0}
.ek-pvp-who{display:flex;align-items:center;gap:8px;margin:10px 0 0}
.ek-pvp-pets{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.ek-pvp-pet{display:grid;grid-template-columns:64px minmax(0,1fr);gap:4px 10px;text-align:left;padding:10px!important;border-radius:12px!important;
 background:#0d2745!important;border:1px solid #2f5677!important;color:#e7f2fb!important;min-height:0;cursor:pointer;align-items:start}
.ek-pvp-pet:hover:not(:disabled){border-color:#d9ac5a!important}
.ek-pvp-pet.on{border-color:#f4ca7a!important;background:#16385c!important;box-shadow:0 0 0 2px #f4ca7a66}
.ek-pvp-pet:disabled{opacity:.55;cursor:not-allowed}
.ek-pvp-pet img{width:64px;height:64px;object-fit:cover;border-radius:12px;background:#1a3554;grid-row:span 2}
.ek-pvp-pet-id{display:grid;gap:2px;min-width:0}
.ek-pvp-pet-id b{font-size:15px;overflow-wrap:anywhere}
.ek-pvp-pet-id small{color:#9fc1d9;font-size:12px;text-transform:capitalize}
.ek-pvp-reason{color:#ffb08a;font-size:12px;font-style:normal}
.ek-pvp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;grid-column:2}
.ek-pvp-stats div{background:#081a2f;border-radius:6px;padding:3px 5px;text-align:center}
.ek-pvp-stats dt{font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;color:#86a5bd}
.ek-pvp-stats dd{margin:0;font-weight:800;font-size:13px}
.ek-pvp-matchup{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center;margin:12px 0}
.ek-pvp-matchup>b{color:#f4ca7a;font-size:18px}
.ek-pvp-matchup .ek-pvp-pet{cursor:default;width:100%}
.ek-pvp-msg{display:grid;gap:4px;margin:10px 0;font-size:13px;max-width:460px}
.ek-pvp-owner{display:block;color:#9fc1d9;font-size:12px;margin-top:-2px}
.ek-pvp-stances{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:12px}
.ek-pvp-stance{display:grid;justify-items:center;gap:3px;padding:8px 6px!important;border-radius:10px!important;background:#0d2745!important;border:1px solid #2f5677!important;color:#e7f2fb!important;min-height:0;text-align:center}
.ek-pvp-stance span{font-size:20px}
.ek-pvp-stance small{color:#9fc1d9;font-size:11px;line-height:1.3}
.ek-pvp-stance.on{border-color:#f4ca7a!important;background:#16385c!important;box-shadow:0 0 0 2px #f4ca7a55}
.ek-pvp-stance:disabled{opacity:.45}
.ek-pvp-locked h2{color:#ffe2a3}
.ek-pvp-history{margin:0;padding-left:20px;display:grid;gap:8px;font-size:13.5px}
.ek-pvp-history span,.ek-pvp-history small{display:block}
.ek-pvp-history small{color:#9fc1d9;font-size:12px}
.ek-pvp-scout{background:#0b213a;border:1px solid #2f5677;border-radius:12px;padding:10px 14px;font-size:13px}
.ek-pvp-scout summary{cursor:pointer;font-weight:800}
.ek-pvp-forfeit{text-align:center;color:#9fc1d9}
.ek-pvp-result h2{font-size:24px}
.ek-pvp-result.res-win h2{color:#6fd18f}.ek-pvp-result.res-loss h2{color:#ff9a8a}
.ek-pvp-challenge-btn .ek-ico,.ek-prof-actions .tp-btn .ek-ico{width:16px;height:16px}
@media(max-width:760px){
 .ek-pvp-stances{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ek-pvp-stance small{display:none}
 .ek-pvp-ch{grid-template-columns:auto minmax(0,1fr)}
 .ek-pvp-ch .ek-pvp-acts{grid-column:1/-1}
 .ek-pvp-matchup{grid-template-columns:1fr}
 .ek-pvp-matchup>b{justify-self:center}
 .ek-pvp-duels,.ek-pvp-pets{grid-template-columns:1fr}
 .ek-pvp-duel{grid-template-columns:auto minmax(0,1fr)}
 .ek-pvp-duel-state{grid-column:1/-1;justify-items:start;text-align:left}
}
.ek-pvp-actions .battle-picker{max-height:none;overflow:visible;margin-bottom:12px}
.ek-pvp-actions .battle-pick{min-height:0;height:auto}
.ek-pvp-actions .battle-pick small{white-space:normal}
.ek-pvp-stats.is-compact dt{text-transform:none;letter-spacing:0;font-size:10px}

.ek-pvp-secret{display:flex;gap:8px;align-items:flex-start;background:#0b213a;border:1px dashed #2f5677;border-radius:12px;padding:10px 14px;font-size:13px;color:#cfe0ee;margin:0}
.ek-pvp-secret .ek-ico{width:18px;height:18px;flex:none;color:#f4ca7a}
.ek-pvp-nudge{margin-top:6px}
.ek-pvp-nudged{color:#ffe2a3;font-weight:700}
.ek-pvp-urgent{border-color:#e0573a!important;background:linear-gradient(180deg,#3a1a14,#24100c)!important;color:#ffd9cf}

/* v5.3 PvP clock */
.ek-pvp-paused{margin:0 0 12px;padding:10px 14px;border-radius:10px;border:1px solid #d9ac5a;background:#2d2412;color:#f1dfba;font-size:14px;line-height:1.45}
.ek-pvp-clock.is-paused{border-color:#d9ac5a}
.ek-pvp-clock-form{justify-content:flex-start}.ek-pvp-clock-form input{flex:1 1 260px;min-height:38px;padding:6px 10px;border-radius:8px;border:1px solid #46698a;background:#071729;color:#f2f8ff}
/* v5.9.3: the PvP equipment picker shows eight slots 4 x 2 (every copy its own card); two a row on narrow phones */
.ek-pvp-actions .battle-picker.ek-gear-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.ek-pvp-actions .ek-gear-grid .battle-pick{flex-direction:column;align-items:center;text-align:center;min-height:118px}
.ek-pvp-actions .ek-gear-grid .battle-pick img{max-height:52px}
.ek-pvp-actions .ek-gear-grid .battle-pick{min-width:0;overflow:hidden}
.ek-pvp-actions .ek-gear-grid .battle-pick-info{min-width:0;width:100%}
.ek-pvp-actions .ek-gear-grid .battle-pick-info b{font-size:11px;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.ek-pvp-actions .ek-gear-grid .battle-pick-info small{max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media(max-width:520px){.ek-pvp-actions .ek-gear-grid .battle-pick{padding:4px!important;min-height:104px}.ek-pvp-actions .ek-gear-grid .battle-pick img{max-height:40px}.ek-pvp-actions .ek-gear-grid .battle-pick-info small{font-size:8.5px;white-space:nowrap}.ek-pvp-actions .ek-gear-grid .battle-pick-info small.ek-gear-fx{display:none}.ek-pvp-actions .ek-gear-grid .battle-pick-info b{font-size:9.5px}.ek-pvp-actions .ek-gear-grid{gap:4px}}

/* v5.14: League / Custom rules tabs and the custom-rules form */
.ek-pvp-mode{display:inline-flex;gap:4px;margin:0 0 10px;padding:4px;border-radius:12px;background:rgba(9,22,40,.55);border:1px solid #2c4a72}
.ek-pvp-mode button{min-height:40px;padding:6px 16px;border-radius:9px;border:0;background:transparent;color:#cfe0f3;font-weight:800}
.ek-pvp-mode button.on{background:#e8bc73;color:#1b1406}
.ek-pvp-mode button[disabled]{opacity:.45}
.ek-custom-rules{display:grid;gap:10px;margin:0 0 12px;padding:12px;border-radius:12px;border:1px solid #2c4a72;background:rgba(9,22,40,.45)}
.ek-cr-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ek-cr-row>span,.ek-cr-opt>span{display:grid;gap:2px;min-width:0}
.ek-cr-row small,.ek-cr-opt small{color:#9fc0dc;font-size:12px}
.ek-custom-rules input[type=number]{width:96px;min-height:40px;font-size:16px;text-align:right}
.ek-cr-gear{display:grid;gap:6px;margin:0;padding:0;border:0}
.ek-cr-gear legend{font-weight:800;margin-bottom:4px}
.ek-cr-opt{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;border:1px solid #22385a;cursor:pointer}
.ek-cr-opt:has(input[type=radio]:checked){border-color:#e8bc73;background:rgba(232,188,115,.08)}
.ek-cr-opt em{font-style:normal;color:#9fc0dc;font-size:12px}
.ek-cr-sum{margin:0;font-weight:700;color:#ffe2a6}
.ek-pvp-note{display:block;font-style:normal;font-size:12px;color:#ffe2a6}
.ek-pvp-cap{margin:6px 0 0;padding:6px 10px;border-radius:9px;border:1px solid #c79a52;background:rgba(232,188,115,.08);font-size:13px}
@media (max-width:560px){.ek-cr-opt{grid-template-columns:auto 1fr}.ek-cr-opt input[type=number]{grid-column:2;justify-self:start}.ek-cr-opt em{grid-column:2}}
/* ===== client/css/50_site_text.css ===== */
/* Everkin v4.8.11 — admin page editor */
#ek-ste-root{position:relative;z-index:99990;font-family:inherit}
.ek-ste-launch{position:fixed;left:14px;bottom:86px;z-index:99990;border:1px solid #f5c542;background:#14233d;color:#f5d27a;border-radius:999px;padding:9px 14px;font-weight:700;font-size:13px;box-shadow:0 6px 18px rgba(0,0,0,.45);cursor:pointer}
.ek-ste-launch.hidden{display:none}
.ek-ste-launch:hover,.ek-ste-launch:focus-visible{background:#1d3357;outline:2px solid #f5c542;outline-offset:2px}
@media (min-width:900px){.ek-ste-launch{bottom:18px}}
.ek-ste-bar{position:fixed;top:8px;left:50%;transform:translateX(-50%);z-index:99995;display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:calc(100vw - 16px);background:#0f1b30;color:#e9eef7;border:1px solid #f5c542;border-radius:14px;padding:8px 10px;box-shadow:0 10px 30px rgba(0,0,0,.55)}
.ek-ste-bar button,.ek-ste-panel button,.ek-ste-bar select{font:inherit;font-size:13px;border-radius:9px;border:1px solid #3a5480;background:#182a47;color:#e9eef7;padding:6px 10px;cursor:pointer;min-height:34px}
.ek-ste-bar button:hover,.ek-ste-panel button:hover{border-color:#f5c542}
.ek-ste-title{color:#f5d27a;font-size:13px}
.ek-ste-seg{display:inline-flex;border:1px solid #3a5480;border-radius:10px;overflow:hidden}
.ek-ste-seg button{border:0;border-radius:0;min-width:58px}
.ek-ste-seg button.on{background:#f5c542;color:#14233d;font-weight:800}
.ek-ste-done{background:#f5c542!important;color:#14233d!important;font-weight:800}
.ek-ste-tip{flex-basis:100%;margin:0;font-size:12px;color:#b9c6dc}
.ek-ste-hover{outline:2px dashed #f5c542!important;outline-offset:2px!important;cursor:text!important}
body.ek-ste-on .ek-ste-hover{cursor:crosshair!important}
.ek-ste-selected{outline:3px solid #4fd1ff!important;outline-offset:2px!important}
.ek-ste-editing{outline:2px solid #4fd1ff;background:rgba(79,209,255,.12);border-radius:4px;padding:0 2px;cursor:text;white-space:pre-wrap;min-width:1ch;display:inline-block}
.ek-ste-panel{position:fixed;z-index:99996;background:#0f1b30;color:#e9eef7;border:1px solid #4fd1ff;border-radius:14px;padding:12px;box-shadow:0 12px 34px rgba(0,0,0,.6);display:flex;flex-direction:column;gap:8px;font-size:13px;max-height:calc(100vh - 80px);overflow:auto}
.ek-ste-panel strong{color:#f5d27a}
.ek-ste-panel small{color:#b9c6dc;line-height:1.4}
.ek-ste-panel label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#b9c6dc}
.ek-ste-panel input,.ek-ste-panel textarea{font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#081224;color:#e9eef7;border:1px solid #3a5480;border-radius:8px;padding:7px;width:100%;box-sizing:border-box}
.ek-ste-panel textarea{min-height:96px;resize:vertical}
.ek-ste-actions{display:flex;flex-wrap:wrap;gap:8px}
.ek-ste-panel button.primary{background:#f5c542;color:#14233d;border-color:#f5c542;font-weight:800}
.ek-ste-panel button.danger{border-color:#b9475a;color:#ffb3c0}
.ek-ste-chips{display:flex;flex-wrap:wrap;gap:6px}
.ek-ste-chips button{min-height:28px!important;padding:3px 8px!important;font-size:12px!important}
.ek-ste-center{left:50%!important;top:64px!important;transform:translateX(-50%);width:min(560px,calc(100vw - 16px))}
.ek-ste-list{display:flex;flex-direction:column;gap:8px}
.ek-ste-item{display:grid;gap:4px;border:1px solid #2a3f63;border-radius:10px;padding:8px}
.ek-ste-item del{color:#ff9fae;word-break:break-word}
.ek-ste-item ins{color:#9ff2c4;text-decoration:none;word-break:break-word}
.ek-ste-item code{font-size:12px;word-break:break-all;color:#cfe4ff}
.ek-ste-item button{justify-self:start}
.ek-ste-history{display:flex;flex-direction:column;gap:3px}
.ek-ste-history small{display:block}
.ek-ste-empty{margin:0;color:#b9c6dc}
.ek-ste-bar select{width:auto!important;flex:0 0 auto;max-width:180px}
.ek-ste-bar>*{flex:0 0 auto}
.ek-ste-bar .ek-ste-tip{flex:1 1 100%}
/* ===== client/css/52_account_admin.css ===== */
/* Everkin v5.2: email settings, consent dialogs, crash reports, future releases and the maintenance template. */

/* ---------------------------------------------------------- email settings (own profile) */
.ek-email-prefs{--tp-paper:#f3e6c9;--tp-paper-2:#f8efdc;--tp-edge:#c9a96d;color:#2f2114;padding:16px 18px;margin-top:14px}
.ek-email-prefs h2{display:flex;align-items:center;gap:8px;margin:0 0 6px;font:700 20px 'Everkin Serif',Georgia,serif;color:#2f2114}
.ek-email-prefs .muted,.ek-email-prefs .ek-faint{color:#6b5338!important}
.ek-email-list{list-style:none;margin:12px 0 4px;padding:0;display:grid;gap:2px}
.ek-email-row{padding:9px 10px;border-radius:9px;font-weight:600!important;font-size:14px}
.ek-email-row:hover{background:#00000008}
.ek-email-prefs .ek-email-row{color:#2f2114}
.ek-email-ok{display:flex;align-items:center;gap:6px;margin:10px 0 0;color:#2e6b3a;font-size:13px}
.ek-email-ok .ek-ico{width:16px;height:16px}
.ek-email-warn{margin:10px 0;padding:10px 12px;border-radius:9px;background:#fff1d6;border:1px solid #e0b25e;color:#6b4610;font-size:13px;line-height:1.45}
.ek-email-confirm{margin:12px 0 4px;padding:12px;border-radius:11px;background:#fff7e6;border:1px solid #e3c486;color:#3d2a14}
.ek-email-confirm p{margin:0 0 8px;font-size:13px;line-height:1.45}
.ek-email-code{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ek-email-code input{width:120px!important;flex:none;margin:0!important;min-height:40px;padding:6px 10px;border-radius:8px;border:1px solid #b48f50;background:#fff;color:#2f2114;
 font:700 18px ui-monospace,Menlo,Consolas,monospace;letter-spacing:.16em;text-align:center}
.ek-email-code button{min-height:40px}

/* ---------------------------------------------------------- dialogs (updated terms, email opt-in) */
.ek-v52-modal .ek-modal{width:min(520px,100%)}
.ek-v52-modal h2{margin:4px 0 8px;color:#ffe2a3;font:700 23px 'Everkin Serif',Georgia,serif}
.ek-v52-modal p{color:#cfe0ee;line-height:1.55;margin:0 0 12px;font-size:14px}
.ek-v52-modal a{color:#9fd8f2}
.ek-v52-modal .ek-kicker{color:#e3b25c}
.ek-v52-modal .ek-email-list{margin:6px 0 10px}
.ek-v52-modal .ek-email-row{color:#e6f1fb;background:#0b223b;border:1px solid #23496b}
.ek-v52-modal .ek-email-row:hover{background:#0f2b49}
.ek-v52-modal .ek-email-list{gap:6px}
.ek-v52-modal .ek-email-confirm{background:#0b223b;border-color:#3f6a8f;color:#dceaf6}
.ek-v52-modal .ek-email-confirm p{color:#dceaf6}
.ek-v52-modal .ek-email-code input{background:#071729;color:#fff;border-color:#46698a}
.ek-v52-modal .ek-email-warn{background:#2b2312;border-color:#8d6a2c;color:#ffe2a3}
.ek-v52-modal .ek-confirm-actions{margin-top:14px;flex-wrap:wrap}

/* ---------------------------------------------------------- sign-in page additions */
#alpha-portal .alpha-linkish.ek-inline-link{display:inline;width:auto;padding:0;margin:0;min-height:0;font-size:inherit;font-weight:700!important;text-decoration:underline}

/* ---------------------------------------------------------- admin: crash reports */
.ek-crash-list{display:grid;gap:8px}
.ek-crash-row{display:grid!important;grid-template-columns:minmax(120px,170px) 1fr auto;gap:12px;align-items:center;text-align:left;width:100%;
 padding:11px 14px!important;border-radius:11px!important;border:1px solid #2f5677!important;background:#0a2038!important;color:#e6f1fb!important;min-height:0!important}
.ek-crash-row:hover,.ek-crash-row:focus-visible{border-color:#7fb0d8!important;background:#0e2a48!important}
.ek-crash-who{display:grid;gap:2px;min-width:0}.ek-crash-who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ek-crash-who small{color:#93b2ca;font-size:11px}
.ek-crash-msg{font:12px/1.4 ui-monospace,Menlo,Consolas,monospace;color:#ffd9cf;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}
.ek-crash-tags{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.ek-crash-tags span{font-size:10px;font-weight:800;padding:3px 7px;border-radius:99px;background:#16395c;color:#bcd3e6;white-space:nowrap}
.ek-crash-tags .ek-chip-server{background:#5b2a2a;color:#ffd0c7}
.ek-crash-detail{margin-top:10px;border:1px solid #2f5677;border-radius:12px;padding:14px 16px;background:#0a2038}
.ek-crash-detail h3{margin:0 0 12px;font:600 15px/1.45 ui-monospace,Menlo,Consolas,monospace;color:#ffd9cf;word-break:break-word}
.ek-crash-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 18px;margin:0 0 12px}
.ek-crash-facts div{min-width:0}.ek-crash-facts dt{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7fa3c0}
.ek-crash-facts dd{margin:2px 0 0;color:#e6f1fb;font-size:13px;word-break:break-word}
.ek-crash-detail h4{margin:4px 0 6px;color:#bcd3e6;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.ek-crash-stack{margin:0 0 12px;max-height:420px;overflow:auto;padding:12px;border-radius:9px;background:#050f1c;border:1px solid #1d3b58;color:#d7e6f3;
 font:12px/1.5 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word}

/* ---------------------------------------------------------- admin: future releases, email */
.ek-feature-row p{margin:8px 0 0;color:#c7d9e8;font-size:13px;line-height:1.45}
.ek-feature-row code{font-size:11px;color:#9fd8f2}
.ek-feature-row.is-shown{border-color:#3d7a57}
.ek-email-status{padding:12px 14px;border-radius:11px;border:1px solid #2f5677;background:#0a2038;margin-bottom:12px}
.ek-email-status p{margin:0;color:#dceaf6}
.ek-email-status.is-off{border-color:#8d6a2c}
.ek-email-status .ek-email-warn{margin:10px 0 0;background:#2b2312;border-color:#8d6a2c;color:#ffe2a3}
.ek-email-optins{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.ek-email-optins span{padding:6px 11px;border-radius:99px;background:#10304d;border:1px solid #2f5677;color:#cfe0ee;font-size:12px}
.ek-email-optins b{color:#ffe2a3}

/* ---------------------------------------------------------- admin: maintenance template */
.ek-outage summary{cursor:pointer;color:#e6f1fb}
.ek-outage summary small{font-weight:400}
.ek-outage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.ek-outage-grid .ek-outage-note{grid-column:1/-1}
.ek-outage .muted{margin:0;font-size:12px}

/* ---------------------------------------------------------- missing art */
img.ek-missing-art{object-fit:contain;background:radial-gradient(circle at 50% 45%,#23395a,#0d1a2c)}

@media (max-width:640px){
 .ek-crash-row{grid-template-columns:1fr;gap:6px}
 .ek-crash-tags{justify-content:flex-start}
 .ek-outage-grid{grid-template-columns:1fr 1fr}
 .ek-email-prefs{padding:14px}
 .ek-v52-modal .ek-confirm-actions button{flex:1 1 auto}
}

/* legibility on the parchment panels of your own profile (the danger zone text was light blue on cream before v5.2) */
.ek-email-prefs p{color:#4a3622!important}
.tp-panel.ek-danger p b{color:#9b2c11!important}
.ek-email-prefs .ek-email-confirm p{color:#3d2a14!important}
.ek-email-prefs .ek-email-warn{color:#6b4610!important}
.ek-email-prefs .ek-email-ok{color:#2e6b3a!important}
#ek-email-prefs{scroll-margin-top:150px}

/* Cards in the staff screens use <header>; the page header's sticky rules leaked into them (on phones the card titles slid
   over each other while scrolling). Card headers are ordinary blocks. */
main article>header{position:static!important;top:auto;z-index:auto;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;backdrop-filter:none!important}
.ek-bug-report textarea{width:100%!important;box-sizing:border-box;margin:8px 0 10px!important;padding:10px 12px!important;border-radius:9px!important;border:1px solid #b48f50!important;background:#fffaf0!important;color:#2f2114!important;font:inherit;resize:vertical}
.ek-bug-report textarea::placeholder{color:#8a7356}
.ek-bug-actions{display:flex;flex-wrap:wrap;gap:8px}

/* Header: "Training Tokens" is longer than "Tokens"; on laptop-width screens the currency chips show icon + number only
   (like phones; the full name is in the tooltip) so the header stays on one row. */
@media (max-width:1600px){#wallet .ek-chip small{display:none}}   /* v5.3.1: one more header button (daily quests) */

.ek-email-status p+p{margin-top:6px}.ek-email-vars code{font-size:11px;background:#10304d;padding:1px 5px;border-radius:5px;margin-right:3px}
.ek-email-good{margin:0;padding:10px 12px;border-radius:9px;background:#123b2a;border:1px solid #3d7a57;color:#c9f2da;font-size:13px}
.ek-email-test .ek-email-code input{width:auto!important;flex:1 1 220px;letter-spacing:0;font:inherit;text-align:left;background:#071729;color:#fff;border-color:#46698a}

/* v5.3 request alpha access */
#alpha-portal .ek-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
#alpha-portal #ap-note{width:100%;box-sizing:border-box;min-height:74px;padding:10px 12px;border-radius:8px;border:1px solid #34627f;background:#0a1d33;color:#e6f1fb;font:inherit;resize:vertical}
#alpha-portal .ek-request-link{margin-top:10px;text-align:center}
#alpha-portal .ek-request-done{padding:14px;border-radius:10px;border:1px solid #3d7a57;background:#0f2a22}
#alpha-portal .ek-request-done .ek-reset-intro{color:#d6f3e2}

.ek-access-pool{display:inline-block;margin:0 0 10px;padding:6px 12px;border-radius:99px;background:#10304d;border:1px solid #2f5677;color:#cfe0ee;font-size:13px}
.ek-access-pool b{color:#ffe2a3}.ek-access-pool.is-low{border-color:#c0695d;background:#3a1f22}
.ek-access-row header label{display:flex;align-items:center;gap:8px}
.ek-access-row p{margin:8px 0 0;color:#c7d9e8;font-size:13px;white-space:pre-wrap;word-break:break-word}
.ek-access-row.approved{border-color:#3d7a57}.ek-access-row.declined{opacity:.75}
.ek-access-bulk{justify-content:flex-start;margin-bottom:10px}

/* ---------------------------------------------------------- very small phones (320–360 px): keep the header on screen */
@media (max-width:360px){
 #wallet{gap:4px}
 .ek-account-button .ek-chev{display:none}
 .ek-account-button{padding-right:3px}
 .km-hbtn{width:34px;height:34px}
}

/* ---------------------------------------------------------- View as player banner (v5.3.1) */
#ek-viewas{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(80px + env(safe-area-inset-bottom));z-index:70;display:flex;align-items:center;gap:10px;
 padding:7px 8px 7px 14px;border-radius:999px;background:#2a1d05;border:1px solid #e0b453;color:#ffe3a1;font-size:13px;font-weight:700;box-shadow:0 8px 24px #000a;white-space:nowrap}
#ek-viewas .ek-ico{width:18px;height:18px}
#ek-viewas button{min-height:30px!important;padding:4px 12px!important;border-radius:999px!important;border:1px solid #e0b453!important;background:#e0b453!important;color:#2a1d05!important;font-weight:800;font-size:12.5px}
@media(min-width:900px){#ek-viewas{bottom:18px}}

/* spell scrolls show their spell */
.inv-tile .inv-icons{display:flex;justify-content:center;margin:2px 0}
.inv-tile .ek-scroll-effect{font-size:11.5px;line-height:1.35;max-width:100%;white-space:normal}

/* v5.3.1 header on small screens: the quests button joined the header, so on the narrowest phones Friends moves into
   the account menu, and the version tagline hides where it would wrap. */
.ek-menu-friends{display:none!important}
@media(max-width:380px){#ek-fr-btn{display:none!important}.ek-menu-friends{display:flex!important}}
@media(max-width:1300px){#ek-version-line{display:none}}
@media(max-width:1100px){#ek-account-button .ek-role-badge{display:none}}   /* the staff badge would push the header onto two rows */

/* v5.9.3: the Delete my account card: every word in red (the labels were near-white on cream and unreadable) */
.tp-panel.ek-danger,.tp-panel.ek-danger p,.tp-panel.ek-danger label,.tp-panel.ek-danger small{color:#a3240f!important}
.tp-panel.ek-danger p b,.tp-panel.ek-danger h2,.tp-panel.ek-danger h2 .ek-ico{color:#8a1c0a!important}
.tp-panel.ek-danger label{font-weight:700}
.tp-panel.ek-danger details>summary{color:#a3240f!important;background:#fbeee6!important;border:1px solid #c4471b!important;border-radius:10px!important;padding:9px 12px!important;font-weight:800;margin-bottom:10px!important}
.tp-panel.ek-danger input{background:#fffaf0!important;color:#3a1a0e!important;border:1px solid #c4471b!important}
.tp-panel.ek-danger input:focus{outline:2px solid #e0786a;outline-offset:1px}
.tp-panel.ek-danger .ek-danger-btn{color:#fff!important;background:#b0301a!important;border-color:#8a1c0a!important;font-weight:800}
/* ===== client/css/54_mobile.css ===== */
/* Everkin v5.3.2 — phones and small tablets. Loaded last, so it wins over the older per-screen rules.
   Battle: the whole round fits one screen (compact top bar, arena, Enemy Intent, round summary, four commands) with
   the Resolve bar fixed at the bottom and choice popups as bottom sheets. Everywhere: 44px tap targets, 16px form
   text (no iOS zoom), safe areas, top toasts, segmented section tabs. */

/* ------------------------------------------------------------------ everywhere */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,[role=button],select,summary,label{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ek-sub-short{display:none}
.ek-resolve.is-busy{opacity:.8!important;cursor:progress}
.ek-combat-screen{grid-template-columns:minmax(0,1fr)}

/* ------------------------------------------------------------------ battle (phones, small tablets and phones held sideways) */
@media(max-width:760px),(max-height:500px) and (orientation:landscape) and (max-width:1000px){
 /* focus mode: no tab bar or section tabs while a round is being planned */
 body:has(.ek-combat-screen) nav.bottom{display:none!important}
 body:has(.ek-combat-screen) #app>.ek-subnav{display:none!important}
 body:has(.ek-combat-screen)>main{padding-bottom:8px!important}
 .ek-combat-screen{gap:8px!important;padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}
 .ek-combat-top{flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;padding:6px 6px 6px 12px!important;min-height:52px}
 .ek-combat-top h1{display:none!important}
 .ek-combat-title{flex:1;min-width:0}
 .ek-combat-top .ek-wizard-kicker{display:block;font-size:11px!important;letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .ek-round-status{min-width:0!important;flex-wrap:nowrap!important;gap:5px!important}
 .ek-round-status>span{font-size:9px}
 .ek-round-status b{font-size:20px!important;line-height:1}
 .ek-round-dots{width:auto!important}
 .ek-round-dots i{width:7px;height:7px}
 .ek-combat-top .ek-help-button{width:40px;height:40px;min-height:40px!important;padding:0!important;border-radius:50%!important;flex:none;display:grid;place-items:center}
 .ek-combat-top .ek-help-button span{display:none}
 .ek-rate-pill{font-size:10px!important;padding:3px 7px!important;white-space:nowrap}
 /* arena */
 .ek-battlefield{height:clamp(176px,29dvh,240px)!important;min-height:0!important;border-radius:14px!important}
 .ek-combat-screen .ek-round-spine:not(.ek-ended-round-spine){display:none!important}
 .ek-battle-hud{top:6px!important;max-width:48%!important;min-width:0!important;padding:5px 7px!important;gap:6px!important;border-radius:10px!important}
 .ek-hud-left{left:6px!important}.ek-hud-right{right:6px!important}
 .ek-battle-hud img{width:30px!important;height:30px!important}
 .ek-battle-hud strong{font-size:12px!important}
 .ek-battle-hud small{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .ek-health-line{height:8px!important;margin:3px 0!important}
 .ek-fighter-field{inset:58px 0 22px!important;grid-template-columns:1fr 26px 1fr!important;padding:0 4px!important}
 .ek-fighter-field img{height:100%!important;width:100%!important;max-width:200px}
 .ek-arena-vs{font-size:13px!important}
 .ek-battlefield-footer{bottom:6px!important;left:8px!important;right:8px!important;font-size:11px!important}
 .ek-energy-now{padding:2px 8px;border-radius:99px;background:#071626cc;border:1px solid #f0ca7e66}
 /* round summary */
 .ek-review-stance{display:inline!important}
 .ek-review-heading{min-height:48px!important;padding:6px 10px!important}
 .ek-review-outcome{flex-wrap:wrap;gap:2px 8px!important;font-size:12px!important}
 .ek-review-notes{margin:0;padding:6px 10px 8px;font-size:12px;color:#c9dcec;line-height:1.35}
 /* commands */
 .ek-command-console-head,.ek-command-summary{display:none!important}
 .ek-battle-controls.ek-command-console{padding:8px!important;gap:0!important;border-radius:14px!important}
 .ek-command-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
 .ek-command-toolbar button{min-height:66px!important;padding:6px 2px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px!important;text-align:center;border-radius:12px!important}
 .ek-command-toolbar button>span{font-size:21px!important;line-height:1.1}
 .ek-command-toolbar button b{font-size:12px!important;max-width:100%}
 .ek-command-toolbar button small{font-size:10.5px!important;max-width:100%}
 .ek-command-toolbar button.needed{border-color:#e8bc73!important;box-shadow:inset 0 0 0 1px #e8bc7355}
 /* the Resolve bar is always in reach */
 .ek-command-console-footer{position:fixed!important;left:0;right:0;bottom:0;z-index:80;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;
  padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;background:linear-gradient(#0b2239f2,#061527fa);border-top:1px solid #3a5b78;box-shadow:0 -8px 24px #000a;backdrop-filter:blur(8px)}
 .ek-ready-line{font-size:12px;color:#c3d6e6;text-align:center;line-height:1.2}
 .ek-ready-line.ok{color:#9ff0c2}
 .ek-command-console-footer .ek-controls-actions{display:flex!important;width:100%!important;gap:8px!important}
 .ek-command-console-footer .ek-resolve{flex:1!important;min-width:0!important;width:auto!important;min-height:50px!important;font-size:15px!important;border-radius:12px!important}
 .ek-forfeit{min-height:50px!important;width:50px;padding:0!important;flex:none;border-radius:12px!important}
 .ek-forfeit .ek-forfeit-label{display:none}
 .ek-forfeit .ek-forfeit-ico{font-size:18px}
 .ek-tut-hint{min-height:50px!important;border-radius:12px!important}
 /* choice popups become bottom sheets */
 .ek-command-backdrop{align-items:flex-end!important;padding:0!important}
 .ek-command-popover{width:100%!important;max-height:88dvh!important;border-radius:20px 20px 0 0!important;padding:8px 12px calc(12px + env(safe-area-inset-bottom))!important;animation:ek-sheet-up .22s ease-out}
 .ek-command-popover::before{content:"";display:block;width:40px;height:4px;border-radius:4px;background:#8aa4ad88;margin:2px auto 8px}
 .ek-command-popup-header h2{font-size:19px!important}
 .ek-command-popup-header p{font-size:12px!important}
 .ek-command-close{width:40px!important;height:40px!important;min-height:40px!important}
 .ek-command-grid-items{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
 .ek-command-grid-items .ek-command-choice{min-height:118px;padding:4px!important}
 .ek-command-grid-items .ek-command-choice img{height:46px!important}
 .ek-command-grid-items .ek-command-choice b{font-size:9.5px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:center}
 .ek-command-grid-items .ek-command-choice small{font-size:8.5px}
 .ek-command-grid-items .ek-gear-fx{display:none}
 .ek-command-grid-stances{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .ek-command-stance{min-height:0!important;padding:10px 8px!important}
 .ek-command-stance small{font-size:11.5px!important}
 .ek-command-popup-footer{position:sticky;bottom:calc(-12px - env(safe-area-inset-bottom));margin:10px -12px calc(-12px - env(safe-area-inset-bottom))!important;padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;background:#071a2e;z-index:2}
 .ek-command-popup-footer button{min-height:48px!important;min-width:120px!important}
 /* the onboarding portal: the battle gets the whole screen */
 #alpha-portal:has(.ek-combat-screen) .alpha-wizard-head .ek-stepper,#alpha-portal:has(.ek-combat-screen) .alpha-wizard-head [class*=stepper]{display:none!important}
 #alpha-portal:has(.ek-combat-screen) .alpha-tutorial-main{padding:6px 8px 0!important}
}
@keyframes ek-sheet-up{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.ek-command-popover{animation:none!important}}
@media(max-width:360px){
 .ek-command-console-footer .ek-resolve{font-size:13px!important;white-space:nowrap;letter-spacing:0}
 .ek-tut-hint span{display:none}
 .ek-command-toolbar button b{font-size:11px!important}
 .ek-command-toolbar button small{font-size:9.5px!important}
 .ek-battle-hud img{display:none}
}
@media(max-width:760px) and (max-height:700px){
 .ek-battlefield{height:clamp(150px,26dvh,200px)!important}
 .ek-command-toolbar button{min-height:58px!important}
}

/* ------------------------------------------------------------------ all screens on phones */
@media(max-width:760px){
 /* form fields: 16px text so iOS doesn't zoom in, and a full-size tap target */
 #app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),#app select,#app textarea,
 #alpha-portal input:not([type=checkbox]):not([type=radio]),#alpha-portal select,#alpha-portal textarea,
 .ek-modal-backdrop input:not([type=checkbox]):not([type=radio]),.ek-modal-backdrop select,.ek-modal-backdrop textarea,
 .km-drawer input,.km-drawer textarea,.km-backdrop input,.km-backdrop textarea,.km-backdrop select{font-size:16px!important;min-height:44px}
 #app textarea,.km-backdrop textarea,.ek-modal-backdrop textarea{min-height:88px}
 #app input[type=checkbox],#app input[type=radio]{width:20px;height:20px;accent-color:#e8bc73}
 #app label:has(>input[type=checkbox]),#app label:has(>input[type=radio]){min-height:44px;display:flex;align-items:center;gap:8px}
 /* buttons: 44px tall */
 #app button.primary,#app .tp-btn,#app .km-f,#app .ek-g-chips button,#app .ek-subnav button,#app summary,
 #app .inv-pages button,#app .pager button,.ek-modal-backdrop button,.km-backdrop button{min-height:44px!important}
 #app summary{display:flex;align-items:center}
 .ek-g-swatches{gap:8px}
 .ek-g-swatches button{width:36px!important;height:36px!important}
 .ek-g-swatches.is-second button{width:34px!important;height:34px!important}
 .ek-g-glyphs{gap:6px}
 .ek-g-glyphs button{padding:5px!important}
 /* section tabs: one even segmented control, short labels */
 #app>.ek-subnav{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px!important;padding:4px!important;overflow:visible!important;margin-bottom:12px!important;border-radius:14px!important}
 #app>.ek-subnav button{min-width:0;padding:6px 4px!important;font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:10px!important}
 /* market filters fill the row */
 .market-tools{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .market-tools>:first-child{grid-column:1/-1}
 .market-tools select{width:100%!important;max-width:none!important;min-width:0;padding-right:24px!important;text-overflow:ellipsis}
 /* scrollable chip rows show there's more */
 .km-folders{-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent);padding-right:24px}
 /* text links need room for a thumb */
 #app p a,#app small a,#app .muted a{display:inline-block;padding:10px 2px;margin:-10px 0}
 /* notifications slide in at the top on phones, like the system ones, and never pile up */
 .km-toasts{top:calc(8px + env(safe-area-inset-top))!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%);width:min(420px,calc(100vw - 16px))!important}
 .km-toast{min-height:52px!important;padding:8px 12px!important;box-shadow:0 10px 30px #000b!important}
 .km-toast:nth-child(n+3){display:none!important}
 .km-toast.is-leaving{transform:translateY(-12px)!important}
 /* dialogs read as sheets */
 .ek-modal-backdrop{align-items:flex-end!important;padding:0!important}
 .ek-modal-backdrop>*{width:100%!important;max-width:none!important;max-height:90dvh!important;overflow:auto;border-radius:20px 20px 0 0!important;padding-bottom:calc(16px + env(safe-area-inset-bottom))!important}
}
@media(max-width:600px){
 .ek-sub-full{display:none}
 .ek-sub-short{display:inline}
}
/* tablets and phones in landscape keep the bottom bar clear of the home indicator */
@media(max-width:899px){
 nav.bottom{padding-bottom:max(4px,env(safe-area-inset-bottom))!important}
 body>main{padding-left:max(8px,env(safe-area-inset-left))!important;padding-right:max(8px,env(safe-area-inset-right))!important}
}
@media(max-width:760px){#app .pager button{min-width:44px}}
@media(max-width:760px){
 /* the main action of a long list stays in reach */
 .ek481-picker .battle-submit{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom));z-index:5;min-height:52px!important;box-shadow:0 10px 26px #000b}
}
@media(max-width:760px){
 /* any other button in the page: at least 44px tall (swatches, glyphs and round chips keep their own sizes) */
 #app button{min-height:44px}
 #app .km-chips button{min-height:40px!important;padding-inline:14px!important}
}
@media(max-height:500px) and (orientation:landscape) and (max-width:1000px){
 .ek-battlefield{height:150px!important}
 .ek-command-console-footer{flex-direction:row!important;align-items:center!important}
 .ek-ready-line{flex:1;text-align:left}
 .ek-command-console-footer .ek-controls-actions{width:auto!important;flex:0 0 min(60%,460px)}
 .ek-combat-screen{padding-bottom:calc(70px + env(safe-area-inset-bottom))!important}
 .ek-tut-coach{max-height:70dvh}
}
@media(max-width:760px){
 /* PvP: the lock-in button stays in reach while you pick a stance, gear and spells */
 .ek-pvp-actions .battle-submit{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom));z-index:5;min-height:52px!important;box-shadow:0 10px 26px #000b}
 .ek-pvp-actions .battle-submit:disabled,.ek481-picker .battle-submit:disabled{opacity:1!important;background:#2e2a1f!important;border-color:#6d5a2e!important;color:#bba77a!important}
}

/* v5.9: a seven-figure gold balance kept the phone header 3px too wide at 390px */
@media(max-width:420px){#wallet{gap:3px;min-width:0}#wallet .ek-chip{padding:3px 5px!important;font-size:10.5px}}

/* v5.13.3: "Everkin was updated" bar for tabs left open across a deploy */
#ek-update-bar{position:fixed;z-index:10100;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;border-radius:14px;border:1px solid #e8bc73;background:#14243d;color:#f3e6c9;box-shadow:0 12px 34px #000a;font-weight:700;max-width:calc(100vw - 24px)}
#ek-update-bar button{min-height:40px;padding:6px 14px;border-radius:10px}
#ek-update-bar .ek-update-later{background:transparent;border:0;color:#9fc0dc;text-decoration:underline}
@media (max-width:760px){#ek-update-bar{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
/* ===== client/css/56_combat_v54.css ===== */
/* v5.4 combat: status badges, healing pool, stackable copies, item effect lines, leagues (Item Studio, PvP, Admin). */
.ek-status-row{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.ek-status-chip{display:inline-flex;align-items:center;gap:3px;padding:1px 7px;border-radius:999px;font-size:.68rem;font-weight:700;letter-spacing:.02em;background:rgba(10,22,40,.78);border:1px solid rgba(255,255,255,.18);color:#eaf2ff;white-space:nowrap}
.ek-status-chip i{font-style:normal}
.ek-status-chip.s-burn{border-color:#ff8a3d;color:#ffd2b3}.ek-status-chip.s-chill,.ek-status-chip.s-frozenEligible{border-color:#8fe3ff;color:#dff7ff}
.ek-status-chip.s-soaked{border-color:#58c2ff;color:#d6efff}.ek-status-chip.s-drain{border-color:#ffe66d;color:#fff4bd}
.ek-status-chip.s-frozen{background:#cfefff;color:#0b2a44;border-color:#fff}.ek-status-chip.s-recovering{border-color:#c9c9d6;color:#e7e7f0}
.ek-status-chip.s-mantle{border-color:#9d7cf0;color:#e4d9ff}.ek-status-chip.s-attuned{border-color:#ffd166;color:#fff1c2}
.ek-pool{font-weight:700;color:#9af5b4}
.ek-copies{font-style:normal;font-weight:800;color:#ffd166;font-size:.85em;margin-left:2px}
.ek-gear-fx{display:block;font-size:.66rem;line-height:1.25;color:rgba(234,242,255,.78);white-space:normal}
.ek-command-choice.is-spent{opacity:.55;filter:grayscale(.4)}
.ek-review-through span:last-child,.ek-review-fx span:last-child{font-weight:600}
.ek-gear-btns{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.ek-help-elements td{font-size:.8rem;vertical-align:top}
/* Item Studio: league legality chips and overrides */
.ek-is-leagues{display:inline-flex;gap:2px;margin-left:4px;vertical-align:middle}
.ek-is-lg{display:inline-block;padding:0 5px;border-radius:6px;font-size:.66rem;font-weight:800;border:1px solid transparent;line-height:1.5}
.ek-is-lg.lg-legal{background:rgba(94,194,106,.18);color:#9af5b4;border-color:rgba(94,194,106,.5)}
.ek-is-lg.lg-capped{background:rgba(255,179,71,.16);color:#ffd9a1;border-color:rgba(255,179,71,.5)}
.ek-is-lg.lg-banned{background:rgba(255,95,138,.16);color:#ffc0d1;border-color:rgba(255,95,138,.5)}
.ek-is-lg.is-ov{outline:2px dashed rgba(255,255,255,.5);outline-offset:-1px}
.ek-is-league-table{width:100%;border-collapse:collapse;font-size:.8rem;margin:6px 0}
.ek-is-league-table th,.ek-is-league-table td{padding:4px 6px;text-align:left;border-bottom:1px solid rgba(255,255,255,.08);vertical-align:top}
.ek-is-league-table small{display:block;color:rgba(234,242,255,.65)}
.ek-is-league-table select{width:100%}
/* PvP league picker */
.ek-pvp-league-pick{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px}
.ek-pvp-league-pick b{margin-right:4px}
.ek-pvp-league-pick button{padding:5px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.06);color:inherit;font-weight:700;cursor:pointer}
.ek-pvp-league-pick button.on{background:#ffd166;color:#1b1407;border-color:#ffd166}
.ek-pvp-league-pick small{flex-basis:100%;color:rgba(234,242,255,.72)}
/* Admin: league limits table */
.ek-league-tablewrap{overflow:auto;margin:8px 0}
.ek-league-table{border-collapse:collapse;min-width:640px;font-size:.8rem}
.ek-league-table th,.ek-league-table td{padding:4px 6px;border-bottom:1px solid rgba(255,255,255,.1);text-align:left;vertical-align:top}
.ek-league-table input{width:5.2em}
.ek-league-table small{display:block;color:rgba(234,242,255,.55);font-size:.66rem}
@media (max-width:760px){.ek-status-chip{font-size:.62rem;padding:0 5px}.ek-gear-fx{display:none}}
.ek-charm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin:8px 0}
.ek-charm{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.05);color:inherit;cursor:pointer}
.ek-charm img{width:56px;height:56px;object-fit:contain}.ek-charm small{font-size:.68rem;color:rgba(234,242,255,.7)}.ek-charm.is-off{opacity:.55;cursor:not-allowed}
/* v5.4.1 — statuses on the fighters (Pokémon-style labels) and coloured triggers in the round summary */
.ek-sprite-wrap{position:relative;display:flex;justify-content:center;align-items:flex-end;width:100%;height:100%;min-width:0}
.ek-sprite-status{position:absolute;bottom:2px;left:50%;transform:translateX(-50%);z-index:4;display:flex;flex-wrap:wrap-reverse;justify-content:center;gap:4px;width:max-content;max-width:min(100%,250px);pointer-events:auto}
.ek-sprite-chip{--chip:#8a8fa3;display:inline-flex;align-items:center;gap:3px;padding:2px 8px 2px 6px;border-radius:6px;font:800 11px/1.25 system-ui,sans-serif;letter-spacing:.06em;
 color:#fff;background:var(--chip);border:1.5px solid rgba(255,255,255,.85);box-shadow:0 2px 0 rgba(0,0,0,.45),0 0 12px color-mix(in srgb,var(--chip) 70%,transparent);text-shadow:0 1px 0 rgba(0,0,0,.45);white-space:nowrap}
.ek-sprite-chip i{font-style:normal}
.ek-sprite-chip.s-burn{--chip:#e8572a;animation:ekBurnGlow 1.4s ease-in-out infinite}
.ek-sprite-chip.s-frozen{--chip:#bfeeff;color:#0b2a44;text-shadow:none;border-color:#fff}
.ek-sprite-chip.s-recovering{--chip:#7d8296}
.ek-sprite-chip.s-chill{--chip:#38b6e6}
.ek-sprite-chip.s-soaked{--chip:#2f7fe0}
.ek-sprite-chip.s-mantle{--chip:#6b46c1}
.ek-sprite-chip.is-new{animation:ekChipIn .45s cubic-bezier(.3,1.6,.5,1) both}
.ek-sprite-chip.s-burn.is-new{animation:ekChipIn .45s cubic-bezier(.3,1.6,.5,1) both,ekBurnGlow 1.4s ease-in-out .45s infinite}
.ek-sprite-chip.is-gone{animation:ekChipOut 1.6s ease-in forwards;pointer-events:none}
@keyframes ekChipIn{0%{transform:scale(.3) translateY(8px);opacity:0}100%{transform:none;opacity:1}}
@keyframes ekChipOut{0%,35%{opacity:1;transform:none;filter:none}100%{opacity:0;transform:translateY(-14px) scale(.85);filter:grayscale(1)}}
@keyframes ekBurnGlow{0%,100%{box-shadow:0 2px 0 rgba(0,0,0,.45),0 0 8px #ff7a3a}50%{box-shadow:0 2px 0 rgba(0,0,0,.45),0 0 18px #ffb347}}
.ek-sprite-pops{position:absolute;left:0;right:0;top:38%;z-index:5;display:flex;flex-direction:column;align-items:center;gap:2px;pointer-events:none}
.ek-sprite-pop{font:900 22px/1 system-ui,sans-serif;-webkit-text-stroke:1px rgba(0,0,0,.55);text-shadow:0 2px 6px rgba(0,0,0,.6);animation:ekPopRise 2.4s ease-out forwards}
.ek-sprite-pop.k-burnhit{color:#ff8a3d}.ek-sprite-pop.k-regrowth{color:#7cf08f}
@keyframes ekPopRise{0%{opacity:0;transform:translateY(12px) scale(.7)}12%{opacity:1;transform:none}75%{opacity:1}100%{opacity:0;transform:translateY(-36px)}}
/* PvP fighters */
.fighter .ek-sprite-wrap{height:auto;width:auto}
.fighter .ek-sprite-status{bottom:6px}
/* triggered effects (round summary, PvP rounds) */
.ek-review-triggers{display:flex;flex-wrap:wrap;gap:6px 12px;padding:6px 12px 2px;align-items:center}
.ek-trig-side{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px}
.ek-pvp-history .ek-pvp-triggers{padding:4px 0 2px}.ek-pvp-history .ek-trig-side{display:inline-flex}.ek-pvp-history .ek-trig{display:inline-flex}.ek-pvp-history .ek-trig>i{display:inline}
.ek-trig-side>b{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(234,242,255,.7);margin-right:2px}
.ek-trig-list{display:inline-flex;flex-wrap:wrap;gap:4px}
.ek-trig{--k:#8a8fa3;display:inline-flex;align-items:center;gap:3px;padding:1px 8px 1px 6px;border-radius:999px;font-size:.72rem;font-weight:700;white-space:nowrap;
 color:color-mix(in srgb,var(--k) 45%,#fff);background:color-mix(in srgb,var(--k) 22%,transparent);border:1px solid color-mix(in srgb,var(--k) 75%,transparent)}
.ek-trig i{font-style:normal}
.ek-trig.k-burn,.ek-trig.k-burnhit{--k:#ff6a2a}.ek-trig.k-soak{--k:#3b8ff0}.ek-trig.k-drain{--k:#f2c418}.ek-trig.k-grounded{--k:#b8874a}
.ek-trig.k-chill{--k:#5fd0f5}.ek-trig.k-frozen{--k:#cfefff}.ek-trig.k-fizzle{--k:#9aa0b2}.ek-trig.k-radiance{--k:#ffe27a}.ek-trig.k-regrowth{--k:#4fd06b}
.ek-trig.k-thorns{--k:#2f9e57}.ek-trig.k-pierce,.ek-trig.k-mantle{--k:#9a72f0}.ek-trig.k-dodge{--k:#9fdcf5}.ek-trig.k-reflect{--k:#fff0a8}.ek-trig.k-attune{--k:#ffd166}.ek-trig.k-braced{--k:#a9b4c8}
@media (max-width:760px){.ek-sprite-chip{font-size:9.5px;padding:1px 6px 1px 4px;letter-spacing:.03em}.ek-sprite-status{gap:3px}.ek-fighter-player .ek-sprite-status{bottom:28px}.ek-sprite-pop{font-size:17px}.ek-trig{font-size:.66rem}}
@media (prefers-reduced-motion:reduce){.ek-sprite-chip,.ek-sprite-chip.is-new,.ek-sprite-pop{animation:none!important}.ek-sprite-chip.is-gone{animation:none!important;opacity:.45}}
/* ===== client/css/58_trials_v55.css ===== */
/* v5.5: Ascendant Trials progression — stat caps, challenger gear, phone league-first flow; AI skill is never shown */
.campaign-cap{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 12px;padding:10px 12px;border-radius:10px;border:1px solid #2f6a8a;background:#07233a;font-size:12px;color:#bfe0f2}
.campaign-cap b{color:#ffd887;white-space:nowrap}.campaign-cap.is-over{border-color:#b98a3c;background:#2a2410}.campaign-cap.is-over b{color:#ffcf6a}
.campaign-gear-row{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.campaign-gear-chip{display:inline-flex;flex-direction:column;gap:1px;padding:3px 7px;border-radius:7px;background:#0d2238;border:1px solid #2b4d68;max-width:100%}
.campaign-gear-chip b{font-size:10px;color:#dbe9f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.campaign-gear-chip small{font-size:9.5px;color:#9fc1d9;text-transform:none;letter-spacing:0}
.campaign-gear-chip.is-signature{border-color:#b68040;background:#2a1f33}.campaign-gear-chip.is-signature b{color:#ffe1a6}
.campaign-step.near-boss{border-color:#8c5d3a}.campaign-step.near-boss .campaign-step-number{border-color:#c48a4a;color:#ffd79a}
.campaign-step-info{gap:3px}.campaign-step-info span{text-transform:none}
.campaign-boss-gear small{display:block}
.campaign-back{margin:0 0 10px}.campaign-back button{padding:7px 12px;font-size:13px}
.ek-cap-pill{display:inline-block;padding:0 6px;border-radius:999px;background:#2a2410;border:1px solid #b98a3c;color:#ffcf6a;font-size:9.5px;font-weight:800;letter-spacing:.05em;vertical-align:middle}
.ek-cap-note{margin:8px 0 0;padding:8px 12px;border-radius:9px;border:1px solid #b98a3c;background:#2a241088;color:#f1dcae;font-size:12px;line-height:1.5}
.ek-cap-note b{color:#ffcf6a}
@media (max-width:760px){
 .ek-cap-note{display:flex;gap:6px;align-items:baseline;padding:6px 10px;font-size:11.5px;white-space:nowrap;overflow:hidden}.ek-cap-note b{white-space:nowrap}.ek-cap-detail{overflow:hidden;text-overflow:ellipsis;min-width:0}
 .campaign-screen.is-phone .campaign-leagues.is-phone-list{grid-template-columns:1fr;gap:7px}
 .campaign-screen.is-phone .campaign-league{min-height:0;flex-direction:row;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:3px 10px;padding:11px 14px;position:relative;padding-right:34px}
 .campaign-screen.is-phone .campaign-league small{width:100%}
 .campaign-screen.is-phone .campaign-league b{font-size:15px}
 .campaign-screen.is-phone .campaign-league span{font-size:11px}
 .campaign-league-go{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-style:normal;font-size:22px;color:#8fb6d2}
 .campaign-screen.is-phone .campaign-map-heading{margin-top:12px}
 .campaign-gear-chip b{max-width:120px}
}
/* ===== client/css/60_v56.css ===== */
/* v5.6: bounty board, weekly league, objectives, results extras, seasons, exchange, milestones, recolour */
.ek-bounties{margin:14px 0}.ek-bounties.is-compact{margin:10px 0 14px}
.ek-bounty-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.ek-bounty{display:flex;align-items:center;gap:10px;text-align:left;padding:9px 11px;border-radius:10px;border:1px solid #2f5f80;background:#07203a;color:inherit}
.ek-bounty img{width:48px;height:48px;object-fit:contain;flex:none}.ek-bounty-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.ek-bounty-body b{font-size:13px}.ek-bounty-body small{font-size:10.5px;color:#9fc1d9}.ek-bounty-pay{color:#ffd887!important}
.ek-bounty.is-done{opacity:.55;border-color:#2f6b57}.ek-bounty.is-done .ek-bounty-pay{color:#77e6b5!important}
.campaign-objectives{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.campaign-objective{font-size:10px;padding:2px 7px;border-radius:7px;border:1px dashed #3b5f7c;color:#b9d4e6;text-transform:none;letter-spacing:0}
.campaign-objective.is-done{border-style:solid;border-color:#2bb783;color:#a3ffd3}
.campaign-replay{margin-top:6px;padding:4px 9px;font-size:11px;border-radius:8px;border:1px solid #3b5f7c;background:#0b2238;color:#cfe3f2;display:block}
.campaign-step-action{display:flex;flex-direction:column;align-items:flex-end}
.ek-v56-extras{margin:10px 0;display:flex;flex-direction:column;gap:6px}
.ek-v56-note{margin:0;font-size:12.5px;color:#d7e6f2;padding:7px 10px;border-radius:8px;background:#0b2238;border:1px solid #2f5f80}
.ek-v56-note.is-bounty{border-color:#b98a3c;color:#ffe3a8}.ek-v56-note.is-rare{border-color:#f0ca7e;background:#2a2410;color:#ffe1a6;font-weight:700}
.ek-v56-objectives{display:flex;flex-wrap:wrap;gap:5px;align-items:center;font-size:12px}.ek-v56-objectives>b{margin-right:4px}
.ek-objective{padding:3px 8px;border-radius:8px;border:1px solid #2bb783;color:#a3ffd3;font-size:11.5px}.ek-objective.is-done{opacity:.7}.ek-objective em{color:#ffd887;font-style:normal}
.ek-v56-coach{margin:0;font-size:12.5px;color:#ffe3a8;padding:7px 10px;border-radius:8px;background:#2a241088;border:1px solid #b98a3c}
.ek-v56-foe{margin:0;font-size:12px;color:#9fc1d9}
.ek-weekly-hero h1{margin:6px 0 8px}.ek-weekly-last{font-size:12.5px;color:#bfe0f2;margin:10px 0 0}
.ek-weekly-table{width:100%;border-collapse:collapse;font-size:13px}.ek-weekly-table th,.ek-weekly-table td{padding:6px 8px;border-bottom:1px solid #1f3b55;text-align:left}.ek-weekly-table tr.is-me td{color:#ffd887;font-weight:700}
.ek-season-track{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:6px;margin:8px 0}
.ek-season-step{display:flex;flex-direction:column;gap:2px;padding:8px;border-radius:9px;border:1px solid #2b4d68;background:#0b2238;font-size:11px;opacity:.55}
.ek-season-step b{font-size:15px;color:#9fc1d9}.ek-season-step em{font-style:normal;color:#ffd887;font-size:10.5px}
.ek-season-step.is-ready{opacity:1;border-color:#f0ca7e;box-shadow:0 0 0 1px #f0ca7e55}.ek-season-step.is-claimed{opacity:.9;border-color:#2bb783}.ek-season-step.is-claimed b{color:#77e6b5}
.ek-exchange{display:grid;grid-template-columns:1fr 260px;gap:12px;align-items:start}
.ek-exchange-give{display:flex;flex-wrap:wrap;gap:6px}.ek-exchange-item{display:flex;flex-direction:column;gap:1px;padding:7px 10px;border-radius:8px;border:1px solid #695c5c;background:#0b1c32;cursor:pointer;font-size:12px}
.ek-exchange-item.is-on{border-color:#f0ca7e}.ek-exchange-item input{display:none}.ek-exchange-item small{color:#9fc1d9}
.ek-exchange-want{display:flex;flex-direction:column;gap:8px}
.ek-milestones{margin-top:12px}.ek-ms-row{display:grid;grid-template-columns:90px repeat(4,1fr);gap:6px;align-items:stretch;margin-bottom:6px}
.ek-ms-row>b{display:flex;flex-direction:column;justify-content:center;font-size:13px}.ek-ms-row>b small{color:#9fc1d9;font-weight:400}
.ek-ms{position:relative;padding:8px 8px 8px 30px;border-radius:9px;border:1px solid #2b4d68;background:#0b2238;font-size:11.5px;display:flex;flex-direction:column;gap:3px;min-height:52px}
.ek-ms-step{position:absolute;left:8px;top:8px;font-size:10px;color:#9fc1d9;font-weight:800}
.ek-ms.is-locked{opacity:.5}.ek-ms.is-chosen{border-color:#2bb783}.ek-ms.is-open{border-color:#f0ca7e}
.ek-ms-opt{text-align:left;padding:5px 7px;border-radius:7px;border:1px solid #3b5f7c;background:#07203a;color:inherit;display:flex;flex-direction:column;gap:1px;font-size:11px}.ek-ms-opt small{color:#9fc1d9}
.ek-ms-swap{position:absolute;right:6px;top:6px;padding:1px 6px;font-size:12px;border-radius:6px}
.ek-recolor-row{display:flex;flex-wrap:wrap;gap:8px}.ek-recolor-swatch{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px;border-radius:9px;border:1px solid #2b4d68;background:#0b2238;color:inherit}
.ek-recolor-swatch img{width:56px;height:56px;object-fit:contain}.ek-recolor-swatch.is-current{border-color:#2bb783;opacity:.7}
.tr-mat{margin-left:4px}
@media (max-width:760px){.ek-exchange{grid-template-columns:1fr}.ek-ms-row{grid-template-columns:1fr 1fr}.ek-ms-row>b{grid-column:1/-1;flex-direction:row;gap:8px;align-items:baseline}.ek-bounty-list{grid-template-columns:1fr}.ek-season-track{grid-template-columns:repeat(2,1fr)}}

/* level 100 profile frame */
.metric.ek-frame-champion{box-shadow:0 0 0 2px #d4a017,0 0 12px rgba(212,160,23,.45);border-radius:10px}
/* ===== client/css/62_v57.css ===== */
/* Everkin v5.7: eggs, prize bands, Admin → Weekly prizes */
.ek-egg-tile .inv-action.primary{background:var(--accent,#d4a017);color:#1a1200}
.ek-hatch{max-width:420px}
.ek-hatch-art{display:flex;justify-content:center;margin:8px 0}
.ek-hatch-art img{width:140px;height:140px;object-fit:contain;border-radius:14px;background:rgba(255,255,255,.04)}
.ek-hatch-colors{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.ek-weekly-prizes{margin-top:12px}
.ek-weekly-prizes.has-headline{border:1px solid rgba(212,160,23,.5);box-shadow:0 0 18px rgba(212,160,23,.18)}
.ek-weekly-headline h2{margin:2px 0 10px;font-size:1.3rem}
.ek-weekly-prize-row{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.ek-prize-preview{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:140px;padding:10px;border-radius:12px;background:rgba(255,255,255,.04)}
.ek-prize-preview img{width:120px;height:120px;object-fit:contain}
.ek-prize-preview small{opacity:.7;text-align:center}
.ek-prize-bands{display:grid;gap:6px;flex:1;min-width:220px}
.ek-prize-band{display:flex;justify-content:space-between;gap:10px;padding:6px 10px;border-radius:8px;background:rgba(255,255,255,.03)}
.ek-prize-band.is-special{background:rgba(212,160,23,.12)}
.ek-prize-band small{opacity:.8;text-align:right}
.ek-week-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.ek-week-tabs button.on{outline:2px solid var(--accent,#d4a017)}
.ek-week-tabs button.has-override{font-weight:700}
.ek-band-card .screen-head{margin-bottom:4px}
.ek-band-toggle{display:flex;align-items:center;gap:6px;font-size:.9rem}
.ek-bundle-row{display:flex;gap:10px;flex-wrap:wrap}
.ek-bundle-row .field{flex:1;min-width:110px}
.ek-bundle-mats .field{min-width:80px}
.ek-bundle-items{margin:8px 0;position:relative}
.ek-bundle-item{display:flex;align-items:center;gap:8px;padding:4px 0}
.ek-bundle-item input{width:64px}
.ek-bundle-hits{display:grid;gap:4px;margin-top:4px}
.ek-bundle-hits button{display:flex;align-items:center;gap:8px;text-align:left}
.ek-bundle-hits img{width:28px;height:28px;object-fit:contain}
.ek-exchange-tokens{margin:8px 0;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ek-preview-pick{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
@media (max-width:600px){.ek-weekly-prize-row{flex-direction:column}.ek-prize-band{flex-direction:column}.ek-prize-band small{text-align:left}}
/* project ladder (admin) and project gates (guild) */
.ek-ladder-project{border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px;margin:10px 0}
.ek-ladder-project.is-feature{border-color:rgba(212,160,23,.35)}
.ek-ladder-project>header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.ek-ladder-project>header small{opacity:.7;flex:1}
.ek-ladder-stage{border-top:1px dashed rgba(255,255,255,.1);padding-top:6px;margin-top:6px}
.ek-g-project.is-feature{border-color:rgba(212,160,23,.4)}
.ek-g-project.is-locked{opacity:.75}
.ek-g-gate{font-size:.85rem}
.ek-g-need.is-item span small{opacity:.7}
/* ===== client/css/64_market.css ===== */
/* Everkin v5.8 Market: tier tabs, locked tabs, purchase pop-up */
.ek-market-wallet{font-size:1.1rem;padding:8px 14px;border-radius:999px;background:rgba(212,160,23,.12);border:1px solid rgba(212,160,23,.4);white-space:nowrap}
.ek-market-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 12px}
.ek-market-tabs button{padding:8px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.ek-market-tabs button.on{background:rgba(212,160,23,.18);border-color:rgba(212,160,23,.6);font-weight:700}
.ek-market-tabs button.is-locked{opacity:.7}
.ek-market-tabs button small{opacity:.7;margin-left:4px}
.ek-market-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.ek-market-tools input{flex:1;min-width:200px}
.ek-market-locked{text-align:center;padding:36px 16px;border:1px dashed rgba(255,255,255,.18);border-radius:14px}
.ek-market-lock-art{font-size:2.4rem;margin-bottom:6px}
.ek-market-locked p{max-width:460px;margin:8px auto 14px}
.ek-market-card{cursor:pointer}
.ek-market-card.sold-out{opacity:.55;cursor:default}
.ek-market-card.is-signature{border-color:#d4a017;box-shadow:0 0 18px rgba(212,160,23,.35)}
.ek-market-card-foot{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;font-size:.85rem}
.ek-market-price{font-weight:700;color:#f2c94c}
.ek-market-stock{opacity:.8}.ek-market-stock.is-out{color:#e06c6c}
.ek-market-icons{padding:0 10px 8px}
.ek-market-effect{padding:0 10px 8px;font-size:.78rem;opacity:.8}
.ek-market-cant{padding:0 10px 8px;font-size:.78rem;color:#e06c6c}
.ek-sig-tag{background:rgba(212,160,23,.25);color:#f2c94c}
.ek-buy{max-width:440px}
.ek-buy-head{display:flex;gap:12px;align-items:center}
.ek-buy-head img{width:84px;height:84px;object-fit:contain;border-radius:12px;background:rgba(255,255,255,.04)}
.ek-buy-head h2{margin:0 0 4px}
.ek-buy-icons{margin:8px 0}
.ek-buy-rows .row{display:flex;justify-content:space-between;padding:4px 0}
.ek-buy-qty{margin:10px 0}
.ek-qty{display:flex;gap:6px;align-items:center;margin:6px 0}
.ek-qty input{width:80px;text-align:center}
.ek-qty button{min-width:40px}
.ek-qty-max{margin-left:auto}
.ek-buy-total{display:flex;justify-content:space-between;font-size:1.1rem;padding:10px 0;border-top:1px solid rgba(255,255,255,.1);margin-top:6px}
@media (max-width:600px){.ek-market-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.ek-market-tabs button{white-space:nowrap}.ek-market-wallet{display:none}}
/* v5.10: Legendary relic snipe */
.ek-market-card.is-relic{border-color:#ffb347;box-shadow:0 0 16px rgba(255,179,71,.3)}
.ek-relic-tag{background:rgba(255,179,71,.22);color:#ffcf8a}
/* ===== client/css/66_equip.css ===== */
/* Everkin v5.8.1: Everkin cards, the equip pop-up, label capitalisation */
.ek-pc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.ek-pc{display:flex;gap:10px;align-items:flex-start;text-align:left;padding:10px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);cursor:pointer;width:100%}
.ek-pc:hover{border-color:rgba(212,160,23,.5)}
.ek-pc.is-active{border-color:rgba(212,160,23,.7);box-shadow:0 0 14px rgba(212,160,23,.2)}
.ek-pc img{width:72px;height:72px;object-fit:contain;border-radius:10px;background:rgba(255,255,255,.04);flex:none}
.ek-pc-body{flex:1;min-width:0}
.ek-pc-body b{display:block;font-size:1.05rem}
.ek-pc-body small{opacity:.75}
.ek-pc-body em{color:#f2c94c;font-style:normal}
.ek-pc-stats{display:flex;gap:6px;margin:6px 0 4px;flex-wrap:wrap}
.ek-pc-stat{display:flex;flex-direction:column;align-items:center;min-width:34px;padding:2px 4px;border-radius:6px;background:rgba(255,255,255,.05)}
.ek-pc-stat small{font-size:.6rem;opacity:.65;text-transform:uppercase}
.ek-pc-stat b{font-size:.9rem}
.ek-pc-foot{display:flex;gap:10px;font-size:.75rem;opacity:.8}
.ek-worn-strip{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.ek-worn{display:flex;flex-direction:column;align-items:center;width:78px;font-size:.68rem;text-align:center}
.ek-worn img{width:52px;height:52px;object-fit:contain;border-radius:8px;background:rgba(255,255,255,.04)}
.ek-equip{max-width:920px;width:min(96vw,920px);max-height:90vh;display:flex;flex-direction:column}
.ek-equip-head{display:flex;gap:12px;align-items:center}
.ek-equip-head img{width:60px;height:60px;object-fit:contain;border-radius:10px;background:rgba(255,255,255,.04)}
.ek-equip-head h2{margin:0}
.ek-equip-head>div{flex:1}
.ek-equip-close{min-width:36px}
.ek-equip-tabs{display:flex;gap:6px;margin:10px 0}
.ek-equip-tabs button{padding:6px 14px;border-radius:999px}
.ek-equip-tabs button.on{background:rgba(212,160,23,.18);border-color:rgba(212,160,23,.6);font-weight:700}
.ek-equip-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.ek-equip-tools input{flex:1;min-width:180px}
.ek-eq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;overflow:auto;padding:4px;flex:1;min-height:0;max-height:62vh}
.ek-eq-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 8px 8px;border-radius:12px;border:2px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);cursor:pointer;text-align:center}
.ek-eq-card:hover{border-color:rgba(212,160,23,.5)}
.ek-eq-card.is-on{border-color:#3fbf6f;background:rgba(63,191,111,.14);box-shadow:0 0 12px rgba(63,191,111,.25)}
.ek-eq-card.is-locked{opacity:.55;cursor:not-allowed}
.ek-eq-card img{width:64px;height:64px;object-fit:contain}
.ek-eq-card b{font-size:.85rem;line-height:1.15}
.ek-eq-card small{font-size:.68rem;opacity:.7}
.ek-eq-icons{transform:scale(.9)}
.ek-eq-effect{font-size:.68rem;opacity:.8}
.ek-eq-why{font-size:.68rem;color:#e06c6c;margin-top:2px}
.ek-eq-why.is-on{color:#8fe3ad}
.ek-eq-x{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background:#d94848;color:#fff;border:none;font-weight:700;line-height:1;padding:0;cursor:pointer}
.ek-eq-x:hover{background:#ff5c5c}
.ek-eq-spell-sym{font-size:1.8rem;color:#f2c94c}
.ek-market-card .tag,.ek-buy .tag,.weapon-card .tag{text-transform:capitalize}
@media (max-width:600px){.ek-eq-grid{grid-template-columns:repeat(2,1fr)}.ek-equip{width:100vw;max-height:100vh;border-radius:0}}
/* the Everkin cards section must not inherit the side-by-side section layout */
section.ek-pet-cards{display:block!important;grid-template-columns:none!important}
section.ek-pet-cards>.screen-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
section.ek-pet-cards .ek-pc-grid{width:100%}
/* professional look: every heading, tab and tag starts with a capital letter */
h1::first-letter,h2::first-letter,h3::first-letter,h4::first-letter,.screen-head .tag::first-letter,.ek-market-tabs button::first-letter,.inv-title::first-letter,.ek-eq-card b::first-letter{text-transform:uppercase}
.ek-recolor-swatch small,.ek-hatch-colors small{text-transform:capitalize}
.ek-market-card-foot{gap:6px}
.ek-market-card-foot .ek-market-stock{font-size:.72rem;text-align:right;white-space:nowrap}
/* v5.9 weekly loadout check */
.ek-weekly-loadout{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:8px 0;padding:8px 12px;border-radius:10px;background:rgba(63,191,111,.1);border:1px solid rgba(63,191,111,.35)}
.ek-weekly-loadout.is-blocked{background:rgba(217,72,72,.1);border-color:rgba(217,72,72,.5)}
.ek-weekly-loadout small{display:block;opacity:.8}
/* v5.9 rewards pop-up */
.ek-reward{max-width:420px;text-align:center}
.ek-reward-burst{font-size:2.6rem;color:#f2c94c;animation:ek-reward-pop .6s ease-out}
@keyframes ek-reward-pop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
.ek-reward-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px;text-align:left}
.ek-reward-list li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:rgba(212,160,23,.08);border:1px solid rgba(212,160,23,.25)}
.ek-reward-list img{width:36px;height:36px;object-fit:contain}
.ek-reward-ico{width:36px;text-align:center;font-size:1.4rem}
@media (prefers-reduced-motion:reduce){.ek-reward-burst{animation:none}}
/* v5.9 rewards pop-up */
.ek-reward{max-width:420px;text-align:center}
.ek-reward-burst{font-size:2.6rem;color:#f2c94c;animation:ek-reward-pop .6s ease-out}
@keyframes ek-reward-pop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
.ek-reward-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px;text-align:left}
.ek-reward-list li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:rgba(212,160,23,.08);border:1px solid rgba(212,160,23,.25)}
.ek-reward-list img{width:36px;height:36px;object-fit:contain}
.ek-reward-ico{width:36px;text-align:center;font-size:1.4rem}
@media (prefers-reduced-motion:reduce){.ek-reward-burst{animation:none}}
/* v5.9.4: crafted item reveal */
.ek-reveal .ek-reveal-card{max-width:300px;margin:12px auto;cursor:default;pointer-events:none;animation:ekRevealIn .5s cubic-bezier(.2,1.4,.4,1) both}
.ek-reveal .ek-reveal-card .weapon-art{height:170px}
.ek-reveal-req{font-size:12px;color:#ffcf66;padding:4px 8px 8px}
@keyframes ekRevealIn{from{transform:scale(.85) rotate(-2deg);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.ek-reveal .ek-reveal-card{animation:none}}
/* v5.9.4: equipment pop-up — equipped section on top (fixed slots), filterable inventory below, league mode */
.ek-equip{max-height:94vh;overflow:auto}
.ek-eq-league{display:flex;flex-direction:column;gap:2px;margin:10px 0 4px;padding:10px 14px;border-radius:12px;border:1px solid rgba(243,207,130,.55);background:rgba(243,207,130,.08)}
.ek-eq-league b{color:#f3cf82}.ek-eq-league span{font-size:.85rem;color:#a8c5df}
.ek-eq-sec-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin:8px 2px 6px}
.ek-eq-sec-head b{font-family:'Everkin Serif',Georgia,serif;font-size:1.1rem}
.ek-eq-sec-head span{font-size:.78rem;color:#a8c5df}
.ek-eq-worn{flex:none;border-bottom:1px solid rgba(74,187,227,.25);padding-bottom:10px}
.ek-eq-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ek-eq-slotcard{flex-direction:row;align-items:center;text-align:left;gap:8px;padding:6px 30px 6px 6px;min-height:66px;cursor:default}
.ek-eq-slotcard img{width:46px;height:46px;flex:none}
.ek-eq-slot-text{display:flex;flex-direction:column;min-width:0;gap:1px}
.ek-eq-slotcard b{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ek-eq-slotcard small{font-size:.64rem}
.ek-eq-mini{display:flex;flex-wrap:wrap;gap:2px 8px;font-size:.66rem;color:#d6e6f5}.ek-eq-mini i{font-style:normal;white-space:nowrap}.ek-eq-mini em{font-style:normal;font-weight:700;color:#f3cf82;font-size:.58rem;letter-spacing:.04em;text-transform:uppercase;margin-right:2px}
.ek-eq-slotcard .ek-eq-why{font-size:.62rem;margin:0}
.ek-eq-slotcard .ek-eq-x{top:50%;transform:translateY(-50%);right:5px;width:22px;height:22px}
.ek-eq-slot.is-empty{display:flex;align-items:center;justify-content:center;min-height:66px;border-radius:12px;border:2px dashed rgba(255,255,255,.14);color:rgba(168,197,223,.6);font-size:.78rem}
.ek-eq-card.is-illegal{border-color:#e0605a!important;background:rgba(224,96,90,.14)!important;box-shadow:0 0 12px rgba(224,96,90,.3)!important}
.ek-eq-card.is-illegal .ek-eq-why{color:#ff9b90;font-weight:700}
.ek-eq-bag{display:flex;flex-direction:column;flex:1;min-height:0}
.ek-eq-tools{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:flex-end;margin:0 2px 8px}
.ek-eq-tools input{flex:1 1 180px;min-width:150px;margin:0}
.ek-eq-tools label{display:flex;flex-direction:column;gap:2px;font-size:.7rem;color:#a8c5df;margin:0}
.ek-eq-tools select{margin:0;padding:7px 8px;min-width:118px;width:auto}
.ek-eq-tools select:disabled{opacity:1;border-color:rgba(243,207,130,.6);color:#f3cf82}
.ek-eq-bag .ek-eq-grid{max-height:none;flex:1;min-height:230px;overflow:auto;overscroll-behavior:contain}
.ek-eq-foot{flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid rgba(74,187,227,.25);padding-top:10px;margin-top:8px}
.ek-eq-foot span{font-size:.88rem}
.ek-eq-foot.is-blocked span{color:#ffb4a6}.ek-eq-foot.is-ready span{color:#8fe3ad}
.ek-eq-foot .primary{min-width:160px}
@media (max-width:600px){
 .ek-eq-slots{gap:5px}.ek-eq-slot.is-empty{min-height:74px}
 .ek-eq-slotcard{flex-direction:column;text-align:center;padding:4px 3px;min-height:74px;gap:1px}.ek-eq-slotcard img{width:30px;height:30px}
 .ek-eq-slotcard .ek-eq-slot-text{align-items:center;max-width:100%}.ek-eq-slotcard b{font-size:.62rem;max-width:100%}.ek-eq-slotcard small,.ek-eq-slotcard .ek-eq-mini{display:none}
 .ek-eq-slotcard .ek-eq-x{top:2px;right:2px;transform:none;width:20px!important;height:20px!important;min-width:0!important;min-height:0!important;font-size:.6rem;padding:0!important}
 .ek-eq-slotcard{padding-top:6px}.ek-eq-slotcard .ek-eq-why{display:none}
 /* phones: the pop-up scrolls as one page; Equipped stays pinned at the top and the footer at the bottom */
 .ek-equip{display:block;overflow:auto;padding:14px 12px}
 .ek-eq-worn{position:sticky;top:-14px;z-index:3;background:#0b223d;margin:0 -12px;padding:4px 12px 8px;box-shadow:0 8px 14px -10px #000}
 .ek-eq-bag{display:block}.ek-eq-bag .ek-eq-grid{overflow:visible;max-height:none;min-height:0}
 .ek-eq-foot{position:sticky;bottom:-14px;z-index:3;background:#071a30;margin:8px -12px -14px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
 .ek-eq-tools select,.ek-eq-tools input{padding:6px 8px;font-size:14px}
 .ek-eq-tools label{flex:1 1 44%}.ek-eq-tools select{min-width:0;width:100%}
 .ek-eq-bag .ek-eq-grid{min-height:200px}
}


/* v5.14: the ✕ is always a red circle (global button minimums on phones stretched it into an oval) */
.ek-equip .ek-eq-x,.ek-equip .ek-eq-slotcard .ek-eq-x{box-sizing:border-box;display:grid;place-items:center;flex:none;aspect-ratio:1/1;
 width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;max-width:24px!important;max-height:24px!important;
 padding:0!important;margin:0!important;border:2px solid #fff!important;border-radius:50%!important;background:#d94848!important;color:#fff!important;
 font:800 12px/1 system-ui,sans-serif!important;letter-spacing:0;box-shadow:0 2px 6px #0006}
.ek-equip .ek-eq-x:hover,.ek-equip .ek-eq-x:focus-visible{background:#ff5c5c!important}
.ek-equip .ek-eq-x:focus-visible{outline:2px solid #ffd57c;outline-offset:2px}
/* v5.14: point-buy rulesets */
.ek-eq-pts{display:inline-block;margin:2px 0;padding:1px 7px;border-radius:999px;background:#2a1f05;border:1px solid #c79a52;color:#ffe2a6;font-size:11px;font-weight:800;white-space:nowrap}
.ek-eq-points{display:grid;grid-template-columns:1fr;gap:4px;margin:0 0 8px;padding:8px 10px;border-radius:10px;border:1px solid #3d8a5f;background:rgba(143,240,182,.08)}
.ek-eq-points>span{font-size:13px}
.ek-eq-points>i{display:block;height:8px;border-radius:999px;background:linear-gradient(90deg,#3fbf6f var(--w),#22385a var(--w))}
.ek-eq-points.is-over{border-color:#d94848;background:rgba(217,72,72,.1)}
.ek-eq-points.is-over>i{background:linear-gradient(90deg,#d94848 var(--w),#22385a var(--w))}
.ek-eq-points em{font-style:normal;font-size:12px;color:#ffb3b3}
