@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Code:wght@300..800&family=LINE+Seed+JP:wght@400;700;800&display=swap");
.pokemonlist .abilitylist_container .ability_to_list_btn, .pokemon-list-overlay .pokemon-list-header .header-main .close-btn, .ability-modal-overlay .ability-modal-close, .ability-modal-overlay, section.pokemon_detailsearch .searchbox_container button#searchbox_submit, main section.speed_compare .speed_compare_header .speed_compare_toggle_btn, main section.speed_line_container .speed_line_header .speed_line_settings_btn, main section.types_container .types_header .types_toggle_btn, main table tr td.status_ev_container, .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  border-radius: 0;
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior-y: none !important;
}

body.is-swipe-adjusting {
  overflow-x: hidden !important;
  touch-action: pan-y !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  display: flex;
  align-items: start;
  gap: 8px;
  width: 100vw;
  background-color: #f0f0f0;
  overflow: visible;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
}
body::-webkit-scrollbar,
body *::-webkit-scrollbar {
  display: none;
}

.list_search_wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.list_search_wrapper input {
  width: 100%;
}

.total_ev_cell {
  text-align: right;
  font-size: 0.8rem;
  font-weight: 400;
  color: #aaa;
}

.search_clear_btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #aaa;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.1s;
  outline: none;
}
.search_clear_btn:hover {
  color: #e74c3c;
}
.search_clear_btn:active {
  transform: scale(0.9);
}

.logo {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  margin-block: 28px;
  width: min(100vw - 6rem, 560px);
  height: 40px;
  margin-inline: auto;
  z-index: -1;
}
.logo svg {
  height: 100%;
  fill: #a02020;
  margin-inline: auto;
}

main {
  display: block;
  flex-shrink: 0;
  width: min(100vw, 1080px);
  height: calc(100% - 20px);
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 0 24px -16px rgba(0, 0, 0, 0.6666666667);
  margin: 112px auto;
  padding: 32px 16px;
  overflow: visible;
  scroll-snap-align: start;
}
main label.search,
main label.cmp_search {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 8px;
  width: 100%;
  overflow: visible;
}
main label.search .search_sprite,
main label.cmp_search .search_sprite {
  display: block;
  width: 88px;
  aspect-ratio: 1;
  overflow: visible;
}
main label.search .search_sprite img,
main label.cmp_search .search_sprite img {
  display: block;
  width: 100%;
  overflow: visible;
}
main label.search .search_input,
main label.cmp_search .search_input {
  display: block;
  width: calc(100% - 88px - 8px);
  position: relative;
  overflow: visible;
}
main label.search .search_input input,
main label.cmp_search .search_input input {
  display: block;
  width: 100%;
  height: 48px;
  padding-inline: 12px;
  padding-right: 36px;
  border-radius: 24px 6px;
  border: 1px solid #aaa;
  outline: none;
  font-size: 1rem;
  font-weight: 400;
  font-family: sans-serif;
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
  transition: border-color 0.2s ease;
}
main label.search .search_input input::-moz-placeholder, main label.cmp_search .search_input input::-moz-placeholder {
  color: #bbb;
}
main label.search .search_input input::placeholder,
main label.cmp_search .search_input input::placeholder {
  color: #bbb;
}
main label.search .search_input input:focus,
main label.cmp_search .search_input input:focus {
  border-color: #2020a0;
}
main label.search .search_input .suggestions_list,
main label.cmp_search .search_input .suggestions_list {
  display: none;
  position: absolute;
  top: 48%;
  left: 0;
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #aaa;
  border-radius: 20px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 10;
  margin-top: 4px;
  list-style: none;
  padding: 0;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
main label.search .search_input .suggestions_list.active,
main label.cmp_search .search_input .suggestions_list.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
main label.search .search_input .suggestions_list.hiding,
main label.cmp_search .search_input .suggestions_list.hiding {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
}
main label.search .search_input .suggestions_list .suggestion_item,
main label.cmp_search .search_input .suggestions_list .suggestion_item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
main label.search .search_input .suggestions_list .suggestion_item:last-child,
main label.cmp_search .search_input .suggestions_list .suggestion_item:last-child {
  border-bottom: none;
}
@media (hover: hover) {
  main label.search .search_input .suggestions_list .suggestion_item:hover,
  main label.cmp_search .search_input .suggestions_list .suggestion_item:hover {
    background-color: #f5f5f5;
  }
}
main label.search .search_input .suggestions_list .suggestion_item img,
main label.cmp_search .search_input .suggestions_list .suggestion_item img {
  width: 32px;
  height: 32px;
  -o-object-fit: contain;
     object-fit: contain;
}
main label.search .search_input .suggestions_list .suggestion_item span,
main label.cmp_search .search_input .suggestions_list .suggestion_item span {
  font-size: 1rem;
  font-family: sans-serif;
  font-weight: 500;
  color: #333;
}
main label.search .search_input .search_info,
main label.cmp_search .search_input .search_info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
main label.search .search_input .search_info .search_type,
main label.cmp_search .search_input .search_info .search_type {
  display: flex;
  gap: 6px;
}
main label.search .search_input .search_info .search_type .type-badge,
main label.cmp_search .search_input .search_info .search_type .type-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px 2px 2px;
  border-radius: 4px;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
}
main label.search .search_input .search_info .search_type .type-badge svg,
main label.cmp_search .search_input .search_info .search_type .type-badge svg {
  width: 20px;
  height: 20px;
  display: block;
}
main .abilities {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-block: 8px;
  padding-left: 12px;
}
main .abilities p.ability {
  display: block;
  padding: 6px 12px;
  background-image: linear-gradient(135deg, #6C5CE7, #A29BFE);
  border: 0.8px solid #ccc;
  border-radius: 16px 4px;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s ease;
}
main .abilities p.ability:active {
  transform: scale(0.97);
}
main .main_info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
main .main_info button {
  display: grid;
  place-items: center;
  width: 96px;
  height: 40px;
  border: none;
  outline: none;
  border-radius: 20px 6px;
  border: none;
  box-shadow: 0 0 8px -4px rgba(0, 0, 0, 0.6666666667);
  font-family: sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.1s ease;
  filter: brightness(0.5);
  will-change: scale;
}
main .main_info button#to_mega {
  background-image: linear-gradient(to top left, #0E5A8A, #1c7496);
}
main .main_info button#to_megax {
  background-image: linear-gradient(to top left, #2EC4B6, #28473d);
}
main .main_info button#to_megay {
  background-image: linear-gradient(to top left, #FF5E13, #F5A623);
}
main .main_info button#to_megaz {
  background-image: linear-gradient(to top left, #FF2DA6, #7B3FE4);
}
@media (hover: hover) {
  main .main_info button:hover {
    scale: 1.05;
  }
}
main .main_info button:active {
  scale: 0.96;
}
main .main_info button.active {
  filter: brightness(1);
}
main .hr {
  width: 90%;
  height: 0.5px;
  background-color: #aaa;
  margin: 16px auto;
}
main .hr.total {
  margin: 8px auto;
}
main table {
  width: min(100%, 480px);
  font-family: "Google Sans Code", "LINE Seed JP", sans-serif;
}
main table tr {
  text-align: center;
}
main table tr:first-child th {
  font-size: 0.9rem;
  font-weight: 400;
}
main table tr td[id] {
  font-size: 1.2rem;
  font-weight: 500;
  color: #a02020;
}
main table tr td.status_ev_container {
  touch-action: pan-y;
}
main table tr td button {
  width: 32px;
  aspect-ratio: 1;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  color: #000;
  font-family: "Google Sans Code", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}
main table tr td button[id*=_ev_0] {
  border-right: none;
  border-radius: 12px 0 0 4px;
}
main table tr td button[id*=_ev_max] {
  border-left: none;
  border-radius: 0 4px 12px 0;
}
main table tr td input {
  width: 64px;
  height: 32px;
  border-block: 1px solid #ccc;
  border-inline: 1px solid #ddd;
  outline: none;
  color: #000;
  font-family: "Google Sans Code", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  padding-inline: 4px;
  touch-action: pan-y;
}
main table tr td input.is-dragging {
  touch-action: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
main table tr td select {
  width: 64px;
  height: 32px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  outline: none;
  border-radius: 12px 4px;
  color: #000;
  font-family: "Google Sans Code", "LINE Seed JP", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  padding-inline: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
main table tr td select.nature-plus {
  background-color: #fae6e6 !important;
  color: #d32f2f !important;
  border-color: #f67a7a !important;
}
main table tr td select.nature-minus {
  background-color: #e0f1f9 !important;
  color: #0288d1 !important;
  border-color: #55b2e6 !important;
}
main section.history_container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
main section.history_container > .ttl {
  font-family: "Google Sans Code", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #666;
  margin-left: 4px;
}
main section.history_container .histories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 8px;
  width: 100%;
  touch-action: pan-x pan-y;
}
main section.history_container .histories::-webkit-scrollbar {
  height: 6px;
}
main section.history_container .histories::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
main section.history_container .histories::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}
main section.history_container .histories .history {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
main section.history_container .histories .history img {
  width: 85%;
  height: 85%;
  -o-object-fit: contain;
     object-fit: contain;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@media (hover: hover) {
  main section.history_container .histories .history:hover {
    background-color: #e8e8e8;
    border-color: #bbb;
  }
  main section.history_container .histories .history:hover img {
    transform: scale(1.15);
  }
}
main section.types_container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  margin-top: 12px;
  overflow: visible;
}
main section.types_container .types_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  width: 100%;
}
main section.types_container .types_header .ttl {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.4666666667);
  font-size: 1rem;
  margin: 0;
}
main section.types_container .types_header .types_toggle_btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.4666666667);
}
main section.types_container .types_header .types_toggle_btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
main section.types_container .types_header.collapsed .types_toggle_btn svg {
  transform: rotate(-90deg);
}
main section.types_container .types_content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  width: 100%;
}
main section.types_container .types_content.collapsed {
  grid-template-rows: 0fr;
}
main section.types_container .types_content .types_inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
main section.types_container .types_inner > div {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 8px;
  overflow: visible;
}
main section.types_container .types_inner > div .ttl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 40px;
  flex-shrink: 0;
  overflow: visible;
}
main section.types_container .types_inner > div .ttl svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}
main section.types_container .types_inner > div .ttl p {
  font-family: "Google Sans Code", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
main section.types_container .types_inner > div .types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding-block: 4px;
}
main section.types_container .types_inner > div .types .type-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 7px 2px 2px;
  border-radius: 4px;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
}
main section.types_container .types_inner > div .types .type-badge svg {
  display: block;
  width: 24px;
}
main section.types_container .types_inner > div.x4 {
  background-color: #fdf0ef;
}
main section.types_container .types_inner > div.x4 .ttl {
  color: #c0392b;
}
main section.types_container .types_inner > div.x4 .ttl svg {
  fill: #c0392b;
}
main section.types_container .types_inner > div.x2 {
  background-color: #fdf5ec;
}
main section.types_container .types_inner > div.x2 .ttl {
  color: #d35400;
}
main section.types_container .types_inner > div.x2 .ttl svg {
  fill: #d35400;
}
main section.types_container .types_inner > div.x1per2 {
  background-color: #edf4fb;
}
main section.types_container .types_inner > div.x1per2 .ttl {
  color: #2471a3;
}
main section.types_container .types_inner > div.x1per2 .ttl svg {
  fill: #2471a3;
}
main section.types_container .types_inner > div.x1per4 {
  background-color: #e8f0f8;
}
main section.types_container .types_inner > div.x1per4 .ttl {
  color: #1a5276;
}
main section.types_container .types_inner > div.x1per4 .ttl svg {
  fill: #1a5276;
}
main section.types_container .types_inner > div.x0 {
  background-color: #f4f6f6;
}
main section.types_container .types_inner > div.x0 .ttl {
  color: #5d6d7e;
}
main section.types_container .types_inner > div.x0 .ttl svg {
  fill: #5d6d7e;
}
main section.speed_line_container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 20px 12px;
  width: 100%;
  max-width: 100%;
}
main section.speed_line_container .speed_line_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  width: 100%;
}
main section.speed_line_container .speed_line_header > .ttl {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.4666666667);
  font-size: 1rem;
}
main section.speed_line_container .speed_line_header .speed_line_settings_btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.4666666667);
  border-radius: 50%;
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
main section.speed_line_container .speed_line_header .speed_line_settings_btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
main section.speed_line_container .speed_line_header .speed_line_settings_btn.active {
  color: #e74c3c;
  background-color: #fff0f0;
}
main section.speed_line_container .speed_line_header .speed_line_settings_btn.active svg {
  transform: rotate(60deg);
}
@media (hover: hover) {
  main section.speed_line_container .speed_line_header .speed_line_settings_btn:hover {
    background-color: #f0f0f0;
  }
  main section.speed_line_container .speed_line_header .speed_line_settings_btn.active:hover {
    background-color: #ffe8e8;
  }
}
main section.speed_line_container .speed_line_track_wrapper {
  position: relative;
  width: 100%;
}
main section.speed_line_container .speed_line_track_wrapper::before, main section.speed_line_container .speed_line_track_wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 32px;
  z-index: 2;
  pointer-events: none;
}
main section.speed_line_container .speed_line_track_wrapper::before {
  top: 0;
  background-image: linear-gradient(to bottom, #fff 15%, rgba(255, 255, 255, 0));
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent);
          mask-image: linear-gradient(to bottom, #000 20%, transparent);
}
main section.speed_line_container .speed_line_track_wrapper::after {
  bottom: 0;
  background-image: linear-gradient(to top, #fff 15%, rgba(255, 255, 255, 0));
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent);
          mask-image: linear-gradient(to top, #000 20%, transparent);
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track {
  display: flex;
  flex-direction: column;
  max-height: 400px;
  overflow-y: auto;
  padding: 12px 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  position: relative;
  scroll-behavior: smooth;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track::-webkit-scrollbar {
  width: 8px;
  background-color: transparent;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track::-webkit-scrollbar-thumb {
  background-color: #c0c0c0;
  border-radius: 4px;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid #e8e8e8;
  min-height: 64px;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row:last-child {
  border-bottom: none;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row.speed_line_row--current {
  background-color: rgba(160, 32, 32, 0.06);
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row.speed_line_row--current .speed_line_value {
  color: #a02020;
  font-weight: 700;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row.speed_line_row--current .speed_line_value > span:first-child {
  display: inline-block;
  position: relative;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row.speed_line_row--current .speed_line_value > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: #e74c3c;
  border-radius: 1px;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_value {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  font-family: "Google Sans Code", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  text-align: right;
  padding-right: 12px;
  line-height: 1.2;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_value .speed_line_needed {
  font-size: 0.6rem;
  color: #888;
  font-weight: 400;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  width: calc(100% - 80px);
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  padding: 4px 2px;
  background-color: #fcfcfc;
  border: 1px solid #ddd;
  border-radius: 14px 4px 14px 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  width: 60px;
  overflow: hidden;
}
@media (hover: hover) {
  main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card:hover {
    background-color: #ebebeb;
    transform: scale(1.04);
  }
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card img {
  width: 44px;
  height: 44px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card .speed_line_card_name {
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  color: #333;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card .speed_line_card_label {
  font-family: "Google Sans Code", "LINE Seed JP", sans-serif;
  font-weight: 400;
  font-size: 0.5rem;
  color: #666;
  text-align: center;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card .speed_line_card_label span {
  display: inline-block;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card .speed_line_card_label .lbl-fastest {
  color: #c0392b;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card .speed_line_card_label .lbl-fast {
  color: #d35400;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card .speed_line_card_label .lbl-none {
  color: #7f8c8d;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card .speed_line_card_label .lbl-scarf {
  color: #0984e3;
}
main section.speed_line_container .speed_line_track_wrapper .speed_line_track .speed_line_row .speed_line_cards .speed_line_card.speed_line_card--current_pokemon {
  border-color: #e74c3c;
  background-color: #fdf2f1;
}
main .speed_line_settings_panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  width: 100%;
}
main .speed_line_settings_panel.open {
  grid-template-rows: 1fr;
}
main .speed_line_settings_panel .sl_settings_inner {
  min-height: 0;
  overflow: hidden;
}
main .speed_line_settings_panel .sl_settings_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
}
main .speed_line_settings_panel .sl_settings_row .sl_settings_label {
  font-family: "LINE Seed JP", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #444;
  white-space: nowrap;
  flex-shrink: 0;
}
main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #ddd;
  border-radius: 10px 4px;
  overflow: hidden;
  background-color: #fafafa;
  width: 100%;
  transition: border-color 0.2s ease;
}
main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons.has-active-none {
  border-color: #7f8c8d;
}
main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons.has-active-fast {
  border-color: #d35400;
}
main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons.has-active-fastest {
  border-color: #c0392b;
}
main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons .sl_preset_btn {
  flex: 1;
  min-width: 0;
  border: none;
  background-color: transparent;
  color: #555;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 12px 0;
  line-height: 1;
  border-right: 1px solid #e8e8e8;
}
main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons .sl_preset_btn:last-child {
  border-right: none;
}
@media (hover: hover) {
  main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons .sl_preset_btn:hover {
    background-color: #f0f0f0;
    color: #333;
  }
}
main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons .sl_preset_btn:active {
  background-color: #e4e4e4;
}
main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons .sl_preset_btn#sl_preset_none.active {
  background-color: #7f8c8d;
  color: #ffffff;
  font-weight: 700;
}
main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons .sl_preset_btn#sl_preset_fast.active {
  background-color: #d35400;
  color: #ffffff;
  font-weight: 700;
}
main .speed_line_settings_panel .sl_settings_row .sl_preset_buttons .sl_preset_btn#sl_preset_fastest.active {
  background-color: #c0392b;
  color: #ffffff;
  font-weight: 700;
}
main .speed_line_settings_panel .sl_settings_row .sl_rank_control {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #ddd;
  border-radius: 10px 3px 10px 3px;
  overflow: hidden;
  background-color: #fafafa;
  width: 130px;
}
main .speed_line_settings_panel .sl_settings_row .sl_rank_control .sl_rank_btn {
  width: 34px;
  flex-shrink: 0;
  border: none;
  background-color: transparent;
  color: #555;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
  padding: 0;
}
main .speed_line_settings_panel .sl_settings_row .sl_rank_control .sl_rank_btn svg {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}
main .speed_line_settings_panel .sl_settings_row .sl_rank_control .sl_rank_btn:first-child {
  border-right: 1px solid #e8e8e8;
}
main .speed_line_settings_panel .sl_settings_row .sl_rank_control .sl_rank_btn:last-child {
  border-left: 1px solid #e8e8e8;
}
@media (hover: hover) {
  main .speed_line_settings_panel .sl_settings_row .sl_rank_control .sl_rank_btn:hover {
    background-color: #f0f0f0;
    color: #333;
  }
}
main .speed_line_settings_panel .sl_settings_row .sl_rank_control .sl_rank_btn:active {
  background-color: #e4e4e4;
}
main .speed_line_settings_panel .sl_settings_row .sl_rank_control input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background-color: transparent;
  border-radius: 0;
  padding: 8px 4px;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.85rem;
  color: #333;
  cursor: ew-resize;
  outline: none;
  text-align: center;
  -webkit-appearance: auto;
}
main .speed_line_settings_panel .sl_settings_row .sl_rank_control select {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background-color: transparent;
  border-radius: 0;
  padding: 8px 4px;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.85rem;
  color: #333;
  cursor: pointer;
  outline: none;
  text-align: center;
  -moz-text-align-last: center;
       text-align-last: center;
  -webkit-appearance: auto;
}
main .speed_line_settings_panel .sl_settings_row > select {
  width: 130px;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.8rem;
  color: #333;
  background-color: #fafafa;
  border: 1.5px solid #ddd;
  border-radius: 10px 3px 10px 3px;
  padding: 8px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: auto;
  text-align: center;
  -moz-text-align-last: center;
       text-align-last: center;
}
main .speed_line_settings_panel .sl_settings_row > select:focus {
  border-color: #aaa;
}
main .speed_line_settings_panel .sl_settings_row .apple-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 0;
  flex-shrink: 0;
}
main .speed_line_settings_panel .sl_settings_row .apple-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
main .speed_line_settings_panel .sl_settings_row .apple-switch input:checked + .slider {
  background-color: #34c759;
}
main .speed_line_settings_panel .sl_settings_row .apple-switch input:checked + .slider:before {
  transform: translateX(20px);
}
main .speed_line_settings_panel .sl_settings_row .apple-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d1d6;
  transition: 0.3s;
  border-radius: 24px;
}
main .speed_line_settings_panel .sl_settings_row .apple-switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
main .speed_line_settings_panel .sl_settings_row #sl_ability_control,
main .speed_line_settings_panel .sl_settings_row #cmp_ability_control {
  display: flex;
  align-items: center;
  gap: 8px;
}
main .speed_line_settings_panel .sl_settings_row #sl_ability_control .sl_ability_toggle_label,
main .speed_line_settings_panel .sl_settings_row #cmp_ability_control .sl_ability_toggle_label {
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.85rem;
  color: #444;
  white-space: nowrap;
}
main .speed_line_settings_panel .sl_settings_row #sl_ability_control select,
main .speed_line_settings_panel .sl_settings_row #cmp_ability_control select {
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.8rem;
  color: #333;
  background-color: #fafafa;
  border: 1.5px solid #ddd;
  border-radius: 10px 3px 10px 3px;
  padding: 5px 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: auto;
}
main .speed_line_settings_panel .sl_settings_row #sl_ability_control select:focus,
main .speed_line_settings_panel .sl_settings_row #cmp_ability_control select:focus {
  border-color: #aaa;
}
main section.speed_compare {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 20px 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  overflow: visible;
}
main section.speed_compare .speed_compare_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  width: 100%;
}
main section.speed_compare .speed_compare_header p.ttl {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.4666666667);
  font-size: 1rem;
}
main section.speed_compare .speed_compare_header .speed_compare_toggle_btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.4666666667);
}
main section.speed_compare .speed_compare_header .speed_compare_toggle_btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
main section.speed_compare .speed_compare_header.collapsed .speed_compare_toggle_btn svg {
  transform: rotate(-90deg);
}
main section.speed_compare .speed_compare_content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  width: 100%;
}
main section.speed_compare .speed_compare_content.collapsed {
  grid-template-rows: 0fr;
}
main section.speed_compare .speed_compare_content .speed_compare_inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
main section.speed_compare label.cmp_search {
  margin-bottom: 4px;
}
main section.speed_compare label.cmp_search .search_sprite img {
  width: 100%;
  display: block;
  transition: transform 0.2s ease;
}
main section.speed_compare label.cmp_search input:focus + .search_sprite img {
  transform: scale(1.05);
}
main section.speed_compare label.cmp_search #cmp_search_info {
  display: flex;
  align-items: end;
  gap: 8px;
}
main section.speed_compare label.cmp_search #cmp_search_info #cmp_pokemon_type {
  display: flex;
  gap: 4px;
}
main section.speed_compare label.cmp_search #cmp_search_info #cmp_pokemon_base_speed {
  font-size: 0.75rem;
  color: #000;
  font-weight: 400;
  font-family: "LINE Seed JP", sans-serif;
}
main section.speed_compare label.cmp_search #cmp_search_info #cmp_pokemon_base_speed span {
  font-size: 1rem;
  font-weight: 700;
}
main section.speed_compare #cmp_settings_panel {
  margin-block: 8px;
  background-color: #fafafa;
  border: 1.5px solid #eee;
  border-radius: 20px 8px;
  padding: 4px 12px;
}
main section.speed_compare #cmp_settings_panel input {
  touch-action: pan-y;
}
main section.speed_compare #cmp_settings_panel input.is-dragging {
  touch-action: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
main section.speed_compare #cmp_settings_panel .sl_settings_row:last-of-type {
  border: none;
}
main section.speed_compare .cmp_match_result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-image: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 20px 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  width: 100%;
  transition: all 0.2s ease;
}
main section.speed_compare .cmp_match_result .cmp_side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
main section.speed_compare .cmp_match_result .cmp_side .cmp_lbl {
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.05em;
}
main section.speed_compare .cmp_match_result .cmp_side .cmp_val {
  font-family: "Google Sans Code", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  transition: color 0.2s ease;
}
main section.speed_compare .cmp_match_result .cmp_side.my_side .cmp_lbl {
  color: #3b82f6;
}
main section.speed_compare .cmp_match_result .cmp_side.my_side .cmp_val {
  color: #2563eb;
}
main section.speed_compare .cmp_match_result .cmp_side.target_side .cmp_lbl {
  color: #f59e0b;
}
main section.speed_compare .cmp_match_result .cmp_side.target_side .cmp_val {
  color: #d97706;
}
main section.speed_compare .cmp_match_result .cmp_center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-left: 1px dashed #e2e8f0;
  border-right: 1px dashed #e2e8f0;
}
main section.speed_compare .cmp_match_result .cmp_center .cmp_badge {
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  color: #fff;
  background-color: #94a3b8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}
main section.speed_compare .cmp_match_result .cmp_center .cmp_badge.cmp_badge_win {
  background-color: #22c55e;
}
main section.speed_compare .cmp_match_result .cmp_center .cmp_badge.cmp_badge_lose {
  background-color: #ef4444;
}
main section.speed_compare .cmp_match_result .cmp_center .cmp_badge.cmp_badge_draw {
  background-color: #64748b;
}
main section.speed_compare .cmp_match_result .cmp_center .cmp_diff {
  font-family: "Google Sans Code", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
main section.speed_compare .cmp_match_result .cmp_center .cmp_diff.cmp_diff_win {
  color: #15803d;
  background-color: #dcfce7;
  border-color: #bbf7d0;
}
main section.speed_compare .cmp_match_result .cmp_center .cmp_diff.cmp_diff_lose {
  color: #b91c1c;
  background-color: #fee2e2;
  border-color: #fecaca;
}
main section.speed_compare .cmp_match_result .cmp_center .cmp_diff.cmp_diff_draw {
  color: #475569;
  background-color: #f1f5f9;
  border-color: #e2e8f0;
}
main .speed_compare {
  display: block;
  margin-top: 24px;
}
main .speed_compare p.ttl {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.4666666667);
  font-size: 1rem;
}
main section.history_container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 20px 12px;
  width: 100%;
  max-width: 100%;
}
main section.history_container p.ttl {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.4666666667);
  font-size: 1rem;
}
main section.history_container .history-clear-btn {
  position: absolute;
  right: 4px;
  bottom: 34px;
  width: 44px;
  height: 44px;
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 50%;
  color: #e74c3c;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s linear;
}
main section.history_container .history-clear-btn svg {
  width: 24px;
  height: 24px;
}
main section.history_container .history-clear-btn:hover {
  background-color: #fdd;
  transform: scale(1.05);
}
main section.history_container .history-clear-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
main section.history_container .histories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  width: 100%;
  margin-bottom: 8px;
  touch-action: pan-x pan-y;
  border-radius: 4px;
}
main section.history_container .histories::-webkit-scrollbar {
  display: none;
}
main section.history_container .histories .history {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: min(15%, 64px);
  aspect-ratio: 1;
  background-color: #fcfcfc;
  border: 1px solid #ddd;
  border-radius: 16px 6px;
  cursor: pointer;
  overflow: hidden;
}
main section.history_container .histories .history img {
  width: 96%;
  transition: scale 0.2s ease;
  will-change: scale;
}
main section.history_container .histories .history:hover img {
  scale: 1.02;
}

section.pokemon_detailsearch {
  display: block;
  flex-shrink: 0;
  width: min(100vw, 1080px);
  height: calc(100% - 20px);
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 0 24px -16px rgba(0, 0, 0, 0.6666666667);
  margin: 112px auto;
  padding: 32px 16px;
  overflow: visible;
  scroll-snap-align: start;
}
section.pokemon_detailsearch p.ttl {
  display: block;
  font-size: 1.6rem;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 800;
  color: #000;
  letter-spacing: -0.03em;
}
section.pokemon_detailsearch .searchbox_container {
  display: block;
  width: 100%;
}
section.pokemon_detailsearch .searchbox_container label.searchbox_item {
  display: block;
  position: relative;
  width: 100%;
  background-color: #fafafa;
  border: 1px solid #ddd;
  margin-top: 16px;
  border-radius: 8px;
  padding: 8px 8px 0px 8px;
}
section.pokemon_detailsearch .searchbox_container label.searchbox_item span {
  display: block;
  font-size: 0.8rem;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #aaa;
}
section.pokemon_detailsearch .searchbox_container label.searchbox_item input {
  display: block;
  width: 100%;
  height: 8px;
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #000;
  transition: height 0.2s ease;
}
section.pokemon_detailsearch .searchbox_container label.searchbox_item input:not(:-moz-placeholder) {
  height: 36px;
}
section.pokemon_detailsearch .searchbox_container label.searchbox_item input:focus, section.pokemon_detailsearch .searchbox_container label.searchbox_item input:not(:placeholder-shown) {
  height: 36px;
}
section.pokemon_detailsearch .searchbox_container label.searchbox_item .searchbox_byivs {
  display: flex;
  align-items: center;
}
section.pokemon_detailsearch .searchbox_container label.searchbox_item .searchbox_byivs input {
  display: block;
  width: calc(50% - 18px);
}
section.pokemon_detailsearch .searchbox_container label.searchbox_item .searchbox_byivs span {
  display: grid;
  place-items: center;
  width: 36px;
  height: auto;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #777;
  transition: opacity 0.2s ease;
}
section.pokemon_detailsearch .searchbox_container label.searchbox_item .searchbox_byivs:not(:has(input:focus, input:not(:-moz-placeholder))) span {
  height: 8px;
  opacity: 0;
}
section.pokemon_detailsearch .searchbox_container label.searchbox_item .searchbox_byivs:not(:has(input:focus, input:not(:placeholder-shown))) span {
  height: 8px;
  opacity: 0;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem {
  position: relative;
  display: flex;
  align-items: start;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem.suggest-active {
  overflow: visible !important;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem button.searchbox_bytype_or,
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem button.searchbox_byability_or {
  position: sticky;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  place-content: center;
  aspect-ratio: 1;
  height: 41.6px;
  border: 1px solid #aaa;
  border-radius: 8px;
  background-color: #f5f5f5;
  font-size: 0.9rem;
  color: #aaa;
  font-family: "LINE Seed JP", sans-serif;
  box-shadow: 0 0 4px 4px #fff;
  flex-shrink: 0;
  scroll-snap-align: start;
  z-index: 99;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem button.searchbox_bytype_or.active,
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem button.searchbox_byability_or.active {
  color: #a02020;
  font-weight: 700;
  border-color: #a02020;
  background-color: #f9f0f0;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem button.searchbox_bytype_or span,
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem button.searchbox_byability_or span {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem label.searchbox_flex {
  display: block;
  position: relative;
  flex: 0 0 max(60%, 240px);
  width: max(60%, 240px);
  height: auto;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 8px 0px 8px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem label.searchbox_flex span {
  display: flex;
  align-items: center;
  height: 24px;
  font-size: 0.8rem;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #aaa;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem label.searchbox_flex span select {
  display: block;
  height: 24px;
  font-size: 0.8rem;
  color: #000;
  background-color: transparent;
  border: none;
  outline: none;
  margin-left: 12px;
  border-radius: 4px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem label.searchbox_flex input {
  display: block;
  width: 100%;
  height: 8px;
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #000;
  transition: height 0.2s ease;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem label.searchbox_flex input:not(:-moz-placeholder) {
  height: 36px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem label.searchbox_flex input:focus, section.pokemon_detailsearch .searchbox_container .searchbox_flexitem label.searchbox_flex input:not(:placeholder-shown) {
  height: 36px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem button.searchbox_add {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  height: 41.6px;
  flex-shrink: 0;
  background-color: #ddd;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 4px 4px #fff;
  scroll-snap-align: start;
}
section.pokemon_detailsearch .searchbox_container .searchbox_flexitem button.searchbox_add svg {
  display: block;
  width: 75%;
  fill: #000;
}
section.pokemon_detailsearch .searchbox_container button#searchbox_submit {
  gap: 4px;
  width: min(180px, 100% - 2rem);
  height: 44px;
  margin-inline: auto;
  margin-top: 12px;
  background-color: #a02020;
  border: none;
  outline: none;
  border-radius: 16px 6px;
}
section.pokemon_detailsearch .searchbox_container button#searchbox_submit p {
  display: block;
  font-size: 1rem;
  font-family: "LINE Seed JP", sans-serif;
  color: #fff;
  font-weight: 700;
}
section.pokemon_detailsearch .searchbox_container button#searchbox_submit svg {
  display: block;
  width: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container {
  margin-top: 32px;
  border-top: 1.5px solid #eee;
  padding-top: 24px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .result_count {
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .result_count span {
  font-weight: 700;
  color: #a02020;
  font-size: 1.2rem;
  margin-right: 2px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_sort_wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_sort_wrap select#searchbox_result_sort {
  display: block;
  width: 128px;
  height: 36px;
  padding-inline: 8px;
  font-size: 0.85rem;
  font-family: "LINE Seed JP", sans-serif;
  border: 1px solid #ccc;
  border-radius: 12px 4px 4px 12px;
  background-color: #fff;
  cursor: pointer;
  color: #333;
  outline: none;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_sort_wrap select#searchbox_result_sort:focus {
  border-color: #a02020;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_sort_wrap button#searchbox_result_order {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border: 1px solid #ccc;
  border-radius: 4px 12px 12px 4px;
  background-color: #fff;
  cursor: pointer;
  padding: 0;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_sort_wrap button#searchbox_result_order svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: #555;
  fill: none;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_sort_wrap button#searchbox_result_order:active {
  background-color: #eee;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list {
  display: block;
  max-height: 440px;
  overflow-y: auto;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 88px;
  cursor: pointer;
  transition: background-color 0.15s;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 0.5px;
  background-color: #ddd;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item:last-child::after {
  display: none;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item:active {
  background-color: #eaeaea;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item img {
  display: block;
  width: 56px;
  height: 56px;
  margin-inline: 6px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item .info {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 144px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item .info p.name {
  display: block;
  width: 100%;
  font-size: 1.1rem;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  text-overflow: ellipsis;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item .info .types {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item .info .types p.type-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px 1px 1px;
  border-radius: 4px;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item .info .types p.type-badge svg {
  display: block;
  width: 18px;
  height: 18px;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item .info .types p.type-badge span {
  display: inline;
  font-size: 0.7rem;
  white-space: nowrap;
}
section.pokemon_detailsearch .searchbox_container .searchbox_result_container .searchbox_result_list .pokemonlist_item p.stats {
  display: block;
  font-size: 0.9rem;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #444;
  text-align: right;
  line-height: 1.5;
  scale: 0.9 1;
  margin-left: auto;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 112px;
  padding-inline: 12px;
  z-index: -1;
}
footer p.copyright {
  display: block;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.5rem;
  color: rgba(0, 0, 0, 0.6666666667);
  text-align: center;
}

.ability-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ability-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.ability-modal-overlay.active .ability-modal-close {
  transform: scale(1);
}
.ability-modal-overlay .ability-modal {
  display: block;
  width: min(100% - 2rem, 480px);
  padding-block: 56px;
  background-color: #fff;
  padding: 28px;
  border-radius: 32px 12px;
  box-shadow: 0 0 32px #fff;
  scale: 0.9;
  transition: scale 0.25s ease;
  will-change: scale;
}
.ability-modal-overlay .ability-modal .ability_modal_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4px;
}
.ability-modal-overlay .ability-modal .ability_modal_header p {
  display: block;
  font-size: 1.5rem;
  color: #000;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 700;
  padding-inline: 0;
}
.ability-modal-overlay .ability-modal p {
  display: block;
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 500;
}
.ability-modal-overlay .ability-modal .ability_modal_actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}
.ability-modal-overlay .ability-modal .ability_modal_actions .transform-btn {
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 16px 6px;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  background-image: linear-gradient(135deg, #6C5CE7, #00D2FF);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.ability-modal-overlay .ability-modal .ability_modal_actions .transform-btn:hover {
  opacity: 0.9;
}
.ability-modal-overlay .ability-modal .ability_modal_actions .transform-btn:active {
  transform: scale(0.97);
}
.ability-modal-overlay .ability-modal .ability_modal_actions .othersshown-btn {
  display: grid;
  place-items: center;
  color: #a02020;
  background-color: transparent;
  padding: 4px 24px;
  border-radius: 8px;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  margin-inline: 0;
  border: none;
  margin-inline: auto;
  margin-top: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.ability-modal-overlay .ability-modal .ability_modal_actions .othersshown-btn:hover {
  opacity: 0.9;
}
.ability-modal-overlay .ability-modal .ability_modal_actions .othersshown-btn:active {
  transform: scale(0.97);
}
.ability-modal-overlay.active .ability-modal {
  scale: 1;
}
.ability-modal-overlay .ability-modal-close {
  position: fixed;
  bottom: 128px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 64px;
  aspect-ratio: 1;
  background-color: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #888;
  border-radius: 50%;
  box-shadow: 0 0 32px 4px #fff;
  transform: scale(0.8);
  transform-origin: top;
  transition: scale 0.1s ease, transform 0.25s ease;
  will-change: scale, transform;
}
.ability-modal-overlay .ability-modal-close svg {
  width: 24px;
  stroke: #000;
}

.pokemon-list-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 999;
  display: none;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.pokemon-list-overlay.active {
  display: block;
  transform: translateY(0);
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.pokemon-list-overlay .pokemon-list-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 85vh;
  background-color: #fff;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pokemon-list-overlay .pokemon-list-header {
  padding: 12px 24px 8px 24px;
  border-bottom: 1px solid #eee;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pokemon-list-overlay .pokemon-list-header .drag-handle {
  width: 40px;
  height: 5px;
  background-color: #ccc;
  border-radius: 3px;
  margin-bottom: 8px;
  cursor: grab;
}
.pokemon-list-overlay .pokemon-list-header .header-main {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pokemon-list-overlay .pokemon-list-header .header-main h2 {
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #222;
  margin: 0;
}
.pokemon-list-overlay .pokemon-list-header .header-main .close-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #666;
  border-radius: 50%;
  transition: background 0.2s;
}
.pokemon-list-overlay .pokemon-list-header .header-main .close-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.pokemon-list-overlay .pokemon-list-header .header-main .close-btn:hover {
  background-color: #eee;
}
.pokemon-list-overlay .pokemon-list-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.pokemon-list-overlay .pokemon-list-content .pokemon-card {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pokemon-list-overlay .pokemon-list-content .pokemon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: #f1f3f5;
}
.pokemon-list-overlay .pokemon-list-content .pokemon-card:active {
  transform: translateY(0) scale(0.96);
}
.pokemon-list-overlay .pokemon-list-content .pokemon-card .card-number {
  font-family: "Google Sans Code", monospace;
  font-size: 0.75rem;
  color: #868e96;
  margin-bottom: 4px;
}
.pokemon-list-overlay .pokemon-list-content .pokemon-card img {
  width: 56px;
  height: 56px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 6px;
}
.pokemon-list-overlay .pokemon-list-content .pokemon-card .card-name {
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #212529;
  text-align: center;
  word-break: break-all;
}

.pokemonlist-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: none;
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pokemonlist-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.pokemonlist {
  position: fixed;
  left: 50%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 480px);
  height: calc(100% - 1rem);
  background-color: #f5f5f5;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -4px 2rem -1rem rgba(0, 0, 0, 0.6666666667);
  z-index: 99999;
  padding-top: 120px;
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pokemonlist.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.pokemonlist .pokemonlist_drag_handle {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 56px;
  height: 4px;
  background-color: #ccc;
  border-radius: 2px;
  cursor: grab;
  flex-shrink: 0;
  z-index: 20;
}
.pokemonlist .pokemonlist_drag_handle:active {
  cursor: grabbing;
}
.pokemonlist .pokemonlist_header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background-color: #f5f5f5;
  border-radius: 32px 32px 0 0;
  padding: 20px 16px 10px;
  border-bottom: 1px solid #e2e2e2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 15;
}
.pokemonlist .pokemonlist_header p.ttl {
  font-size: 1.2rem;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.2;
}
.pokemonlist .pokemonlist_header .list_tabs {
  display: flex;
  background-color: #e6e6e6;
  padding: 3px;
  border-radius: 12px;
  gap: 4px;
  margin-top: 10px;
}
.pokemonlist .pokemonlist_header .list_tabs .list_tab {
  flex: 1;
  border: none;
  background-color: transparent;
  padding: 6px 12px;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pokemonlist .pokemonlist_header .list_tabs .list_tab.active {
  background-color: #fff;
  color: #e74c3c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.pokemonlist .pokemonlist_header .list_tabs .list_tab:active {
  opacity: 0.8;
}
.pokemonlist button.pokemonlist_close {
  position: absolute;
  right: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.0666666667), 0 8px 24px -8px rgba(0, 0, 0, 0.2666666667);
  border: none;
  cursor: pointer;
}
.pokemonlist button.pokemonlist_close svg {
  display: block;
  width: 18px;
  stroke: #000;
  stroke-width: 2;
}
.pokemonlist .list_slides_wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.pokemonlist .list_slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.pokemonlist .list_slides .list_slide {
  width: 33.3333%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pokemonlist .pokemonlist_filter {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background-color: #f5f5f5;
  z-index: 5;
}
.pokemonlist .pokemonlist_filter .list_search_wrapper {
  flex: 1;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pokemonlist .pokemonlist_filter .list_search_wrapper.is-pressing {
  transform: scale(0.97);
}
.pokemonlist .pokemonlist_filter .list_search_wrapper input {
  width: 100%;
  padding: 0 12px;
  padding-right: 36px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 20px 6px 6px 6px;
  font-size: 0.9rem;
  outline: none;
  font-family: "LINE Seed JP", sans-serif;
  background-color: #fff;
  transition: border-color 0.2s;
}
.pokemonlist .pokemonlist_filter .list_search_wrapper input:focus {
  border-color: #27a;
}
.pokemonlist .pokemonlist_filter select {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  background-color: #fff;
  font-family: "LINE Seed JP", sans-serif;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pokemonlist .pokemonlist_filter button.list_order_btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px 6px 20px 6px;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.pokemonlist .pokemonlist_filter button.list_order_btn svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: #555;
}
.pokemonlist .pokemonlist_filter button.list_order_btn:active {
  background-color: #f0f0f0;
}
.pokemonlist .pokemonlist_container,
.pokemonlist .movelist_container,
.pokemonlist .abilitylist_container {
  flex: 1;
  overflow-y: auto;
  width: 100%;
  padding-bottom: 3rem;
  -webkit-overflow-scrolling: touch;
}
.pokemonlist .pokemonlist_container .pokemonlist_item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 88px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.pokemonlist .pokemonlist_container .pokemonlist_item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 0.5px;
  background-color: #ddd;
}
.pokemonlist .pokemonlist_container .pokemonlist_item:last-child::after {
  display: none;
}
.pokemonlist .pokemonlist_container .pokemonlist_item:active {
  background-color: #eaeaea;
}
.pokemonlist .pokemonlist_container .pokemonlist_item img {
  display: block;
  width: 64px;
  height: 64px;
  margin-inline: 6px;
}
.pokemonlist .pokemonlist_container .pokemonlist_item .info {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 156px;
}
.pokemonlist .pokemonlist_container .pokemonlist_item .info p.name {
  display: block;
  width: 100%;
  font-size: 1.1rem;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pokemonlist .pokemonlist_container .pokemonlist_item .info .types {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.pokemonlist .pokemonlist_container .pokemonlist_item .info .types p.type-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px 1px 1px;
  border-radius: 4px;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}
.pokemonlist .pokemonlist_container .pokemonlist_item .info .types p.type-badge svg {
  display: block;
  width: 18px;
  height: 18px;
}
.pokemonlist .pokemonlist_container .pokemonlist_item .info .types p.type-badge span {
  display: inline;
  font-size: 0.7rem;
  white-space: nowrap;
}
.pokemonlist .pokemonlist_container .pokemonlist_item p.stats {
  display: block;
  font-size: 0.9rem;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  color: #444;
  text-align: right;
  line-height: 1.5;
  scale: 0.9 1;
  margin-left: auto;
}
.pokemonlist .movelist_container .movelist_item,
.pokemonlist .abilitylist_container .movelist_item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
}
.pokemonlist .movelist_container .movelist_item::after,
.pokemonlist .abilitylist_container .movelist_item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 0.5px;
  background-color: #ddd;
}
.pokemonlist .movelist_container .movelist_item:last-child::after,
.pokemonlist .abilitylist_container .movelist_item:last-child::after {
  display: none;
}
.pokemonlist .movelist_container .movelist_item .move_header,
.pokemonlist .abilitylist_container .movelist_item .move_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.pokemonlist .movelist_container .movelist_item .move_header .move_name,
.pokemonlist .abilitylist_container .movelist_item .move_header .move_name {
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
}
.pokemonlist .movelist_container .movelist_item .move_header .move_badges,
.pokemonlist .abilitylist_container .movelist_item .move_header .move_badges {
  display: flex;
  gap: 6px;
}
.pokemonlist .movelist_container .movelist_item .move_header .move_badges .type-badge,
.pokemonlist .abilitylist_container .movelist_item .move_header .move_badges .type-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px 2px 2px;
  border-radius: 4px;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}
.pokemonlist .movelist_container .movelist_item .move_header .move_badges .type-badge svg,
.pokemonlist .abilitylist_container .movelist_item .move_header .move_badges .type-badge svg {
  display: block;
  width: 16px;
  height: 16px;
}
.pokemonlist .movelist_container .movelist_item .move_header .move_badges .category-badge,
.pokemonlist .abilitylist_container .movelist_item .move_header .move_badges .category-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 4px;
  border-radius: 4px;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #555;
  background-color: #e8e8e8;
  line-height: 1;
}
.pokemonlist .movelist_container .movelist_item .move_header .move_badges .category-badge svg,
.pokemonlist .abilitylist_container .movelist_item .move_header .move_badges .category-badge svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: #555;
}
.pokemonlist .movelist_container .movelist_item .move_stats,
.pokemonlist .abilitylist_container .movelist_item .move_stats {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 6px;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.2;
}
.pokemonlist .movelist_container .movelist_item .move_stats span strong,
.pokemonlist .abilitylist_container .movelist_item .move_stats span strong {
  color: #333;
  font-weight: 600;
  margin-left: 2px;
}
.pokemonlist .movelist_container .movelist_item .move_effect,
.pokemonlist .abilitylist_container .movelist_item .move_effect {
  margin-top: 6px;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
}
.pokemonlist .movelist_container .movelist_item .move_footer,
.pokemonlist .abilitylist_container .movelist_item .move_footer {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: "LINE Seed JP", sans-serif;
  font-size: 0.75rem;
  color: #888;
}
.pokemonlist .movelist_container .movelist_item .move_footer .move_target,
.pokemonlist .abilitylist_container .movelist_item .move_footer .move_target {
  background-color: #e8e8e8;
  padding: 1px 6px;
  border-radius: 4px;
}
.pokemonlist .movelist_container .movelist_item .move_footer .move_remarks,
.pokemonlist .abilitylist_container .movelist_item .move_footer .move_remarks {
  color: #e74c3c;
  font-weight: 700;
}
.pokemonlist .movelist_container span.line,
.pokemonlist .abilitylist_container span.line {
  display: block;
  width: 80%;
  height: 0.5px;
  background-color: #ddd;
  margin: 12px auto;
}
.pokemonlist .abilitylist_container .ability_item_clickable {
  transition: background-color 0.15s;
}
.pokemonlist .abilitylist_container .ability_item_clickable:active {
  background-color: #eaeaea;
}
@media (hover: hover) {
  .pokemonlist .abilitylist_container .ability_item_clickable:hover {
    background-color: #f0f0f0;
  }
}
.pokemonlist .abilitylist_container .ability_to_list_btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #aaa;
  transition: color 0.15s, background-color 0.15s;
}
.pokemonlist .abilitylist_container .ability_to_list_btn svg {
  display: block;
}

.fab_open_pokemonlist {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #e74c3c;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 99;
  touch-action: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
  .fab_open_pokemonlist:hover {
    background-color: #d64030;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
  }
}
.fab_open_pokemonlist:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}
.fab_open_pokemonlist svg {
  width: 32px;
  height: 32px;
  display: block;
  pointer-events: none;
}

@keyframes suggest-appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.searchbox_suggest_box {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.3333333333);
  border: 1px solid #ccc;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  box-shadow: 0 4px 1.5rem rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-height: 200px;
  overflow-y: auto;
  animation: suggest-appear 0.18s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.searchbox_suggest_box.keyboard-mode {
  width: min(480px, 92vw) !important;
}
.searchbox_suggest_box.suggestions_list {
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
}
.searchbox_suggest_box.suggestions_list .suggestion_item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  min-height: 48px;
  line-height: 1.5;
}
.searchbox_suggest_box.suggestions_list .suggestion_item:last-child {
  border-bottom: none;
}
.searchbox_suggest_box.suggestions_list .suggestion_item.selected, .searchbox_suggest_box.suggestions_list .suggestion_item:hover {
  background-color: rgba(245, 245, 245, 0.3333333333);
  backdrop-filter: blur(4px);
}
.searchbox_suggest_box.suggestions_list .suggestion_item img {
  width: 32px;
  height: 32px;
  -o-object-fit: contain;
     object-fit: contain;
}
.searchbox_suggest_box.suggestions_list .suggestion_item span {
  font-size: 1rem;
  font-family: sans-serif;
  font-weight: 500;
  color: #333;
}
.searchbox_suggest_box.suggest_types {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 32px;
  gap: 6px;
  padding: 8px;
  max-height: none;
}
.searchbox_suggest_box.suggest_types .suggest_item {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s ease;
  padding: 4px;
}
.searchbox_suggest_box.suggest_types .suggest_item svg {
  display: block;
  width: 100%;
  height: 100%;
}
.searchbox_suggest_box.suggest_types .suggest_item.selected, .searchbox_suggest_box.suggest_types .suggest_item:hover {
  transform: scale(1.08);
}
.searchbox_suggest_box.suggest_list {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.searchbox_suggest_box.suggest_list .suggest_item {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: "LINE Seed JP", sans-serif;
  color: #333;
  cursor: pointer;
  transition: background-color 0.1s, color 0.1s;
  min-height: 36px;
  line-height: 1.5;
}
.searchbox_suggest_box.suggest_list .suggest_item.selected, .searchbox_suggest_box.suggest_list .suggest_item:hover {
  background-color: #f5f5f5;
  color: #a02020;
  font-weight: 700;
}