@font-face {
    font-family: "Ballzy Bold";
    src: url("/fonts/Ballzy_Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --px-dark: #2e1f14;
    --px-brown: #59402e;
    --px-orange: #bf611f;
    --px-amber: #ebad2e;
    --px-gold: #ffd94d;
    --px-cream: #faebb3;
    --px-steel: #6b7a8c;
    --px-grey: #949aa6;
    --sky-top: #3a2a1c;
    --sky-mid: #241810;
    --sky-bot: #120c08;
    --panel: rgba(46, 31, 20, 0.92);
    --panel-edge: rgba(255, 217, 77, 0.28);
    --text: var(--px-cream);
    --muted: #d2c4a0;
    --line: rgba(250, 235, 179, 0.16);
    --shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
    --radius: 18px;
    --wrap: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(ellipse at 18% 0%, rgba(235, 173, 46, 0.16), transparent 34rem),
        radial-gradient(ellipse at 88% 18%, rgba(191, 97, 31, 0.14), transparent 30rem),
        linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-bot) 100%);
    font-family: "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.skip {
    position: absolute;
    left: 16px;
    top: -80px;
    padding: 8px 18px;
    background: var(--panel);
    z-index: 5;
    color: var(--px-gold);
    text-decoration: none;
    border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
    width: min(var(--wrap), calc(100% - 28px));
    margin: 0 auto;
}

.site-header {
    width: min(var(--wrap), calc(100% - 28px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-height: 48px;
}
.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(255, 217, 77, 0.28));
}
.brand span { display: grid; line-height: 1.05; }
.brand-mark {
    font-family: "Ballzy Bold", "Segoe UI", sans-serif;
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--px-gold);
    text-transform: uppercase;
}
.brand small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 14px;
    color: var(--muted);
}
.nav-links a {
    text-decoration: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}
.nav-links a:hover { color: var(--px-gold); }

.language-switcher {
    display: flex;
    align-items: center;
    border: 2px solid rgba(255, 217, 77, 0.28);
    background: rgba(89, 64, 46, 0.55);
    border-radius: 999px;
}
.language-switcher button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 8px 12px;
    min-height: 36px;
    border-radius: 999px;
}
.language-switcher button[aria-pressed="true"] {
    background: rgba(255, 217, 77, 0.18);
    color: var(--px-gold);
}

.page {
    width: min(var(--wrap), calc(100% - 28px));
    margin: 8px auto 48px;
    display: grid;
    gap: 28px;
}

.panel {
    background: var(--panel);
    border: 3px solid var(--panel-edge);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero { overflow: hidden; }
.hero-banner {
    position: relative;
    background: var(--px-dark);
}
.hero-banner img {
    width: 100%;
    aspect-ratio: 920 / 430;
    object-fit: cover;
    max-height: 280px;
}
.hero-body { padding: 26px 26px 28px; }
.wordmark {
    width: min(420px, 100%);
    height: auto;
    margin: 0 0 18px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}
.kicker {
    display: inline-block;
    font-family: "Ballzy Bold", "Segoe UI", sans-serif;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--px-amber);
    margin: 0 0 10px;
}
h1, h2 {
    font-family: "Ballzy Bold", "Segoe UI", sans-serif;
    letter-spacing: 0.02em;
    color: var(--px-gold);
    margin: 0 0 12px;
}
h1 {
    font-size: clamp(1.7rem, 4.2vw, 2.5rem);
    line-height: 1.15;
    text-wrap: balance;
}
h2 {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}
.lede {
    margin: 0 0 20px;
    max-width: 42rem;
    font-size: clamp(1.05rem, 2.1vw, 1.18rem);
    color: var(--px-cream);
}
.section-head p {
    margin: 0 0 16px;
    color: var(--muted);
    max-width: 42rem;
}

.cta-row, .links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
}
.button.primary {
    background: var(--px-gold);
    color: #17120c;
}
.button.secondary {
    background: rgba(255, 217, 77, 0.1);
    color: var(--px-gold);
    border-color: rgba(255, 217, 77, 0.35);
}
.button.ghost {
    background: transparent;
    color: var(--px-cream);
    border-color: var(--line);
}
.button:hover, .button:focus-visible {
    outline: 2px solid var(--px-cream);
    outline-offset: 2px;
}

.widget-wrap {
    padding: 18px 18px 20px;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
}
.widget-wrap iframe {
    width: 100%;
    max-width: 646px;
    height: 190px;
    border: 0;
    display: block;
    background: #171d25;
    border-radius: 10px;
}

.pad { padding: 24px 26px 26px; }

.platform-grid, .mode-grid, .asset-grid, .logo-grid, .facts {
    display: grid;
    gap: 14px;
}
.platform-grid { grid-template-columns: repeat(3, 1fr); }
.mode-grid { grid-template-columns: repeat(2, 1fr); }
.logo-grid { grid-template-columns: repeat(2, 1fr); }
.asset-grid { grid-template-columns: repeat(2, 1fr); }
.facts { grid-template-columns: repeat(2, 1fr); }

.card {
    margin: 0;
    padding: 18px;
    border-radius: 14px;
    border: 2px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 8px;
    align-content: start;
}
.card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--px-gold);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--px-amber);
    font-weight: 700;
}
.card .status.live {
    color: #78e59a;
    border-color: rgba(120, 229, 154, 0.35);
}

.fact {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}
.fact dt {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--px-amber);
    font-weight: 700;
    margin: 0 0 6px;
}
.fact dd {
    margin: 0;
    color: var(--px-cream);
    word-break: break-word;
}
.fact a { color: var(--px-gold); text-decoration: none; }
.fact a:hover { text-decoration: underline; }

.asset, .logo-card {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--line);
    background: var(--px-dark);
    display: grid;
}
.asset img, .logo-card img {
    width: 100%;
    cursor: zoom-in;
}
.asset img { aspect-ratio: 16 / 9; object-fit: cover; }
.logo-card img {
    aspect-ratio: 1;
    object-fit: contain;
    padding: 18px;
    background:
        linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.04) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.04) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.logo-card.wide { grid-column: span 2; }
.logo-card.wide img { aspect-ratio: 16 / 7; }
.asset figcaption, .logo-card figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 12px;
    font-size: 13px;
    color: var(--muted);
}
.dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    color: #17120c;
    background: var(--px-gold);
    white-space: nowrap;
}

.usage-list {
    margin: 0;
    padding-left: 1.2em;
    color: var(--muted);
}
.usage-list li { margin: 0.4em 0; }

.contact-list {
    display: grid;
    gap: 8px;
}
.contact-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    min-height: 48px;
    align-items: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--px-cream);
}
.contact-list a span:last-child { color: var(--px-gold); }
.contact-list a:hover { border-color: var(--panel-edge); }

.site-footer {
    width: min(var(--wrap), calc(100% - 28px));
    margin: 0 auto 36px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: space-between;
    align-items: flex-end;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}
.footer-links a { text-decoration: none; color: var(--px-amber); }
.footer-links a:hover { color: var(--px-gold); }

.image-dialog {
    border: 3px solid var(--panel-edge);
    border-radius: 16px;
    padding: 0;
    background: var(--px-dark);
    color: var(--text);
    max-width: min(1100px, 94vw);
}
.image-dialog::backdrop { background: rgba(8, 5, 3, 0.78); }
.image-dialog img { width: 100%; max-height: 78vh; object-fit: contain; }
.image-dialog p {
    margin: 0;
    padding: 12px 16px 16px;
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid var(--panel-edge);
    background: rgba(46, 31, 20, 0.9);
    color: var(--px-gold);
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 860px) {
    .platform-grid, .facts, .logo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        padding-top: 10px;
        min-height: 0;
    }
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    .platform-grid, .mode-grid, .asset-grid, .facts, .logo-grid {
        grid-template-columns: 1fr;
    }
    .hero-body, .pad { padding: 20px 16px 22px; }
    .site-footer { flex-direction: column; align-items: flex-start; }
}

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