.demo-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 4rem;
}

.demo-pick {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.demo-pick-card {
  display: block;
  padding: 1.45rem 1.4rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
  animation: rise 520ms ease both;
}

.demo-pick-card:nth-child(2) {
  animation-delay: 80ms;
}

.demo-pick-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(61, 214, 198, 0.45);
}

.demo-pick-card .eyebrow {
  margin-bottom: 0.55rem;
}

.demo-pick-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.demo-pick-card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.demo-pick-card code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent-2);
}

.demo-pick-cta {
  font-weight: 600;
  color: var(--accent);
}

.demo-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.demo-nav a.back {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.demo-nav .demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-hero {
  margin-bottom: 2rem;
  animation: rise 520ms ease both;
}

.demo-hero .brand {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
}

.demo-hero .lede {
  margin-bottom: 0.5rem;
}

.demo-meta-line {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.demo-toolbar input[type="search"],
.demo-toolbar input[type="text"] {
  flex: 1 1 200px;
  font: inherit;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
}

.demo-toolbar input:focus {
  outline: 2px solid rgba(61, 214, 198, 0.45);
  outline-offset: 1px;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.demo-tabs button {
  font: inherit;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.demo-tabs button.active {
  color: var(--ink);
  background: var(--accent);
  border-color: transparent;
  font-weight: 600;
}

.type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.type-chip {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: capitalize;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.type-chip.active {
  color: var(--ink);
  background: var(--accent-2);
  border-color: transparent;
}

.demo-status {
  min-height: 1.4rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.demo-status.error {
  color: var(--danger);
}

.lol-gate {
  margin-bottom: 1.5rem;
}

.lol-gate-card,
.lol-gate-ok {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  animation: rise 420ms ease both;
}

.lol-gate-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.lol-gate-card p,
.lol-gate-ok p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.lol-gate-ok {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lol-gate-ok p {
  margin: 0;
}

.lol-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.lol-gate-actions input {
  flex: 1 1 180px;
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
}

.poke-grid,
.mc-grid,
.lol-grid,
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.poke-card,
.mc-card,
.lol-card,
.country-card {
  cursor: pointer;
  text-align: center;
  padding: 0.85rem 0.6rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 32, 51, 0.65);
  transition: transform 180ms ease, border-color 180ms ease;
  animation: rise 480ms ease both;
}

.poke-card:hover,
.mc-card:hover,
.lol-card:hover,
.country-card:hover,
.poke-card:focus-visible,
.mc-card:focus-visible,
.lol-card:focus-visible,
.country-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(61, 214, 198, 0.45);
  outline: none;
}

.poke-card img {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.mc-card img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  margin: 0.35rem auto;
  display: block;
  min-height: 48px;
  object-fit: contain;
}

.mc-card:not(:has(img)) h3 {
  margin-top: 0.15rem;
}

.lol-card img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  margin: 0.15rem auto;
  display: block;
  background: rgba(0, 0, 0, 0.25);
}

.country-card img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0.15rem auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  background: rgba(0, 0, 0, 0.2);
}

.country-flag-placeholder {
  width: 72px;
  height: 48px;
  margin: 0.15rem auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--line);
}

.poke-card h3,
.mc-card h3,
.lol-card h3,
.country-card h3 {
  margin: 0.4rem 0 0.15rem;
  font-size: 0.95rem;
  text-transform: capitalize;
}

.lol-card h3,
.country-card h3 {
  text-transform: none;
}

.poke-card .id,
.mc-card .sub,
.lol-card .sub,
.country-card .sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.border-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.border-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  cursor: pointer;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
}

.border-chip:hover {
  border-color: rgba(61, 214, 198, 0.45);
}

.border-chip img {
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
}

.poke-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.poke-types span {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(61, 214, 198, 0.12);
  color: var(--accent);
}

.detail-panel {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  animation: rise 420ms ease both;
}

.detail-panel.hidden {
  display: none;
}

.detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.detail-head img.poke {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
}

.detail-head img.mc {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}

.detail-head img.lol {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.detail-head img.country {
  width: 120px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.detail-head h2 {
  margin: 0 0 0.35rem;
  text-transform: capitalize;
  font-size: 1.6rem;
}

.demo-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.demo-toolbar select {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
}

.poke-badge {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8b84a;
}

.flavor {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.detail-sub {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.2rem;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.stat-label {
  color: var(--muted);
}

.stat-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #7ae0d0);
}

.stat-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.meta-list strong {
  color: inherit;
  opacity: 0.95;
}

.shiny-sprite {
  margin-top: 0.75rem;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 8px rgba(232, 184, 74, 0.35));
}

.evo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.1rem;
}

.evo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
}

.evo-step img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
}

.evo-arrow {
  color: var(--muted);
  font-size: 1.2rem;
}

.call-box {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}

.call-box code {
  font-family: var(--mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--accent-2);
}

.recipe-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.recipe-block {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.recipe-block pre {
  margin: 0.5rem 0 0;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .poke-grid,
  .mc-grid,
  .lol-grid,
  .country-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
