/* Public auxbrain.com pages (home, jobs, privacy, showcase TOS, delete-me).
   style.css is shared with the legacy admin templates, so the public site has its own sheet. */

:root {
    --site-max: 1000px;
    --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    --text: #333333;
    --muted: #636363;
    --rule: #e4e4e4;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: var(--text);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.5;
}

a:link, a:visited { color: var(--muted); text-decoration: none; }
a:hover { color: var(--muted); text-decoration: underline; }

img { border: 0; max-width: 100%; height: auto; }

/* ─── Header / footer ──────────────────────────────────────────── */

.site-header { text-align: center; padding: 20px 16px 8px; }
.site-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.site-brand:hover { text-decoration: none; }
.site-logo { width: 220px; max-width: 55vw; }
.site-wordmark {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #888888;
    padding-left: 6px; /* optically balance the trailing letter-spacing */
}
.site-header-small .site-logo { width: 150px; }
.site-header-small .site-wordmark { font-size: 12px; letter-spacing: 4px; padding-left: 4px; }

.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 28px 16px 36px;
}
.site-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-footer .footer-copy { margin-top: 10px; }

/* ─── Home: game banners ───────────────────────────────────────── */

.games { display: flex; flex-direction: column; gap: 40px; padding: 8px 0 0; }

.game-banner {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    background-position: center 50%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}
.game-banner-egginc  { background-image: url(/static/images/egginc_bg.jpg); }
.game-banner-zh2     { background-image: url(/static/images/zh2_bg.jpg); }
.game-banner-zhde    { background-image: url(/static/images/zhde_bg.jpg); background-position: center 40%; }
.game-banner-zh1     { background-image: url(/static/images/zh1_bg.jpg); }
.game-banner-skijump { background-image: url(/static/images/skijumpcoversketch.jpg); background-position: center 40%; }

/* the dark panel: right 40% of the banner on wide screens (as the original), full width on phones */
.game-panel {
    position: relative;
    margin-left: 60%;
    width: 40%;
    min-height: 200px;
    padding: 24px 28px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.game-title {
    font-family: var(--mono);
    font-weight: 800;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin: 0;
}
.game-subtitle { font-size: 13px; font-weight: 300; opacity: 0.8; margin: 4px 0 14px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }

/* CSS store badges: square black block, logo + two-line label in 70% grey, white on hover */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 14px 0 11px;
    background: #000000;
    border: 0;
    border-radius: 0;
    color: #B3B3B3 !important;
    text-decoration: none !important;
    line-height: 1;
    white-space: nowrap;
    transition: color 150ms;
}
.store-badge:hover, .store-badge:focus-visible { color: #FFFFFF !important; }
@media (hover: none) { .store-badge { color: #FFFFFF !important; } } /* touch devices: no hover state, always white */
.store-badge-logo { width: 22px; height: 22px; flex: none; }
.store-badge-text {
    display: flex;
    flex-direction: column;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.store-badge-text small { font-size: 9px; font-weight: 500; letter-spacing: 0.4px; opacity: 0.85; margin-bottom: 2px; text-transform: uppercase; }

@media (max-width: 760px) {
    .games { gap: 20px; }
    .game-banner { min-height: 240px; align-items: flex-end; }
    .game-panel { margin-left: 0; width: 100%; min-height: 0; padding: 18px 20px 20px; background-color: rgba(0, 0, 0, 0.6); }
    .game-subtitle { font-size: 12px; }
    .store-badge { height: 40px; padding: 0 12px 0 10px; color: #FFFFFF !important; } /* no hover on touch, so show the active state */
    .store-badge-logo { width: 20px; height: 20px; }
    .store-badge-text { font-size: 14px; }
}

/* ─── Text pages (jobs, privacy, TOS, delete-me) ───────────────── */

.page { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 20px 40px; }
.page-narrow { max-width: 480px; text-align: center; }
.page-title { font-size: clamp(24px, 5vw, 32px); font-weight: 700; letter-spacing: 2px; text-align: center; padding: 10px 0 24px; color: var(--muted); }
.page-updated { text-align: center; font-size: 15px; color: var(--muted); }
.page-hero { text-align: center; padding: 0 16px; }
.page-hero img { width: 750px; max-width: 100%; }

.pp-h { font-size: clamp(20px, 3.2vw, 26px); font-weight: 700; padding: 30px 0 10px 0; }
.pp-sub { font-size: clamp(17px, 2.6vw, 19px); font-weight: 600; padding: 20px 0 6px 0; }
.pp-p { font-size: 15px; line-height: 1.6; }
.pp-p ul { margin-top: 6px; padding-left: 22px; }
.pp-p li { margin-bottom: 6px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pp-table { font-size: 14px; border-collapse: collapse; width: 100%; min-width: 520px; margin: 12px 0; }
.pp-table th, .pp-table td { border: 1px solid #ccc; padding: 8px 10px; text-align: left; vertical-align: top; }
.pp-table th { background: #f3f3f3; }

.tos h1 { font-size: clamp(20px, 4vw, 26px); font-weight: 700; color: var(--text); }
.tos h2 { font-size: clamp(16px, 2.6vw, 19px); font-weight: 600; color: var(--text); margin-top: 28px; }
.tos p { margin-bottom: 15px; line-height: 1.6; }

@media (max-width: 760px) {
    body { font-size: 14px; }
    .pp-p { font-size: 14px; }
    .page-updated { font-size: 14px; }
}
