/* Colecao oficial de 20 cartas, painel unico 5x4 — 2026-11-23.
   Títulos, XP e imagens permanecem independentes deste CSS. */
#recursos .cv-sale-niveis .cv-level-bottom button.cv-level-gallery-trigger{font-family:inherit;cursor:pointer;appearance:none}
#cv-level-gallery:not([open]){display:none!important}
#cv-level-gallery{
 box-sizing:border-box;position:fixed;inset:0;z-index:99999;
 margin:auto;padding:0;
 width:min(1640px,calc(100vw - 20px));height:calc(100dvh - 20px);
 max-width:1640px;max-height:calc(100dvh - 20px);
 overflow:hidden;border:2px solid #1c74cc;border-radius:25px;
 background:#04152e;color:#edf5ff;
 box-shadow:0 0 0 5px #08356e55,0 30px 90px #000c;
}
#cv-level-gallery::backdrop{background:#010c20da;backdrop-filter:blur(7px)}
#cv-level-gallery *,#cv-level-gallery *::before,#cv-level-gallery *::after{box-sizing:border-box}
#cv-level-gallery .cv-level-gallery-frame{
 display:flex;flex-direction:column;min-height:0;height:100%;
 overflow:hidden;position:relative;
 background:radial-gradient(ellipse at 50% 0,#0d3971 0,transparent 47%),#05162e;
}
#cv-level-gallery .cv-level-gallery-frame:before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(132deg,transparent 3%,#1656ae15 22%,transparent 35%),
 linear-gradient(20deg,transparent 70%,#f3bb4e08 90%,transparent);z-index:0;
}
#cv-level-gallery .cv-level-gallery-header{
 display:flex;position:relative;z-index:1;
 align-items:flex-start;justify-content:center;flex:0 0 auto;
 padding:clamp(11px,2.1vh,25px) 55px clamp(8px,1.3vh,16px);
 gap:10px;text-align:center;
 border-bottom:1px solid #3b9cf12b;
 background:radial-gradient(ellipse at 50% -35%,#1b5dac42,transparent 70%);
}
#cv-level-gallery .cv-level-gallery-header-copy{min-width:0}
#cv-level-gallery .cv-level-gallery-eyebrow{
 display:block;font-size:clamp(9px,.88vw,13px);line-height:1.2;
 letter-spacing:.17em;color:#ffda73;font-weight:850;margin:0 0 5px;
}
#cv-level-gallery .cv-level-gallery-header h2{
 font-weight:950;letter-spacing:-.038em;
 font-size:clamp(24px,3.1vw,49px);line-height:1.1;color:#fff;margin:0 0 4px;
 text-shadow:0 3px 9px #0007;
}
#cv-level-gallery .cv-level-gallery-header h2 em{
 color:#ffcf67;font-style:normal;
 text-shadow:0 0 17px #e0aa3350;
}
#cv-level-gallery .cv-level-gallery-header p{
 margin:0;color:#c8d8f2;line-height:1.35;
 font-size:clamp(10px,1.1vw,15px);
}
#cv-level-gallery .cv-level-gallery-counter{display:none}
#cv-level-gallery .cv-level-gallery-close{
 position:absolute;top:clamp(9px,1.5vh,19px);right:clamp(10px,1.4vw,21px);
 z-index:4;display:grid;place-items:center;
 flex:none;width:clamp(34px,3vw,43px);height:clamp(34px,3vw,43px);
 border-radius:12px;background:#ffffff1c;border:1px solid #ffffff5e;
 color:white;font:400 29px/1 Arial,sans-serif;cursor:pointer;
}
#cv-level-gallery .cv-level-gallery-close:hover{background:#ffffff36}
#cv-level-gallery .cv-level-gallery-close:focus-visible{outline:3px solid #ffcf65;outline-offset:2px}
#cv-level-gallery .cv-level-gallery-scroll{
 display:flex;flex:1 1 auto;min-height:0;min-width:0;
 padding:clamp(8px,1.35vh,18px) clamp(9px,2vw,30px) clamp(10px,1.5vh,22px);
 overflow:hidden;
 position:relative;z-index:1;
}
#cv-level-gallery .cv-level-gallery-grid{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
 grid-template-rows:repeat(4,minmax(0,1fr));
 gap:clamp(7px,.9vw,15px);flex:1 1 auto;
 min-height:0;min-width:0;height:100%;margin:0;padding:0;
 list-style:none;align-items:stretch;
}
#cv-level-gallery .cv-level-gallery-card[hidden]{display:flex!important}
#cv-level-gallery .cv-level-gallery-card{
 --cv-card-accent:#338ef9;--cv-card-shadow:#1455bf;
 position:relative;display:flex;flex-direction:column;
 min-width:0;min-height:0;overflow:hidden;
 border:2px solid var(--cv-card-accent);
 border-radius:clamp(10px,1.18vw,18px);
 background:linear-gradient(155deg,#0e3263 0%,#071e42 65%,#04132f 100%);
 box-shadow:inset 0 1px #ffffff31,0 2px 14px var(--cv-card-shadow),0 2px 10px #0008;
 transition:transform .18s ease,box-shadow .18s ease;
}
#cv-level-gallery .cv-level-gallery-card--phase-2{--cv-card-accent:#19ba80;--cv-card-shadow:#04845670;background:linear-gradient(155deg,#094b42,#032a2e 67%,#031b24)}
#cv-level-gallery .cv-level-gallery-card--phase-3{--cv-card-accent:#ae61ed;--cv-card-shadow:#743ac780;background:linear-gradient(155deg,#42205e,#21113f 67%,#0f102b)}
#cv-level-gallery .cv-level-gallery-card--phase-4{--cv-card-accent:#f29a3e;--cv-card-shadow:#d6762380;background:linear-gradient(155deg,#58321c,#35201b 67%,#211320)}
#cv-level-gallery .cv-level-gallery-card--phase-5{
 --cv-card-accent:#ffd54d;--cv-card-shadow:#ffd24b95;
 border-width:3px;background:linear-gradient(145deg,#80531b,#402c14 59%,#1e1824);
 box-shadow:inset 0 0 13px #ffd55a45,0 0 16px #ffce5a90,0 0 0 2px #c68b3655;
}
#cv-level-gallery .cv-level-gallery-card::before{
 content:"";position:absolute;z-index:2;pointer-events:none;inset:0 0 auto;height:3px;
 background:linear-gradient(90deg,transparent,var(--cv-card-accent),transparent);
}
#cv-level-gallery .cv-level-gallery-card-head{
 flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;
 gap:3px;padding:clamp(4px,.5vh,7px) clamp(7px,.85vw,12px) 1px;
 position:relative;z-index:2;
}
#cv-level-gallery .cv-level-gallery-card-index{
 color:var(--cv-card-accent);white-space:nowrap;
 font-size:clamp(9px,.86vw,13px);letter-spacing:.1em;font-weight:950;
}
#cv-level-gallery .cv-level-gallery-card-emblem{font-size:clamp(10px,1vw,14px);color:var(--cv-card-accent)}
#cv-level-gallery .cv-level-gallery-card-art{
 display:flex;align-items:center;justify-content:center;
 flex:1 1 auto;min-height:0;min-width:0;
 padding:0 clamp(5px,.6vw,10px);
 background:radial-gradient(ellipse at 50% 55%,color-mix(in srgb,var(--cv-card-accent) 29%,transparent),transparent 67%);
}
#cv-level-gallery .cv-level-gallery-card-art img{
 display:block;width:100%;height:100%;max-width:100%;max-height:100%;
 object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 5px #0007);
}
#cv-level-gallery .cv-level-gallery-card-info{
 flex:0 0 auto;display:flex;flex-direction:column;justify-content:center;
 align-items:center;min-height:0;min-width:0;
 gap:clamp(2px,.34vh,5px);
 padding:clamp(3px,.4vh,6px) 5px clamp(6px,.75vh,11px);
 text-align:center;
}
#cv-level-gallery .cv-level-gallery-card-name{
 display:block;line-height:1.15;overflow-wrap:anywhere;
 font-size:clamp(11px,1.09vw,17px);font-weight:900;color:#fff;
 text-shadow:0 2px 4px #000a;
}
#cv-level-gallery .cv-level-gallery-card-xp{
 display:inline-flex;align-items:center;justify-content:center;gap:4px;
 padding:3px 7px;border:1px solid color-mix(in srgb,var(--cv-card-accent) 65%,transparent);
 border-radius:20px;color:#ffe29b;background:#010e2a9c;
 white-space:nowrap;min-height:21px;font-size:clamp(9px,.83vw,12px);font-weight:800;
}
#cv-level-gallery .cv-level-gallery-card-xp svg{width:12px;height:12px;color:#fbc245}
#cv-level-gallery .cv-level-gallery-pager,#cv-level-gallery .cv-level-gallery-end{display:none!important}
@media(hover:hover){#cv-level-gallery .cv-level-gallery-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px var(--cv-card-shadow),inset 0 0 18px #ffffff13}}
@media(max-width:760px),(max-height:660px){
 /* Em telas pequenas: 20 cartas em um único painel rolável, sem páginas nem barra interna visível. */
 #cv-level-gallery{width:calc(100vw - 10px);height:calc(100dvh - 10px);max-height:calc(100dvh - 10px);border-radius:18px}
 #cv-level-gallery .cv-level-gallery-frame{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
 #cv-level-gallery .cv-level-gallery-frame::-webkit-scrollbar{display:none}
 #cv-level-gallery .cv-level-gallery-header{position:sticky;top:0;background:#08224a;z-index:5;padding:12px 44px 10px 12px}
 #cv-level-gallery .cv-level-gallery-header h2{font-size:clamp(20px,5.1vw,26px)}
 #cv-level-gallery .cv-level-gallery-eyebrow{font-size:9px}
 #cv-level-gallery .cv-level-gallery-header p{font-size:11px}
 #cv-level-gallery .cv-level-gallery-close{position:fixed;top:10px;right:11px}
 #cv-level-gallery .cv-level-gallery-scroll{display:block;flex:none;overflow:visible;padding:14px 12px 21px;min-height:0;height:auto}
 #cv-level-gallery .cv-level-gallery-grid{height:auto;min-height:0;grid-template-rows:auto;gap:11px}
 #cv-level-gallery .cv-level-gallery-card{min-height:0}
 #cv-level-gallery .cv-level-gallery-card-art{aspect-ratio:1.2/1;height:auto;min-height:0}
 #cv-level-gallery .cv-level-gallery-card-head{padding:7px 8px 1px}
 #cv-level-gallery .cv-level-gallery-card-index{font-size:10px}
 #cv-level-gallery .cv-level-gallery-card-name{font-size:clamp(12px,2.3vw,15px)}
 #cv-level-gallery .cv-level-gallery-card-xp{font-size:10px}
}
@media(min-width:761px) and (max-width:1080px) and (max-height:660px){
 #cv-level-gallery .cv-level-gallery-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 #cv-level-gallery .cv-level-gallery-card-art{aspect-ratio:1.05/1}
}
@media(max-width:760px){
 #cv-level-gallery .cv-level-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:540px){
 #cv-level-gallery .cv-level-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #cv-level-gallery .cv-level-gallery-card-art{aspect-ratio:1/1}
 #cv-level-gallery .cv-level-gallery-card-name{font-size:14px}
 #cv-level-gallery .cv-level-gallery-header p{max-width:280px}
}
@media(prefers-reduced-motion:reduce){#cv-level-gallery .cv-level-gallery-card{transition:none}}
