.learnset-field { position:absolute; inset:0; }
.learnset-field:hover .zoom-art { background:#4e3d5b; }
.learnset-open { overflow:hidden; }
#learnset {
  width:min(740px,94vw); height:min(728px,88svh); max-height:94svh;
  padding:0; overflow:hidden; border:1px solid #766987; border-radius:14px;
  background:#191621; color:#f4edf9; box-shadow:0 28px 90px #07050dae;
}
#learnset[open] { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; }
#learnset::backdrop { background:#090610d9; }
.learnset-head,.learnset-tools,.learnset-foot { padding-inline:clamp(16px,3vw,32px); }
.learnset-head {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding-block:22px 15px; background:linear-gradient(100deg,#34263d,#211c32 86%);
}
.learnset-number { margin:0 0 8px; color:#d1b7e8; font-size:.73rem; }
#learnset-title { margin:0; font:italic 400 clamp(2.35rem,4.3vw,3.3rem)/1.02 Georgia,serif; letter-spacing:-.065em; color:#f1defd; }
.learnset-close { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#262030; border:1px solid #756486; color:#fff; cursor:pointer; }
.learnset-close:hover { background:#493954; }
.learnset-tools { padding-block:12px; display:flex; gap:10px; border-bottom:1px solid #43384d; background:#231e2c; }
.learnset-search,#learnset-game { min-width:0; border:1px solid #64556e; border-radius:6px; color:#ece2f4; background:#1b1621; font:inherit; }
.learnset-search { display:flex; align-items:center; flex:1; gap:8px; padding:0 10px; }
.learnset-search svg { flex:none; color:#cbb8dc; }
#learnset-filter { width:100%; min-width:0; height:36px; color:inherit; background:transparent; border:0; font:inherit; outline:none; }
#learnset-filter::placeholder { color:#c1b5ca; }
.learnset-search:focus-within,#learnset-game:focus-visible,.learnset-close:focus-visible,#learnset a:focus-visible { outline:2px solid #dcbbfe; outline-offset:1px; }
#learnset-game { max-width:49%; padding:3px 8px; }
.learnset-scroll { overflow:auto; overscroll-behavior:contain; padding:4px clamp(12px,3vw,32px) 22px; scrollbar-color:#695574 #211b28; }
#learnset-results h3 { font:600 1.14rem/1.4 Roboto,Arial,sans-serif; margin:19px 0 8px; letter-spacing:-.02em; }
#learnset-results table { width:100%; border-collapse:collapse; font:400 .93rem/1.35 Roboto,Arial,sans-serif; }
#learnset-results th,#learnset-results td { padding:9px 7px; text-align:left; border-bottom:1px solid #37303e; }
#learnset-results th { font:.7rem/1.3 var(--mono); color:#ccbed7; background:#26202e; }
#learnset-results td:first-child,#learnset-results td:nth-last-child(-n+2) { font-variant-numeric:tabular-nums; color:#d9d0e1; }
#learnset-results td:nth-last-child(-n+2),#learnset-results th:nth-last-child(-n+2) { text-align:right; }
#learnset-results td a { color:#f4e7ff; font-weight:600; text-underline-offset:3px; }
#learnset-results td a:hover { color:#dbb6ff; text-decoration:underline; }
#learnset-results td small { display:block; font-size:.71rem; color:#b7a9c3; }
.move-type { font-size:.79rem; color:#ded6e4; white-space:nowrap; }
.move-type::before { content:''; display:inline-block; width:6px; height:6px; margin-right:5px; border-radius:50%; background:var(--type,#bdb7b0); vertical-align:.12em; }
.move-type[data-type=psychic]{--type:#fb90ae}.move-type[data-type=fighting]{--type:#f78c84}.move-type[data-type=fire]{--type:#f59d64}.move-type[data-type=water]{--type:#81b7ff}.move-type[data-type=grass]{--type:#8cd68a}.move-type[data-type=electric]{--type:#eed077}.move-type[data-type=ghost],.move-type[data-type=poison]{--type:#bf99df}.move-type[data-type=ground],.move-type[data-type=rock]{--type:#ccaa77}.move-type[data-type=ice]{--type:#98dcd8}.move-type[data-type=bug]{--type:#bccf75}.move-type[data-type=fairy]{--type:#edbbde}.move-type[data-type=steel]{--type:#b8c8d7}.move-type[data-type=flying],.move-type[data-type=dragon]{--type:#a9a1f5}
#learnset-results>p { padding:22px 0; color:#d7ccdf; }
#learnset .learnset-foot { display:flex; justify-content:space-between; align-items:center; padding-block:12px; border-top:1px solid #43384d; background:#211b29; color:#c6b8ce; font-size:.8rem; }
#learnset-source { color:#e2c1fb; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:520px){
  #learnset { width:96vw; height:88svh; }
  .learnset-head { padding-block:16px 10px; }
  .learnset-tools { gap:6px; }
  #learnset-filter,#learnset-game { font-size:16px; }
  #learnset-results th,#learnset-results td { padding:8px 3px; }
  #learnset-results table { font-size:.83rem; }
  .move-type { font-size:.73rem; }
}
