@import url('/world.css');
/* Argent World: the 3D character stage, the wardrobe options and the owner panel (builds on world.css) */
.stage-host{position:absolute;inset:0}
.stage-host canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.stage-host canvas:active{cursor:grabbing}
.stage-host[data-lost]:after{content:'نعيد تهيئة المعاينة…';position:absolute;inset:40% 0;text-align:center;color:#8fe9fb}
.preview{position:relative}
.no3d{padding:30px;text-align:center;color:#93afc5}
.hero .preview{background:radial-gradient(ellipse at 50% 85%,#1d77a066,transparent 62%)}
.hint{font-size:12.5px;color:#7f9db4;margin:6px 0 12px}
h2.sec{margin:30px 0 14px}
.wardrobe{grid-template-columns:minmax(300px,.95fr) minmax(320px,1.25fr)}
.wardrobe-stage .preview{height:520px}
.wardrobe-panel{display:flex;flex-direction:column;min-width:0}
.wardrobe-panel h3{margin:18px 0 8px;color:#bfe4f6}
.wardrobe-panel h3:first-child{margin-top:4px}
.tabs-h{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #21394e;padding-bottom:12px;margin-bottom:6px}
.tabs-h button{border-radius:30px;padding:7px 15px;font-size:13.5px}
.tabs-h button.active{background:#0d455888;border-color:#05c7eb;color:#4fe0fb;font-weight:700}
.seg button{padding:9px 20px}
.seg.mini button{padding:5px 12px;font-size:12.5px}
.stage-tools button.active{border-color:#05c7eb;color:#4fe0fb}
.row{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 10px}
.chipb{border-radius:30px;padding:6px 14px;font-size:13px}
.chipb.active{background:#08bde5;color:#04131e;border-color:#24daff;font-weight:700}
.chipb.locked,.dotc.locked,.opt.locked{opacity:.78}
.dotc{width:30px;height:30px;border-radius:50%;padding:0;border:2px solid #0b1a2a;box-shadow:0 0 0 1px #3c5a72;position:relative}
.dotc.active{box-shadow:0 0 0 3px #24daff}
.dotc.locked:after{content:'🔒';position:absolute;inset:auto -3px -5px auto;font-size:10px}
.swatch-row{align-items:center}
.custom{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;border:2px dashed #3c5a72;overflow:hidden;position:relative;cursor:pointer;margin:0;color:#c6dbe9;font-size:11px}
.custom input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;padding:0;border:0}
.custom:before{content:'+';font-size:16px}
.custom.locked:before{content:none}
.opt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px;margin-bottom:8px}
.opt{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 6px 9px;border-radius:14px;background:linear-gradient(140deg,#102439,#091725);border:1px solid #203d53;text-align:center;min-width:0}
.opt:hover{border-color:#1d819c}
.opt.active{border-color:#00caf2;box-shadow:0 0 0 1px #00caf244,0 0 22px #00caf222}
.opt .n{font-size:12.5px;color:#d9efff;line-height:1.35}
.opt .b{font-size:11px;color:#f1cb82}
.opt .thumb{width:100%;max-width:92px}
.thumb{display:block;object-fit:contain;background:radial-gradient(ellipse at 50% 90%,#1b6e8c55,transparent 70%);border-radius:12px;width:100%;max-width:150px;aspect-ratio:4/5;margin:6px auto;opacity:0;transition:opacity .25s}
.thumb.ready,.thumb.studio,.thumb.ph{opacity:1}
.thumb.head{aspect-ratio:1/1}
.thumb.studio,.thumb.ph{display:grid;place-items:center;font-size:42px;background:radial-gradient(circle at 50% 50%,var(--c,#7c5cff)55,transparent 70%)}
.thumb.big{width:240px;height:240px;max-width:none;font-size:90px}
.collectible .thumb{max-width:170px}
.pill.free{color:#4edcb4}
.pill.owned{color:#7fd6ff;background:#1e91ff14;border-color:#1e91ff40}
.messages p{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.messages button{padding:3px 12px;font-size:12px}
.savebar{display:flex;gap:10px;align-items:center;justify-content:flex-end;position:sticky;bottom:0;background:#08141fee;padding:12px;border-top:1px solid #203548;margin-top:14px;border-radius:0 0 14px 14px}
.savebar small{margin-inline-end:auto}
.savebar.sticky{position:sticky;bottom:12px;border:1px solid #2c607c;border-radius:14px;box-shadow:0 10px 40px #000a;z-index:5}
.savebar.sticky b{margin-inline-end:auto}
.profile-row{display:flex;gap:18px;align-items:center;margin:12px 0 20px}
.avatar-head{width:100px;height:100px;border-radius:50%;overflow:hidden;background:radial-gradient(circle,#1b6e8c88,#0a1a2b);border:2px solid #24daff55;flex:none}
.avatar-head img{width:100%;height:100%;object-fit:cover}
.hero .preview{min-height:440px}
.game-card h3{margin:10px 0 6px}
.game-card{border-top:3px solid var(--accent,#08bde5)}
.game-detail{border-top:3px solid var(--accent,#08bde5)}
/* owner panel */
.admin-games .admin-game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:14px 0}
.agame{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #21394e;border-radius:14px;padding:12px 14px;border-inline-start:4px solid var(--accent,#08bde5);background:#08141f}
.admin-filters{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:10px;margin:12px 0}
.admin-bulk{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0 14px}
.admin-bulk .tg{display:flex;gap:8px;align-items:center;margin:0}
.admin-bulk input[type=checkbox],.admin-table input[type=checkbox]{width:18px;height:18px;accent-color:#08bde5;padding:0}
.table-wrap{overflow:auto;max-height:70vh;border:1px solid #21394e;border-radius:14px}
.admin-table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:900px}
.admin-table th{position:sticky;top:0;background:#0d2133;text-align:right;padding:10px;color:#9fc2d8;font-weight:600;z-index:1}
.admin-table td{padding:8px 10px;border-top:1px solid #172c3d;vertical-align:middle}
.admin-table tr.edited td{background:#0d34481f}
.admin-table input[type=number]{width:96px;padding:6px 8px}
.admin-table small{color:#7f9db4}
@media (max-width:900px){
 .wardrobe{grid-template-columns:1fr}
 .wardrobe-stage{position:relative;top:0}
 .wardrobe-stage .preview{height:380px}
 .world-layout{grid-template-columns:1fr;padding:16px}
 .world-nav{flex-direction:row;overflow-x:auto;position:static;padding-bottom:8px}
 .world-nav button{white-space:nowrap}
 .nav-foot{display:none}
 .hero{grid-template-columns:1fr}
 .admin-filters{grid-template-columns:1fr 1fr}
 .opt-grid{grid-template-columns:repeat(auto-fill,minmax(98px,1fr))}
}
@media (prefers-reduced-motion:reduce){.thumb{transition:none}}
.edition-ribbon{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;background:linear-gradient(110deg,#483318,#2b251a);border-block:1px solid #9c783c;color:#ffe3a0;padding:9px 12px;font-size:12px;margin-block:8px}.edition-ribbon span{color:#edd4a9}.edition-toggle{display:flex;align-items:center;gap:7px;white-space:nowrap}.admin-table td:has([data-quantity]){min-width:190px}.admin-table td:has([data-quantity]) small{display:block;font-size:11px;margin-top:5px}.admin-table [data-quantity]{width:175px}.admin-table [data-limited]{width:18px;height:18px}
.savebar[hidden]{display:none}.admin-table th:first-child,.admin-table td:first-child{position:sticky;inset-inline-start:0;background:#0b1c2a;z-index:2;min-width:42px}.admin-table th:nth-child(2),.admin-table td:nth-child(2){position:sticky;inset-inline-start:42px;background:#0b1c2a;z-index:2;min-width:180px}
.admin-product-identity{display:flex;align-items:center;gap:10px}.admin-product-identity>span{min-width:100px;max-width:160px}.admin-product-thumb{width:116px;min-width:116px;height:84px;padding:3px!important;overflow:hidden;background:#102635;border:1px solid #395266;border-radius:10px;display:grid;place-items:center}.admin-product-thumb .thumb{width:75px;height:78px;object-fit:contain}.admin-product-thumb .decor-preview{width:108px;height:76px;display:grid;place-items:center;padding:0}.admin-product-thumb .world-decoration{width:108px!important;height:auto!important;max-height:76px}.admin-product-thumb .thumb.studio{width:60px;height:60px}.admin-product-dialog{width:min(90vw,620px);background:#0b1c2a;color:#e9f5ff;border:1px solid #34546b;border-radius:18px;padding:22px;text-align:center}.admin-product-dialog::backdrop{background:#000b}.admin-product-large{display:grid;place-items:center;min-height:200px;max-height:65vh;overflow:auto}.admin-product-large .thumb{width:auto;height:55vh;max-width:100%;object-fit:contain}.admin-product-large .decor-preview{width:100%}.admin-product-large .world-decoration{width:100%;height:auto}.admin-product-large .thumb.studio{height:200px;width:200px}.admin-table td:nth-child(2){min-width:270px}
.owner-admin-tabs{margin-block:16px}.owner-members-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;margin-block:18px}.owner-members-layout .panel{min-width:0}.owner-member-pick{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:5px;text-align:start;margin-bottom:9px;padding:12px;overflow-wrap:anywhere}.owner-member-pick.active{border-color:#00c5ed;background:#123747}.owner-member-pick span,.owner-member-pick small{font-size:12px;color:#9fb7c6}.reward-reason{display:grid;gap:6px;margin-block:14px}.reward-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:450px;overflow:auto;margin-block:14px}.reward-product{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:9px}.reward-product .thumb{width:90px;height:105px;object-fit:contain}.reward-product .decor-preview{width:100%;height:100px;display:grid;place-items:center}.reward-product .world-decoration{width:100%;max-height:100px}.reward-product b{font-size:13px}.reward-product small{font-size:11px}.reward-product.active{border-color:#00cef0;background:#124054}.reward-product:disabled{opacity:.55}.reward-confirm{padding:16px;border:2px solid #d4b46b;border-radius:15px;background:#182f3c;margin-block:16px}.reward-confirm .thumb{max-height:150px;width:auto}.reward-confirm .decor-preview{max-width:330px}.reward-history article{border-top:1px solid #314b5c;padding-block:10px}.reward-history p{margin:5px 0}.reward-history small{color:#8aa9bb}#member-search input{flex:1;min-width:180px}#member-results{max-height:820px;overflow:auto}@media(max-width:850px){.owner-members-layout{grid-template-columns:1fr}#member-results{max-height:300px}.reward-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
#world-content{min-width:0}.world-layout>.world-nav{min-width:0}.table-wrap{max-width:100%}.owner-members-layout input,.owner-members-layout select{max-width:100%}

@media(max-width:600px){.world-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:4px}.world-nav>button{font-size:12px;padding:10px 3px;white-space:normal;min-width:0}.world-nav .nav-foot{display:flex;grid-column:1/-1;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:11px;padding:8px}.world-nav .nav-foot br{display:none}.world-nav .nav-foot button{min-height:36px;font-size:12px}.editor,.editor-panel,.stage-panel{min-width:0}}
