@font-face {
    font-family: Kanit;
    src: url('../fonts/Kanit-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Kanit;
    src: url('../fonts/Kanit-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark light;
    --forest: #252d27;
    --deep-forest: #1c241f;
    --paper: #edf0e7;
    --fern: #c1cbb7;
    --rust: #bc402c;
    --ink: #303b32;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--forest); color: var(--paper); font-family: Kanit, Tahoma, sans-serif; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible, summary:focus-visible { outline: 3px solid #d27548; outline-offset: 6px; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 10; background: var(--paper); color: var(--ink); padding: 12px 20px; }
.skip-link:focus { top: 12px; }

.site-header { background: var(--deep-forest); border-bottom: 1px solid #ffffff12; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: 1px; line-height: 1.2; }
.brand-name small { display: block; margin-top: 5px; color: var(--fern); font-size: 10px; font-weight: 400; letter-spacing: 2px; }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.main-nav a { padding-block: 10px; }
.main-nav a:hover { color: var(--fern); }
.main-nav .nav-contact { border: 1px solid #596253; padding: 9px 18px; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 61% center; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24, 32, 26, .96), rgba(24, 32, 26, .68) 45%, rgba(24, 32, 26, .15)), linear-gradient(0deg, var(--forest), transparent 45%); }
.hero-inner { min-height: 590px; display: flex; align-items: center; padding-block: 60px 74px; }
.hero-content { max-width: 650px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 12px; letter-spacing: 2.5px; color: var(--fern); }
.eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--rust); }
h1 { margin: 0; font-size: clamp(100px, 12vw, 158px); font-weight: 700; line-height: .9; letter-spacing: -6px; }
h1 span { display: block; margin-top: 18px; font-size: clamp(16px, 2vw, 23px); line-height: 1.4; letter-spacing: 8px; font-weight: 400; }
.hero-tagline { margin: 30px 0 10px; font-size: clamp(25px, 3vw, 34px); font-weight: 400; line-height: 1.4; }
.hero-description { max-width: 450px; margin: 0; color: #d3dace; font-size: 16px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 26px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 50px; padding: 12px 24px; background: var(--rust); color: #fff; font-size: 15px; transition: background .15s; }
.button:hover { background: #9e3322; }
.button svg, .text-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-block: 9px; font-size: 14px; border-bottom: 1px solid #91a184; }
.text-link:hover { color: var(--fern); }

.survival-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #69715d; padding-block: 28px 34px; }
.survival-item { display: flex; align-items: center; gap: 18px; padding-inline: 30px; border-left: 1px solid #56604f; }
.survival-item:first-child { padding-left: 0; border: 0; }
.survival-item:last-child { padding-right: 0; }
.survival-item svg { width: 30px; height: 30px; color: var(--fern); flex-shrink: 0; }
.survival-item strong { display: block; font-size: 18px; font-weight: 400; }
.survival-item p { margin: 2px 0 0; color: var(--fern); font-size: 13px; }

.requirements { padding-block: 54px 58px; border-top: 1px solid #ffffff1c; }
.requirements .section-label { color: var(--fern); }
.requirements-heading { margin-bottom: 26px; }
.requirements-heading > p:last-child { margin: 14px 0 0; color: var(--fern); font-size: 14px; }
.requirements-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: 15px; }
.requirements-table th, .requirements-table td { padding: 18px 22px; border-bottom: 1px solid #56604f; vertical-align: top; overflow-wrap: anywhere; }
.requirements-table thead th { border-top: 1px solid #69715d; background: var(--deep-forest); font-size: 18px; font-weight: 400; }
.requirements-table thead th:first-child { width: 24%; font-size: 14px; color: var(--fern); }
.requirements-table tbody th { color: var(--fern); font-weight: 400; }
.requirements-table small { color: var(--fern); font-size: 12px; }
.requirements-footnote { margin: 18px 0 0; color: var(--fern); font-size: 12px; }
.getting-started { padding-block: 68px 62px; color: var(--ink); background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-label { margin: 0 0 7px; color: #58694e; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; }
h2 { margin: 0; font-size: clamp(27px, 3vw, 36px); font-weight: 400; line-height: 1.35; }
.section-heading > p { max-width: 340px; margin: 0; font-size: 14px; color: #5b6557; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.steps li { border-top: 1px solid #bcc5b5; padding-top: 20px; }
.step-number { font-size: 13px; font-weight: 700; color: #a63826; }
.steps h3 { margin: 11px 0 8px; font-size: 21px; font-weight: 400; }
.steps p { margin: 0; font-size: 14px; color: #5b6557; }
.steps code { color: var(--ink); font-size: 13px; }
.launcher-note { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid #cdd4c5; color: #5b6557; font-size: 13px; }
.launcher-note a { color: #993724; text-decoration: underline; text-underline-offset: 4px; }

.community { padding-block: 64px; border-bottom: 1px solid #ffffff1c; }
.community-layout { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 60px; }
.community .section-label { color: var(--fern); }
.community-intro > p:not(.section-label) { max-width: 360px; margin: 20px 0 16px; color: var(--fern); font-size: 15px; }
.facebook-card { min-width: 0; background: var(--paper); color: var(--ink); border: 1px solid #bcc5b5; }
.facebook-cover { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 178px; padding: 24px; overflow: hidden; background: var(--deep-forest); }
.facebook-cover::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #142016e6, #14201625); }
.facebook-cover-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.facebook-cover-logo { width: 176px; height: auto; }
.facebook-platform { position: absolute; top: 16px; right: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: #1c241fe6; color: #fff; font-size: 12px; }
.facebook-platform svg { width: 16px; height: 16px; }
.facebook-details { padding: 24px; }
.facebook-identity { display: flex; align-items: center; gap: 13px; }
.facebook-avatar { width: 48px; height: 48px; flex-shrink: 0; }
.facebook-identity h3 { margin: 0; font-size: 23px; line-height: 1.3; }
.facebook-identity h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.facebook-identity p { margin: 4px 0 0; font-size: 13px; color: #58694e; }
.facebook-description { margin: 20px 0; font-size: 14px; }
.facebook-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.facebook-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 16px; font-size: 14px; border: 1px solid transparent; }
.facebook-button svg { width: 20px; height: 20px; flex-shrink: 0; }
.facebook-follow { background: #0860d8; color: #fff; }
.facebook-follow:hover { background: #064da9; }
.facebook-like { border-color: #899780; }
.facebook-like:hover { background: #dde4d6; }
.facebook-action-note { margin: 14px 0 0; font-size: 12px; color: #58694e; }
.facebook-card a:focus-visible { outline: 3px solid #0860d8; outline-offset: 4px; }
.facebook-cover:focus-visible { outline-offset: -4px; outline-color: #fff; }
.contact { padding-block: 48px; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; }
.contact .section-label { color: var(--fern); }
.contact h2 { font-size: 28px; }
.contact p:last-child { margin: 9px 0 0; color: var(--fern); font-size: 14px; }
.contact-link { display: flex; align-items: center; gap: 18px; flex-shrink: 0; padding-block: 14px; border-bottom: 1px solid #91a184; font-size: 18px; }
.contact-link svg { width: 21px; height: 21px; }
.contact-link:hover { color: var(--fern); }
.site-footer { border-top: 1px solid #ffffff1c; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; color: #bac4b3; font-size: 12px; }
.footer-inner p { margin: 0; }
.footer-inner a { padding-block: 12px; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }

@media (min-width: 1600px) {
    .hero-image { object-position: center; }
}

@media (max-width: 760px) {
    .container { width: calc(100% - 40px); }
    .header-inner { min-height: 78px; gap: 16px; }
    .brand img { width: 34px; height: 34px; }
    .brand-name { font-size: 17px; }
    .brand-name small { font-size: 8px; letter-spacing: 1.4px; }
    .main-nav { gap: 18px; font-size: 13px; }
    .main-nav .nav-home { display: none; }
    .main-nav .nav-contact { border: 0; padding: 10px 0; }
    .hero-inner { min-height: 555px; padding-block: 52px 58px; }
    .hero-image { object-position: 57% center; }
    .hero::before { background: linear-gradient(90deg, rgba(24, 32, 26, .91), rgba(24, 32, 26, .42)), linear-gradient(0deg, var(--forest), transparent 65%); }
    h1 { font-size: 118px; }
    h1 span { font-size: 17px; letter-spacing: 5px; }
    .hero-tagline { max-width: 350px; }
    .survival-strip { padding-block: 23px; }
    .survival-item { display: block; padding-inline: 16px; }
    .survival-item svg { width: 25px; height: 25px; margin-bottom: 8px; }
    .survival-item strong { font-size: 16px; }
    .survival-item p { font-size: 12px; }
    .getting-started { padding-block: 46px; }
    .section-heading { display: block; margin-bottom: 28px; }
    .section-heading > p { margin-top: 14px; }
    .steps { grid-template-columns: 1fr; gap: 23px; }
    .steps li { position: relative; padding: 18px 0 0 44px; }
    .step-number { position: absolute; left: 0; top: 23px; }
    .steps h3 { margin-top: 0; font-size: 20px; }
    .contact { padding-block: 38px; }
    .contact-inner { align-items: start; flex-direction: column; gap: 16px; }
    .contact h2 { font-size: 25px; }
    .contact-link { font-size: 17px; overflow-wrap: anywhere; }
    .footer-inner { padding-block: 18px; align-items: start; flex-direction: column; gap: 4px; }
}

@media (max-width: 380px) {
    .brand-name small { display: none; }
    .main-nav { gap: 12px; font-size: 12px; }
    .brand { gap: 8px; }
    .brand-name { font-size: 15px; }
    .hero-actions { gap: 12px 18px; }
    .button { padding-inline: 18px; gap: 18px; }
    .hero-tagline { font-size: 25px; }
    .survival-item { padding-inline: 10px; }
}

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

/* The game download is the primary action; keep the site's forest palette. */
h1 { font-size: clamp(90px, 11vw, 146px); letter-spacing: -4px; }
h1 span { margin-top: 6px; font-size: .62em; line-height: 1; letter-spacing: 9px; font-weight: 700; }
.hero-platform { margin: 19px 0 0; color: var(--fern); font-size: 12px; }
.hero-platform a { text-decoration: underline; text-underline-offset: 4px; }
.hero-platform a:hover { color: #fff; }
.brand .brand-logo { width: 220px; height: auto; }
.downloads { padding-block: 58px; background: var(--deep-forest); }
.downloads .section-label { color: var(--fern); }
.download-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.download-layout p { color: var(--fern); font-size: 14px; }
.download-row { padding: 22px 0; border-top: 1px solid #56604f; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.download-row h3 { margin: 0; font-size: 20px; font-weight: 400; }
.download-row small { display: block; color: var(--fern); font-size: 12px; }
.download-row p { margin: 5px 0 0; font-size: 12px; }
.download-row .button, .download-row .text-link { flex-shrink: 0; }
.steps code, .launcher-note code { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
    .download-layout { grid-template-columns: 1fr; gap: 24px; }
    .community-layout { grid-template-columns: 1fr 1.35fr; gap: 30px; }
}
@media (max-width: 640px) {
    .requirements { padding-block: 38px; }
    .requirements-table { font-size: 13px; }
    .requirements-table th, .requirements-table td { padding: 14px 9px; }
    .requirements-table thead th { font-size: 16px; }
    .requirements-table thead th:first-child { width: 26%; font-size: 12px; }
    .requirements-table small { font-size: 11px; }
    .community { padding-block: 38px; }
    .community-layout { grid-template-columns: 1fr; gap: 26px; }
    .facebook-details { padding: 20px; }
    .facebook-cover { min-height: 155px; padding: 20px; }
    .facebook-button { flex: 1 1 100%; }
    .header-inner { flex-wrap: wrap; padding-block: 18px; gap: 12px; }
    .main-nav { width: 100%; justify-content: space-between; }
    h1 { font-size: clamp(82px, 25vw, 116px); }
    .downloads { padding-block: 38px; }
    .download-row { align-items: start; flex-direction: column; gap: 14px; }
    .hero-inner { min-height: 590px; }
}
