/* Palworld expedition interface. Shared by static content and the live tools. */
.pal-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.pal-pagination a {
  padding: 0.4rem 0.7rem;
  border: 1px solid #3f626e;
  border-radius: 4px;
}
.pal-pagination a[aria-current="page"] {
  background: #67dccb;
  color: #09272c;
}
.pal-collection-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  text-decoration: none;
}
.pal-collection-tabs a[aria-current="page"] {
  background: #17443e;
  color: #a7f4df;
  border-bottom: 2px solid #67dccb;
}
.pal-catalog-filters label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pal-catalog-filters input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}
.pal-portrait > svg {
  width: 64px;
  height: 64px;
  color: #7d9da9;
}
.pal-detail-portrait > svg { width:64px; height:64px; color:#7d9da9; }
.pw-item-picker {
  min-width: 0;
}
.pal-item-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background: #102b35;
  border: 1px solid #31525e;
}
.pal-item-facts > div {
  flex: 1;
  min-width: 7rem;
}
.pal-item-facts dt {
  color: #9eb7c2;
  font-size: 0.875rem;
}
.pal-item-facts dd {
  margin: 0.4rem 0 0;
  color: #e9f3f6;
  font-size: 1.1rem;
}
.pal-recipe {
  padding: 1rem;
  margin: 0.75rem 0;
  background: #102b35;
  border: 1px solid #31525e;
  border-radius: 6px;
}
.pal-recipe summary {
  cursor: pointer;
  font-weight: 600;
}
.pw-recipe-choice {
  padding: 0.75rem 0;
  border-bottom: 1px solid #31525e;
}
.palworld .pw-recipe-choice select {
  max-width: 100%;
}
.pal-material-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0.7rem 0.2rem 0;
  vertical-align: middle;
}
.pal-reference-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  vertical-align: middle;
}
.pal-reference-link img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.palworld {
  color-scheme: dark;
  --paper: #081b24;
  --ink: #e8f3f6;
  --accent: #6ee4d2;
  --line: #294750;
  --pal-surface: #102b35;
  --pal-muted: #a2bac3;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 85% 0%, #133d48 0, transparent 45rem), #081b24;
}
.palworld .page {
  max-width: 1360px;
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.palworld .site-header {
  background: #06141de8;
  border-bottom: 1px solid #27424d;
  padding-block: 1.2rem;
}
.palworld .brand {
  font-size: 0.94rem;
  letter-spacing: 0.14em;
}
.palworld .game-nav {
  max-width: 1360px;
  background: transparent;
  align-items: center;
  border-color: #294750;
  min-height: 67px;
}
.palworld .game-nav a,
.palworld .game-nav button {
  color: #adbec6;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.palworld .game-nav a:first-child {
  font-weight: 750;
  color: #fff;
  margin-right: auto;
  font-size: 1.05rem;
}
.palworld .game-nav [aria-current] {
  color: #6ee4d2;
  text-decoration: none;
}
.palworld h1,
.palworld h2,
.palworld h3 {
  color: var(--ink);
}
.palworld h1 {
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.palworld a {
  color: #8ee6d9;
}
.palworld .meta,
.palworld .lede,
.palworld .pw-page .meta {
  color: #a6bec7;
}
.palworld .eyebrow {
  color: #8ac8ce;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.palworld button,
.palworld .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.palworld .button,
.palworld button.button {
  background: #66ddcd;
  color: #06252b;
  border: 1px solid #7cf7df;
  border-radius: 5px;
  font-weight: 750;
  box-shadow: inset 0 1px #a1fff180;
}
.palworld .button:hover {
  background: #95f5e5;
}
.palworld .card {
  background: #102b35;
  border: 1px solid #294750;
  border-radius: 8px;
  overflow: hidden;
}
.palworld .card a {
  color: var(--accent);
}
.palworld .callout,
.palworld .reading-aside {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.palworld .prose {
  color: var(--ink);
  line-height: 1.8;
}
.palworld .prose h2 {
  padding-top: 0.5rem;
}
.palworld .site-footer {
  background: #071820;
  color: #9ab0b9;
  border-top: 1px solid #25434d;
}
.palworld .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.palworld [hidden] {
  display: none !important;
}
.palworld svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.palworld :focus-visible {
  outline: 3px solid #f5c76c;
  outline-offset: 4px;
}
.pal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.25rem 0 1.7rem;
}
.pal-section-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.55rem 0;
}
.pal-section-head p:not(.eyebrow) {
  margin: 0.5rem 0;
  color: #a7c0ca;
}
.pal-version {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid #35505b;
  padding: 0.7rem 0.9rem;
  border-radius: 5px;
  color: var(--muted) !important;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
}
.pal-version strong {
  color: #efc977;
}
.pal-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #294750;
  border-bottom: 1px solid #294750;
  padding: 0.9rem 0;
}
.pal-collection-tabs {
  display: flex;
  gap: 0.4rem;
}
.palworld .pal-collection-tabs button {
  background: transparent;
  border: 1px solid transparent;
  color: #b4c8d0;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border-radius: 5px;
}
.palworld .pal-collection-tabs button[aria-pressed="true"] {
  color: #a1f5e5;
  border-color: #3e736e;
  background: #17433f;
}
.pal-collection-tabs button > span {
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #051d2670;
  color: #a7c8ce;
}
.palworld .pal-search {
  display: flex;
  align-items: center;
  flex: 0 1 380px;
  min-width: 220px;
  gap: 0.7rem;
  background: #071e28;
  border: 1px solid #31515b;
  border-radius: 5px;
  padding: 0 0.8rem;
  color: #85a4af;
  margin: 0;
}
.palworld .pal-search input {
  border: 0;
  background: transparent;
  color: white;
  width: 100%;
  padding: 0.75rem 0;
  font-size: 0.94rem;
  outline-offset: 6px;
}
.pal-catalog-filters {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0 1.3rem;
}
.palworld .pal-catalog-filters label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: #8eacb8;
  font-size: 0.875rem;
  margin: 0;
}
.palworld .pal-catalog-filters select {
  background: #102c37;
  border: 1px solid #32545f;
  color: #deedf1;
  font-size: 0.875rem;
  padding: 0.55rem 0.65rem;
  border-radius: 4px;
}
.palworld .pal-catalog-filters button {
  border: 0;
  background: transparent;
  color: #82a7b5;
  font-size: 0.875rem;
  padding: 0.5rem;
}
.pal-catalog-filters > p {
  margin-left: auto;
  font-size: 0.8rem;
  color: #9ab2bd;
}
.pal-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.pal-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #2d4b58;
  border-radius: 8px;
  background: #102a36;
  overflow: hidden;
  transition:
    border-color 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
  min-width: 0;
}
.pal-entry:hover,
.pal-entry:focus-within {
  border-color: #7acac8;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px #020a1240;
}
.pal-entry-main {
  display: block;
  color: inherit !important;
  text-decoration: none;
}
.pal-portrait,
.pal-detail-portrait {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(
    ellipse at 50% 90%,
    var(--pal-glow, #356563) 0,
    #102b36 75%
  );
}
.pal-portrait {
  height: 144px;
  border-bottom: 1px solid #2d4b5850;
}
[data-element="Fire"] {
  --pal-glow: #703d37;
}
[data-element="Water"] {
  --pal-glow: #265772;
}
[data-element="Grass"] {
  --pal-glow: #385d3d;
}
[data-element="Electric"] {
  --pal-glow: #686031;
}
[data-element="Ice"] {
  --pal-glow: #366477;
}
[data-element="Ground"] {
  --pal-glow: #71553a;
}
[data-element="Dark"] {
  --pal-glow: #534769;
}
[data-element="Dragon"] {
  --pal-glow: #57416e;
}
[data-element="Neutral"] {
  --pal-glow: #4d5c63;
}
[data-element="Material"] {
  --pal-glow: #3c605d;
}
.pal-portrait > img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 8px 7px #040c1590);
  transition: transform 0.2s;
}
.pal-entry:hover .pal-portrait > img {
  transform: scale(1.06);
}
.pal-index {
  position: absolute;
  top: 0.75rem;
  left: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.pal-open {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  color: #82a3b3;
}
.pal-entry-copy {
  padding: 0.9rem 0.9rem 0.5rem;
}
.pal-entry h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.pal-elements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pal-element {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.45rem;
  border: 1px solid #7fa6b02e;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #d4e5eb;
  background: color-mix(in srgb, var(--pal-glow) 50%, #0a2029);
}
.pal-element img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.pal-work {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem 0.9rem;
  margin-top: auto;
  min-height: 48px;
}
.pal-work-skill {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  background: #081e2880;
  border: 1px solid #6a8e9a26;
  border-radius: 4px;
  padding: 0.22rem 0.4rem;
  color: #b8cbd1;
}
.pal-work-skill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.pal-work-skill b {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 650;
}
.palworld .pal-entry-action {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  color: #98ccc9;
  text-decoration: none;
  border-top: 1px solid #294651;
  background: #0c242e;
}
.pal-entry-action svg:last-child {
  margin-left: auto;
  width: 14px;
}
.pal-entry-action:hover {
  background: #19434a;
  color: #cefff1;
}
.pal-item-entry .pal-portrait {
  height: 130px;
}
.pal-item-entry .pal-portrait > img {
  width: 85px;
  height: 85px;
}
.pal-item-entry .pal-entry-copy {
  flex: 1;
}
.pal-item-entry .pal-entry-copy p {
  color: #98b5c1;
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0 0 0.7rem;
}
.palworld .pal-load-more {
  display: flex;
  margin: 1.5rem auto;
  min-width: 250px;
  color: #aee9dd;
  background: #163640;
  border: 1px solid #37616c;
}
.pal-coverage-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: #92aeb9;
  font-size: 0.8rem;
  border-top: 1px solid #294651;
  padding-top: 1.3rem;
  margin-top: 2rem;
}
.pal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--accent) !important;
}
.pal-back svg {
  transform: rotate(180deg);
}
.pal-detail-head {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid #35535e;
  margin-bottom: 1.7rem;
}
.pal-detail-portrait {
  width: 176px;
  height: 176px;
  border: 1px solid #4a656f;
  border-radius: 12px;
  flex-shrink: 0;
}
.pal-detail-portrait img {
  width: 135px;
  height: 135px;
  object-fit: contain;
  filter: drop-shadow(0 9px 8px #0006);
}
.pal-detail-head h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0.25rem 0 0.75rem;
}
.pal-detail-head .button {
  margin-top: 1.1rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
}
.pal-detail-head .pal-element {
  font-size: 0.85rem;
}
.pal-detail-skills {
  padding: 1.3rem;
  background: #102c35;
  border: 1px solid #35535e;
  border-radius: 6px;
  margin-bottom: 2rem;
}
.pal-detail-skills h2 {
  font-size: 1rem;
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pal-work.expanded {
  padding: 0;
  gap: 0.7rem;
  min-height: auto;
}
.pal-work.expanded .pal-work-skill {
  padding: 0.5rem 0.65rem;
  gap: 0.7rem;
  font-size: 0.875rem;
}
.pal-guide-cover {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: radial-gradient(ellipse at 20% 80%, #295354 0, #0c2834 70%);
  padding: 1rem 1.5rem;
  margin: -1.5rem -1.5rem 1.4rem;
  border-bottom: 1px solid #365762;
}
.pal-guide-cover > img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 9px 8px #0006);
}
.pal-guide-cover > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9ed0ce;
}
.palworld .page > .pal-guide-cover {
  margin: 0 0 1.5rem;
  min-height: 110px;
  border-radius: 8px;
}
.palworld .page > .pal-guide-cover img {
  width: 90px;
  height: 90px;
}
.pal-home-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: #102e39;
  border: 1px solid #355864;
  border-radius: 9px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2rem;
}
.pal-home-feature h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.pal-home-portraits {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pal-home-portraits img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 7px 6px #0006);
}
/* The same visual language extends into the existing planner. */
.palworld .pw-hero {
  padding: 0.6rem 0 1.4rem;
}
.palworld .pw-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.palworld .pw-hero .lede {
  font-size: 1rem;
}
.palworld .pw-compass {
  display: none;
}
.palworld .pw-panel,
.palworld .pw-save,
.palworld .pw-pairs article,
.palworld .pw-action-list > li,
.palworld .pw-goal-step {
  background: #102b35;
  border-color: #31525e;
  color: #c7dce3;
}
.palworld .pw-panel {
  border-top: 2px solid #6ec5bc;
}
.palworld .pw-panel h2 {
  font-size: 1.5rem;
}
.palworld .pw-page input,
.palworld .pw-page select,
.palworld .pw-page textarea {
  color: #deedf2;
  background: #091f2a;
  border-color: #385866;
}
.palworld input::placeholder {
  color: #7d9da9;
}
.palworld .pw-page button {
  background: #173944;
  color: #b9dce0;
  border-color: #3f626e;
}
.palworld .pw-page button.button {
  background: #67dccb;
  color: #09272c;
  border-color: #8bf8df;
}
.palworld .pw-tabs {
  border-color: #30505e;
}
.palworld .pw-tabs button {
  background: transparent;
  border: 1px solid transparent;
}
.palworld .pw-tabs button.active {
  color: #a7f4df;
  background: #17443e;
  border-color: #487a6d;
}
.palworld .pw-stock,
.palworld .pw-notice {
  color: #b6d8d9;
  background: #123b40;
  border-color: #387873;
}
.palworld .pw-error {
  background: #3a2b24;
  color: #f1c89e;
  border-color: #816344;
}
.palworld .pw-empty {
  border-color: #3c5c69;
  color: #a0bdc9;
}
.palworld .pw-parent,
.palworld .pw-page details,
.palworld .pw-result,
.palworld .pw-account {
  border-color: #345461;
}
.palworld .pw-parent small {
  color: #9eb7c2;
}
.palworld .pw-badge {
  background: #2e4841;
  color: #eee2b0;
}
.palworld .pw-calculate span {
  color: #93adb9;
}
.palworld .pw-tree-node {
  background: #133341;
  border-color: #3c6b78;
  min-width: 180px;
  padding: 0.9rem;
}
.palworld .pw-tree-node.owned {
  background: #163f3f;
  border-color: #588f7b;
}
.palworld .pw-tree-node span {
  color: #9ccfce;
  font-size: 0.75rem;
}
.palworld .pw-tree-node strong {
  color: #edf5f4;
  font-size: 1rem;
}
.palworld .pw-tree-node small {
  color: #b7cbd1;
  font-size: 0.8rem;
}
.palworld .pw-tree li > ul::before {
  background: #659394;
}
.pal-art {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  flex-shrink: 0;
}
.pal-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px #0005);
}
.pal-art.small {
  width: 36px;
  height: 36px;
}
.pal-art.medium {
  width: 64px;
  height: 64px;
}
.pal-art.large {
  width: 100px;
  height: 100px;
}
.pw-tree-node > .pal-art {
  margin: 0.3rem auto;
}
.pal-selection {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #355868;
  border-radius: 7px;
  background: #081e2b;
  margin: 1rem 0;
}
.pal-selection strong {
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.5rem;
}
.pal-inline-art {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.palworld .pw-inventory label {
  position: relative;
  padding-left: 39px;
}
.palworld .pw-inventory label > .pal-art {
  position: absolute;
  left: 0;
  top: 1.55rem;
}
.palworld .pw-action-list h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 1550px) {
  .pal-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .pal-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .pal-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pal-catalog-toolbar {
    flex-wrap: wrap;
  }
  .palworld .pal-search {
    flex: 1 1 280px;
  }
  .pal-version {
    display: none;
  }
}
@media (max-width: 560px) {
  .pal-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .pal-portrait {
    height: 135px;
  }
  .pal-entry h2 {
    font-size: 1rem;
  }
  .pal-entry-copy,
  .pal-work {
    padding-inline: 0.65rem;
  }
  .pal-entry-action {
    padding-inline: 0.65rem !important;
  }
  .pal-catalog-filters > p {
    margin: 0.2rem 0 0;
    flex-basis: 100%;
  }
  .palworld .pal-catalog-filters label {
    justify-content: space-between;
    width: 100%;
  }
  .palworld .pal-catalog-filters select {
    width: 61%;
  }
  .pal-section-head {
    padding-bottom: 0.8rem;
  }
  .pal-detail-head {
    gap: 1rem;
  }
  .pal-detail-portrait {
    width: 110px;
    height: 130px;
  }
  .pal-detail-portrait img {
    width: 100px;
    height: 100px;
  }
  .pal-detail-head .button {
    font-size: 0.8rem;
  }
  .palworld .game-nav {
    flex-wrap: wrap;
    gap: 1rem;
    white-space: normal;
  }
  .palworld .game-nav a:first-child {
    flex-basis: 100%;
  }
  .pal-home-feature {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .pal-home-portraits img {
    width: 78px;
    height: 78px;
  }
  .palworld .page {
    padding-inline: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pal-entry,
  .pal-portrait > img {
    transition: none;
  }
  .pal-entry:hover,
  .pal-entry:focus-within,
  .pal-entry:hover .pal-portrait > img {
    transform: none;
  }
}

.palworld .pw-hero { padding:28px 32px; border:1px solid #43636c; border-radius:4px 22px 4px 22px; margin:24px 0; background:linear-gradient(90deg,#0a202af2 30%,#0a202a9e),url('/game-art/palworld-scene.webp') center/cover; }
@media(max-width:600px) {
 .palworld .pw-hero { padding:24px 20px; }
 .palworld .pw-tabs { display:flex; overflow-x:auto; max-width:100%; gap:8px; padding-bottom:10px; flex-wrap:nowrap; }
 .palworld .pw-tabs button,.palworld .pw-tabs a { flex:0 0 auto; white-space:nowrap; min-height:44px; }
}
