:root {
  --bg: #14130f;
  --bg-soft: #211e16;
  --text: #f7ead3;
  --text-strong: #fff3df;
  --muted: rgba(255, 232, 194, 0.7);
  --line: rgba(255, 236, 200, 0.2);
  --amber: #f59e0b;
  --focus: #fcd34d;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gf-page {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.gf-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.gf-bg-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 0%, rgba(217, 148, 45, 0.16), transparent 34%),
    linear-gradient(rgba(255, 236, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 236, 200, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.gf-bg-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.35));
}

.gf-bg-log {
  position: absolute;
  right: 20px;
  top: 112px;
  text-align: right;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(254, 243, 199, 0.11);
  display: none;
}

.gf-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(254, 243, 199, 0.08);
}

.gf-ring-lg { right: -80px; top: 160px; width: 208px; height: 208px; }
.gf-ring-sm { right: -40px; top: 208px; width: 112px; height: 112px; }

.gf-shell {
  position: relative;
  margin: 0 auto;
  width: min(100%, 520px);
  min-height: 100vh;
  padding: 12px clamp(10px, 4vw, 16px) 32px;
}

.gf-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 calc(-1 * clamp(10px, 4vw, 16px));
  padding: 12px clamp(10px, 4vw, 16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(20, 19, 15, 0.92);
  border-bottom: 1px solid rgba(254, 243, 199, 0.16);
  backdrop-filter: blur(8px);
}

.gf-brand-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gf-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(245, 158, 11, 0.7);
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  flex: 0 0 auto;
}

.gf-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gf-brand-title {
  font-size: clamp(1rem, 5.2vw, 1.45rem);
  font-weight: 900;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-lang {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(254, 243, 199, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-strong);
  font-size: clamp(0.86rem, 4vw, 1rem);
  font-weight: 700;
  padding: 0 clamp(8px, 3.2vw, 14px);
}

.gf-hero {
  padding-top: 32px;
  display: flex;
  gap: clamp(12px, 4vw, 20px);
  min-width: 0;
}

.gf-hero > div,
.gf-content-card,
.ranking-hit-card,
.ranking-card,
.move-card,
.feature-tile {
  min-width: 0;
}

.gf-hero-bar {
  margin-top: 8px;
  width: 4px;
  border-radius: 999px;
  background: var(--amber);
  flex: 0 0 4px;
}

.gf-hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.8rem, 9vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 3vw, 14px);
  min-width: 0;
}

.hero-title-row h1 {
  min-width: 0;
  flex: 0 1 auto;
}

.gf-hero p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 4.4vw, 1.1rem);
  line-height: 1.7;
}

.hero-tags {
  margin-top: 14px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badge-hint {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 620px);
  margin: 0 0 14px;
  border: 1px solid rgba(252, 211, 77, 0.28);
  border-radius: 8px;
  background: rgba(252, 211, 77, 0.08);
  color: rgba(255, 243, 223, 0.82);
  font-size: clamp(0.78rem, 3.5vw, 0.92rem);
  font-weight: 700;
  line-height: 1.45;
  padding: 8px 10px;
}

.hero-unreleased-note {
  display: grid;
  gap: 4px;
  width: min(100%, 620px);
  margin: 0 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: rgba(255, 243, 223, 0.82);
  font-size: clamp(0.78rem, 3.5vw, 0.92rem);
  font-weight: 700;
  line-height: 1.45;
  padding: 9px 10px;
}

.hero-unreleased-note strong {
  color: var(--text-strong);
  font-size: 0.94rem;
}

.hero-badge-help {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border: 1px solid rgba(252, 211, 77, 0.44);
  border-radius: 999px;
  background: rgba(20, 19, 15, 0.68);
  color: #fde68a;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.hero-badge-help:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hero-badge-tutorial {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  border: 1px solid rgba(252, 211, 77, 0.34);
  border-radius: 8px;
  background: rgba(20, 19, 15, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  color: var(--text);
  padding: 12px;
}

.hero-badge-tutorial strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.hero-badge-tutorial p {
  margin: 0;
  color: rgba(255, 232, 194, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
}

.quick-nav-return-wrap {
  position: fixed;
  right: 0;
  top: 78.6vh;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transform: translateY(-50%);
}

.quick-nav-return {
  pointer-events: auto;
  width: 34px;
  min-width: 34px;
  height: 46px;
  border: 1px solid rgba(252, 211, 77, 0.42);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: rgba(20, 19, 15, 0.9);
  color: #fde68a;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.quick-nav-return:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.quick-nav-return-hint {
  position: relative;
  max-width: min(78vw, 340px);
  border: 1px solid rgba(252, 211, 77, 0.36);
  border-radius: 10px;
  background: rgba(20, 19, 15, 0.96);
  color: var(--text-strong);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  font-size: clamp(0.9rem, 3.8vw, 1.05rem);
  font-weight: 800;
  line-height: 1.42;
  opacity: 0;
  padding: 11px 13px;
  transform: translateX(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.quick-nav-return-hint::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(252, 211, 77, 0.36);
  border-right: 1px solid rgba(252, 211, 77, 0.36);
  background: rgba(20, 19, 15, 0.96);
  transform: translateY(-50%) rotate(45deg);
}

.quick-nav-return-hint.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(254, 243, 199, 0.25);
  padding: 5px clamp(9px, 2.8vw, 12px);
  font-size: clamp(0.76rem, 3.5vw, 0.9rem);
  font-weight: 800;
}

.hero-tag-raid {
  background: rgba(194, 65, 12, 0.28);
  border-color: rgba(251, 146, 60, 0.45);
  color: #fed7aa;
}

.hero-tag-raid,
.hero-tag-overall,
.hero-tag-neutral,
.hero-tag-negative {
  min-height: 42px;
  padding: 7px clamp(12px, 3.4vw, 16px);
  font-size: clamp(0.9rem, 4vw, 1.08rem);
  font-weight: 900;
}

.hero-tag-overall {
  background: rgba(14, 116, 144, 0.3);
  border-color: rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

.hero-tag-neutral {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(203, 213, 225, 0.38);
  color: #e2e8f0;
}

.hero-tag-negative {
  background: rgba(185, 28, 28, 0.3);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.12) inset;
}

.hero-tag-type {
  background: rgba(74, 65, 42, 0.34);
  border-color: rgba(252, 211, 77, 0.42);
  color: #fde68a;
}

.hero-tag-type-psychic { background: rgba(217, 70, 239, 0.38); border-color: rgba(232, 121, 249, 0.55); color: #fae8ff; }
.hero-tag-type-fighting { background: rgba(234, 88, 12, 0.36); border-color: rgba(251, 146, 60, 0.55); color: #ffedd5; }
.hero-tag-type-steel { background: rgba(100, 116, 139, 0.42); border-color: rgba(148, 163, 184, 0.55); color: #f1f5f9; }
.hero-tag-type-fire { background: rgba(220, 38, 38, 0.35); border-color: rgba(248, 113, 113, 0.52); color: #fee2e2; }
.hero-tag-type-flying { background: rgba(59, 130, 246, 0.3); border-color: rgba(125, 211, 252, 0.5); color: #e0f2fe; }
.hero-tag-type-dragon { background: rgba(109, 40, 217, 0.38); border-color: rgba(167, 139, 250, 0.55); color: #ede9fe; }
.hero-tag-type-ghost { background: rgba(88, 28, 135, 0.45); border-color: rgba(196, 181, 253, 0.45); color: #f3e8ff; }
.hero-tag-type-electric { background: rgba(202, 138, 4, 0.4); border-color: rgba(250, 204, 21, 0.55); color: #fef9c3; }
.hero-tag-type-water { background: rgba(3, 105, 161, 0.38); border-color: rgba(56, 189, 248, 0.5); color: #e0f2fe; }
.hero-tag-type-grass { background: rgba(22, 163, 74, 0.35); border-color: rgba(74, 222, 128, 0.52); color: #dcfce7; }
.hero-tag-type-ground { background: rgba(146, 64, 14, 0.42); border-color: rgba(217, 119, 6, 0.58); color: #ffedd5; }
.hero-tag-type-rock { background: rgba(120, 53, 15, 0.4); border-color: rgba(180, 83, 9, 0.58); color: #fef3c7; }
.hero-tag-type-ice { background: rgba(8, 145, 178, 0.35); border-color: rgba(103, 232, 249, 0.55); color: #ecfeff; }
.hero-tag-type-bug { background: rgba(101, 163, 13, 0.42); border-color: rgba(163, 230, 53, 0.52); color: #f7fee7; }
.hero-tag-type-poison { background: rgba(126, 34, 206, 0.4); border-color: rgba(192, 132, 252, 0.55); color: #f3e8ff; }
.hero-tag-type-fairy { background: rgba(190, 24, 93, 0.3); border-color: rgba(244, 114, 182, 0.52); color: #fce7f3; }
.hero-tag-type-dark { background: rgba(55, 65, 81, 0.45); border-color: rgba(156, 163, 175, 0.5); color: #f3f4f6; }
.hero-tag-type-normal { background: rgba(120, 113, 108, 0.42); border-color: rgba(168, 162, 158, 0.52); color: #fafaf9; }

.hero-build-list {
  display: grid;
  gap: 10px;
}

.hero-best-build {
  width: min(100%, 620px);
}

.hero-raid-info {
  margin-top: 10px;
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(14, 116, 144, 0.12);
}

.hero-jump-highlight {
  border-color: rgba(252, 211, 77, 0.9);
  background:
    linear-gradient(135deg, rgba(252, 211, 77, 0.14), rgba(14, 116, 144, 0.1)),
    rgba(18, 16, 12, 0.9);
  box-shadow:
    0 0 0 2px rgba(252, 211, 77, 0.2) inset,
    0 0 0 1px rgba(252, 211, 77, 0.42),
    0 18px 38px rgba(0, 0, 0, 0.34);
  animation: hero-jump-flash 720ms ease-out;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

@keyframes hero-jump-flash {
  0% {
    border-color: rgba(252, 211, 77, 1);
    background: #facc15;
    box-shadow:
      0 0 0 3px rgba(252, 211, 77, 0.72) inset,
      0 0 0 2px rgba(252, 211, 77, 0.9),
      0 0 46px rgba(252, 211, 77, 0.78);
  }
  55% {
    border-color: rgba(252, 211, 77, 1);
    background: rgba(252, 211, 77, 0.42);
    box-shadow:
      0 0 0 3px rgba(252, 211, 77, 0.48) inset,
      0 0 0 2px rgba(252, 211, 77, 0.72),
      0 0 34px rgba(252, 211, 77, 0.5);
  }
  100% {
    border-color: rgba(252, 211, 77, 0.9);
    background:
      linear-gradient(135deg, rgba(252, 211, 77, 0.14), rgba(14, 116, 144, 0.1)),
      rgba(18, 16, 12, 0.9);
    box-shadow:
      0 0 0 2px rgba(252, 211, 77, 0.2) inset,
      0 0 0 1px rgba(252, 211, 77, 0.42),
      0 18px 38px rgba(0, 0, 0, 0.34);
  }
}

@media (max-width: 768px) {
  .hero-jump-highlight {
    border-color: rgba(250, 204, 21, 1);
    box-shadow:
      0 0 0 3px rgba(250, 204, 21, 0.34) inset,
      0 0 0 2px rgba(250, 204, 21, 0.72),
      0 18px 46px rgba(0, 0, 0, 0.42);
    animation: hero-jump-flash-mobile 1200ms ease-out;
  }

  @keyframes hero-jump-flash-mobile {
    0% {
      border-color: rgba(250, 204, 21, 1);
      background: #facc15;
      box-shadow:
        0 0 0 5px rgba(250, 204, 21, 0.9) inset,
        0 0 0 3px rgba(250, 204, 21, 0.96),
        0 0 58px rgba(250, 204, 21, 0.9);
    }
    45% {
      border-color: rgba(250, 204, 21, 1);
      background: rgba(250, 204, 21, 0.5);
      box-shadow:
        0 0 0 4px rgba(250, 204, 21, 0.58) inset,
        0 0 0 3px rgba(250, 204, 21, 0.82),
        0 0 42px rgba(250, 204, 21, 0.62);
    }
    100% {
      border-color: rgba(252, 211, 77, 0.95);
      background:
        linear-gradient(135deg, rgba(252, 211, 77, 0.18), rgba(14, 116, 144, 0.1)),
        rgba(18, 16, 12, 0.9);
      box-shadow:
        0 0 0 3px rgba(252, 211, 77, 0.28) inset,
        0 0 0 2px rgba(252, 211, 77, 0.52),
        0 18px 46px rgba(0, 0, 0, 0.42);
    }
  }
}

.hero-best-build-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: clamp(0.72rem, 3.4vw, 0.82rem);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-build-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.hero-best-rank {
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 116, 144, 0.24);
  color: #bae6fd;
  font-size: clamp(0.62rem, 2.8vw, 0.72rem);
  padding: 3px clamp(6px, 2.2vw, 8px);
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}

.hero-description-text {
  margin: 18px 0 0;
  max-width: 72ch;
}

.gf-search-card {
  margin-top: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(33, 30, 22, 0.86);
  padding: 8px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}

.gf-search-line {
  min-height: clamp(52px, 15vw, 70px);
  display: flex;
  align-items: center;
  gap: clamp(7px, 2.8vw, 12px);
  border-radius: clamp(12px, 4vw, 16px);
  border: 1px solid rgba(255, 236, 200, 0.35);
  background: #f4e5c7;
  padding: 0 clamp(10px, 4vw, 16px);
}

.gf-search-icon {
  color: #1c1917;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-weight: 900;
}

.gf-search-line input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1c1917;
  font-size: clamp(0.88rem, 4.2vw, 1.05rem);
  font-weight: 600;
}

.gf-search-line input::placeholder { color: rgba(41, 37, 36, 0.7); }

.gf-suggestions {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(254, 243, 199, 0.18);
  background: rgba(0, 0, 0, 0.18);
}

.gf-suggestion {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(254, 243, 199, 0.1);
  background: transparent;
  color: var(--text-strong);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
}

.gf-suggestion:last-child { border-bottom: 0; }
.gf-suggestion:hover { background: rgba(254, 243, 199, 0.05); }

.gf-suggestion-loading,
.gf-suggestion-empty {
  width: 100%;
  min-height: 62px;
  color: var(--text-strong);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gf-suggestion-loading strong {
  display: block;
  font-size: 0.95rem;
}

.gf-suggestion-loading span:not(.gf-loading-spinner),
.gf-suggestion-empty {
  color: rgba(254, 243, 199, 0.68);
  font-size: 0.86rem;
}

.gf-loading-spinner {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(254, 243, 199, 0.22);
  border-top-color: #facc15;
  animation: gf-spin 820ms linear infinite;
}

@keyframes gf-spin {
  to { transform: rotate(360deg); }
}

.gf-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(254, 243, 199, 0.1);
  background: linear-gradient(135deg, #57534e, #000);
  color: #fffbeb;
  font-weight: 900;
}

.gf-s-main strong { font-size: 1.05rem; }
.gf-s-main small { color: rgba(168, 162, 158, 1); font-family: monospace; }
.gf-s-tag {
  display: inline-block;
  margin-left: 8px;
  border-radius: 8px;
  border: 1px solid rgba(254, 243, 199, 0.12);
  background: rgba(254, 243, 199, 0.12);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(254, 243, 199, 0.9);
}

.gf-types { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.gf-type {
  border-radius: 8px;
  border: 1px solid rgba(168, 162, 158, 0.35);
  background: rgba(87, 83, 78, 0.42);
  color: #fffbeb;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
}

.gf-status {
  margin: 8px 4px 0;
  color: rgba(254, 243, 199, 0.6);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.gf-popular {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(254, 243, 199, 0.78);
}

.gf-popular strong { color: #fde68a; }

.gf-popular button {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(254, 243, 199, 0.2);
  background: rgba(254, 243, 199, 0.1);
  color: var(--text-strong);
  padding: 0 14px;
  cursor: pointer;
}

.gf-section { margin-top: 36px; }

.gf-section-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gf-section-bar span {
  width: 4px;
  height: 32px;
  border-radius: 999px;
  background: var(--amber);
}

.gf-section-bar h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 800;
}

.gf-cards {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.gf-card {
  min-height: 102px;
  border-radius: 16px;
  border: 1px solid rgba(254, 243, 199, 0.18);
  background: rgba(33, 30, 22, 0.82);
  padding: 12px;
  display: grid;
  grid-template-columns: clamp(42px, 13vw, 60px) minmax(0, 1fr) auto;
  gap: clamp(8px, 3vw, 12px);
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.gf-card:hover {
  border-color: rgba(252, 211, 77, 0.4);
  background: #292315;
}

.gf-card-with-links {
  text-decoration: none;
}

.gf-card-icon {
  width: clamp(42px, 13vw, 56px);
  height: clamp(42px, 13vw, 56px);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text-strong);
  font-size: clamp(1.1rem, 5vw, 1.6rem);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.gf-c1 { background: linear-gradient(135deg, #f59e0b, #a16207); }
.gf-c2 { background: linear-gradient(135deg, #c2410c, #7f1d1d); }
.gf-c3 { background: linear-gradient(135deg, #3f6212, #292524); }
.gf-c4 { background: linear-gradient(135deg, #a16207, #292524); }
.gf-c5 { background: linear-gradient(135deg, #44403c, #18181b); }
.gf-c6 { background: linear-gradient(135deg, #92400e, #171717); }

.gf-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1rem, 4.6vw, 1.3rem);
}

.gf-card-title-link {
  color: inherit;
  text-decoration: none;
}

.gf-card-title-link:hover {
  color: #fde68a;
}

.gf-card p {
  margin: 4px 0 0;
  color: rgba(254, 243, 199, 0.62);
  font-size: clamp(0.72rem, 3.4vw, 0.9rem);
}

.gf-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.gf-card-links a {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(252, 211, 77, 0.28);
  background: rgba(252, 211, 77, 0.08);
  color: #fde68a;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.gf-card-links a:hover {
  border-color: rgba(252, 211, 77, 0.54);
  background: rgba(252, 211, 77, 0.16);
}

.gf-card-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.gf-meta {
  border-radius: 10px;
  border: 1px solid rgba(254, 243, 199, 0.14);
  background: rgba(0, 0, 0, 0.12);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(252, 211, 77, 0.9);
}

.gf-arrow { font-size: 1.35rem; color: var(--text-strong); }

.gf-arrow-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.gf-arrow-link:hover {
  background: rgba(252, 211, 77, 0.12);
}

.gf-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(254, 243, 199, 0.16);
  padding-top: 22px;
  text-align: center;
  color: rgba(254, 243, 199, 0.5);
}

.gf-footer-line { font-size: 0.92rem; }
.gf-footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.86rem;
}
.gf-footer-links a {
  color: rgba(254, 243, 199, 0.72);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.gf-footer-links a:hover { color: var(--text-strong); }
.gf-footer p { margin-top: 10px; font-size: 0.75rem; color: rgba(254, 243, 199, 0.35); }

.legal-page {
  display: grid;
  gap: 26px;
  max-width: 820px;
}
.legal-page h2 { margin: 0; }
.legal-page h3 {
  margin: 10px 0 0;
  color: var(--text-strong);
}
.legal-page p {
  margin: 0;
  color: rgba(255, 248, 220, 0.86);
  line-height: 1.65;
}
.legal-note {
  color: rgba(254, 243, 199, 0.58);
  font-size: 0.92rem;
}
.lang-section {
  display: grid;
  gap: 14px;
}
.legal-page ul {
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 248, 220, 0.86);
  line-height: 1.6;
}
.legal-page a {
  color: var(--text-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

button, input, select, a { outline: none; }
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 2px var(--focus);
}

@media (min-width: 640px) {
  .gf-shell { padding-left: 20px; padding-right: 20px; }
  .gf-header { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .gf-bg-log { display: block; }
}

.gf-navlink {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(254, 243, 199, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-strong);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
}

.gf-flow {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  min-width: 0;
}

.gf-tab-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gf-tab-nav a {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(254, 243, 199, 0.2);
  background: rgba(254, 243, 199, 0.08);
  color: var(--text-strong);
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 700;
}

.gf-tab-nav a.active {
  border-color: rgba(254, 243, 199, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.gf-content-card {
  background: rgba(33, 30, 22, 0.82);
  border: 1px solid rgba(254, 243, 199, 0.16);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.gf-content-card h2,
.gf-content-card h3 {
  color: var(--text-strong);
}

.gf-content-card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.gf-content-card h3 { margin: 12px 0 8px; font-size: 0.95rem; }

.muted { color: rgba(254, 243, 199, 0.6); }
.placeholder { color: #f59e0b; font-style: italic; }

.table-wrap { width: 100%; overflow-x: hidden; }
.data-table, .ranking-table, .comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th, .ranking-table th, .comparison-table th,
.data-table td, .ranking-table td, .comparison-table td {
  border-bottom: 1px solid rgba(254, 243, 199, 0.12);
  text-align: left;
  vertical-align: top;
  padding: clamp(5px, 2vw, 9px);
  font-size: clamp(0.72rem, 3vw, 0.9rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table th, .ranking-table th, .comparison-table th {
  color: rgba(254, 243, 199, 0.88);
  background: rgba(0, 0, 0, 0.15);
}

.type-chart-wrap {
  overflow-x: auto;
}

.type-chart-table th:first-child,
.type-chart-table td:first-child {
  width: 22%;
}

.type-chart-table .type-badge {
  white-space: nowrap;
}

.type-chart-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.type-chart-more {
  color: #fecaca;
  font-weight: 900;
}

.type-chart-less {
  color: #bbf7d0;
  font-weight: 900;
}

.type-chart-neutral {
  color: rgba(254, 243, 199, 0.74);
  font-weight: 800;
}

code, pre {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  color: #fde68a;
}
pre {
  margin: 0;
  white-space: pre-wrap;
  border: 1px solid rgba(254, 243, 199, 0.14);
  border-radius: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.type-row, .chip-row, .move-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.type-badge, .chip, .move-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(254, 243, 199, 0.2);
  background: rgba(254, 243, 199, 0.09);
  color: var(--text);
  padding: 3px clamp(7px, 2.6vw, 10px);
  font-size: clamp(0.68rem, 3vw, 0.78rem);
  font-weight: 700;
}

.chip-link {
  text-decoration: none;
}

.chip-link:hover {
  border-color: rgba(252, 211, 77, 0.55);
  background: rgba(252, 211, 77, 0.14);
  color: var(--text-strong);
}

.evolution-flow {
  display: grid;
  gap: 10px;
}

.evolution-node {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(254, 243, 199, 0.18);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-strong);
  padding: 10px 12px;
  text-decoration: none;
}

.evolution-node.is-current {
  border-color: rgba(250, 204, 21, 0.52);
  background: rgba(202, 138, 4, 0.14);
}

.evolution-node strong {
  font-size: 1rem;
  line-height: 1.2;
}

.evolution-template {
  color: rgba(254, 243, 199, 0.5);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.evolution-current-badge,
.evolution-requirement-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: rgba(14, 116, 144, 0.2);
  color: #bae6fd;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.evolution-current-badge {
  border-color: rgba(250, 204, 21, 0.48);
  background: rgba(202, 138, 4, 0.22);
  color: #fde68a;
}

.evolution-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.evolution-arrow {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: rgba(254, 243, 199, 0.72);
  font-weight: 900;
}

.evolution-step-body {
  display: grid;
  gap: 6px;
  border-left: 1px dashed rgba(254, 243, 199, 0.26);
  padding-left: 10px;
}

.evolution-step-label {
  color: rgba(254, 243, 199, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.evolution-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.hero-type-row {
  margin-top: 0;
  margin-bottom: 0;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.hero-type-row .type-badge {
  min-height: clamp(28px, 8vw, 34px);
  padding: 5px clamp(8px, 2.6vw, 12px);
  font-size: clamp(0.68rem, 3vw, 0.86rem);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16) inset;
}

.hero-type-row .type-psychic { background: rgba(217, 70, 239, 0.38); border-color: rgba(232, 121, 249, 0.55); color: #fae8ff; }
.hero-type-row .type-fighting { background: rgba(234, 88, 12, 0.36); border-color: rgba(251, 146, 60, 0.55); color: #ffedd5; }
.hero-type-row .type-steel { background: rgba(100, 116, 139, 0.42); border-color: rgba(148, 163, 184, 0.55); color: #f1f5f9; }
.hero-type-row .type-fire { background: rgba(220, 38, 38, 0.35); border-color: rgba(248, 113, 113, 0.52); color: #fee2e2; }
.hero-type-row .type-flying { background: rgba(59, 130, 246, 0.3); border-color: rgba(125, 211, 252, 0.5); color: #e0f2fe; }
.hero-type-row .type-dragon { background: rgba(109, 40, 217, 0.38); border-color: rgba(167, 139, 250, 0.55); color: #ede9fe; }
.hero-type-row .type-ghost { background: rgba(88, 28, 135, 0.45); border-color: rgba(196, 181, 253, 0.45); color: #f3e8ff; }
.hero-type-row .type-electric { background: rgba(202, 138, 4, 0.4); border-color: rgba(250, 204, 21, 0.55); color: #fef9c3; }
.hero-type-row .type-water { background: rgba(3, 105, 161, 0.38); border-color: rgba(56, 189, 248, 0.5); color: #e0f2fe; }
.hero-type-row .type-grass { background: rgba(22, 163, 74, 0.35); border-color: rgba(74, 222, 128, 0.52); color: #dcfce7; }
.hero-type-row .type-ground { background: rgba(146, 64, 14, 0.42); border-color: rgba(217, 119, 6, 0.58); color: #ffedd5; }
.hero-type-row .type-rock { background: rgba(120, 53, 15, 0.4); border-color: rgba(180, 83, 9, 0.58); color: #fef3c7; }
.hero-type-row .type-ice { background: rgba(8, 145, 178, 0.35); border-color: rgba(103, 232, 249, 0.55); color: #ecfeff; }
.hero-type-row .type-bug { background: rgba(101, 163, 13, 0.42); border-color: rgba(163, 230, 53, 0.52); color: #f7fee7; }
.hero-type-row .type-poison { background: rgba(126, 34, 206, 0.4); border-color: rgba(192, 132, 252, 0.55); color: #f3e8ff; }
.hero-type-row .type-fairy { background: rgba(190, 24, 93, 0.3); border-color: rgba(244, 114, 182, 0.52); color: #fce7f3; }
.hero-type-row .type-dark { background: rgba(55, 65, 81, 0.45); border-color: rgba(156, 163, 175, 0.5); color: #f3f4f6; }
.hero-type-row .type-normal { background: rgba(120, 113, 108, 0.42); border-color: rgba(168, 162, 158, 0.52); color: #fafaf9; }

.type-chart-table .type-psychic,
.type-effectiveness-grid .type-psychic { background: rgba(217, 70, 239, 0.38); border-color: rgba(232, 121, 249, 0.55); color: #fae8ff; }
.type-chart-table .type-fighting,
.type-effectiveness-grid .type-fighting { background: rgba(234, 88, 12, 0.36); border-color: rgba(251, 146, 60, 0.55); color: #ffedd5; }
.type-chart-table .type-steel,
.type-effectiveness-grid .type-steel { background: rgba(100, 116, 139, 0.42); border-color: rgba(148, 163, 184, 0.55); color: #f1f5f9; }
.type-chart-table .type-fire,
.type-effectiveness-grid .type-fire { background: rgba(220, 38, 38, 0.35); border-color: rgba(248, 113, 113, 0.52); color: #fee2e2; }
.type-chart-table .type-flying,
.type-effectiveness-grid .type-flying { background: rgba(59, 130, 246, 0.3); border-color: rgba(125, 211, 252, 0.5); color: #e0f2fe; }
.type-chart-table .type-dragon,
.type-effectiveness-grid .type-dragon { background: rgba(109, 40, 217, 0.38); border-color: rgba(167, 139, 250, 0.55); color: #ede9fe; }
.type-chart-table .type-ghost,
.type-effectiveness-grid .type-ghost { background: rgba(88, 28, 135, 0.45); border-color: rgba(196, 181, 253, 0.45); color: #f3e8ff; }
.type-chart-table .type-electric,
.type-effectiveness-grid .type-electric { background: rgba(202, 138, 4, 0.4); border-color: rgba(250, 204, 21, 0.55); color: #fef9c3; }
.type-chart-table .type-water,
.type-effectiveness-grid .type-water { background: rgba(3, 105, 161, 0.38); border-color: rgba(56, 189, 248, 0.5); color: #e0f2fe; }
.type-chart-table .type-grass,
.type-effectiveness-grid .type-grass { background: rgba(22, 163, 74, 0.35); border-color: rgba(74, 222, 128, 0.52); color: #dcfce7; }
.type-chart-table .type-ground,
.type-effectiveness-grid .type-ground { background: rgba(146, 64, 14, 0.42); border-color: rgba(217, 119, 6, 0.58); color: #ffedd5; }
.type-chart-table .type-rock,
.type-effectiveness-grid .type-rock { background: rgba(120, 53, 15, 0.4); border-color: rgba(180, 83, 9, 0.58); color: #fef3c7; }
.type-chart-table .type-ice,
.type-effectiveness-grid .type-ice { background: rgba(8, 145, 178, 0.35); border-color: rgba(103, 232, 249, 0.55); color: #ecfeff; }
.type-chart-table .type-bug,
.type-effectiveness-grid .type-bug { background: rgba(101, 163, 13, 0.42); border-color: rgba(163, 230, 53, 0.52); color: #f7fee7; }
.type-chart-table .type-poison,
.type-effectiveness-grid .type-poison { background: rgba(126, 34, 206, 0.4); border-color: rgba(192, 132, 252, 0.55); color: #f3e8ff; }
.type-chart-table .type-fairy,
.type-effectiveness-grid .type-fairy { background: rgba(190, 24, 93, 0.3); border-color: rgba(244, 114, 182, 0.52); color: #fce7f3; }
.type-chart-table .type-dark,
.type-effectiveness-grid .type-dark { background: rgba(55, 65, 81, 0.45); border-color: rgba(156, 163, 175, 0.5); color: #f3f4f6; }
.type-chart-table .type-normal,
.type-effectiveness-grid .type-normal { background: rgba(120, 113, 108, 0.42); border-color: rgba(168, 162, 158, 0.52); color: #fafaf9; }

.type-badge.type-psychic { background: rgba(217, 70, 239, 0.38); border-color: rgba(232, 121, 249, 0.55); color: #fae8ff; }
.type-badge.type-fighting { background: rgba(234, 88, 12, 0.36); border-color: rgba(251, 146, 60, 0.55); color: #ffedd5; }
.type-badge.type-steel { background: rgba(100, 116, 139, 0.42); border-color: rgba(148, 163, 184, 0.55); color: #f1f5f9; }
.type-badge.type-fire { background: rgba(220, 38, 38, 0.35); border-color: rgba(248, 113, 113, 0.52); color: #fee2e2; }
.type-badge.type-flying { background: rgba(59, 130, 246, 0.3); border-color: rgba(125, 211, 252, 0.5); color: #e0f2fe; }
.type-badge.type-dragon { background: rgba(109, 40, 217, 0.38); border-color: rgba(167, 139, 250, 0.55); color: #ede9fe; }
.type-badge.type-ghost { background: rgba(88, 28, 135, 0.45); border-color: rgba(196, 181, 253, 0.45); color: #f3e8ff; }
.type-badge.type-electric { background: rgba(202, 138, 4, 0.4); border-color: rgba(250, 204, 21, 0.55); color: #fef9c3; }
.type-badge.type-water { background: rgba(3, 105, 161, 0.38); border-color: rgba(56, 189, 248, 0.5); color: #e0f2fe; }
.type-badge.type-grass { background: rgba(22, 163, 74, 0.35); border-color: rgba(74, 222, 128, 0.52); color: #dcfce7; }
.type-badge.type-ground { background: rgba(146, 64, 14, 0.42); border-color: rgba(217, 119, 6, 0.58); color: #ffedd5; }
.type-badge.type-rock { background: rgba(120, 53, 15, 0.4); border-color: rgba(180, 83, 9, 0.58); color: #fef3c7; }
.type-badge.type-ice { background: rgba(8, 145, 178, 0.35); border-color: rgba(103, 232, 249, 0.55); color: #ecfeff; }
.type-badge.type-bug { background: rgba(101, 163, 13, 0.42); border-color: rgba(163, 230, 53, 0.52); color: #f7fee7; }
.type-badge.type-poison { background: rgba(126, 34, 206, 0.4); border-color: rgba(192, 132, 252, 0.55); color: #f3e8ff; }
.type-badge.type-fairy { background: rgba(190, 24, 93, 0.3); border-color: rgba(244, 114, 182, 0.52); color: #fce7f3; }
.type-badge.type-dark { background: rgba(55, 65, 81, 0.45); border-color: rgba(156, 163, 175, 0.5); color: #f3f4f6; }
.type-badge.type-normal { background: rgba(120, 113, 108, 0.42); border-color: rgba(168, 162, 158, 0.52); color: #fafaf9; }

.ranking-hit-grid, .ranking-cards, .ranking-groups, .move-grid, .feature-grid, .type-effectiveness-grid, .move-list-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

[data-ranking-card][hidden] {
  display: none;
}

.ranking-filter-panel {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.ranking-filter-panel label {
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.ranking-filter-panel input,
.ranking-filter-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(254, 243, 199, 0.24);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text-strong);
  padding: 8px 12px;
  font: inherit;
}

.ranking-filter-panel input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: #facc15;
}

.ranking-checkbox-filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  color: var(--text-strong);
  cursor: pointer;
}

.ranking-filter-panel input::placeholder {
  color: rgba(254, 243, 199, 0.5);
}

.ranking-filter-panel input:focus-visible,
.ranking-filter-panel select:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 2px;
}

.ranking-filter-status {
  min-height: 18px;
  color: rgba(254, 243, 199, 0.62);
  font-size: 0.76rem;
}

.ranking-filter-empty {
  margin: 10px 0 0;
}

.ranking-groups > section,
.ranking-hit-grid > *,
.ranking-cards > *,
.move-grid > *,
.feature-grid > *,
.type-effectiveness-grid > *,
.move-list-grid > * {
  min-width: 0;
}

.ranking-hit-card, .ranking-card, .move-card, .best-grid > div, .kpi, .feature-tile, .type-effectiveness-card, .move-list-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(254, 243, 199, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  padding: clamp(7px, 2.8vw, 10px);
}

.type-effectiveness-card h2 {
  margin: 0 0 10px;
}

.type-effectiveness-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.move-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.move-list-head strong {
  color: var(--text-strong);
  font-size: clamp(0.98rem, 4.2vw, 1.12rem);
  min-width: 0;
  overflow-wrap: anywhere;
}

.move-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.move-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.18);
  color: #bae6fd;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.move-list-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.move-list-stats h3 {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.move-list-card .meta-row > * {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.ranking-hit-card a, .ranking-card strong, .ranking-link-item a {
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 800;
}

.ranking-title-inline {
  color: var(--text-strong);
  font-weight: 800;
}

.rank-head {
  margin: 4px 0 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.rank-weather-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.rank-weather-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(224, 242, 254, 0.82);
  text-transform: uppercase;
}

.rank-weather-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.ranking-weather-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.48);
  background: rgba(2, 132, 199, 0.24);
  color: #e0f2fe;
  padding: 2px clamp(6px, 2.4vw, 9px);
  font-size: clamp(0.58rem, 2.8vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.inline-weather-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.ranking-dodge-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(254, 243, 199, 0.32);
  padding: 2px clamp(6px, 2.4vw, 9px);
  font-size: clamp(0.58rem, 2.8vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 6px;
}

.ranking-dodge-none {
  background: rgba(185, 28, 28, 0.24);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.ranking-dodge-yes {
  background: rgba(22, 163, 74, 0.22);
  border-color: rgba(74, 222, 128, 0.48);
  color: #dcfce7;
}

.meta-row {
  display: grid;
  grid-template-columns: minmax(72px, 32%) minmax(0, 1fr);
  gap: clamp(3px, 1.6vw, 6px);
  font-size: clamp(0.72rem, 3.4vw, 0.85rem);
  min-width: 0;
}

.meta-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-row.dodge-rate-row > * {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.ranking-hit-card .meta-row {
  font-size: clamp(0.86rem, 3.9vw, 1rem);
}

.ranking-hit-card .meta-row span:last-child {
  color: var(--text-strong);
  font-weight: 700;
}

.move-pair-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 8px 0 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.move-slot {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.move-role-label {
  color: rgba(254, 243, 199, 0.62);
  font-size: clamp(0.62rem, 2.8vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.move-box {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 1.4vw, 6px);
  min-height: clamp(32px, 10vw, 42px);
  border-radius: clamp(8px, 3vw, 12px);
  border: 1px solid rgba(254, 243, 199, 0.28);
  padding: clamp(5px, 2.2vw, 8px) clamp(5px, 2.6vw, 10px);
  font-size: clamp(0.72rem, 4.2vw, 1.1rem);
  font-weight: 900;
  line-height: 1.1;
  white-space: normal;
  overflow: visible;
}

.move-box-label {
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

.move-box .move-elite-badge {
  flex: 0 0 auto;
}

.move-box.type-psychic { background: rgba(217, 70, 239, 0.38); border-color: rgba(232, 121, 249, 0.55); color: #fae8ff; }
.move-box.type-fighting { background: rgba(234, 88, 12, 0.36); border-color: rgba(251, 146, 60, 0.55); color: #ffedd5; }
.move-box.type-steel { background: rgba(100, 116, 139, 0.42); border-color: rgba(148, 163, 184, 0.55); color: #f1f5f9; }
.move-box.type-fire { background: rgba(220, 38, 38, 0.35); border-color: rgba(248, 113, 113, 0.52); color: #fee2e2; }
.move-box.type-flying { background: rgba(59, 130, 246, 0.3); border-color: rgba(125, 211, 252, 0.5); color: #e0f2fe; }
.move-box.type-dragon { background: rgba(109, 40, 217, 0.38); border-color: rgba(167, 139, 250, 0.55); color: #ede9fe; }
.move-box.type-ghost { background: rgba(88, 28, 135, 0.45); border-color: rgba(196, 181, 253, 0.45); color: #f3e8ff; }
.move-box.type-electric { background: rgba(202, 138, 4, 0.4); border-color: rgba(250, 204, 21, 0.55); color: #fef9c3; }
.move-box.type-water { background: rgba(3, 105, 161, 0.38); border-color: rgba(56, 189, 248, 0.5); color: #e0f2fe; }
.move-box.type-grass { background: rgba(22, 163, 74, 0.35); border-color: rgba(74, 222, 128, 0.52); color: #dcfce7; }
.move-box.type-ground { background: rgba(146, 64, 14, 0.42); border-color: rgba(217, 119, 6, 0.58); color: #ffedd5; }
.move-box.type-rock { background: rgba(120, 53, 15, 0.4); border-color: rgba(180, 83, 9, 0.58); color: #fef3c7; }
.move-box.type-ice { background: rgba(8, 145, 178, 0.35); border-color: rgba(103, 232, 249, 0.55); color: #ecfeff; }
.move-box.type-bug { background: rgba(101, 163, 13, 0.42); border-color: rgba(163, 230, 53, 0.52); color: #f7fee7; }
.move-box.type-poison { background: rgba(126, 34, 206, 0.4); border-color: rgba(192, 132, 252, 0.55); color: #f3e8ff; }
.move-box.type-fairy { background: rgba(190, 24, 93, 0.3); border-color: rgba(244, 114, 182, 0.52); color: #fce7f3; }
.move-box.type-dark { background: rgba(55, 65, 81, 0.45); border-color: rgba(156, 163, 175, 0.5); color: #f3f4f6; }
.move-box.type-normal { background: rgba(120, 113, 108, 0.42); border-color: rgba(168, 162, 158, 0.52); color: #fafaf9; }

.raid-hit-card {
  padding: clamp(8px, 3vw, 14px);
}

.raid-hit-card a {
  font-size: clamp(1rem, 6vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
}

.raid-hit-card .meta-row {
  margin-top: 8px;
  font-size: clamp(0.82rem, 4.4vw, 1.4rem);
  grid-template-columns: minmax(86px, 38%) minmax(0, 1fr);
}

.raid-hit-card .ranking-dodge-tag {
  font-size: clamp(0.64rem, 3.2vw, 1rem);
  min-height: clamp(22px, 7vw, 30px);
  padding: 4px clamp(7px, 2.8vw, 12px);
  margin-top: 0;
}

.kpi-grid, .best-grid, .move-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.kpi {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.kpi span, .move-stats span { color: rgba(254, 243, 199, 0.68); font-size: 0.74rem; }
.kpi strong, .move-stats strong { color: var(--text-strong); }

.move-elite-badge {
  display: inline-flex;
  align-items: center;
  margin-left: clamp(2px, 1vw, 4px);
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.6);
  background: rgba(202, 138, 4, 0.3);
  color: #fde68a;
  padding: 2px clamp(5px, 2vw, 8px);
  font-size: clamp(0.5rem, 2.6vw, 0.72rem);
  font-weight: 800;
  vertical-align: middle;
}

.moves-simple-grid {
  display: grid;
  gap: 10px;
}

.moves-simple-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.moves-simple-list li {
  color: var(--text-strong);
}

.move-detail {
  border: 1px solid rgba(254, 243, 199, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
  padding: 8px 10px;
}

.move-detail summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text-strong);
}

.move-detail-grid {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.move-detail-grid section {
  border: 1px solid rgba(254, 243, 199, 0.14);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.move-detail-grid h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: rgba(254, 243, 199, 0.88);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .move-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ranking-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ranking-explanation {
  margin-bottom: 12px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 10px;
  background: rgba(14, 116, 144, 0.14);
  padding: 10px 12px;
}

.ranking-explanation summary {
  cursor: pointer;
  color: var(--text-strong);
  font-weight: 800;
}

.ranking-explanation p {
  margin: 10px 0;
  color: rgba(254, 243, 199, 0.86);
  line-height: 1.45;
}

.ranking-explanation dl {
  display: grid;
  grid-template-columns: minmax(96px, 28%) minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}

.ranking-explanation dt {
  color: var(--text-strong);
  font-weight: 800;
}

.ranking-explanation dd {
  margin: 0;
  color: rgba(254, 243, 199, 0.74);
  line-height: 1.4;
}

.ranking-link-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(254, 243, 199, 0.18);
  background: rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
}

.viable-no-elite {
  margin-top: 8px;
  border-top: 1px dashed rgba(254, 243, 199, 0.25);
  padding-top: 8px;
}

.viable-no-elite summary { cursor: pointer; font-weight: 700; color: var(--text-strong); }

.viable-no-elite .meta-row > * {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.move-special-info {
  margin: 8px 0;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(14, 116, 144, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(254, 243, 199, 0.86);
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 380px) {
  .gf-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .gf-header {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .gf-content-card {
    padding: 10px;
    border-radius: 14px;
  }

  .ranking-hit-card,
  .ranking-card,
  .move-card,
  .best-grid > div,
  .kpi,
  .feature-tile {
    padding: 7px;
    border-radius: 10px;
  }

  .hero-best-build {
    margin-top: 14px;
  }

  .hero-title-row {
    gap: 6px;
  }

  .hero-title-row h1 {
    font-size: clamp(1.55rem, 8.2vw, 1.9rem);
  }

  .pokemon-header-top {
    gap: 6px;
  }
}

@media (min-width: 768px) {
  .kpi-grid, .best-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .move-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranking-hit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .move-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .move-list-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pokemon-app .gf-header,
.ranking-app .gf-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.pokemon-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.pokemon-app .gf-brand-wrap,
.ranking-app .gf-brand-wrap {
  gap: 8px;
}

.pokemon-app .gf-brand-icon,
.ranking-app .gf-brand-icon {
  width: clamp(28px, 9vw, 34px);
  height: clamp(28px, 9vw, 34px);
  font-size: clamp(0.72rem, 3vw, 0.95rem);
}

.pokemon-app .gf-brand-title,
.ranking-app .gf-brand-title {
  font-size: clamp(0.82rem, 4vw, 1.05rem);
}

.pokemon-header-search {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.pokemon-app .pokemon-header-search .gf-search-line,
.ranking-app .pokemon-header-search .gf-search-line {
  min-height: clamp(40px, 12vw, 48px);
  padding: 0 clamp(8px, 3vw, 12px);
}

.pokemon-app .pokemon-header-search .gf-search-icon,
.ranking-app .pokemon-header-search .gf-search-icon {
  font-size: clamp(0.98rem, 4vw, 1.25rem);
}

.pokemon-app .pokemon-header-search .gf-suggestions,
.ranking-app .pokemon-header-search .gf-suggestions {
  margin-top: 8px;
}

.pokemon-app .gf-lang,
.ranking-app .gf-lang {
  min-height: clamp(36px, 11vw, 42px);
  padding: 0 clamp(7px, 2.8vw, 10px);
  min-width: clamp(58px, 18vw, 86px);
  max-width: 34vw;
}

.pokemon-app .gf-tab-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pokemon-app .gf-tab-nav a {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.72rem, 3.4vw, 1rem);
  line-height: 1.12;
  padding: 8px clamp(6px, 2vw, 12px);
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .pokemon-app .gf-header,
  .ranking-app .gf-header {
    gap: 8px;
  }
}

.gf-search-line input:focus-visible {
  box-shadow: none;
}
