.wiki-character-view{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.wiki-character-view button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 11px;min-height:35px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:inherit;font-size:11px;cursor:pointer}
.wiki-character-view button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
.wiki-character-view .ui-icon{width:15px;height:15px}
.wiki-character-interactive>.wiki-heading,.wiki-character-interactive>.wiki-tabs,.wiki-character-interactive>.wiki-filters{display:none}
.wiki-detail[hidden],.wiki-interactive[hidden]{display:none!important}
.wiki-x-guide{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 2px 14px;color:var(--muted);font-size:11px}
.wiki-x-guide>span{display:flex;align-items:center;gap:7px}.wiki-x-guide .ui-icon{width:15px;height:15px}.wiki-x-guide>small{font-size:10px}
.wiki-x-card{--codex-accent:#e8c17c;position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(230px,27%) minmax(260px,1fr) minmax(290px,32%);grid-template-areas:'skills hero info';gap:22px;min-height:780px;padding:28px 28px 42px;border:1px solid #ffffff16;border-radius:22px;overflow:hidden;color:#edf0f4;background:radial-gradient(ellipse at 44% 48%,#655c4030,transparent 48%),linear-gradient(130deg,#14171c,#0a0e14 60%,#17191c);box-shadow:0 20px 55px #0003}
.wiki-x-card::before{content:'';position:absolute;z-index:-1;inset:0;opacity:.18;background-image:repeating-linear-gradient(90deg,#d4d9dc19 0 1px,transparent 1px 5px),repeating-linear-gradient(0deg,#d4d9dc19 0 1px,transparent 1px 5px);pointer-events:none}
.wiki-x-card::after{content:'';position:absolute;z-index:-1;width:90%;height:190px;left:8%;top:45%;border:1px solid #e8c17c18;border-left:0;border-right:0;transform:rotate(-32deg);background:#d2d7dc03;pointer-events:none}
.wiki-x-card h2{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;font-size:clamp(21px,2.1vw,32px);font-weight:400;color:var(--codex-accent);margin:0 0 19px;letter-spacing:-.035em}
.wiki-x-card h2 small{font-size:9px;letter-spacing:.1em;color:#787d85;white-space:nowrap}
.wiki-x-card button{font:inherit;cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}
.wiki-x-card button:focus-visible{outline:2px solid var(--codex-accent);outline-offset:4px}
.wiki-x-left{grid-area:skills;position:relative;z-index:2;min-width:0;display:flex;flex-direction:column;gap:25px}
.wiki-x-skills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 9px;max-width:290px}
.wiki-x-skill{border:0;background:transparent;padding:0;display:grid;justify-items:center;gap:6px;min-width:0}
.wiki-x-skill>span{display:grid;place-items:center;width:63px;height:63px;border:1px solid #e8edf057;border-radius:50%;background:radial-gradient(circle,#b6bdc81c,transparent 72%);transition:transform .22s,border-color .22s,background .22s}
.wiki-x-skill img{width:44px;height:44px;object-fit:contain;filter:brightness(0) invert(1)}
.wiki-x-skill small{font-size:10px;color:#c3ae85;font-variant-numeric:tabular-nums}
.wiki-x-skill.is-forte>span{border-color:#e8c17c80;background:#e8c17c0c}
.wiki-x-skill:hover>span,.wiki-x-skill.is-active>span{transform:scale(1.09);border-color:var(--codex-accent);background:#e8c17c16}
.wiki-x-bonuses h3{margin:0 0 11px;font-size:10px;letter-spacing:.05em;font-weight:500;color:#939ba7}
.wiki-x-bonuses>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-width:340px}
.wiki-x-bonus{display:flex;align-items:center;gap:5px;padding:6px 4px;min-width:0;border:0;border-left:1px solid #ffffff24;background:#ffffff04;text-align:left;transition:background .18s}
.wiki-x-bonus img{width:22px;height:22px;object-fit:contain;filter:brightness(0) invert(1)}.wiki-x-bonus span{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wiki-x-bonus:hover,.wiki-x-bonus.is-active{background:#e8c17c14;border-left-color:var(--codex-accent)}
.wiki-x-material-section{margin-top:auto}.wiki-x-material-section>p{font-size:9px;color:#8e949f;line-height:1.6;max-width:290px;margin:12px 0 0}
.wiki-x-materials{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 6px;max-width:340px}
.wiki-x-material{display:grid;justify-items:center;gap:6px;min-width:0;border:0;padding:0;background:transparent}
.wiki-x-material>span{display:grid;place-items:center;width:59px;height:59px;border-radius:50%;border:1px solid color-mix(in srgb,var(--material-color) 65%,transparent);border-top:3px solid var(--material-color);background:radial-gradient(circle,color-mix(in srgb,var(--material-color) 17%,transparent),transparent 72%);transition:transform .2s}
.wiki-x-material img{width:46px;height:46px;object-fit:contain}.wiki-x-material .ui-icon{width:28px;height:28px;opacity:.5}.wiki-x-material b{font-size:11px;font-weight:500;color:#d9dde6}
.wiki-x-material:hover>span,.wiki-x-material.is-active>span{transform:scale(1.1)}
.wiki-x-hero{grid-area:hero;position:relative;min-width:0;align-self:stretch;min-height:710px;isolation:isolate}
.wiki-x-orbit{position:absolute;z-index:-1;width:135%;aspect-ratio:1;left:-25%;top:22%;border:2px solid #e8c17c31;border-radius:50%;box-shadow:0 0 0 15px #e8c17c04,0 0 0 17px #e8c17c11,0 0 0 48px #e8c17c05;pointer-events:none}
.wiki-x-orbit::before{content:'';position:absolute;inset:-26px;border:1px dashed #e8c17c28;border-radius:50%;animation:wiki-codex-orbit 130s linear infinite}
.wiki-x-wordmark{position:absolute;z-index:-1;top:2%;left:-15%;color:transparent;-webkit-text-stroke:1px #e8c17c1c;font-size:clamp(90px,14vw,205px);font-weight:800;line-height:1;writing-mode:vertical-rl;letter-spacing:-.07em;pointer-events:none;max-height:100%;overflow:hidden}
.wiki-x-identity{position:relative;z-index:3;padding:12px 0 0;margin-right:-70px;pointer-events:none}
.wiki-x-identity>span{font-size:9px;letter-spacing:.15em;color:#8b919b}
.wiki-x-identity h1{font-weight:450;font-size:clamp(36px,4.3vw,65px);line-height:1.08;letter-spacing:-.045em;color:var(--codex-accent);margin:15px 0 12px;text-shadow:0 2px 12px #070a10;overflow-wrap:anywhere}
.wiki-x-identity>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px 13px;max-width:95%;font-size:11px;text-shadow:0 1px 5px #000}
.wiki-x-stars{color:var(--codex-accent);letter-spacing:2px;white-space:nowrap}.wiki-x-identity>div>span{display:inline-flex;align-items:center;gap:6px}.wiki-x-identity img{width:22px;height:22px;object-fit:contain}
.wiki-x-portrait{position:absolute;z-index:0;inset:90px -90px -42px -110px;width:calc(100% + 200px);border:0;background:transparent;padding:0;mask-image:linear-gradient(transparent,#000 8%,#000 92%,transparent)}
.wiki-x-portrait .wiki-x-art{width:100%;height:100%;object-fit:contain;object-position:center bottom;transition:opacity .2s}
.wiki-x-sequence{position:absolute;z-index:3;top:29%;right:-7px;display:flex;flex-direction:column;gap:10px}
.wiki-x-chain{position:relative;display:grid;place-items:center;width:47px;height:47px;border-radius:50%;border:1px solid #cad1db65;background:#171b22d9;padding:7px;transition:transform .2s,border-color .2s,background .2s}
.wiki-x-chain:not(:last-child)::after{content:'';position:absolute;top:100%;left:50%;height:11px;width:1px;background:#e8c17c4d}
.wiki-x-chain img{width:100%;height:100%;object-fit:contain;filter:brightness(0) invert(1)}.wiki-x-chain small{position:absolute;right:-3px;bottom:-2px;min-width:14px;background:#151b23;border-radius:50%;font-size:9px;line-height:15px;color:#b4bdca}
.wiki-x-chain:hover,.wiki-x-chain.is-active{transform:scale(1.09);border-color:var(--codex-accent);background:#353023}
.wiki-x-appearances{position:absolute;z-index:4;bottom:-20px;left:0;right:40px;display:flex;justify-content:center;flex-wrap:wrap;gap:7px}
.wiki-x-appearances button{display:grid;place-items:center;border:1px solid #d1d8e132;background:#0d121be0;border-radius:9px;width:37px;height:37px;padding:2px;transition:border-color .18s,transform .18s}
.wiki-x-appearances img{width:100%;height:100%;object-fit:contain}.wiki-x-appearances button[aria-pressed=true]{border-color:var(--codex-accent);box-shadow:0 0 0 2px #e8c17c18}.wiki-x-appearances button:hover{transform:scale(1.07)}
.wiki-x-info{grid-area:info;position:relative;z-index:2;min-width:0;display:flex;flex-direction:column;gap:24px}
.wiki-x-stats table{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}.wiki-x-stats thead th:first-child{width:44%}.wiki-x-stats th,.wiki-x-stats td{padding:6px 2px;border-bottom:1px solid #c9ced333;text-align:right;font-size:16px;line-height:1.3;vertical-align:middle}.wiki-x-stats thead th{font-size:13px;font-weight:400;color:#d1bc94;padding-top:0;padding-bottom:12px;white-space:nowrap}
.wiki-x-stats th:first-child{text-align:left;font-weight:400}.wiki-x-stats th>button{display:flex;align-items:center;gap:8px;width:100%;border:0;padding:2px 0;background:transparent;text-align:left}.wiki-x-stats th>button>span{font-size:11px;color:#aeb6c2;overflow-wrap:anywhere}.wiki-x-stats th img{width:24px;height:24px;object-fit:contain;filter:brightness(0) invert(1)}.wiki-x-stats td{font-weight:600}.wiki-x-stats tr:has(.is-active){background:#e8c17c0b}
.wiki-x-food{display:flex;gap:12px;align-items:center;width:100%;min-width:0;padding:10px 0;border:0;border-top:1px solid #e8c17c24;border-bottom:1px solid #e8c17c24;background:transparent;text-align:left;transition:background .2s}
.wiki-x-food>img{width:100px;height:100px;object-fit:contain;flex:none}.wiki-x-food>.ui-icon{width:55px;height:55px;flex:none;margin-right:8px;color:#b9a47f}
.wiki-x-food>span{min-width:0}.wiki-x-food small{font-size:9px;color:#8f98a7;text-transform:uppercase;letter-spacing:.06em}.wiki-x-food strong{display:block;font-size:22px;font-weight:400;color:var(--codex-accent);line-height:1.25;margin:4px 0 9px}.wiki-x-food>span>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.55;color:#b4bac5}
.wiki-x-food:hover,.wiki-x-food.is-active{background:#e8c17c08}
.wiki-x-bio-meta{display:flex;gap:10px 20px;flex-wrap:wrap}.wiki-x-bio-meta>span{display:grid;gap:5px;min-width:0}.wiki-x-bio-meta small{font-size:9px;color:#89929f}.wiki-x-bio-meta b{font-size:12px;font-weight:400;color:#ded7c6;overflow-wrap:anywhere}
.wiki-x-biography{display:block;width:100%;padding:0;background:transparent;border:0;text-align:left;margin-top:auto}.wiki-x-biography h2{margin-bottom:12px}.wiki-x-biography p{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.8;color:#b5bdc8;margin:0}.wiki-x-biography>span{display:block;color:var(--codex-accent);font-size:10px;margin-top:10px}.wiki-x-biography.is-active>span{text-decoration:underline}
.wiki-x-footer{position:absolute;left:28px;bottom:13px;right:28px;display:flex;align-items:center;gap:15px;pointer-events:none;color:#78818d;font-size:8px;letter-spacing:.12em}.wiki-x-footer i{flex:1;height:6px;background:repeating-linear-gradient(90deg,#aab2bc30 0 1px,transparent 1px 7px);max-width:35%;margin:auto}
.wiki-x-popover{position:fixed;z-index:100;box-sizing:border-box;width:390px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:hidden;border:1px solid #e8c17c70;border-radius:14px;background:#111722fa;color:#e9edf4;box-shadow:0 20px 65px #0009;backdrop-filter:blur(14px);text-align:left;animation:wiki-codex-reveal .15s ease-out}
.wiki-x-popover[hidden]{display:none!important}.wiki-x-popover.is-pinned{border-color:#e8c17cb3}
.wiki-x-popover-head{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #ffffff13}.wiki-x-popover-head>img{width:43px;height:43px;object-fit:contain;flex:none}.wiki-x-popover-head>div{flex:1;min-width:0}.wiki-x-popover-head small{font-size:9px;color:#a89a80}.wiki-x-popover-head h3{font-size:17px;font-weight:550;line-height:1.35;margin:4px 0 0;color:#f0d49f;overflow-wrap:anywhere}.wiki-x-popover-head>button{align-self:start;display:grid;place-items:center;width:29px;height:29px;flex:none;border:1px solid #ffffff20;border-radius:7px;background:#ffffff06;color:#c9d0db;font-size:20px;cursor:pointer}
.wiki-x-popover-body{padding:15px 18px 18px;max-height:min(480px,calc(100dvh - 130px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.wiki-x-popover-body>p{font-size:12px;line-height:1.85;margin:0 0 15px;overflow-wrap:anywhere}.wiki-x-popover-body blockquote{border-left:2px solid #e8c17c75;margin:15px 0;padding:2px 0 2px 13px;color:#c2c9d5;font-size:12px;line-height:1.75}
.wiki-x-facts{display:grid;gap:9px;margin:0 0 15px}.wiki-x-facts>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #ffffff0d;padding-bottom:7px;font-size:12px}.wiki-x-facts dt{color:#939fae}.wiki-x-facts dd{margin:0;text-align:right;overflow-wrap:anywhere}
.wiki-x-skill-level{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#b4bfce;border-top:1px solid #ffffff16;padding-top:12px;margin:12px 0}.wiki-x-skill-level select{border:1px solid #ffffff26;border-radius:6px;background:#0c111a;color:#f1d6a5;padding:5px 8px;min-width:65px}
.wiki-x-multipliers{display:grid;gap:8px;margin:0;font-size:11px}.wiki-x-multipliers>div{display:flex;justify-content:space-between;gap:15px;line-height:1.5;border-bottom:1px solid #ffffff0c;padding-bottom:7px}.wiki-x-multipliers dt{color:#aeb8c6}.wiki-x-multipliers dd{color:#ead2a6;white-space:nowrap;margin:0}
.wiki-x-related{display:block;width:100%;padding:9px;border:1px solid #e8c17c50;border-radius:7px;background:#e8c17c09;color:#e7c38a;font-size:11px;cursor:pointer}
.wiki-x-popover button:focus-visible,.wiki-x-popover select:focus-visible{outline:2px solid #e8c17c;outline-offset:3px}
@keyframes wiki-codex-orbit{to{transform:rotate(360deg)}}@keyframes wiki-codex-reveal{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1800px){.wiki-x-card{min-height:850px}.wiki-x-hero{min-height:780px}.wiki-x-skills{gap:18px;max-width:320px}.wiki-x-skill>span{width:73px;height:73px}.wiki-x-skill img{width:52px;height:52px}.wiki-x-info{gap:30px}.wiki-x-stats th,.wiki-x-stats td{padding-block:11px;font-size:19px}.wiki-x-stats th>button>span{font-size:12px}.wiki-x-material>span{width:66px;height:66px}.wiki-x-materials{max-width:360px}}
@media(max-width:1100px){.wiki-x-card{gap:15px;padding:22px 20px 38px;grid-template-columns:minmax(180px,26%) minmax(220px,1fr) minmax(240px,32%);min-height:740px}.wiki-x-hero{min-height:670px}.wiki-x-skill>span{width:51px;height:51px}.wiki-x-skill img{width:36px;height:36px}.wiki-x-skills{gap:12px 6px}.wiki-x-materials{grid-template-columns:repeat(3,minmax(0,1fr))}.wiki-x-material>span{width:51px;height:51px}.wiki-x-material img{width:40px;height:40px}.wiki-x-stats th,.wiki-x-stats td{font-size:13px;padding-block:8px}.wiki-x-stats th>button>span{font-size:10px}.wiki-x-stats th img{width:20px;height:20px}.wiki-x-stats th>button{gap:5px}.wiki-x-info{gap:19px}.wiki-x-food{gap:7px}.wiki-x-food>img{width:74px;height:74px}.wiki-x-food strong{font-size:19px}.wiki-x-chain{width:40px;height:40px;padding:6px}.wiki-x-sequence{right:-5px}.wiki-x-identity{margin-right:-35px}.wiki-x-portrait{inset:90px -60px -38px -75px;width:calc(100% + 135px)}.wiki-x-bonuses>div{grid-template-columns:repeat(3,minmax(0,1fr))}.wiki-x-bonus span{font-size:10px}.wiki-x-bonus{gap:4px;padding:6px 4px}.wiki-x-bonus img{width:19px;height:19px}}
@media(max-width:800px){.wiki-breadcrumb:has(.wiki-character-view){flex-wrap:wrap;gap:10px}.wiki-breadcrumb .wiki-character-view{order:3;width:100%}.wiki-character-view button{flex:1}.wiki-x-guide{align-items:flex-start;flex-direction:column;gap:5px}.wiki-x-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'hero hero' 'skills info';padding:20px 20px 39px;gap:25px 20px}.wiki-x-hero{min-height:570px;border-bottom:1px solid #e8c17c20;padding-bottom:15px}.wiki-x-identity{margin-right:0;padding-top:0;max-width:80%}.wiki-x-identity h1{font-size:54px}.wiki-x-portrait{inset:25px 35px 0 0;width:calc(100% - 35px)}.wiki-x-sequence{right:6px;top:15%;gap:13px}.wiki-x-chain{width:47px;height:47px;padding:7px}.wiki-x-chain:not(:last-child)::after{height:14px}.wiki-x-appearances{bottom:8px;right:50px}.wiki-x-orbit{width:70%;left:13%;top:23%}.wiki-x-wordmark{left:0;font-size:110px}.wiki-x-skills{max-width:260px}.wiki-x-skill>span{width:57px;height:57px}.wiki-x-skill img{width:40px;height:40px}.wiki-x-card h2{font-size:25px}.wiki-x-materials{grid-template-columns:repeat(3,minmax(0,1fr))}.wiki-x-material-section{margin-top:0}.wiki-x-stats th,.wiki-x-stats td{font-size:15px}.wiki-x-food{flex-direction:column;align-items:flex-start}.wiki-x-food>img{width:90px;height:90px}.wiki-x-biography{margin-top:0}.wiki-x-footer{left:20px;right:20px}}
@media(max-width:520px){.wiki-x-card{grid-template-columns:minmax(0,1fr);grid-template-areas:'hero' 'skills' 'info';gap:30px;padding:17px 17px 38px;border-radius:15px}.wiki-x-hero{min-height:475px}.wiki-x-identity h1{font-size:42px}.wiki-x-identity>div{font-size:10px;gap:6px 10px}.wiki-x-identity img{width:20px;height:20px}.wiki-x-portrait{inset:76px 12px 0 -25px;width:calc(100% + 13px)}.wiki-x-chain{width:39px;height:39px;padding:6px}.wiki-x-sequence{right:-3px;top:22%;gap:11px}.wiki-x-chain:not(:last-child)::after{height:12px}.wiki-x-orbit{width:95%;left:-5%;top:30%}.wiki-x-left{gap:23px}.wiki-x-skills{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none;gap:14px 7px}.wiki-x-skill>span{width:55px;height:55px}.wiki-x-skill img{width:39px;height:39px}.wiki-x-bonuses>div{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr))}.wiki-x-bonus span{font-size:10px}.wiki-x-bonus img{width:17px;height:17px}.wiki-x-materials{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}.wiki-x-material>span{width:55px;height:55px}.wiki-x-material img{width:43px;height:43px}.wiki-x-stats th,.wiki-x-stats td{font-size:17px}.wiki-x-stats th>button>span{font-size:11px}.wiki-x-food{flex-direction:row;align-items:center;gap:13px}.wiki-x-food>img{width:87px;height:87px}.wiki-x-food strong{font-size:22px}.wiki-x-popover{width:auto;max-height:65dvh}.wiki-x-popover-head{padding:13px}.wiki-x-popover-body{max-height:calc(65dvh - 95px);padding:13px 15px 16px}.wiki-x-footer{font-size:7px;left:17px;right:17px}.wiki-x-footer i{display:none}}
@media(prefers-reduced-motion:reduce){.wiki-x-orbit::before,.wiki-x-popover{animation:none}.wiki-x-card button,.wiki-x-skill>span,.wiki-x-material>span,.wiki-x-appearances button{transition:none}}
