/* Palpagos expedition outpost. Original project-owned art, no official assets.
   One token contract for the directory tile, hub and shared calculator. */
.game-theme--palworld {
  --palworld-hero-art: url("/images/other-games/palworld-expedition-outpost-hero.webp");
  --palworld-companion-art: url("/images/other-games/palworld-original-expedition-companions-v1.webp");
  --other-bg: #e9eee6;
  --other-panel-solid: #fffdf4;
  --other-surface: #fffdf4;
  --other-surface-strong: #f1f4e9;
  --other-text: #19392e;
  --other-muted: #4c6356;
  --other-accent: #256b50;
  --other-accent-strong: #174c38;
  --other-accent-rgb: 37, 107, 80;
  --other-link: #155c78;
  --other-focus: #00587a;
  --other-border-width: 1px;
  --other-border-style: solid;
  --other-border: #899b88;
  --other-control-border: #617c68;
  --other-display-font: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --other-body-font: "Segoe UI", system-ui, sans-serif;
  --other-heading-letter-spacing: -0.035em;
  --other-heading-weight: 800;
  --other-radius-large: 28px 28px 12px 12px;
  --other-radius-medium: 18px;
  --other-radius-control: 9px;
  --other-chip-radius: 999px;
  --other-button-radius: 999px;
  --other-panel-shadow: 0 5px 0 #19392e0d, 0 20px 50px #19392e12;
  --other-hover-shadow: 0 8px 0 #19392e10, 0 22px 48px #19392e1a;
  --other-hover-lift: -2px;
  --other-method-background: #f1f4e9;
  --other-product-background: #fffdf4;
  --other-control-background: #fffef9;
  /* Shared site inputs use these aliases in higher-specificity selectors. */
  --panel-alt: var(--other-control-background);
  --panel-highlight: var(--other-control-background);
  --ink: var(--other-text);
  --other-chip-background: #e2ecd6;
  --other-chip-foreground: #19392e;
  --other-chip-border: #617c68;
  --other-button-background: #174c38;
  --other-button-foreground: #fffdf4;
  --other-button-border: #174c38;
  --other-action-note-background: #fff0b7;
  --other-page-background:
    repeating-radial-gradient(
      ellipse at 105% 10%,
      transparent 0 35px,
      #617c6810 36px 37px,
      transparent 38px 66px
    ),
    linear-gradient(145deg, #e9eee6, #edf2ea);
  --other-hero-background:
    linear-gradient(
      90deg,
      #fffdf4 0%,
      #fffdf4f7 30%,
      #fffdf4df 47%,
      #fffdf460 64%,
      #fffdf400 100%
    ),
    var(--palworld-hero-art) center / cover no-repeat;
  --other-directory-card-background:
    var(--palworld-companion-art) center 12px / auto 138px no-repeat,
    linear-gradient(0deg, #fffdf4 0%, #fffdf4 65%, #fffdf480 100%),
    var(--palworld-hero-art) center / cover no-repeat;
  --other-hero-motif: radial-gradient(circle, #75c7db44, transparent 70%);
  --other-directory-card-motif: none;
  --other-hero-decoration: none;
  --other-product-radius: 18px;
  --other-method-radius: 18px;
  --other-link-decoration-thickness: 0.1em;
  --other-chart-background-start: #fffdf4;
  --other-chart-background-end: #edf2ea;
  --other-chart-axis: #617c68;
  --other-chart-bar-top: #256b50;
  --other-chart-bar-bottom: #155c78;
  --other-chart-boundary: #155c78;
  --other-chart-mid: #806009;
  --other-chart-label: #19392e;
  --other-chart-font-family: "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

.game-theme--palworld :is(.other-hero, .other-calc-hero) {
  background: var(--other-hero-background);
  border-top: 6px solid #e2b84f;
  padding-block: clamp(32px, 6vw, 76px);
}

.game-theme--palworld :is(.other-hero, .other-calc-hero)::before {
  display: none;
}

/* Reserve an art column so every companion stays clear of copy and controls.
   The existing transparent ensemble is decorative and never crops a creature. */
.game-theme--palworld.game-hub-page .other-hero,
.other-game-calculator.game-theme--palworld .other-calc-hero {
  position: relative;
  min-height: 25rem;
  padding-right: 44%;
}

.game-theme--palworld.game-hub-page .other-hero::after,
.other-game-calculator.game-theme--palworld .other-calc-hero::after {
  position: absolute;
  display: block;
  z-index: 0;
  inset: 50% 2% auto auto;
  width: 40%;
  height: auto;
  aspect-ratio: 3 / 2;
  border: 0;
  border-radius: 0;
  background: var(--palworld-companion-art) center / contain no-repeat;
  box-shadow: none;
  content: "";
  opacity: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.other-game-card.game-theme--palworld {
  padding-top: 164px;
}
.game-theme--palworld :is(.other-hero h1, .other-calc-hero h1) {
  max-width: 14ch;
}
.game-theme--palworld :is(.other-hero__lede, .other-calc-hero > p) {
  max-width: 46ch;
}
.game-theme--palworld :is(.other-eyebrow, .other-calc-kicker) {
  color: #174c38;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.game-theme--palworld :is(.other-eyebrow, .other-calc-kicker)::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.6rem;
  border: 2px solid #174c38;
  border-radius: 50%;
  background: #e2b84f;
}
.game-theme--palworld :is(input, select, button, .other-action-link) {
  min-height: 44px;
}
.game-theme--palworld
  input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.game-theme--palworld select:focus-visible {
  background: var(--other-control-background);
  color: var(--other-text);
}
.game-theme--palworld select,
.game-theme--palworld select option,
.game-theme--palworld select optgroup {
  color-scheme: light;
  background: var(--other-control-background);
  color: var(--other-text);
}
.game-theme--palworld :is(button, .other-action-link):focus-visible,
.game-theme--palworld :is(input, select, a, summary):focus-visible {
  outline: 3px solid var(--other-focus);
  outline-offset: 4px;
}
.game-theme--palworld :is(td, dd, input) {
  font-variant-numeric: tabular-nums;
}

/* The masthead summary can be narrow even on desktop. Size its contents from
   the card, and use rounded tiles instead of the theme's pill-shaped chips. */
.other-game-calculator.game-theme--palworld .other-calc-quick-summary {
  container: palworld-summary / inline-size;
  gap: 0;
}

.other-game-calculator.game-theme--palworld .other-calc-overview-heading {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.other-game-calculator.game-theme--palworld .other-calc-overview-heading h2 {
  margin-bottom: 0;
}

.other-game-calculator.game-theme--palworld .other-calc-quick-basis {
  max-width: none;
  margin: 0;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.other-game-calculator.game-theme--palworld .other-calc-quick-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.other-game-calculator.game-theme--palworld .other-calc-quick-metric {
  grid-column: auto;
  padding: 12px;
  border-radius: 12px;
}

.other-game-calculator.game-theme--palworld .other-calc-quick-metric dd {
  overflow-wrap: normal;
  white-space: nowrap;
  font-size: clamp(1.05rem, 7cqi, 1.4rem);
  line-height: 1.2;
}

@container palworld-summary (min-width: 30rem) {
  .other-game-calculator.game-theme--palworld .other-calc-quick-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container palworld-summary (max-width: 15rem) {
  .other-game-calculator.game-theme--palworld .other-calc-quick-metrics {
    grid-template-columns: 1fr;
  }

  .other-game-calculator.game-theme--palworld .other-calc-quick-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .other-game-calculator.game-theme--palworld .other-calc-quick-metric dd {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .game-theme--palworld {
    --other-hero-background:
      linear-gradient(0deg, #fffdf4 0%, #fffdf4f5 53%, #fffdf4a6 100%),
      var(--palworld-hero-art) 68% center / cover no-repeat;
  }
}
@media (max-width: 900px) {
  .game-theme--palworld.game-hub-page .other-hero,
  .other-game-calculator.game-theme--palworld .other-calc-hero {
    min-height: 0;
    padding-right: clamp(22px, 5vw, 40px);
  }

  .game-theme--palworld.game-hub-page .other-hero::after,
  .other-game-calculator.game-theme--palworld .other-calc-hero::after {
    position: relative;
    inset: auto;
    order: 8;
    flex: none;
    align-self: center;
    width: min(100%, 15rem);
    margin: 16px auto 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-theme--palworld {
    --other-hover-lift: 0px;
  }
  .game-theme--palworld *,
  .game-theme--palworld *::before,
  .game-theme--palworld *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  .game-theme--palworld {
    --other-hero-background: #fffdf4;
    --other-directory-card-background: #fffdf4;
    --other-page-background: #e9eee6;
    --other-border: #19392e;
    --other-control-border: #19392e;
    --other-muted: #19392e;
  }
}

@media (prefers-contrast: more), (forced-colors: active) {
  .game-theme--palworld.game-hub-page .other-hero,
  .other-game-calculator.game-theme--palworld .other-calc-hero {
    min-height: 0;
    padding-right: clamp(22px, 5vw, 64px);
  }

  .game-theme--palworld.game-hub-page .other-hero::after,
  .other-game-calculator.game-theme--palworld .other-calc-hero::after {
    display: none;
  }

  .other-game-card.game-theme--palworld {
    padding-top: 22px;
    background: var(--other-panel-solid);
  }
}
