.minimal-home {
  display: grid;
  gap: 52px;
  padding: 30px 0 72px;
}

.minimal-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 52px 0 42px;
  border-bottom: 1px solid var(--line-strong);
}

.minimal-kicker {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.minimal-home-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.055em;
}

.minimal-home-hero > div > p:last-child {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.minimal-home-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}

.minimal-home-actions button,
.minimal-tool-list button,
.minimal-tool-list a,
.text-action {
  font: inherit;
}

.minimal-home-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  padding: 0 16px;
  color: var(--text-strong);
  cursor: pointer;
  font-weight: 650;
}

.minimal-home-actions button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.minimal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}

.minimal-stats > div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.minimal-stats > div:first-child { padding-left: 0; }
.minimal-stats > div:last-child { border-right: 0; }
.minimal-stats dt { color: var(--text-muted); font-size: 12px; }
.minimal-stats dd { margin: 5px 0 0; overflow: hidden; color: var(--text-strong); font-family: var(--font-mono); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.minimal-section { display: grid; gap: 18px; }
.minimal-section-heading { display: flex; align-items: end; gap: 12px; }
.minimal-section-heading.split { justify-content: space-between; }
.minimal-section-heading h2 { margin: 0; color: var(--text-strong); font-size: 24px; letter-spacing: -.03em; }
.minimal-section-heading .minimal-kicker { margin: 0 0 4px; }

.minimal-tool-list { border-top: 1px solid var(--line-strong); }
.minimal-tool-list button,
.minimal-tool-list a {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 18px 8px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.minimal-tool-list button:hover,
.minimal-tool-list a:hover { background: var(--surface-hover); color: var(--text-strong); }
.minimal-tool-list span:first-child { display: flex; align-items: center; gap: 10px; color: var(--text-strong); }
.minimal-tool-list strong { font-size: 15px; }
.minimal-tool-list > * > span:nth-child(2) { overflow: hidden; font-family: var(--font-mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.text-action { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 700; }

.minimal-ranking-table { min-width: 760px; border-top: 1px solid var(--line-strong); }
.minimal-section:has(.minimal-ranking-table) { overflow-x: auto; }
.minimal-ranking-head,
.minimal-ranking-row { display: grid; grid-template-columns: 52px minmax(220px, 1.1fr) minmax(170px, .8fr) minmax(190px, 1fr); gap: 12px; align-items: center; }
.minimal-ranking-head { padding: 10px 8px; border-bottom: 1px solid var(--line-strong); color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.minimal-ranking-row { min-height: 54px; padding: 6px 8px; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 13px; }
.minimal-ranking-row > b { color: var(--accent); font-family: var(--font-mono); }
.minimal-pokemon-cell { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text-strong); }
.minimal-pokemon-cell img { width: 38px; height: 38px; object-fit: contain; }
.minimal-pokemon-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 820px) {
  .minimal-home { gap: 36px; padding-top: 4px; }
  .minimal-home-hero { grid-template-columns: 1fr; padding: 34px 0 28px; }
  .minimal-home-actions { flex-wrap: wrap; }
  .minimal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minimal-stats > div:nth-child(2) { border-right: 0; }
  .minimal-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .minimal-stats > div:nth-child(3) { padding-left: 0; }
  .minimal-tool-list button,
  .minimal-tool-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .minimal-tool-list > * > span:nth-child(2) { display: none; }
}
:root {
  color: #25221d;
  background: #f6f3ed;
  font-family: "Outfit", "Pretendard", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 4%, rgba(249, 190, 29, 0.18), transparent 24%),
    radial-gradient(circle at 4% 96%, rgba(56, 177, 186, 0.16), transparent 28%),
    linear-gradient(180deg, #fff8e8 0%, #f6f3ed 42%, #fff6dd 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 240px;
  height: 240px;
  border: 8px solid rgba(214, 204, 187, 0.22);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body::before {
  right: -72px;
  top: -48px;
}

body::after {
  bottom: -92px;
  left: -92px;
}

.seo-static-content {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto 72px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(15, 18, 27, 0.94);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  color: #f7f7fb;
  line-height: 1.7;
}

.seo-static-content > img {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.seo-static-content h1,
.seo-static-content h2,
.seo-static-content h3 {
  color: #ffffff;
  line-height: 1.25;
}

.seo-static-content h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.seo-static-content h2 {
  margin-top: 40px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.seo-static-content h3 {
  margin-top: 28px;
}

.seo-static-content p,
.seo-static-content li {
  color: rgba(247, 247, 251, 0.82);
}

.seo-static-content a {
  color: #8ecbff;
  text-underline-offset: 3px;
}

.seo-static-content ol,
.seo-static-content ul {
  padding-left: 1.4rem;
}

.seo-static-content li + li {
  margin-top: 8px;
}

.seo-root-content {
  margin-top: 24px;
}

@media (max-width: 640px) {
  .seo-static-content {
    width: min(100% - 20px, 1120px);
    margin: 24px auto 48px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .seo-static-content > img {
    margin: 16px 0 24px;
    border-radius: 14px;
  }
}

@keyframes card-shine {
  from {
    transform: translateX(-140%) rotate(18deg);
  }

  to {
    transform: translateX(140%) rotate(18deg);
  }
}

@keyframes surface-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-mark-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pikachu-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  50% {
    transform: translate3d(0, -7px, 0) rotate(1deg);
  }
}

@keyframes accent-pulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.08);
  }
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(47, 111, 101, 0.34);
  outline-offset: 2px;
}

.page-shell {
  width: min(1378px, calc(100% - 78px));
  margin: 0 auto;
  padding: 16px 0 24px;
}

.language-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  animation: surface-in 420ms ease both;
}

.language-control > span {
  color: #6f675a;
  font-size: 13px;
  font-weight: 680;
}

.eyebrow {
  margin: 0 0 8px;
  color: #2f6f65;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: #25221d;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.status-panel {
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.86);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-panel {
  min-height: calc(100vh - 96px);
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px;
}

.status-panel h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.status-panel p {
  max-width: 640px;
  margin: 0;
  color: #6f675a;
  font-size: 16px;
  line-height: 1.7;
}

.status-panel.error-state {
  border-color: rgba(141, 63, 63, 0.34);
}

.brand-home {
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 170px);
  align-content: start;
}

.brand-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  gap: clamp(18px, 4vw, 58px);
  overflow: hidden;
  min-height: 523px;
  border: 1px solid rgba(214, 204, 187, 0.95);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 10%, rgba(47, 111, 101, 0.08), transparent 17%),
    radial-gradient(circle at 92% 12%, rgba(249, 190, 29, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.97), rgba(255, 255, 252, 0.86));
  box-shadow: 0 24px 60px rgba(111, 103, 90, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  animation: surface-in 520ms ease both;
}

.brand-hero-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24px 24px, rgba(47, 111, 101, 0.08) 0 2px, transparent 2.4px) 0 0 / 12px 12px,
    linear-gradient(135deg, transparent 0 76%, rgba(56, 177, 186, 0.24) 76% 78%, transparent 78%),
    radial-gradient(circle at 4% 76%, transparent 0 44px, rgba(214, 204, 187, 0.22) 45px 48px, transparent 49px);
  mask-image: linear-gradient(90deg, #000 0 22%, transparent 45%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

.brand-hero-copy,
.brand-preview,
.brand-secondary {
  background: transparent;
}

.brand-secondary {
  animation: surface-in 520ms 90ms ease both;
}

.brand-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 20px;
  min-height: 0;
  padding: clamp(34px, 4.5vw, 70px) clamp(34px, 5.2vw, 78px);
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 2px solid #f5bf14;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffef8, #fff4c9);
  padding: 12px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(111, 103, 90, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  animation: brand-mark-in 500ms 90ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.brand-lockup:hover .brand-mark {
  border-color: #e0a800;
  background: linear-gradient(145deg, #fff9dd, #fff0ac);
  transform: translateY(-2px) rotate(-1deg);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(111, 103, 90, 0.22));
}

.brand-hero-copy p:not(.eyebrow),
.brand-preview p,
.brand-secondary span {
  max-width: 620px;
  margin: 0;
  color: #6f675a;
  font-size: 17px;
  line-height: 1.58;
  word-break: keep-all;
}

.brand-lockup h1 {
  max-width: 760px;
  color: #191b2d;
  font-size: clamp(40px, 4.55vw, 66px);
  font-weight: 840;
  letter-spacing: -0.018em;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.74);
}

.brand-title-word {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.title-pokeball {
  width: 0.68em;
  height: 0.68em;
  margin: 0 -0.02em;
  border-width: 0.028em;
  box-shadow: 0 0.04em 0.12em rgba(111, 103, 90, 0.18), inset 0 0 0 0.05em rgba(255, 255, 255, 0.42);
  transform: translateY(0.04em);
}

.title-pokeball span {
  width: 0.22em;
  height: 0.22em;
  border-width: 0.045em;
}

.brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.brand-actions > span,
.brand-metrics span {
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.brand-source-line {
  display: inline-flex;
  max-width: 520px;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.5;
}

.brand-source-line svg {
  flex: 0 0 auto;
  color: #6f675a;
  margin-top: 1px;
}

.primary-action,
.back-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #2f6f65;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 780;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-action {
  min-height: 74px;
  min-width: min(370px, 100%);
  border: 2px solid #f0b400;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffd84f 0%, #ffc400 100%);
  color: #16130a;
  padding: 18px 28px;
  box-shadow:
    0 8px 0 #d39400,
    0 15px 26px rgba(184, 126, 0, 0.26),
    inset 0 0 0 4px rgba(255, 255, 255, 0.62);
  font-size: 22px;
  animation: accent-pulse 2400ms ease-in-out 900ms 2;
}

.primary-action:hover {
  background: linear-gradient(180deg, #ffe16d 0%, #ffcc19 100%);
  box-shadow:
    0 9px 0 #c88900,
    0 20px 34px rgba(184, 126, 0, 0.28),
    inset 0 0 0 4px rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.primary-action:active,
.back-home-button:active {
  transform: translateY(1px);
}

.brand-preview {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 16px;
  height: 452px;
  margin: clamp(38px, 4.3vw, 48px) clamp(26px, 3.4vw, 48px) clamp(22px, 3vw, 28px) 0;
  border: 1px solid rgba(245, 191, 20, 0.52);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 24%, rgba(255, 211, 56, 0.22), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(245, 191, 20, 0.14) 0 4px, transparent 4.8px) 0 0 / 24px 24px,
    rgba(255, 251, 236, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  padding: clamp(24px, 3.4vw, 40px);
}

.brand-preview::after {
  position: absolute;
  top: 48px;
  right: 30px;
  width: 52%;
  aspect-ratio: 1;
  border: 8px solid rgba(245, 191, 20, 0.22);
  border-radius: 50%;
  content: "";
}

.brand-preview-aura {
  position: absolute;
  top: 52px;
  right: 26px;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 8deg, rgba(245, 191, 20, 0.22) 0 8deg, transparent 8deg 20deg),
    radial-gradient(circle, rgba(255, 229, 111, 0.22), transparent 66%);
  animation: pikachu-float 7000ms ease-in-out infinite;
  pointer-events: none;
}

.brand-pikachu {
  position: relative;
  z-index: 2;
  width: min(250px, 56%);
  aspect-ratio: 1;
  object-fit: contain;
  justify-self: end;
  margin: -98px 0 -6px;
  filter: drop-shadow(0 24px 20px rgba(111, 103, 90, 0.24));
  animation: pikachu-float 5200ms ease-in-out infinite;
  transform-origin: 50% 70%;
}

.brand-preview-head {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #191b2d;
  font-size: 25px;
  font-weight: 840;
}

.brand-preview-head svg,
.brand-metrics svg {
  color: #2f6f65;
}

.brand-metrics {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.brand-metrics span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: min(186px, 100%);
  border: 1px solid rgba(214, 204, 187, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 5px 12px rgba(111, 103, 90, 0.07);
  padding: 10px 14px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.brand-metrics span:hover {
  border-color: rgba(47, 111, 101, 0.38);
  background: rgba(47, 111, 101, 0.08);
  transform: translateX(2px);
}

.brand-secondary {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(0, 1fr) minmax(180px, 0.38fr);
  gap: 8px 28px;
  align-items: center;
  min-height: 86px;
  border: 1px solid rgba(214, 204, 187, 0.95);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.96), rgba(255, 250, 241, 0.72)),
    #fffaf1;
  box-shadow: 0 14px 32px rgba(111, 103, 90, 0.08);
  padding: 18px 26px;
}

.brand-secondary-title {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.brand-secondary strong {
  color: #191b2d;
  font-size: 18px;
}

.brand-secondary-title strong::after {
  display: block;
  color: #d61f1f;
  content: "Coming Next";
  font-size: 15px;
  line-height: 1.2;
}

.pokeball-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(214, 204, 187, 0.9);
  border-radius: 50%;
  background: linear-gradient(#df2525 0 48%, #191b2d 48% 53%, #fff 53% 100%);
  box-shadow: 0 8px 18px rgba(111, 103, 90, 0.16), inset 0 0 0 4px rgba(255, 255, 255, 0.38);
}

.pokeball-icon span {
  width: 18px;
  height: 18px;
  border: 4px solid #191b2d;
  border-radius: 50%;
  background: #fff;
}

.brand-secondary-landscape {
  align-self: stretch;
  min-height: 46px;
  background:
    linear-gradient(140deg, transparent 0 16%, rgba(118, 135, 153, 0.2) 16% 27%, transparent 27%),
    linear-gradient(150deg, transparent 0 33%, rgba(118, 135, 153, 0.26) 33% 47%, transparent 47%),
    radial-gradient(circle at 86% 18%, transparent 0 16px, rgba(118, 135, 153, 0.26) 17px 20px, transparent 21px),
    linear-gradient(180deg, transparent 0 60%, rgba(118, 135, 153, 0.16) 60% 100%);
  opacity: 0.72;
}

.brand-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  animation: surface-in 520ms 150ms ease both;
}

.brand-tool-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  height: 335px;
  min-height: 0;
  border: 1px solid rgba(214, 204, 187, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.97), rgba(255, 255, 255, 0.86));
  color: #191b2d;
  box-shadow: 0 16px 34px rgba(111, 103, 90, 0.09);
  padding: 24px;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.brand-tool-card::after {
  position: absolute;
  top: -40%;
  left: 0;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
}

button.brand-tool-card {
  cursor: pointer;
  font: inherit;
}

.brand-tool-card.ready:hover,
.brand-tool-card.ranking:hover {
  border-color: rgba(245, 191, 20, 0.7);
  box-shadow: 0 24px 42px rgba(111, 103, 90, 0.16);
  transform: translateY(-4px);
}

.brand-tool-card.ready:hover::after,
.brand-tool-card.ranking:hover::after {
  opacity: 1;
  animation: card-shine 900ms ease both;
}

.brand-tool-card.soon {
  background:
    radial-gradient(circle at 76% 74%, rgba(35, 132, 210, 0.12), transparent 32%),
    rgba(247, 251, 255, 0.82);
}

.brand-tool-icon {
  display: inline-grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(47, 111, 101, 0.28);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(47, 111, 101, 0.14), rgba(255, 255, 255, 0.84));
  color: #2f6f65;
  box-shadow: 0 8px 18px rgba(47, 111, 101, 0.1);
}

.brand-tool-card > strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  color: #0c6d66;
  font-size: 25px;
  line-height: 1.15;
}

.brand-tool-card > p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #6f675a;
  font-size: 15px;
  line-height: 1.55;
  word-break: keep-all;
}

.brand-tool-card.ranking > p {
  max-width: 350px;
  font-size: 14px;
  line-height: 1.35;
}

.brand-tool-card.ready > p,
.brand-tool-card.soon > p {
  max-width: 310px;
}

.brand-tool-card > em {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  align-self: end;
  justify-self: start;
  border: 1px solid rgba(47, 111, 101, 0.32);
  border-radius: 999px;
  background: #0c7a70;
  color: #fffaf1;
  padding: 8px 12px;
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(47, 111, 101, 0.18);
}

.brand-tool-card.soon > em {
  border-color: rgba(35, 132, 210, 0.34);
  background: #eef7ff;
  color: #0c63b7;
}

.brand-tool-card.ranking > strong {
  color: #d61f1f;
}

.brand-tool-card.ranking .brand-tool-icon {
  border-color: rgba(214, 31, 31, 0.28);
  background: linear-gradient(145deg, rgba(214, 31, 31, 0.12), rgba(255, 255, 255, 0.88));
  color: #d61f1f;
}

.brand-tool-card.ranking > em {
  background: #df2525;
  border-color: #df2525;
}

.tool-watermark {
  position: absolute;
  inset: auto 28px 18px 28px;
  z-index: 0;
  height: 92px;
  border: 4px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
}

.solo-field {
  color: #0c7a70;
}

.double-field {
  color: #2384d2;
}

.ranking-watermark {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: #df2525;
}

.brand-ranking-list {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  gap: 5px;
  align-self: start;
  align-content: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-ranking-list li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 58px;
  gap: 2px 8px;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(214, 31, 31, 0.22);
  border-radius: 10px;
  background: rgba(255, 250, 241, 0.92);
  padding: 4px 8px;
}

.brand-ranking-list span {
  color: #d61f1f;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 860;
}

.brand-ranking-list strong {
  min-width: 0;
  overflow: hidden;
  color: #25221d;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-ranking-list em {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  color: #6f675a;
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-ranking-list img {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 56px;
  height: 32px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 7px 8px rgba(111, 103, 90, 0.18));
}

.ranking-page {
  display: grid;
  gap: 14px;
  animation: surface-in 360ms ease both;
}

.ranking-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
  padding: clamp(20px, 3vw, 32px);
}

.ranking-page-header p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: #6f675a;
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}

.ranking-page-header .eyebrow {
  overflow-wrap: anywhere;
}

.ranking-page-header > span {
  color: #2f6f65;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 760;
}

.ranking-page-header.compact {
  align-items: center;
}

.ranking-page-header.compact h2 {
  margin: 0;
  color: #1f2f2b;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.ranking-table {
  overflow: hidden;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
}

.ranking-table-head,
.ranking-row {
  display: grid;
  grid-template-columns: 72px minmax(210px, 1fr) minmax(240px, 1.1fr) minmax(280px, 1.5fr);
  gap: 12px;
  align-items: center;
}

.ranking-table-head {
  border-bottom: 1px solid #d6ccbb;
  background: rgba(246, 243, 237, 0.92);
  color: #6f675a;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 760;
}

.ranking-row {
  min-height: 72px;
  border-bottom: 1px solid rgba(214, 204, 187, 0.82);
  padding: 10px 14px;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-rank {
  color: #2f6f65;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 820;
}

.ranking-pokemon,
.ranking-build {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.ranking-pokemon img,
.sprite-fallback {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: #fffaf1;
  object-fit: contain;
}

.sprite-fallback {
  display: grid;
  place-items: center;
  color: #6f675a;
}

.ranking-pokemon strong,
.ranking-build span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-build {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
}

.ranking-build em {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  color: #6f675a;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-moves {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.ranking-moves span {
  border: 1px solid rgba(47, 111, 101, 0.22);
  border-radius: 6px;
  background: rgba(47, 111, 101, 0.07);
  color: #2f6f65;
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
}

.ranking-team-section {
  display: grid;
  gap: 14px;
}

.ranking-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.ranking-team-card {
  display: grid;
  gap: 12px;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
  padding: 14px;
}

.ranking-team-card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.ranking-team-card-header strong {
  color: #2f6f65;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 18px;
}

.ranking-team-card-header span,
.ranking-team-card small {
  color: #6f675a;
  font-size: 12px;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.ranking-team-members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ranking-team-member {
  min-width: 0;
  border: 1px solid rgba(47, 111, 101, 0.18);
  border-radius: 6px;
  background: rgba(47, 111, 101, 0.06);
  padding: 8px;
}

.ranking-team-member strong,
.ranking-team-member em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-team-member strong {
  color: #1f2f2b;
  font-size: 13px;
}

.ranking-team-member em {
  margin-top: 3px;
  color: #6f675a;
  font-size: 11px;
  font-style: normal;
}

.back-home-button {
  margin: 0 0 10px;
  background: #fffaf1;
  color: #2f6f65;
  padding: 8px 10px;
  animation: surface-in 320ms ease both;
}

.back-home-button:hover {
  background: rgba(47, 111, 101, 0.08);
  transform: translateY(-1px);
}

h2,
h3 {
  margin: 0;
  color: #25221d;
}

h2 {
  font-size: 18px;
}

h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

footer {
  color: #6f675a;
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.results-section {
  margin-top: 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-heading p {
  margin: 4px 0 0;
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6ccbb;
  border-radius: 6px;
  background: #fffaf1;
  color: #25221d;
  cursor: pointer;
  padding: 8px 10px;
  font-weight: 680;
}

.collapse-toggle svg {
  transition: transform 160ms ease;
}

.collapse-toggle.open svg {
  transform: rotate(180deg);
}

.results-collapsible {
  display: grid;
  gap: 10px;
}

.search-box {
  width: min(100%, 320px);
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: #fffaf1;
  padding: 0 12px;
}

.search-box input {
  width: 100%;
  border: 0;
  padding: 10px 0;
  color: #25221d;
  background: transparent;
}

.attacker-panel {
  margin: 14px 0;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: #fffaf1;
  overflow: hidden;
}

.attacker-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid #d6ccbb;
}

.attacker-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.attacker-identity img,
.attacker-list img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.attacker-identity div {
  min-width: 0;
}

.attacker-identity p {
  margin: 3px 0 0;
  color: #6f675a;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.attacker-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex: 0 0 auto;
}

.rank-control,
.item-control {
  display: grid;
  gap: 6px;
}

.rank-control {
  flex: 0 0 auto;
}

.rank-control > span,
.item-control > span,
.attacker-toolbar > span {
  color: #6f675a;
  font-size: 13px;
  font-weight: 680;
}

.item-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 280px;
}

.item-options button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: #fffaf1;
  cursor: pointer;
  padding: 0;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.item-options button:hover,
.item-options button.active {
  border-color: #2f6f65;
  background: rgba(47, 111, 101, 0.09);
  box-shadow: 0 6px 14px rgba(47, 111, 101, 0.1);
}

.item-options button:active {
  transform: translateY(1px);
}

.item-options .item-icon {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 1px;
}

.item-options .item-icon.empty {
  border: 1px solid rgba(141, 63, 63, 0.26);
  background: rgba(141, 63, 63, 0.06);
}

.inline-build,
.build-meta,
.sample-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.inline-build {
  gap: 8px;
}

.inline-build .build-meta::before {
  content: "/";
  color: #9b9283;
}

.inline-item-icon {
  width: 22px;
  height: 22px;
}

.sample-cell {
  display: flex;
  align-items: center;
}

.item-icon {
  width: 24px;
  height: 24px;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  object-fit: contain;
  image-rendering: pixelated;
  padding: 2px;
  flex: 0 0 auto;
}

.item-icon.empty {
  display: inline-grid;
  place-items: center;
  position: relative;
}

.item-icon.empty::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid #8d3f3f;
  border-radius: 50%;
}

.item-icon.empty::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: #8d3f3f;
  transform: rotate(-42deg);
}

.move-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 0;
}

.move-strip span {
  border-radius: 4px;
  background: rgba(47, 111, 101, 0.11);
  color: #2f6f65;
  padding: 4px 7px;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 680;
}

.attacker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.attacker-search {
  width: 100%;
  background: #f6f3ed;
}

.attacker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  max-height: 240px;
  overflow: auto;
  border-top: 1px solid #d6ccbb;
  background: #f6f3ed;
}

.attacker-list button {
  display: grid;
  grid-template-columns: 44px minmax(76px, 0.8fr) minmax(0, 1.2fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  border: 0;
  border-right: 1px solid #d6ccbb;
  border-bottom: 1px solid #d6ccbb;
  background: #fffaf1;
  color: #25221d;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.attacker-list button:hover,
.attacker-list button.active {
  background: rgba(47, 111, 101, 0.09);
}

.attacker-list button:hover {
  transform: translateY(-1px);
}

.attacker-list button.active {
  box-shadow: inset 3px 0 0 #2f6f65;
}

.attacker-option-main,
.attacker-option-meta {
  min-width: 0;
}

.attacker-option-main {
  display: grid;
  gap: 3px;
}

.attacker-option-main strong,
.attacker-option-main small,
.attacker-option-meta {
  overflow-wrap: anywhere;
}

.attacker-option-main small,
.attacker-option-meta {
  color: #6f675a;
  font-size: 12px;
  line-height: 1.35;
}

.attacker-option-meta {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.segmented.compact {
  margin: 0;
}

.segmented button {
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: #fffaf1;
  color: #6f675a;
  padding: 7px 11px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.segmented button:hover {
  background: rgba(47, 111, 101, 0.07);
  transform: translateY(-1px);
}

.segmented button:active {
  transform: translateY(1px);
}

.segmented button.active {
  border-color: #2f6f65;
  color: #25221d;
}

.solo-planner {
  margin: 14px 0 20px;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: #fffaf1;
  overflow: hidden;
  animation: surface-in 360ms ease both;
}

.solo-planner-header,
.solo-squad-grid,
.solo-coverage-head,
.solo-coverage-row {
  display: grid;
  gap: 12px;
}

.solo-planner-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #d6ccbb;
}

.solo-planner-header .eyebrow {
  margin-bottom: 5px;
}

.solo-total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f6f3ed;
  color: #2f6f65;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.solo-squad-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #d6ccbb;
  gap: 1px;
}

.solo-column {
  min-width: 0;
  background: #fffaf1;
  padding: 14px;
}

.solo-scouting-panel {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: #f6f3ed;
  padding: 9px;
}

.solo-scouting-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
}

.solo-scouting-head strong {
  color: #25221d;
  font-size: 13px;
}

.solo-scouting-head span,
.solo-scouting-panel p {
  color: #6f675a;
  font-size: 12px;
}

.solo-scouting-panel p {
  margin: 0;
  line-height: 1.35;
}

.solo-scouting-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.solo-scouting-controls select,
.solo-scouting-controls button {
  min-width: 0;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  color: #25221d;
  font: inherit;
  min-height: 32px;
}

.solo-scouting-controls select {
  padding: 5px 7px;
}

.solo-scouting-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  cursor: pointer;
}

.solo-scouting-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.solo-slot-list {
  display: grid;
  gap: 1px;
  margin-top: 10px;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  overflow: hidden;
  background: #d6ccbb;
}

.solo-slot-row {
  display: grid;
  grid-template-columns: 58px 38px minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  background: #fffaf1;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.solo-slot-row:hover {
  background: rgba(47, 111, 101, 0.06);
}

.solo-slot-row.active {
  background: rgba(47, 111, 101, 0.1);
  box-shadow: inset 3px 0 0 #2f6f65;
}

.solo-slot-row > span,
.solo-slot-row > strong {
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.solo-slot-row > strong {
  color: #25221d;
  text-align: right;
}

.solo-pokemon-thumb {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d6ccbb;
  border-radius: 6px;
  background: #f6f3ed;
  overflow: hidden;
}

.solo-pokemon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.solo-pokemon-thumb .solo-thumb-item {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 17px;
  height: 17px;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  padding: 1px;
  object-fit: contain;
  image-rendering: pixelated;
}

.solo-pokemon-thumb span {
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.solo-slot-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #f6f3ed;
  color: #25221d;
  padding: 7px 8px;
}

.solo-slot-row input::placeholder {
  color: #9a917f;
}

.solo-slot-meta {
  grid-column: 3 / -1;
  min-width: 0;
  overflow: hidden;
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-side-coverage {
  display: grid;
  gap: 1px;
  margin-top: 10px;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: #d6ccbb;
  overflow: hidden;
}

.solo-side-coverage-head,
.solo-side-coverage-row {
  background: #f6f3ed;
}

.solo-side-coverage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
}

.solo-side-coverage-head strong {
  color: #25221d;
  font-size: 13px;
}

.solo-side-coverage-head span {
  overflow: hidden;
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-side-coverage-list {
  display: grid;
  gap: 1px;
}

.solo-side-coverage-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 78px minmax(88px, 0.9fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 7px 10px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.solo-side-coverage-row.covered {
  background: linear-gradient(90deg, rgba(47, 111, 101, 0.12), #f6f3ed 58%);
}

.solo-side-coverage-row:hover {
  transform: translateX(2px);
}

.solo-side-coverage-row span,
.solo-side-coverage-row em {
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.solo-side-coverage-row strong,
.solo-side-coverage-row b,
.solo-side-coverage-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-side-coverage-row strong {
  color: #25221d;
  font-size: 12px;
}

.solo-side-coverage-row b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8d3f3f;
  font-size: 11px;
  font-weight: 760;
}

.solo-side-coverage-row.covered b {
  color: #2f6f65;
}

.solo-side-coverage-row em {
  font-style: normal;
  text-align: right;
}

.solo-build-panel {
  margin-top: 10px;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: #f6f3ed;
  overflow: hidden;
}

.solo-build-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid #d6ccbb;
}

.solo-build-head h4 {
  margin: 0;
  color: #25221d;
  font-size: 13px;
}

.solo-build-head span {
  margin-left: auto;
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.solo-build-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.solo-build-controls label,
.solo-item-field,
.solo-move-grid label,
.solo-boost-control,
.solo-ev-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.solo-build-controls span,
.solo-item-field > span,
.solo-move-grid span,
.solo-boost-control span,
.solo-ev-grid span {
  color: #6f675a;
  font-size: 11px;
  font-weight: 680;
}

.solo-field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.solo-field-title b {
  overflow: hidden;
  color: #25221d;
  font-size: 11px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-build-controls select,
.solo-move-grid select,
.solo-ev-grid input {
  min-width: 0;
  width: 100%;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  color: #25221d;
  padding: 7px 8px;
}

.solo-boost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 8px 8px;
}

.solo-boost-title {
  grid-column: 1 / -1;
  color: #6f675a;
  font-size: 11px;
  line-height: 1;
}

.solo-boost-control {
  grid-template-columns: 42px 28px minmax(34px, 1fr) 28px;
  align-items: center;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  padding: 5px;
}

.solo-boost-control span {
  color: #25221d;
}

.solo-boost-control button {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  height: 28px;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #f6f3ed;
  color: #2f6f65;
  cursor: pointer;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  line-height: 1;
}

.solo-boost-control strong {
  color: #25221d;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  text-align: center;
}

.solo-item-field {
  grid-column: 1 / -1;
}

.solo-item-select {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.solo-item-select > .solo-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(47, 111, 101, 0.1);
  padding: 4px;
}

.solo-item-select select {
  height: 34px;
}

.solo-move-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 8px 8px;
}

.solo-move-grid label {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
}

.solo-move-grid span {
  color: #2f6f65;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  text-align: center;
}

.solo-item-icon {
  width: 24px;
  height: 24px;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #f6f3ed;
  object-fit: contain;
  image-rendering: pixelated;
  padding: 2px;
}

.solo-item-icon.empty {
  display: inline-grid;
  place-items: center;
  position: relative;
}

.solo-item-icon.empty::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid #8d3f3f;
  border-radius: 50%;
}

.solo-item-icon.empty::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: #8d3f3f;
  transform: rotate(-42deg);
}

.solo-ev-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 8px 8px;
}

.solo-ev-presets button {
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  color: #6f675a;
  cursor: pointer;
  padding: 4px 6px;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.solo-ev-presets button.active {
  border-color: #2f6f65;
  background: rgba(47, 111, 101, 0.12);
  color: #2f6f65;
}

.solo-ev-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 0 8px 8px;
}

.solo-ev-grid input:disabled {
  color: #6f675a;
  opacity: 1;
}

.solo-ev-grid strong {
  grid-column: 1 / -1;
  color: #2f6f65;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-align: right;
}

.solo-ev-grid strong.over {
  color: #8d3f3f;
}

.solo-opponent-build-panel .solo-ev-presets {
  padding-top: 8px;
}

.solo-opponent-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #d6ccbb;
}

.solo-opponent-detail-grid .solo-item-field {
  grid-column: 1 / -1;
  padding: 0;
}

.solo-opponent-detail-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.solo-opponent-detail-grid label span {
  color: #6f675a;
  font-size: 11px;
  font-weight: 680;
}

.solo-opponent-detail-grid select {
  min-width: 0;
  width: 100%;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  color: #25221d;
  padding: 7px 8px;
}

.solo-opponent-snapshot {
  display: grid;
  gap: 7px;
  padding: 8px;
  border-bottom: 1px solid #d6ccbb;
  background: rgba(255, 250, 241, 0.56);
}

.solo-opponent-snapshot > strong {
  color: #6f675a;
  font-size: 11px;
  line-height: 1;
}

.solo-opponent-snapshot dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.solo-opponent-snapshot div {
  min-width: 0;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  padding: 6px 7px;
}

.solo-opponent-snapshot dt {
  color: #6f675a;
  font-size: 10px;
  font-weight: 680;
}

.solo-opponent-snapshot dd {
  overflow: hidden;
  margin: 2px 0 0;
  color: #25221d;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-defender-ev-grid,
.solo-field-grid {
  display: grid;
  gap: 6px;
  padding: 0 8px 8px;
}

.solo-defender-ev-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.solo-defender-ev-grid label,
.solo-field-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.solo-defender-ev-grid span,
.solo-field-grid span {
  color: #6f675a;
  font-size: 11px;
  font-weight: 680;
}

.solo-defender-ev-grid input,
.solo-field-grid select {
  min-width: 0;
  width: 100%;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  color: #25221d;
  padding: 7px 8px;
}

.solo-defender-ev-grid strong {
  grid-column: 1 / -1;
  color: #2f6f65;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-align: right;
}

.solo-defender-ev-grid strong.over {
  color: #8d3f3f;
}

.solo-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solo-field-grid button {
  min-width: 0;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  color: #6f675a;
  cursor: pointer;
  padding: 6px 7px;
  font-size: 11px;
  font-weight: 680;
  text-align: center;
}

.solo-field-grid button.active {
  border-color: #2f6f65;
  background: rgba(47, 111, 101, 0.12);
  color: #2f6f65;
}

.solo-scout-details {
  display: grid;
  gap: 1px;
  margin-top: 10px;
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  background: #d6ccbb;
  overflow: hidden;
}

.solo-scout-details-head,
.solo-scout-own,
.solo-speed-row {
  background: #f6f3ed;
}

.solo-scout-details-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 10px;
}

.solo-scout-details-head h4 {
  margin: 0;
  color: #25221d;
  font-size: 13px;
}

.solo-scout-details-head span {
  margin-left: auto;
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.solo-scout-own {
  display: grid;
  gap: 7px;
  padding: 8px 10px;
}

.solo-scout-own > strong {
  overflow: hidden;
  color: #25221d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-scout-own dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.solo-scout-own dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  padding: 5px 6px;
}

.solo-scout-own dt,
.solo-speed-row span {
  color: #6f675a;
  font-size: 10px;
}

.solo-scout-own dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #25221d;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-speed-list {
  display: grid;
  gap: 1px;
  background: #d6ccbb;
}

.solo-speed-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 3px 7px;
  align-items: center;
  min-width: 0;
  padding: 6px 10px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.solo-speed-row:hover {
  background: rgba(47, 111, 101, 0.05);
  transform: translateX(2px);
}

.solo-speed-row strong,
.solo-speed-row span,
.solo-speed-row b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-speed-row strong {
  color: #25221d;
  font-size: 12px;
}

.solo-speed-row > span:nth-of-type(2) {
  grid-column: 2 / -1;
  grid-row: 2;
}

.solo-speed-row b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2f6f65;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  justify-self: end;
}

.solo-speed-slot {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

.solo-coverage {
  border-top: 1px solid #d6ccbb;
}

.solo-coverage-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 14px;
  background: #ebe4d6;
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.solo-opponent-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) 104px minmax(160px, 0.9fr) minmax(260px, 1.25fr);
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid #d6ccbb;
  background: #f6f3ed;
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.solo-opponent-matchups {
  display: grid;
  gap: 1px;
  background: #d6ccbb;
}

.solo-opponent-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) 104px minmax(160px, 0.9fr) minmax(260px, 1.25fr);
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  background: #fffaf1;
}

.solo-opponent-row.covered {
  background: linear-gradient(90deg, rgba(47, 111, 101, 0.1), #fffaf1 38%);
}

.solo-opponent-attacker,
.solo-opponent-target,
.solo-opponent-status {
  display: flex;
  align-items: center;
  min-width: 0;
}

.solo-opponent-attacker,
.solo-opponent-target {
  gap: 8px;
}

.solo-opponent-attacker > div,
.solo-opponent-target > div {
  min-width: 0;
}

.solo-opponent-attacker span,
.solo-opponent-target span {
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-style: normal;
}

.solo-opponent-attacker strong,
.solo-opponent-target strong {
  display: block;
  overflow: hidden;
  color: #25221d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-opponent-attacker small {
  display: block;
  overflow: hidden;
  color: #2f6f65;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-opponent-status {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  color: #8d3f3f;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.solo-opponent-status svg {
  grid-row: 1 / span 2;
}

.solo-opponent-status span {
  color: #25221d;
  font-size: 13px;
  font-weight: 760;
}

.solo-opponent-row.covered .solo-opponent-status {
  color: #2f6f65;
}

.solo-opponent-damage {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: baseline;
  gap: 5px 8px;
  color: #25221d;
}

.solo-opponent-damage strong {
  min-width: 68px;
  color: #25221d;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
}

.solo-opponent-damage span {
  overflow: hidden;
  color: #2f6f65;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-opponent-damage small {
  flex: 1 1 180px;
  min-width: 0;
  overflow: hidden;
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-damage-cards {
  display: grid;
  flex: 1 0 100%;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 6px;
  min-width: 0;
}

.solo-damage-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 6px;
  min-width: 0;
  border: 1px solid #d6ccbb;
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.76);
  padding: 6px;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.solo-damage-card.best {
  border-color: rgba(47, 111, 101, 0.45);
  background: rgba(47, 111, 101, 0.08);
}

.solo-damage-card:hover {
  border-color: rgba(47, 111, 101, 0.42);
  transform: translateY(-1px);
}

.solo-damage-card b,
.solo-damage-card strong,
.solo-damage-card span,
.solo-damage-card em,
.solo-damage-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-damage-card b {
  color: #25221d;
  font-size: 12px;
}

.solo-damage-card strong {
  min-width: auto;
  justify-self: end;
  color: #25221d;
  font-size: 12px;
}

.solo-damage-card span {
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.solo-damage-card em {
  grid-column: 1 / -1;
  justify-self: end;
  color: #8d3f3f;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.solo-damage-card small {
  grid-column: 1 / -1;
  color: #8a8173;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
}

.table {
  border: 1px solid #d6ccbb;
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf1;
}

.table-head,
.result-row {
  display: grid;
  grid-template-columns: 1.15fr 0.72fr 1.32fr 1fr 0.78fr 0.9fr 0.72fr;
  gap: 10px;
  align-items: center;
}

.table-head {
  padding: 9px 12px;
  background: #ebe4d6;
  color: #6f675a;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.result-row {
  padding: 10px 12px;
  border-top: 1px solid #d6ccbb;
}

.result-row strong {
  color: #25221d;
}

.pokemon-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sprite-stack {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}

.sprite-stack .pokemon-sprite {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.sprite-stack .item-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #d6ccbb;
  border-radius: 4px;
  background: #fffaf1;
  padding: 2px;
  object-fit: contain;
  image-rendering: pixelated;
}

.attacker-sprite-stack {
  width: 50px;
  height: 50px;
}

.attacker-sprite-stack .pokemon-sprite {
  width: 46px;
  height: 46px;
}

.attacker-sprite-stack .attacker-item-badge {
  width: 22px;
  height: 22px;
}

.attacker-option-sprite .attacker-item-badge {
  width: 21px;
  height: 21px;
}

.pokemon-cell span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.type-list,
.damage-range,
.speed {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  color: #6f675a;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.speed {
  width: fit-content;
  border-radius: 4px;
  padding: 5px 8px;
  font-weight: 680;
}

.speed.outspeed {
  background: rgba(47, 111, 101, 0.12);
  color: #2f6f65;
}

.speed.tie {
  background: rgba(154, 90, 36, 0.14);
  color: #9a5a24;
}

.speed.slower {
  background: rgba(141, 63, 63, 0.12);
  color: #8d3f3f;
}

.reason {
  width: fit-content;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 680;
}

.reason.bulk {
  background: rgba(47, 111, 101, 0.12);
  color: #2f6f65;
}

.reason.resist {
  background: rgba(154, 90, 36, 0.14);
  color: #9a5a24;
}

.reason.immune {
  background: rgba(141, 63, 63, 0.12);
  color: #8d3f3f;
}

.reason.survivalItem {
  background: rgba(65, 80, 157, 0.13);
  color: #41509d;
}

.empty-state {
  margin: 0;
  padding: 28px 16px;
  color: #6f675a;
}

footer {
  margin-top: 24px;
}

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

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
    padding-top: 18px;
  }

  .solo-planner-header,
  .brand-hero,
  .brand-secondary,
  .brand-tool-grid,
  .solo-squad-grid,
  .solo-opponent-head,
  .solo-opponent-row,
  .solo-coverage-row {
    grid-template-columns: 1fr;
  }

  .solo-opponent-head {
    display: none;
  }

  .solo-total {
    width: fit-content;
  }

  .brand-hero-copy {
    min-height: 360px;
  }

  .brand-pikachu {
    justify-self: start;
    width: 118px;
  }

  .brand-lockup {
    grid-template-columns: 1fr;
  }

  .brand-lockup h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.05;
  }

  .brand-title-word {
    white-space: normal;
  }

  .brand-tool-card {
    min-height: 0;
  }

  .ranking-page-header,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-table-head {
    display: none;
  }

  .ranking-row {
    gap: 8px;
    align-items: start;
  }

  .ranking-rank {
    width: fit-content;
    border: 1px solid rgba(47, 111, 101, 0.22);
    border-radius: 999px;
    background: rgba(47, 111, 101, 0.07);
    padding: 4px 7px;
  }

  .ranking-moves {
    margin-left: 52px;
  }

  .solo-scouting-controls {
    grid-template-columns: 1fr;
  }

  .solo-slot-row {
    grid-template-columns: 46px 38px minmax(0, 1fr);
  }

  .solo-slot-row input {
    grid-column: 1 / -1;
  }

  .solo-slot-row > strong {
    grid-column: 3;
    grid-row: 1;
  }

  .solo-slot-meta {
    grid-column: 1 / -1;
  }

  .solo-build-controls {
    grid-template-columns: 1fr;
  }

  .solo-boost-grid,
  .solo-field-grid,
  .solo-scout-own dl,
  .solo-speed-row {
    grid-template-columns: 1fr;
  }

  .solo-speed-row > span:nth-of-type(2),
  .solo-speed-row b {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .solo-speed-row {
    gap: 3px;
  }

  .solo-ev-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .section-heading {
    display: block;
  }

  .search-box {
    margin-top: 10px;
    width: 100%;
  }

  .attacker-current,
  .attacker-toolbar {
    grid-template-columns: 1fr;
  }

  .attacker-current {
    display: grid;
  }

  .attacker-controls {
    display: grid;
    justify-content: start;
  }

  .rank-control {
    justify-content: start;
  }

  .item-options {
    max-width: min(100%, 280px);
  }

  .attacker-list {
    grid-template-columns: 1fr;
    max-height: 250px;
  }

  .attacker-list button {
    grid-template-columns: 44px minmax(78px, 0.75fr) minmax(0, 1fr);
  }

  .table-head {
    display: none;
  }

  .result-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 11px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 2026 minimal data-tool redesign */
:root {
  --canvas: #f6f7f9;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-hover: #f1f5f9;
  --line: #e5e7eb;
  --line-strong: #cbd5e1;
  --text-strong: #111827;
  --text: #334155;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --safe: #15803d;
  --safe-soft: #f0fdf4;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --font-sans: Inter, "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "Geist Mono", Consolas, monospace;
  color: var(--text);
  background: var(--canvas);
  font-family: var(--font-sans);
}

body {
  background: var(--canvas);
  color: var(--text);
}
body::before,
body::after { display: none; }

.page-shell,
.page-shell.home-image-page-shell,
.minimal-app-shell {
  width: min(1380px, calc(100% - 32px));
  overflow: visible;
  padding: 0;
}

.language-control,
.back-home-button { display: none; }

.minimal-app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(246, 247, 249, .94);
  backdrop-filter: blur(14px);
}

.minimal-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-strong);
  cursor: pointer;
  font-size: 14px;
}
.minimal-wordmark > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 5px;
  background: var(--text-strong);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}
.minimal-wordmark strong { letter-spacing: -.02em; }

.minimal-app-header nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
}
.minimal-app-header nav button,
.minimal-app-header nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 0 11px;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.minimal-app-header nav button:hover,
.minimal-app-header nav a:hover { background: var(--surface-hover); color: var(--text-strong); }
.minimal-app-header nav button.active,
.minimal-app-header nav a.active { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }

.minimal-language {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: 2px;
}
.minimal-language button {
  min-width: 34px;
  min-height: 27px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}
.minimal-language button.active { background: var(--text-strong); color: white; }

.minimal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
  padding: 18px 0 30px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}
.minimal-footer a { color: var(--accent); }

/* Ranking table */
.ranking-page { gap: 18px; margin-top: 28px; }
.ranking-page-header {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 22px 0 24px;
}
.ranking-page-header h1 { margin: 0; color: var(--text-strong); font-size: clamp(30px, 5vw, 52px); letter-spacing: -.045em; }
.ranking-page-header p:not(.eyebrow) { color: var(--text-muted); }
.ranking-page-header > span { color: var(--accent); }
.ranking-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  justify-content: space-between;
}
.ranking-toolbar label { display: grid; width: min(480px, 100%); gap: 6px; color: var(--text-muted); font-size: 11px; }
.ranking-toolbar input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--text-strong);
}
.ranking-toolbar code { color: var(--text-muted); font-size: 11px; }
.ranking-table { overflow: auto; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: transparent; }
.ranking-table-head,
.ranking-row { min-width: 860px; grid-template-columns: 58px minmax(190px, .85fr) minmax(240px, 1fr) minmax(310px, 1.35fr); }
.ranking-table-head { position: sticky; z-index: 3; top: 58px; border-color: var(--line-strong); background: var(--canvas); color: var(--text-muted); }
.ranking-row { min-height: 58px; border-color: var(--line); background: transparent; }
.ranking-row:hover { background: var(--surface); }
.ranking-rank { color: var(--accent); }
.ranking-pokemon img,
.sprite-fallback { width: 38px; height: 38px; flex-basis: 38px; border: 0; border-radius: 4px; background: transparent; }
.ranking-pokemon strong,
.ranking-build span { color: var(--text-strong); }
.ranking-build em { color: var(--text-muted); }
.ranking-moves span { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); }
.ranking-team-section { border-top: 1px solid var(--line-strong); padding-top: 4px; }
.ranking-team-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; color: var(--text-strong); cursor: pointer; list-style: none; }
.ranking-team-section > summary::-webkit-details-marker { display: none; }
.ranking-team-section > summary span { display: grid; gap: 3px; }
.ranking-team-section > summary small { color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; }
.ranking-team-section > summary em { color: var(--accent); font-style: normal; font-size: 12px; }
.ranking-team-description { max-width: 780px; color: var(--text-muted); font-size: 13px; }
.ranking-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ranking-team-card { border-color: var(--line); border-radius: 5px; background: var(--surface); box-shadow: none; }

/* Result-first planner */
.solo-planner {
  display: flex;
  flex-direction: column;
  margin: 28px 0 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.solo-planner-header { order: 0; border-bottom: 1px solid var(--line-strong); padding: 22px 0; }
.solo-planner-header h2 { margin: 0; color: var(--text-strong); font-size: clamp(30px, 5vw, 52px); letter-spacing: -.045em; }
.solo-total { border-color: var(--line); border-radius: 5px; background: var(--surface); color: var(--accent); }
.solo-primary-results { order: 1; margin-top: 18px; border: 1px solid var(--line-strong); background: var(--surface); }
.solo-primary-results .solo-scouting-details { border-top: 0; }
.solo-config-panel { order: 2; margin-top: 20px; border-top: 1px solid var(--line-strong); }
.solo-config-panel > summary,
.solo-advanced-settings > summary {
  padding: 14px 4px;
  color: var(--text-strong);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.solo-config-panel > summary::-webkit-details-marker,
.solo-advanced-settings > summary::-webkit-details-marker { display: none; }
.solo-config-panel > summary::after,
.solo-advanced-settings > summary::after { float: right; content: '+'; color: var(--text-muted); font-family: var(--font-mono); }
.solo-config-panel[open] > summary::after,
.solo-advanced-settings[open] > summary::after { content: '−'; }
.solo-squad-grid { border: 1px solid var(--line-strong); background: var(--line); }
.solo-column { background: var(--surface); padding: 12px; }
.solo-advanced-settings { margin-top: 10px; border-top: 1px solid var(--line); }
.solo-advanced-settings > summary { padding: 10px 2px; color: var(--text-muted); font-size: 12px; }
.solo-build-panel,
.solo-opponent-build-panel,
.solo-side-coverage,
.solo-scouting-panel { border-color: var(--line); border-radius: 5px; background: var(--surface-subtle); box-shadow: none; }
.solo-coverage { border-color: var(--line-strong); }
.solo-coverage-head,
.solo-opponent-head { background: var(--surface-subtle); color: var(--text-muted); }
.solo-opponent-matchups { background: var(--line); }
.solo-opponent-row { background: var(--surface); }
.solo-opponent-row.covered { background: var(--safe-soft); }
.solo-opponent-status span,
.solo-opponent-attacker strong,
.solo-opponent-target strong { color: var(--text-strong); }
.solo-opponent-row.covered .solo-opponent-status { color: var(--safe); }

/* SEO content uses the same visual system instead of a separate dark article */
.seo-static-content {
  border-color: var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: none;
  color: var(--text);
}
.seo-static-content h1,
.seo-static-content h2,
.seo-static-content h3 { color: var(--text-strong); }
.seo-static-content p,
.seo-static-content li { color: var(--text-muted); }
.seo-static-content a { color: var(--accent); }
.seo-static-content > img { border-color: var(--line); border-radius: 5px; box-shadow: none; }

@media (max-width: 980px) {
  .minimal-app-header { grid-template-columns: auto 1fr; gap: 12px; }
  .minimal-app-header nav { grid-column: 1 / -1; order: 3; overflow-x: auto; border-top: 1px solid var(--line); padding: 6px 0; }
  .minimal-language { justify-self: end; }
  .ranking-team-grid { grid-template-columns: 1fr; }
  .solo-squad-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-shell,
  .page-shell.home-image-page-shell,
  .minimal-app-shell { width: min(100% - 20px, 1380px); }
  .minimal-app-header { min-height: 52px; }
  .minimal-app-header nav button,
  .minimal-app-header nav a { min-width: max-content; padding: 0 9px; }
  .minimal-wordmark strong { display: none; }
  .ranking-page-header,
  .solo-planner-header { grid-template-columns: 1fr; }
  .ranking-toolbar { align-items: stretch; flex-direction: column; }
  .ranking-toolbar code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .solo-primary-results { overflow-x: auto; }
  .solo-opponent-head,
  .solo-opponent-row { min-width: 780px; }
}
