/* Harpra Games site — one stylesheet for every page. Colours follow the
   game's dark navy and gold so the page a share card opens looks like the
   app it advertises. No web fonts, no trackers, nothing fetched off-site. */
:root {
    --bg: #0f172a;
    --panel: #172036;
    --line: rgba(255, 255, 255, 0.12);
    --text: #f1efe6;
    --muted: rgba(241, 239, 230, 0.72);
    --gold: #fbbf24;
    --gold-deep: #d97706;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--gold); }
main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 32px 16px 48px; }
header.site, footer.site {
    width: 100%; max-width: 720px; margin: 0 auto; padding: 16px;
    display: flex; gap: 16px; align-items: center; justify-content: space-between;
}
header.site a.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.04em; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 32px 0 8px; }
p.lede { color: var(--muted); font-size: 19px; margin: 0 0 24px; }

/* The store chooser and the game card */
.hero { text-align: center; padding-top: 16px; }
/* The Knighted! wordmark (the app's home-screen logo, resized for the web). */
img.wordmark { display: block; max-width: 100%; height: auto; margin: 0 0 8px; }
.hero h1.wordmark-h { margin: 8px 0 4px; }
.hero img.wordmark { margin: 0 auto; }
.stores { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin: 24px auto 8px; }
.store-btn {
    display: block; padding: 14px 20px; border-radius: 14px; text-decoration: none; font-weight: 700;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #1b1404;
}
.store-btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.note { color: var(--muted); font-size: 15px; }
.hidden { display: none !important; }

.card {
    display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px;
    background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.card img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.card strong { display: block; font-size: 19px; }
.card span { color: var(--muted); font-size: 15px; }

/* ── The home page (Harpra Games) ─────────────────────────────────────── */
body.home {
    /* A warm gold glow behind the logo and a cool one behind the game, over
       the app's navy, so the page has depth without any image weight. */
    background:
        radial-gradient(60% 38% at 50% 0%, rgba(251, 191, 36, 0.16), transparent 70%),
        radial-gradient(70% 45% at 50% 70%, rgba(59, 130, 246, 0.14), transparent 75%),
        var(--bg);
}
body.home main { text-align: center; padding-top: 48px; }
h1.studio-hero { margin: 0 0 12px; }
/* The Harpra Games logo, as the app's splash shows it: centred, a soft white
   glow, fading up from 80%. */
img.studio-logo {
    display: block; margin: 0 auto; width: 250px; max-width: 64%; height: auto;
    filter: drop-shadow(0 10px 25px rgba(255, 255, 255, 0.15));
    animation: studio-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}
@keyframes studio-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.studio-tag { color: var(--muted); font-size: 19px; margin: 0 0 40px; letter-spacing: 0.02em; animation: fade-up 1s 0.4s ease both; }
.section-label {
    font-size: 13px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--gold); margin: 0 0 16px;
}
.section-label::before, .section-label::after { content: "◆"; font-size: 8px; vertical-align: middle; margin: 0 12px; opacity: 0.7; }

/* The game, as a feature card with its full logo. */
a.game-feature {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 28px 20px 26px; margin: 0 auto 48px; max-width: 560px; border-radius: 22px;
    text-decoration: none; color: var(--text);
    background: linear-gradient(180deg, rgba(23, 32, 54, 0.92), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: fade-up 1s 0.6s ease both;
}
a.game-feature:hover, a.game-feature:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(251, 191, 36, 0.18);
}
a.game-feature img.wordmark { width: 360px; margin: 0 auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.game-pitch { color: var(--text); font-size: 18px; line-height: 1.5; }
.game-modes { color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.store-btn.game-cta { margin-top: 6px; min-width: 220px; }
.studio-contact { margin: 0 0 32px; }
.game-pitch span { white-space: nowrap; }

/* ── Get Knighted! (the store chooser) — the richer sections ─────────── */
main.hero .section-label { margin-top: 64px; }
.section-sub { margin: -8px 0 18px; }

/* Screens: a swipeable row of phone shots. */
.gallery {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px 4px 18px; margin: 0 -4px; scrollbar-width: thin;
    scrollbar-color: rgba(251, 191, 36, 0.4) transparent;
}
.gallery figure { flex: 0 0 210px; margin: 0; scroll-snap-align: center; }
.gallery img {
    display: block; width: 100%; height: auto; border-radius: 22px;
    border: 3px solid #26304a; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.gallery-hint { margin: 0; font-size: 13px; }
@media (min-width: 760px) { .gallery-hint { display: none; } }

/* Ways to play. */
ul.features { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 14px; text-align: left; max-width: 620px; }
ul.features li {
    display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: center;
    padding: 16px 18px; border-radius: 16px; background: rgba(23, 32, 54, 0.75); border: 1px solid var(--line);
}
.feat-ico {
    grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    border: 1.5px solid rgba(251, 191, 36, 0.7); color: var(--gold); font-size: 26px; line-height: 1;
}
.feat-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
ul.features strong { font-size: 18px; color: var(--gold); }
ul.features span:not(.feat-ico) { color: var(--muted); font-size: 15px; }

/* Themes: the same board in all eight. */
ul.themes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
ul.themes li { position: relative; }
ul.themes img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
ul.themes span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
ul.themes li.pro::after {
    content: "PREMIUM"; position: absolute; top: 6px; right: 6px; padding: 2px 6px; border-radius: 6px;
    font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: #1b1404;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}
@media (max-width: 560px) { ul.themes { grid-template-columns: repeat(2, 1fr); } }

/* Premium: the Premium screen's own tiles. */
.premium {
    padding: 26px 18px 18px; border-radius: 22px; border: 1px solid rgba(251, 191, 36, 0.3);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), rgba(23, 32, 54, 0.85) 40%);
}
.premium-lede { font-size: 22px; font-weight: 700; margin: 0; }
.premium-sub { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; margin: 6px 0 20px; }
ul.perks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
ul.perks li { padding: 12px 8px; border-radius: 12px; background: rgba(15, 23, 42, 0.7); border: 1px solid var(--line); }
ul.perks strong { display: block; color: var(--gold); font-size: 14px; }
ul.perks span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
@media (max-width: 560px) { ul.perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) {
    .studio-tag { font-size: 16px; }
    .game-pitch { font-size: 15.5px; }
    a.game-feature { padding: 24px 14px 22px; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    img.studio-logo, .studio-tag, a.game-feature { animation: none; }
    a.game-feature { transition: none; }
}

/* Long-form pages (privacy, support) */
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); font-size: 15px; }
.todo { background: rgba(251, 191, 36, 0.18); color: var(--gold); padding: 0 4px; border-radius: 4px; }
