@font-face {
    font-family: "Palworld Display";
    src: url("fonts/anton-latin-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Palworld UI";
    src: url("fonts/oxanium-latin-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Palworld UI";
    src: url("fonts/oxanium-latin-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Palworld Body";
    src: url("fonts/noto-sans-latin-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Palworld Body";
    src: url("fonts/noto-sans-latin-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Palworld Body";
    src: url("fonts/noto-sans-latin-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --pal-night: #06111d;
    --pal-deep: #0b2233;
    --pal-ink: #102433;
    --pal-paper: #f5fbfc;
    --pal-mist: #e6f4f5;
    --pal-white: #ffffff;
    --pal-muted: #566d7a;
    --pal-cyan: #35dce1;
    --pal-sky: #47bfe9;
    --pal-coral: #ff735f;
    --pal-gold: #ffd56b;
    --pal-green: #4ecb91;
    --pal-line-dark: rgba(255, 255, 255, 0.16);
    --pal-line-light: rgba(16, 36, 51, 0.18);
    --font-pal-display: "Palworld Display", Impact, sans-serif;
    --font-pal-ui: "Palworld UI", "Segoe UI", sans-serif;
    --font-pal-body: "Palworld Body", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--pal-ink);
    background: var(--pal-paper);
    font-family: var(--font-pal-body);
    line-height: 1.6;
}

body .navbar {
    background: rgba(5, 17, 29, 0.82);
    border-bottom: 1px solid rgba(53, 220, 225, 0.2);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px) saturate(130%);
}

body .navbar.scrolled {
    background: rgba(5, 17, 29, 0.96);
}

body .navbar-link,
body .dropdown-menu a,
body .navbar-signup,
body .navbar-login {
    font-family: var(--font-pal-ui);
    font-weight: 600;
}

body .navbar-link::after {
    background: var(--pal-cyan);
}

body .navbar-signup {
    color: #071620;
    background: var(--pal-cyan);
    border-color: var(--pal-cyan);
}

body .navbar-signup:hover {
    color: #071620;
    background: #71edf0;
    border-color: #71edf0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    padding: 10px 14px;
    color: #071620;
    background: var(--pal-gold);
    border: 2px solid var(--pal-night);
    border-radius: 4px;
    font-family: var(--font-pal-ui);
    font-weight: 700;
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.palworld-page {
    overflow: clip;
}

.pal-shell {
    width: min(1260px, calc(100% - 48px));
    margin: 0 auto;
}

.pal-kicker,
.pal-collab {
    margin: 0;
    font-family: var(--font-pal-ui);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.pal-kicker {
    color: #007987;
}

.pal-hero {
    position: relative;
    display: grid;
    min-height: 820px;
    color: var(--pal-white);
    isolation: isolate;
}

.pal-hero-media,
.pal-hero-shade {
    position: absolute;
    inset: 0;
}

.pal-hero-media {
    z-index: -3;
    overflow: hidden;
    background: #12364a;
}

.pal-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    transform: scale(1.015);
    transition: transform 380ms ease-out;
}

.pal-hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(3, 13, 22, 0.92) 0%, rgba(3, 13, 22, 0.76) 37%, rgba(3, 13, 22, 0.18) 68%, rgba(3, 13, 22, 0.08) 100%),
        linear-gradient(180deg, rgba(2, 11, 18, 0.28) 0%, rgba(2, 11, 18, 0.02) 45%, rgba(2, 11, 18, 0.64) 100%);
}

.pal-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 9px;
    background: linear-gradient(90deg, var(--pal-cyan) 0 44%, var(--pal-coral) 44% 73%, var(--pal-gold) 73%);
}

.pal-hero-content {
    display: flex;
    align-items: center;
    min-height: 100%;
    padding-top: 112px;
    padding-bottom: 76px;
}

.pal-hero-copy {
    width: min(720px, 64%);
}

.pal-collab {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #dffcff;
}

.pal-collab span {
    padding-block: 5px;
    border-bottom: 2px solid rgba(53, 220, 225, 0.65);
}

.pal-collab b {
    color: var(--pal-coral);
    font-family: var(--font-pal-display);
    font-size: 1.4rem;
    font-weight: 400;
}

.pal-hero h1 {
    margin: 0;
    max-width: 720px;
    line-height: 0.9;
}

.pal-title-world {
    display: block;
    color: var(--pal-white);
    font-family: var(--font-pal-display);
    font-size: 7.25rem;
    font-weight: 400;
    text-transform: uppercase;
    text-shadow:
        0 5px 0 rgba(11, 95, 122, 0.68),
        0 15px 34px rgba(0, 0, 0, 0.55);
    -webkit-text-stroke: 1px rgba(207, 251, 255, 0.75);
}

.pal-title-sub {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    color: var(--pal-gold);
    font-family: var(--font-pal-ui);
    font-size: 1.62rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.pal-title-sub::before {
    content: "";
    flex: 0 0 64px;
    height: 3px;
    background: var(--pal-coral);
}

.pal-hero-lead {
    max-width: 620px;
    margin: 28px 0 0;
    color: #edf9fb;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.7;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.pal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.pal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 19px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-family: var(--font-pal-ui);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: transform 160ms ease, color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.pal-button:hover {
    transform: translateY(-2px);
}

.pal-button:focus-visible,
.palpedia-card:focus-visible,
.explore-links a:focus-visible,
.text-link:focus-visible,
.pal-footer a:focus-visible,
.collab-strip a:focus-visible {
    outline: 3px solid var(--pal-gold);
    outline-offset: 3px;
}

.pal-button-primary {
    color: #071620;
    background: var(--pal-cyan);
    border-color: var(--pal-cyan);
    box-shadow: 5px 5px 0 rgba(255, 115, 95, 0.92);
}

.pal-button-primary:hover {
    color: #071620;
    background: #78f0f2;
    border-color: #78f0f2;
}

.pal-button-ghost {
    color: var(--pal-white);
    background: rgba(7, 22, 32, 0.58);
    border-color: rgba(255, 255, 255, 0.58);
}

.pal-button-ghost:hover {
    color: var(--pal-night);
    background: var(--pal-white);
    border-color: var(--pal-white);
}

.collab-strip {
    color: var(--pal-ink);
    background: var(--pal-mist);
    border-bottom: 2px solid rgba(16, 36, 51, 0.12);
}

.collab-layout {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    min-height: 116px;
    padding-block: 24px;
}

.collab-layout img {
    display: block;
    width: 176px;
    height: auto;
    filter: brightness(0) saturate(100%);
}

.collab-layout p {
    margin: 0;
    color: #3d5564;
    font-size: 1rem;
}

.collab-layout p strong {
    color: var(--pal-ink);
}

.collab-layout a,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #087480;
    font-family: var(--font-pal-ui);
    font-weight: 700;
    text-decoration: none;
}

.collab-layout a:hover,
.text-link:hover {
    color: #c94d3d;
}

.palpedia-section {
    padding: 104px 0 112px;
    background:
        linear-gradient(rgba(71, 191, 233, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 191, 233, 0.06) 1px, transparent 1px),
        var(--pal-paper);
    background-size: 34px 34px;
}

.palpedia-heading {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px 56px;
    align-items: start;
    margin-bottom: 44px;
}

.palpedia-heading .pal-kicker {
    padding-top: 11px;
}

.palpedia-heading h2,
.api-copy h2,
.mods-content h2,
.explore-intro h2,
.faq-section h2 {
    margin: 0;
    font-family: var(--font-pal-display);
    font-size: 3.45rem;
    font-weight: 400;
    line-height: 1.02;
    text-transform: uppercase;
}

.palpedia-heading h2 {
    max-width: 880px;
    color: var(--pal-ink);
}

.palpedia-heading > p:last-child {
    grid-column: 2;
    max-width: 680px;
    margin: -7px 0 0;
    color: var(--pal-muted);
    font-size: 1.05rem;
}

.palpedia-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.palpedia-card {
    position: relative;
    display: grid;
    grid-template-rows: 190px minmax(132px, auto);
    min-width: 0;
    overflow: hidden;
    color: var(--pal-ink);
    background: var(--pal-white);
    border: 2px solid #173446;
    border-radius: 6px;
    box-shadow: 7px 7px 0 rgba(53, 220, 225, 0.25);
    text-decoration: none;
    transition: transform 170ms ease, box-shadow 170ms ease;
}

.palpedia-card:nth-child(3n + 2) {
    box-shadow: 7px 7px 0 rgba(255, 115, 95, 0.22);
}

.palpedia-card:nth-child(3n) {
    box-shadow: 7px 7px 0 rgba(255, 213, 107, 0.32);
}

.palpedia-card:hover {
    transform: translate(-2px, -3px);
    box-shadow: 10px 11px 0 rgba(53, 220, 225, 0.3);
}

.palpedia-card-media {
    display: block;
    overflow: hidden;
    border-bottom: 2px solid #173446;
    background: #d7eaef;
}

.palpedia-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.palpedia-card:hover .palpedia-card-media img {
    transform: scale(1.035);
}

.palpedia-card-copy {
    display: flex;
    flex-direction: column;
    padding: 20px 48px 22px 22px;
}

.palpedia-card-copy small {
    color: #007987;
    font-family: var(--font-pal-ui);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.palpedia-card-copy strong {
    margin-top: 6px;
    color: var(--pal-ink);
    font-family: var(--font-pal-display);
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.palpedia-card-copy span {
    margin-top: 8px;
    color: var(--pal-muted);
    font-size: 0.91rem;
    line-height: 1.5;
}

.palpedia-card > i {
    position: absolute;
    right: 19px;
    bottom: 23px;
    color: #087480;
}

.api-section {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
    color: var(--pal-white);
    background: var(--pal-deep);
}

.api-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent 0 62%, rgba(53, 220, 225, 0.07) 62% 63%, transparent 63%),
        linear-gradient(45deg, transparent 0 75%, rgba(255, 115, 95, 0.06) 75% 76%, transparent 76%);
}

.api-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(460px, 1.07fr);
    gap: 72px;
    align-items: center;
}

.api-copy .pal-kicker,
.mods-content .pal-kicker {
    color: var(--pal-cyan);
}

.api-copy h2 {
    max-width: 680px;
    margin-top: 14px;
    color: var(--pal-white);
}

.api-copy > p:not(.pal-kicker) {
    max-width: 650px;
    margin: 23px 0 0;
    color: #c9dbe2;
}

.api-principles {
    margin: 34px 0 28px;
    border-top: 1px solid var(--pal-line-dark);
}

.api-principles > div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--pal-line-dark);
}

.api-principles i {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #071620;
    background: var(--pal-cyan);
    border-radius: 4px;
}

.api-principles span {
    color: #b9ced7;
    font-size: 0.9rem;
}

.api-principles strong {
    display: block;
    margin-bottom: 2px;
    color: var(--pal-white);
    font-family: var(--font-pal-ui);
    font-size: 0.85rem;
}

.api-copy .text-link {
    color: var(--pal-gold);
}

.api-console {
    overflow: hidden;
    background: #051019;
    border: 2px solid rgba(133, 231, 235, 0.54);
    border-radius: 6px;
    box-shadow: 14px 16px 0 rgba(255, 115, 95, 0.17);
}

.api-console-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 52px;
    padding: 12px 17px;
    color: #e3f9fb;
    background: #102c3d;
    border-bottom: 1px solid rgba(133, 231, 235, 0.28);
    font-family: var(--font-pal-ui);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.api-console-status {
    color: var(--pal-gold);
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 22px 0;
    padding: 12px 14px;
    background: #0b1d29;
    border-left: 4px solid var(--pal-green);
    border-radius: 3px;
    font-family: var(--font-pal-ui);
}

.api-endpoint span {
    color: var(--pal-green);
    font-size: 0.76rem;
    font-weight: 700;
}

.api-endpoint code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #f5fbfc;
}

.api-console pre {
    margin: 0;
    padding: 22px;
    overflow: auto;
    color: #acdfe4;
    font-family: var(--font-pal-ui);
    font-size: 0.8rem;
    line-height: 1.72;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.api-console > p {
    margin: 0;
    padding: 13px 22px 17px;
    color: #8098a4;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.74rem;
}

.mods-section {
    position: relative;
    display: grid;
    min-height: 680px;
    color: var(--pal-white);
    isolation: isolate;
}

.mods-backdrop,
.mods-shade {
    position: absolute;
    inset: 0;
}

.mods-backdrop {
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mods-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(4, 14, 23, 0.92) 0%, rgba(4, 14, 23, 0.72) 42%, rgba(4, 14, 23, 0.22) 74%, rgba(4, 14, 23, 0.18) 100%),
        linear-gradient(180deg, rgba(4, 14, 23, 0.18), rgba(4, 14, 23, 0.62));
}

.mods-content {
    align-self: center;
    padding-block: 88px;
}

.mods-content h2 {
    max-width: 700px;
    margin-top: 14px;
}

.mods-content > p:not(.pal-kicker) {
    max-width: 600px;
    margin: 22px 0 0;
    color: #e2eff2;
    font-size: 1.05rem;
}

.pal-button-light {
    margin-top: 30px;
    color: #071620;
    background: var(--pal-white);
    border-color: var(--pal-white);
    box-shadow: 5px 5px 0 var(--pal-cyan);
}

.pal-button-light:hover {
    color: #071620;
    background: var(--pal-gold);
    border-color: var(--pal-gold);
}

.explore-section {
    padding: 102px 0;
    color: var(--pal-ink);
    background: #eaf6f7;
    border-bottom: 1px solid var(--pal-line-light);
}

.explore-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    gap: 72px;
    align-items: center;
}

.explore-intro {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.explore-intro img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
}

.explore-intro h2 {
    margin-top: 10px;
    color: var(--pal-ink);
    font-size: 3rem;
}

.explore-intro p:last-child {
    margin: 18px 0 0;
    color: var(--pal-muted);
}

.explore-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.explore-links a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 1px 12px;
    min-height: 86px;
    padding: 16px 18px;
    color: var(--pal-ink);
    background: var(--pal-white);
    border: 2px solid #244457;
    border-radius: 5px;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.explore-links a:hover {
    color: #071620;
    background: #d7fbfc;
    transform: translateX(3px);
}

.explore-links span {
    align-self: end;
    font-family: var(--font-pal-ui);
    font-size: 0.9rem;
    font-weight: 700;
}

.explore-links small {
    color: var(--pal-muted);
    font-size: 0.76rem;
}

.explore-links i {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: #007987;
}

.faq-section {
    padding: 102px 0 110px;
    color: var(--pal-white);
    background: var(--pal-night);
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.68fr 1.32fr;
    gap: 80px;
    align-items: start;
}

.faq-section .pal-kicker {
    color: var(--pal-cyan);
}

.faq-section h2 {
    margin-top: 13px;
}

.faq-list {
    border-top: 1px solid var(--pal-line-dark);
}

.faq-list details {
    border-bottom: 1px solid var(--pal-line-dark);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
    padding: 16px 0;
    color: var(--pal-white);
    cursor: pointer;
    list-style: none;
    font-family: var(--font-pal-ui);
    font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary i {
    color: var(--pal-cyan);
    transition: transform 160ms ease;
}

.faq-list details[open] summary i {
    transform: rotate(45deg);
}

.faq-list details p {
    max-width: 720px;
    margin: -4px 0 24px;
    color: #aebfc7;
}

.pal-footer {
    color: #b7c7cd;
    background: #030b12;
    border-top: 1px solid rgba(53, 220, 225, 0.14);
}

.pal-footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.8fr 0.9fr 0.8fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 54px;
}

.pal-footer-brand img {
    display: block;
    width: 178px;
    height: auto;
}

.pal-footer-brand p {
    max-width: 340px;
    margin: 17px 0 0;
    color: #8fa3ad;
    font-size: 0.9rem;
}

.pal-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.pal-footer-column h3 {
    margin: 0 0 8px;
    color: var(--pal-white);
    font-family: var(--font-pal-ui);
    font-size: 0.84rem;
    text-transform: uppercase;
}

.pal-footer-column a {
    min-height: 30px;
    color: #9eb1b9;
    text-decoration: none;
}

.pal-footer-column a:hover {
    color: var(--pal-cyan);
}

.pal-social-links {
    display: flex;
    gap: 9px;
}

.pal-social-links a {
    display: grid;
    width: 42px;
    height: 42px;
    min-height: 42px;
    place-items: center;
    color: #071620;
    background: var(--pal-cyan);
    border-radius: 4px;
}

.pal-social-links a:hover {
    color: #071620;
    background: var(--pal-gold);
}

.footer-news-link {
    margin-top: 8px;
    font-family: var(--font-pal-ui);
    font-size: 0.82rem;
    font-weight: 700;
}

.pal-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #748a94;
    font-size: 0.78rem;
}

@media (max-width: 1100px) {
    .pal-hero {
        min-height: 760px;
    }

    .pal-hero-copy {
        width: min(700px, 74%);
    }

    .pal-title-world {
        font-size: 6rem;
    }

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

    .api-layout {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .api-console {
        width: min(100%, 720px);
    }

    .explore-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .faq-layout {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 48px;
    }

    .pal-footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 76px;
    }

    .pal-shell {
        width: min(100% - 30px, 620px);
    }

    .pal-hero {
        min-height: 750px;
    }

    .pal-hero-media img {
        object-position: 66% center;
    }

    .pal-hero-shade {
        background:
            linear-gradient(180deg, rgba(3, 13, 22, 0.3) 0%, rgba(3, 13, 22, 0.38) 28%, rgba(3, 13, 22, 0.9) 77%, rgba(3, 13, 22, 0.98) 100%),
            linear-gradient(90deg, rgba(3, 13, 22, 0.64), rgba(3, 13, 22, 0.12));
    }

    .pal-hero-content {
        align-items: end;
        padding-top: 104px;
        padding-bottom: 64px;
    }

    .pal-hero-copy {
        width: 100%;
    }

    .pal-collab {
        margin-bottom: 16px;
        font-size: 0.74rem;
    }

    .pal-title-world {
        font-size: 4.15rem;
        text-shadow:
            0 4px 0 rgba(11, 95, 122, 0.68),
            0 12px 28px rgba(0, 0, 0, 0.55);
    }

    .pal-title-sub {
        margin-top: 16px;
        font-size: 1.03rem;
    }

    .pal-title-sub::before {
        flex-basis: 38px;
    }

    .pal-hero-lead {
        margin-top: 20px;
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .pal-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 25px;
    }

    .pal-button {
        width: 100%;
        min-height: 52px;
    }

    .collab-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
        padding-block: 28px;
    }

    .collab-layout img {
        width: 150px;
    }

    .collab-layout a {
        min-height: 44px;
    }

    .palpedia-section,
    .api-section,
    .explore-section,
    .faq-section {
        padding: 78px 0;
    }

    .palpedia-heading {
        display: block;
        margin-bottom: 34px;
    }

    .palpedia-heading .pal-kicker {
        padding-top: 0;
    }

    .palpedia-heading h2,
    .api-copy h2,
    .mods-content h2,
    .faq-section h2 {
        margin-top: 12px;
        font-size: 2.55rem;
    }

    .palpedia-heading > p:last-child {
        margin: 18px 0 0;
    }

    .palpedia-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .palpedia-card {
        grid-template-rows: 168px minmax(128px, auto);
    }

    .api-layout {
        gap: 42px;
    }

    .api-principles > div {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .api-endpoint {
        margin: 16px 14px 0;
    }

    .api-console pre,
    .api-console > p {
        padding-inline: 14px;
    }

    .mods-section {
        min-height: 690px;
    }

    .mods-backdrop {
        object-position: 60% center;
    }

    .mods-shade {
        background:
            linear-gradient(180deg, rgba(4, 14, 23, 0.2) 0%, rgba(4, 14, 23, 0.64) 38%, rgba(4, 14, 23, 0.96) 100%);
    }

    .mods-content {
        align-self: end;
        padding-block: 74px;
    }

    .explore-intro {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 17px;
    }

    .explore-intro img {
        width: 68px;
        height: 68px;
    }

    .explore-intro h2 {
        font-size: 2.25rem;
    }

    .explore-links {
        grid-template-columns: 1fr;
    }

    .explore-links a {
        min-height: 78px;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .faq-list summary {
        min-height: 72px;
    }

    .pal-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 24px;
        padding-top: 54px;
    }

    .pal-footer-brand {
        grid-column: 1 / -1;
    }

    .pal-footer-column a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .pal-footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 430px) {
    .pal-title-world {
        font-size: 3.55rem;
    }

    .pal-title-sub {
        font-size: 0.9rem;
    }

    .palpedia-heading h2,
    .api-copy h2,
    .mods-content h2,
    .faq-section h2 {
        font-size: 2.25rem;
    }

    .pal-footer-grid {
        grid-template-columns: 1fr;
    }

    .pal-footer-brand {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
