/* ═══════════════════════════════════════════════════════════════
   Scapewatch: Idle MMO. Press Kit.
   Layout follows dopresskit() / presskit() by Rami Ismail.
   Visual treatment matches the in-game login screen palette.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --pk-bg:           #14141f;
    --pk-bg-alt:       #1a1a2e;
    --pk-card-bg:      rgba(20, 16, 28, 0.55);
    --pk-card-border:  rgba(200, 168, 62, 0.18);
    --pk-card-border-strong: rgba(200, 168, 62, 0.45);
    --pk-text:         #f0eee4;
    --pk-text-dim:     #d8d6cc;
    --pk-text-muted:   #d8d6cc;
    --pk-gold:         #FFD700;
    --pk-gold-dim:     #c8a83e;
    --pk-gold-warm:    #e6c060;
    --pk-rule:         rgba(200, 168, 62, 0.14);

    --pk-link:         #8db7ff;
    --pk-link-hover:   #c0d6ff;
    --pk-link-rule:    rgba(141, 183, 255, 0.30);

    --pk-font: 'Chakra Petch', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    --pk-page-max: 1280px;
    --pk-main-max: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--pk-bg);
    color: var(--pk-text);
    font-family: var(--pk-font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.kit-anchor-top {
    display: block;
    position: absolute;
    top: 0;
    height: 0;
    width: 0;
}

a {
    color: var(--pk-link);
    text-decoration: none;
    border-bottom: 1px solid var(--pk-link-rule);
    transition: color 0.15s, border-color 0.15s;
}
a:hover {
    color: var(--pk-link-hover);
    border-bottom-color: var(--pk-link);
}

img { max-width: 100%; height: auto; display: block; }

/* ── Header (sticky, slim, logo + title) ──────────────────────── */

.kit-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 24px;
    background: linear-gradient(180deg, var(--pk-bg-alt) 0%, var(--pk-bg) 100%);
    border-bottom: 1px solid var(--pk-rule);
}
.kit-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}
.kit-header-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: block;
}
.kit-header-text {
    text-align: left;
    min-width: 0;
}
.kit-title {
    margin: 0 0 2px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--pk-gold);
    text-shadow: 0 1px 0 rgba(0,0,0,0.6);
    letter-spacing: 0.5px;
}
.kit-tagline {
    margin: 0;
    font-size: 13px;
    color: var(--pk-text-dim);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ── Banner art (scrolls under header) ────────────────────────── */

.kit-banner {
    max-width: var(--pk-page-max);
    margin: 0 auto;
    padding: 24px 24px 0;
}
.kit-banner img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--pk-card-border);
}
.kit-trailer-widget {
    margin-top: 18px;
    background: #14141f;
    border: 1px solid var(--pk-card-border-strong);
    padding: 6px;
}
.kit-trailer-widget iframe {
    display: block;
    width: 100%;
    border: 0;
    margin: 0;
}

/* ── Anchor nav (vertical, lives in the sidebar) ──────────────── */

.kit-nav {
    position: sticky;
    top: 96px;
    background: var(--pk-card-bg);
    border: 1px solid var(--pk-card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 20px;
}
@media (max-width: 960px) {
    .kit-nav { position: static; }
}
.kit-nav h3 {
    margin: 0 0 4px;
    color: var(--pk-gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--pk-rule);
    padding-bottom: 10px;
}
.kit-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.kit-nav a {
    color: var(--pk-text);
    border-bottom: 1px solid var(--pk-rule);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 12px;
    font-weight: 500;
    padding: 9px 4px;
    transition: color 0.15s, padding 0.15s;
}
.kit-nav a:last-child {
    border-bottom: 0;
}
.kit-nav a:hover {
    color: var(--pk-gold);
    padding-left: 8px;
}

/* ── Two-column layout ────────────────────────────────────────── */

.kit-layout {
    max-width: var(--pk-page-max);
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
}

@media (max-width: 960px) {
    .kit-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 18px 60px;
    }
}

/* ── Main column ──────────────────────────────────────────────── */

.kit-main {
    min-width: 0;
}
.kit-main > section {
    max-width: var(--pk-main-max);
    margin: 0 0 64px;
    scroll-margin-top: 110px;
}
.kit-main > section:last-child { margin-bottom: 0; }

.kit-main h2,
.kit-main h3 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pk-card-border-strong);
    color: var(--pk-gold);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
}
.kit-main h3 {
    margin-top: 36px;
}
.kit-main p {
    margin: 0 0 14px;
    color: var(--pk-text);
}
.kit-section-meta {
    color: var(--pk-text-dim);
    font-size: 14px;
    margin-top: -8px;
    margin-bottom: 18px;
}
.kit-empty {
    color: var(--pk-text-muted);
    font-style: italic;
}

/* Description panels (tasks / skills / quests / equipment) */
.kit-panels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 22px 0 0;
}
.kit-panel {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.kit-panel a {
    display: block;
    border-bottom: 0;
    transition: transform 0.15s;
}
.kit-panel a:hover {
    transform: translateY(-2px);
}
.kit-panel a:hover img {
    border-color: var(--pk-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.kit-panel img {
    width: 100%;
    aspect-ratio: 428 / 587;
    object-fit: cover;
    background: #0d0d18;
    border: 1px solid var(--pk-card-border);
    display: block;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.kit-panel figcaption {
    color: var(--pk-gold-warm);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-align: center;
    line-height: 1.3;
}
@media (max-width: 760px) {
    .kit-panels { grid-template-columns: 1fr 1fr; gap: 14px; }
    .kit-panel figcaption { font-size: 14px; }
}
@media (max-width: 420px) {
    .kit-panels { grid-template-columns: 1fr; }
}

.kit-map {
    display: block;
    margin: 0 0 12px;
    border-bottom: 0;
    transition: transform 0.15s;
}
.kit-map:hover {
    transform: translateY(-2px);
}
.kit-map img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--pk-card-border);
    background: #0d0d18;
    display: block;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.kit-map:hover img {
    border-color: var(--pk-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.kit-map-detail {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.kit-map-detail img {
    aspect-ratio: 1 / 1;
}

/* Features list */
.kit-features {
    margin: 0;
    padding: 0;
    list-style: none;
}
.kit-features li {
    position: relative;
    padding: 10px 0 10px 22px;
    border-top: 1px solid var(--pk-rule);
    color: var(--pk-text);
}
.kit-features li:last-child {
    border-bottom: 1px solid var(--pk-rule);
}
.kit-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 19px;
    width: 8px;
    height: 8px;
    background: var(--pk-gold-dim);
    transform: rotate(45deg);
}
.kit-features strong {
    color: var(--pk-gold-warm);
    font-weight: 600;
}

/* Definition lists (credits, contact) */
.kit-creditlist {
    margin: 0;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 10px 24px;
}
.kit-creditlist dt {
    color: var(--pk-gold-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    padding-top: 2px;
}
.kit-creditlist dd {
    margin: 0;
    color: var(--pk-text);
}

@media (max-width: 600px) {
    .kit-creditlist {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
    .kit-creditlist dt { margin-top: 12px; }
}

/* Video embed */
.kit-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--pk-card-border-strong);
    overflow: hidden;
}
.kit-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Gameplay clips and inline graphics */
.kit-clips {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 0 0 18px;
}
.kit-clip {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.kit-clip figcaption {
    color: var(--pk-gold-warm);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.kit-clip video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--pk-card-border);
    display: block;
}
/* Image gallery */
.kit-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 18px;
}
.kit-gallery-keyart {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 14px;
}
.kit-thumb {
    display: block;
    border: 1px solid var(--pk-card-border);
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid var(--pk-card-border);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.kit-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--pk-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.4);
}
.kit-thumb img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Captioned thumb (Key art tiles) */
.kit-thumb-captioned {
    display: flex;
    flex-direction: column;
}
.kit-thumb-captioned img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #0d0d18;
}
.kit-thumb-caption {
    display: block;
    padding: 8px 12px;
    border-top: 1px solid var(--pk-card-border);
    background: rgba(20, 16, 28, 0.7);
    color: var(--pk-gold-warm);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
}
.kit-thumb-dim {
    display: inline-block;
    margin-left: 6px;
    color: var(--pk-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: none;
}
.kit-thumb-captioned:hover .kit-thumb-caption {
    color: var(--pk-gold);
    border-top-color: var(--pk-gold);
}
@media (max-width: 600px) {
    .kit-gallery, .kit-gallery-keyart { grid-template-columns: 1fr 1fr; }
}

/* Logo tiles */
.kit-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.kit-logo-tile {
    display: block;
    border: 1px solid var(--pk-card-border);
    border-bottom: 1px solid var(--pk-card-border);
    padding: 24px 18px 14px;
    text-align: center;
    background: #0d0d18;
    text-decoration: none;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.kit-logo-tile:hover {
    transform: translateY(-2px);
    border-color: var(--pk-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.kit-logo-tile-dark {
    background:
        radial-gradient(ellipse at center, #1d1d2c 0%, #0a0a14 80%);
}
.kit-logo-tile-light {
    background:
        radial-gradient(ellipse at center, #f5f1e4 0%, #d8d2bf 85%);
    border-color: rgba(200, 168, 62, 0.35);
}
.kit-logo-tile p .kit-thumb-dim {
    color: inherit;
    opacity: 0.75;
    margin-left: 0;
}
.kit-logo-tile img {
    margin: 0 auto;
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}
.kit-logo-tile p {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--pk-text-dim);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.kit-logo-tile-light p {
    color: #1a1a1a;
}
@media (max-width: 600px) {
    .kit-logos { grid-template-columns: 1fr; }
}

/* ── Fonts & Colors ───────────────────────────────────────────── */

.kit-font-card {
    border: 1px solid var(--pk-card-border);
    background:
        radial-gradient(ellipse at center, #1d1d2c 0%, #0a0a14 90%);
    padding: 32px 26px 22px;
    text-align: center;
}
.kit-font-sample {
    margin: 0 0 6px;
    font-size: 44px;
    font-weight: 700;
    color: var(--pk-gold);
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 1px 1px 0 #000;
}
.kit-font-sample-sub {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 400;
    color: var(--pk-text);
    font-style: italic;
}
.kit-font-meta {
    margin: 0;
    color: var(--pk-text-dim);
    font-size: 13px;
    letter-spacing: 0.4px;
}
.kit-font-meta strong {
    color: var(--pk-gold-warm);
    font-weight: 600;
}

.kit-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.kit-swatch {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(20, 16, 28, 0.55);
    border: 1px solid var(--pk-card-border);
}
.kit-swatch-chip {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.kit-swatch-name {
    font-size: 13px;
    color: var(--pk-text);
    letter-spacing: 0.4px;
}
.kit-swatch-hex {
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--pk-text-dim);
    letter-spacing: 0.3px;
}
@media (max-width: 600px) {
    .kit-font-sample { font-size: 32px; }
    .kit-font-sample-sub { font-size: 15px; }
    .kit-swatches { grid-template-columns: 1fr 1fr; }
}

/* ── Sidebar ──────────────────────────────────────────────────── */

.kit-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kit-card {
    background: var(--pk-card-bg);
    border: 1px solid var(--pk-card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 20px;
}
.kit-card h3 {
    margin: 0 0 14px;
    color: var(--pk-gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--pk-rule);
    padding-bottom: 10px;
}
.kit-card p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--pk-text);
}
.kit-card p:last-child { margin-bottom: 0; }
.kit-favs {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--pk-rule);
    font-style: italic;
    color: var(--pk-text-dim);
}

.kit-factsheet {
    margin: 0;
    font-size: 13.5px;
}
.kit-factsheet dt {
    color: var(--pk-gold-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 11px;
    margin-top: 10px;
}
.kit-factsheet dt:first-child { margin-top: 0; }
.kit-factsheet dd {
    margin: 2px 0 0;
    color: var(--pk-text);
    line-height: 1.5;
}
.kit-fs-note {
    color: var(--pk-text-dim);
    font-size: 12px;
    font-style: italic;
}

.kit-linklist {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}
.kit-linklist li {
    padding: 6px 0;
    border-top: 1px solid var(--pk-rule);
}
.kit-linklist li:first-child { border-top: 0; }

/* ── Footer ───────────────────────────────────────────────────── */

.kit-footer {
    border-top: 1px solid var(--pk-rule);
    padding: 30px 24px 50px;
    text-align: center;
    color: var(--pk-text-muted);
    font-size: 13px;
    background: var(--pk-bg-alt);
}
.kit-footer p { margin: 0; }
.kit-footer a {
    color: var(--pk-text-dim);
    border-bottom-color: rgba(255, 215, 0, 0.15);
}

/* ── Lightbox ─────────────────────────────────────────────────── */

.kit-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
    animation: lbFade 0.18s ease-out;
}
.kit-lightbox[hidden] { display: none; }
@keyframes lbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.kit-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid var(--pk-card-border-strong);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.kit-lightbox-img-light {
    background: #fff;
}
.kit-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    font-family: inherit;
}
.kit-lightbox-close:hover { opacity: 1; }
.kit-lightbox-caption {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 140px);
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kit-lightbox-name {
    color: var(--pk-gold-warm);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.kit-lightbox-dim {
    color: var(--pk-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}
.kit-lightbox-name + .kit-lightbox-dim:not(:empty)::before {
    content: " · ";
    color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
    font-family: var(--pk-font);
}
.kit-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.15s, background 0.15s, transform 0.15s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kit-lightbox-nav:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.65);
}
.kit-lightbox-prev { left: 24px; }
.kit-lightbox-next { right: 24px; }
@media (max-width: 600px) {
    .kit-lightbox-nav { width: 44px; height: 44px; font-size: 18px; }
    .kit-lightbox-prev { left: 12px; }
    .kit-lightbox-next { right: 12px; }
}

/* ── Header responsive sizing ─────────────────────────────────── */
@media (max-width: 600px) {
    .kit-header { padding: 12px 16px; }
    .kit-header-logo { width: 44px; height: 44px; }
    .kit-title { font-size: 22px; }
    .kit-tagline { font-size: 12px; }
    .kit-main h2 { font-size: 22px; }
    .kit-banner { padding: 18px 16px 0; }
}
