/* Collection shelves and a readable companion sheet, using native DOFUS icons. */
#secondary[data-camp-page="grimoire"]{display:flex;flex-direction:column;gap:0;padding:24px;top:130px;bottom:38px;background:#faf8f1fa;overflow:hidden}
.grimoire-heading{display:flex;align-items:center;gap:24px;flex-shrink:0;padding-bottom:16px;border-bottom:2px solid #e9e4ee}
.grimoire-heading .page-heading{margin-right:auto}.grimoire-heading .eyebrow{font-size:10px;color:#8d7953}.grimoire-heading h1{display:table;background:repeating-linear-gradient(135deg,#f6b95c 0 13px,#f9c773 13px 26px);padding:9px 22px;color:#46344f;border:2px solid #fff7d8;border-radius:13px;box-shadow:0 4px 0 #c68745;transform:rotate(-1.5deg);font-size:30px;margin:6px 0 12px}.grimoire-heading .page-heading p{font-size:13px;margin:0}
.grimoire-metrics{display:flex;gap:10px}.grimoire-metrics>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:100px;padding:10px 14px;background:#efebf6;border:2px solid #fff;border-radius:13px;font-size:11px;color:#746780;font-weight:800;box-shadow:0 3px 0 #dcd6e7}.grimoire-metrics b{font-size:24px;color:#49375e;line-height:1.1}.grimoire-metrics>.grimoire-metric-playable{background:#e7efd8;color:#597544}.grimoire-metric-playable b{color:#456139}
.grimoire-archives{display:flex;align-items:center;gap:10px;background:#fff9df;border-color:#e7d5a5;text-align:left;padding:12px 16px;flex-shrink:0}.grimoire-archives img{width:34px;height:38px;object-fit:contain}.grimoire-archives span{font-size:13px}.grimoire-archives small{display:block;font-size:10px;margin-top:3px;color:#8f7a54}
#secondary[data-camp-page="grimoire"] .grimoire-tabs{flex-shrink:0;gap:5px;margin:14px 0 0}.grimoire-tabs button{font-size:13px;padding:9px 16px}.grimoire-tabs button.selected{background:#796295;color:white;border-color:#66507f;box-shadow:0 3px 0 #514066}
#secondary[data-camp-page="grimoire"] .collection-search{flex-shrink:0;margin:14px 0;gap:12px}.grimoire-search-wrap{display:flex;align-items:center;flex:1;max-width:620px;position:relative}.grimoire-search-wrap>span{position:absolute;left:15px;font-size:25px;line-height:1;color:#9586aa;pointer-events:none}#secondary .grimoire-search-wrap input{max-width:none;font-size:14px;padding:12px 14px 12px 44px;background:#fff;border-radius:13px;border:2px solid #ded7e7}.collection-search #collection-count{font-size:12px;font-weight:900;color:#746481}
#secondary[data-camp-page="grimoire"]>.collection-cards{overflow:auto;min-height:0;padding:2px 4px 8px;scrollbar-color:#c5b6d1 #f1edf5}.grimoire-class-rail{display:flex;gap:6px;overflow:auto;padding:3px 2px 9px;scrollbar-width:thin;scrollbar-color:#d4c9e0 transparent;min-width:0}.grimoire-class-rail button{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;min-width:67px;padding:5px 7px;border-radius:12px;background:#eeebf3;border-color:transparent;box-shadow:none;font-size:9px;color:#7e708c;flex-shrink:0}.grimoire-class-rail img{width:34px;height:34px;object-fit:contain}.grimoire-all-mark{height:34px;line-height:34px;font-size:28px;color:#89759d}.grimoire-class-rail button[aria-pressed="true"]{background:#fff0c4;border-color:#d7ad59;color:#6a4f25;box-shadow:inset 0 0 0 2px #fffcf1}.grimoire-class-rail button:hover{transform:none;background:#f9edcd}
#secondary[data-camp-page="grimoire"]>.spell-browser{display:flex;flex-direction:column;gap:8px;flex:1;overflow:hidden;padding:0;min-height:0}.grimoire-class-rail,.grimoire-spell-toolbar{flex-shrink:0}.grimoire-spell-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}.grimoire-spell-toolbar>div{display:flex;gap:4px;flex-wrap:wrap;background:#ede8f3;border-radius:24px;padding:4px}.grimoire-spell-toolbar button{border:0;box-shadow:none;padding:7px 15px;font-size:12px;background:transparent;color:#87778f;border-radius:20px}.grimoire-spell-toolbar button[aria-pressed="true"]{background:#fff;color:#594469;box-shadow:0 2px 5px #4e336426}.grimoire-spell-toolbar #grimoire-reset{font-size:11px;padding:7px;color:#8b7e94;text-decoration:underline;text-underline-offset:3px}
.grimoire-spell-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;flex:1;min-height:0}.grimoire-shelf{display:flex;flex-direction:column;min-height:0;min-width:0;background:#f2edf5;border:2px solid #e5ddea;border-radius:16px;overflow:hidden}.grimoire-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;background:#f9f6fb;border-bottom:1px solid #e5ddea}.grimoire-shelf-heading b{font-size:13px;color:#655473}.grimoire-shelf-heading span{font-size:11px;color:#96879f;white-space:nowrap}.grimoire-spell-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:9px;overflow:auto;padding:14px;min-height:0;align-content:start;scrollbar-color:#c4b3d0 #f1edf5;flex:1}
.grimoire-spell-grid .grimoire-spell-tile{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;text-align:center;border:2px solid #e1d9e9;background:#fffdf8;box-shadow:0 3px 0 #dcd2e3;border-radius:13px;padding:10px 5px 9px;transition:border-color .15s,background .15s,box-shadow .15s;position:relative;min-height:142px}.grimoire-spell-tile .grimoire-tile-icon{display:grid;place-items:center;width:65px;height:65px;background:radial-gradient(circle,#fffaf1,#f0e7d4);border:1px solid #eadfcb;border-radius:13px;position:relative;margin-bottom:3px}.grimoire-spell-tile .grimoire-tile-icon img{width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 3px 1px #4d3c5222)}.grimoire-spell-tile .grimoire-tile-icon i{position:absolute;right:-3px;bottom:-3px;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:#bfb5c8}.grimoire-spell-tile.additional .grimoire-tile-icon i{background:#7ca763}.grimoire-spell-tile.kit .grimoire-tile-icon i{background:#bd9857}.grimoire-spell-tile b{font-size:12px;line-height:1.25;color:#5c4a6b;font-weight:1000;overflow-wrap:anywhere;min-height:30px;display:flex;align-items:center;justify-content:center}.grimoire-spell-tile small{font-size:10px;color:#a091ac}.grimoire-spell-grid .grimoire-spell-tile:hover{transform:none;border-color:#bb9cd1;box-shadow:0 3px 0 #b899cf;background:#fffaf0}.grimoire-spell-grid .grimoire-spell-tile[aria-pressed="true"]{border-color:#d9ac42;box-shadow:0 0 0 2px #ffedb0,0 3px 0 #c79635;background:#fff6d9}.grimoire-spell-tile[aria-pressed="true"]:after{content:'✦';position:absolute;right:5px;top:2px;font-size:17px;color:#bc8733}
.grimoire-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#f9f6fb;border-top:1px solid #e1d9e9}.grimoire-pagination button{padding:7px 10px;font-size:11px;box-shadow:none;border-radius:10px;background:white}.grimoire-pagination span{font-size:11px;color:#8b7a97}.grimoire-no-results{grid-column:1/-1;text-align:center;padding:28px 10px}.grimoire-no-results img{width:58px;height:64px;object-fit:contain;opacity:.7}.grimoire-no-results h3{font-size:17px}.grimoire-no-results p{font-size:13px}
.grimoire-detail{background:#fffdf8;border:2px solid #e2d9eb;border-radius:18px;overflow:auto;min-width:0;scrollbar-width:thin;scrollbar-color:#c5b4d0 #f7f1fa}.grimoire-detail-art{display:flex;align-items:center;justify-content:center;min-height:155px;position:relative;background:radial-gradient(ellipse at 50% 85%,#fff9daaa 0 35%,transparent 36%),repeating-conic-gradient(from 0deg at 50% 85%,#f0d99e44 0deg 15deg,#f4e9c733 15deg 30deg),#eee1bb;border-bottom:2px solid #e4d6b2;overflow:hidden}.grimoire-detail-art>img{width:100px;height:100px;object-fit:contain;filter:drop-shadow(0 7px 2px #8c6a4129);z-index:1}.grimoire-detail-number{position:absolute;right:12px;top:6px;color:#b7a26a48;font-weight:1000;font-size:48px;letter-spacing:-3px}.grimoire-state{position:absolute;bottom:10px;right:12px;padding:4px 10px;border:2px solid #fff9;border-radius:20px;font-size:10px;font-weight:1000;background:#e6deee;color:#887496}.grimoire-state.additional{background:#e6f1cf;color:#557a40}.grimoire-state.kit{background:#fff0c4;color:#9c7735}
.grimoire-detail-copy{padding:18px}.grimoire-class-name{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:900;color:#9c87aa}.grimoire-class-name img{width:25px;height:25px;object-fit:contain}.grimoire-detail-copy h2{font-size:26px;line-height:1.1;margin:7px 0 15px;color:#51405e;overflow-wrap:anywhere}.grimoire-detail-copy .grimoire-native-description{font-size:13px;line-height:1.65;color:#756482;white-space:pre-line;margin:0 0 16px}.grimoire-in-game{padding:13px;background:#f0ebf6;border-left:4px solid #a68abd;border-radius:10px;margin-bottom:16px}.grimoire-in-game h3{font-size:12px;margin:0 0 7px;color:#78608b}.grimoire-in-game p{font-size:12px;color:#887696;margin:0;line-height:1.6}.grimoire-in-game>small{font-size:10px;line-height:1.5;display:block;margin-top:9px;color:#9d8baa}.grimoire-game-stats{display:flex;gap:10px;margin-top:12px}.grimoire-game-stats>span{display:flex;flex-direction:column;gap:2px;font-size:9px;color:#9984a8;flex:1}.grimoire-game-stats b{font-size:18px;color:#765b8c}.grimoire-source-ranks{border-top:1px solid #e5dcea;padding-top:12px;margin-top:12px}.grimoire-source-ranks summary{cursor:pointer;font-size:12px;font-weight:900;color:#8c779b;line-height:1.5}.grimoire-source-ranks>p{font-size:11px}.grimoire-source-rank{padding:10px 0;border-top:1px solid #eee7f1}.grimoire-source-rank>b{font-size:12px;display:block}.grimoire-source-rank small{float:right;font-size:10px}.grimoire-source-rank>span{font-size:11px;color:#9981aa}.grimoire-source-rank p{font-size:11px;margin:5px 0}.grimoire-ranks-slot{font-size:12px;color:#9d8eaa}.grimoire-detail-copy .grimoire-view-class{margin-top:20px;width:100%;font-size:12px;background:#eee5f6;border-color:#cebadd;color:#7c5a92}.grimoire-view-class>span{float:right}.grimoire-detail-empty{text-align:center;padding:45px 25px;font-size:14px;color:#a08baa}.grimoire-detail-dialog:not([open]){display:none}.grimoire-detail-dialog[open]{padding:0;text-align:left;max-width:450px;width:calc(100% - 24px);max-height:90dvh;border:0;border-radius:20px;background:#fffdf8}.grimoire-detail-dialog::backdrop{background:#30213bb8;backdrop-filter:blur(8px)}.grimoire-detail-dialog .grimoire-detail{border:0;overflow:visible}.grimoire-detail-dialog #grimoire-close-detail{position:absolute;left:10px;top:10px;z-index:2;width:34px;height:34px;display:grid;place-items:center;padding:0;border:2px solid #fff;background:#fffaf1dd;border-radius:50%;font-size:15px}
@media(min-width:851px) and (max-width:1250px){.grimoire-metrics>span{min-width:75px;padding:9px}.grimoire-archives{padding:10px}.grimoire-archives small{display:none}.grimoire-heading{gap:12px}.grimoire-spell-layout{grid-template-columns:minmax(0,1fr) 290px}.grimoire-detail-copy{padding:14px}.grimoire-spell-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:7px;padding:10px}.grimoire-heading .page-heading p{display:none}}
@media(max-height:850px) and (min-width:851px){#secondary[data-camp-page="grimoire"]{top:115px;bottom:24px;padding:16px 20px}.grimoire-heading{padding-bottom:11px}.grimoire-heading .eyebrow,.grimoire-heading .page-heading p{display:none}.grimoire-heading h1{font-size:26px;padding:8px 17px;margin:0}.grimoire-metrics>span{padding:6px 12px;font-size:10px}.grimoire-metrics b{font-size:21px}.grimoire-archives{padding:8px 12px}.grimoire-class-rail button{min-width:60px}.grimoire-class-rail img{height:28px;width:28px}.grimoire-all-mark{height:28px;line-height:28px}.grimoire-detail-art{min-height:130px}.grimoire-detail-art>img{height:84px;width:84px}}
@media(max-width:850px){#secondary[data-camp-page="grimoire"]{display:block;overflow:auto}.grimoire-heading{flex-wrap:wrap;gap:13px}.grimoire-heading .page-heading{flex:1}.grimoire-metrics{gap:6px}.grimoire-metrics>span{min-width:68px;padding:8px;font-size:9px}.grimoire-metrics b{font-size:22px}.grimoire-archives{padding:8px 12px}.grimoire-archives img{width:25px;height:28px}.grimoire-archives small{display:none}.grimoire-spell-layout{display:block}.grimoire-spell-layout>.grimoire-detail{display:none}.grimoire-spell-grid{overflow:visible;grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}.grimoire-class-rail{max-width:100%}.grimoire-shelf-heading b{font-size:12px}#secondary[data-camp-page="grimoire"]>.spell-browser{overflow:visible}.grimoire-spell-toolbar{margin-bottom:8px}.grimoire-spell-toolbar #grimoire-reset{font-size:10px}.grimoire-spell-toolbar button{padding:7px 10px;font-size:11px}}
@media(max-width:600px){#secondary[data-camp-page="grimoire"]{top:auto;bottom:auto;padding:16px 12px;overflow:visible}.grimoire-heading{gap:12px}.grimoire-heading .page-heading{width:100%;flex-basis:100%}.grimoire-heading h1{font-size:26px;padding:8px 18px}.grimoire-heading .page-heading p{font-size:12px}.grimoire-metrics{flex:1;min-width:0}.grimoire-metrics>span{min-width:0;flex:1;padding:8px 5px}.grimoire-metrics b{font-size:20px}.grimoire-archives{width:42px;height:48px;padding:5px;justify-content:center}.grimoire-archives>span{display:none}#secondary[data-camp-page="grimoire"] .grimoire-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:5px;gap:4px}.grimoire-tabs button{font-size:11px;white-space:nowrap;padding:8px 12px}#secondary .grimoire-search-wrap input{font-size:12px;padding-left:34px}.grimoire-search-wrap>span{left:10px;font-size:22px}.collection-search #collection-count{font-size:10px}.grimoire-class-rail button{min-width:58px;font-size:8px}.grimoire-class-rail img{height:30px;width:30px}.grimoire-spell-toolbar{flex-wrap:wrap;gap:4px}.grimoire-spell-toolbar #grimoire-reset{margin-left:auto}.grimoire-spell-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:9px}.grimoire-spell-grid .grimoire-spell-tile{padding:8px 3px;min-height:132px}.grimoire-spell-tile b{font-size:10px}.grimoire-spell-tile small{font-size:9px}.grimoire-spell-tile .grimoire-tile-icon{width:57px;height:57px}.grimoire-spell-tile .grimoire-tile-icon img{width:48px;height:48px}.grimoire-pagination{padding:9px 7px;gap:5px}.grimoire-pagination button{font-size:10px;padding:7px}.grimoire-pagination span{font-size:10px}.grimoire-shelf-heading{padding:10px;font-size:11px}}
@media(min-width:851px){#secondary[data-camp-page="grimoire"]{padding:18px 22px}.grimoire-heading{padding-bottom:10px}.grimoire-heading .eyebrow,.grimoire-heading .page-heading p{display:none}.grimoire-heading h1{font-size:26px;margin:0;padding:8px 18px}.grimoire-metrics>span{padding:7px 12px}.grimoire-metrics b{font-size:22px}.grimoire-archives{padding:8px 14px}#secondary[data-camp-page="grimoire"] .grimoire-tabs{margin-top:10px}.grimoire-tabs button{padding:7px 15px}#secondary[data-camp-page="grimoire"] .collection-search{margin:10px 0}#secondary .grimoire-search-wrap input{padding-top:10px;padding-bottom:10px}.grimoire-class-rail{padding-bottom:6px}.grimoire-class-rail img{width:28px;height:28px}.grimoire-class-rail button{min-width:62px;padding:4px 7px}.grimoire-all-mark{height:28px;line-height:28px}.grimoire-spell-grid .grimoire-spell-tile{min-height:126px;padding:8px 5px}.grimoire-spell-tile .grimoire-tile-icon{height:57px;width:57px}.grimoire-spell-tile .grimoire-tile-icon img{width:49px;height:49px}.grimoire-detail-art{min-height:130px}.grimoire-detail-art>img{height:86px;width:86px}}
@media(prefers-reduced-motion:reduce){.grimoire-spell-tile{transition:none}}
.collection-search .grimoire-spell-toolbar{flex:1;justify-content:flex-end;margin:0}.collection-search .grimoire-search-wrap{flex:1;min-width:190px;max-width:560px}.collection-search .grimoire-spell-toolbar #grimoire-reset{white-space:nowrap}.grimoire-class-rail button{padding-top:3px;padding-bottom:3px}.grimoire-class-rail img{height:26px;width:26px}
@media(min-width:851px) and (max-width:1400px){.collection-search .grimoire-spell-toolbar #grimoire-reset>span{display:none}.collection-search .grimoire-spell-toolbar #grimoire-reset>i{display:inline;font-size:20px}.collection-search .grimoire-spell-toolbar button{padding:7px 10px}.collection-search .grimoire-search-wrap{min-width:160px}}
@media(max-width:850px){#secondary[data-camp-page="grimoire"] .collection-search{flex-wrap:wrap}.collection-search .grimoire-search-wrap{flex:1;max-width:none;min-width:0}.collection-search .grimoire-spell-toolbar{order:3;flex-basis:100%;justify-content:space-between}.grimoire-detail-dialog .grimoire-detail-art{min-height:170px}}

#grimoire-reset>i{display:none;font-style:normal}
@media(min-width:851px) and (max-width:1400px){.collection-search .grimoire-spell-toolbar>div{flex-wrap:nowrap}.collection-search .grimoire-spell-toolbar #grimoire-reset>i{display:inline}}
