/* game.dbabrain.dev: LinkPoint's look on top of the shared kit (/kit/kit.css). The colours are the
   game's own, Catppuccin Latte (light) and Mocha (dark) (MIT), set through the kit's --k-* tokens.
   Site classes start with lp-. */
:root {
    --k-accent-light: #8839ef;
    --k-accent-dark: #cba6f7;
    --k-on-accent-light: #ffffff;
    --k-on-accent-dark: #11111b;
    --k-bg: #eff1f5;
    --k-bg-alt: #e6e9ef;
    --k-surface: #ffffff;
    --k-surface-2: #e6e9ef;
    --k-ink: #4c4f69;
    --k-text: #5c5f77;
    --k-muted: #6c6f85;
    --k-line: #ccd0da;
    --k-line-strong: #bcc0cc;
    --k-header-bg: rgb(239 241 245 / .86);
    --lp-c1: #40a02b; --lp-c2: #d20f39; --lp-c3: #1e66f5; --lp-c4: #fe640b; --lp-c5: #df8e1d; --lp-c6: #8839ef;
    --lp-glass: rgb(255 255 255 / .72);
    --lp-grid: rgb(76 79 105 / .12);
    --lp-glow: 2px;
    --lp-star: transparent;
}
:root[data-theme="dark"] {
    --k-bg: #11111b;
    --k-bg-alt: #181825;
    --k-surface: #1e1e2e;
    --k-surface-2: #313244;
    --k-ink: #cdd6f4;
    --k-text: #bac2de;
    --k-muted: #a6adc8;
    --k-line: #313244;
    --k-line-strong: #45475a;
    --k-code-bg: #11111b;
    --k-header-bg: rgb(17 17 27 / .84);
    --lp-c1: #a6e3a1; --lp-c2: #f38ba8; --lp-c3: #89b4fa; --lp-c4: #fab387; --lp-c5: #f9e2af; --lp-c6: #cba6f7;
    --lp-glass: rgb(24 24 37 / .72);
    --lp-grid: rgb(205 214 244 / .1);
    --lp-glow: 8px;
    --lp-star: rgb(255 255 255 / .7);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --k-bg: #11111b;
        --k-bg-alt: #181825;
        --k-surface: #1e1e2e;
        --k-surface-2: #313244;
        --k-ink: #cdd6f4;
        --k-text: #bac2de;
        --k-muted: #a6adc8;
        --k-line: #313244;
        --k-line-strong: #45475a;
        --k-code-bg: #11111b;
        --k-header-bg: rgb(17 17 27 / .84);
        --lp-c1: #a6e3a1; --lp-c2: #f38ba8; --lp-c3: #89b4fa; --lp-c4: #fab387; --lp-c5: #f9e2af; --lp-c6: #cba6f7;
        --lp-glass: rgb(24 24 37 / .72);
        --lp-grid: rgb(205 214 244 / .1);
        --lp-glow: 8px;
        --lp-star: rgb(255 255 255 / .7);
    }
}

/* The first screen: a starry sky at night, the game on a phone, a solved board drawing itself. */
.lp-hero {
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, var(--lp-star), transparent 60%),
        radial-gradient(1px 1px at 28% 62%, var(--lp-star), transparent 60%),
        radial-gradient(2px 2px at 44% 9%, var(--lp-star), transparent 60%),
        radial-gradient(1px 1px at 63% 34%, var(--lp-star), transparent 60%),
        radial-gradient(1.5px 1.5px at 78% 12%, var(--lp-star), transparent 60%),
        radial-gradient(1px 1px at 88% 48%, var(--lp-star), transparent 60%),
        radial-gradient(1.5px 1.5px at 7% 82%, var(--lp-star), transparent 60%),
        radial-gradient(1px 1px at 53% 88%, var(--lp-star), transparent 60%),
        radial-gradient(2px 2px at 94% 76%, var(--lp-star), transparent 60%);
}
.lp-art { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; max-width: 470px; margin-inline: auto; }
.lp-art .k-phone { grid-column: 5 / 13; grid-row: 1; max-width: none; }
.lp-board-card { grid-column: 1 / 9; grid-row: 1; z-index: 1; margin-bottom: 14%; padding: 8px; border-radius: 26px; background: var(--lp-glass); border: 1px solid var(--k-line); box-shadow: var(--k-shadow-lg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lp-board { display: block; width: 100%; height: auto; overflow: visible; }
.lp-board .grid { stroke: var(--lp-grid); stroke-width: 2; fill: none; }
.lp-board .link { fill: none; stroke: currentColor; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.lp-board .dot { fill: currentColor; }
.lp-board .dot, .lp-board .link { filter: drop-shadow(0 0 var(--lp-glow) currentColor); }
.lp-board .shine { fill: rgb(255 255 255 / .55); }
.lp-board .c1 { color: var(--lp-c1); --i: 0; }
.lp-board .c2 { color: var(--lp-c2); --i: 1; }
.lp-board .c3 { color: var(--lp-c3); --i: 2; }
.lp-board .c4 { color: var(--lp-c4); --i: 3; }
.lp-board .c5 { color: var(--lp-c5); --i: 4; }
.lp-board .c6 { color: var(--lp-c6); --i: 5; }
@media (prefers-reduced-motion: no-preference) {
    .lp-board .link { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lp-draw .7s ease-out forwards; animation-delay: calc(.5s + var(--i) * .55s); }
}
@keyframes lp-draw { to { stroke-dashoffset: 0; } }

/* Videos: the trailer, then the Shorts in a row. */
.lp-trailer { max-width: 56rem; margin: 0 auto 32px; }
.lp-shorts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .lp-shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp-shorts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.lp-shorts .k-video { max-width: none; }
.lp-shorts .k-video__play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.lp-shorts .k-video__play .k-icon { width: 22px; height: 22px; }
.lp-shorts .k-video__label { font-size: .82rem; left: 12px; right: 12px; bottom: 10px; }
.lp-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 28px; }
.lp-more .k-video-note { margin: 0; }

/* Screenshots in phone frames. */
.lp-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; justify-items: center; }
@media (min-width: 960px) { .lp-phones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-phones .k-phone { max-width: 240px; }

/* Policy pages and the 404 page. */
.lp-doc .k-prose { margin-inline: auto; padding: 32px clamp(20px, 4vw, 40px); background: var(--k-surface); border: 1px solid var(--k-line); border-radius: var(--k-radius-lg); }
.lp-doc h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); }
.lp-doc .lp-updated { color: var(--k-muted); }
.lp-doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lp-doc th, .lp-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--k-line); }
.lp-doc th { color: var(--k-ink); font-family: var(--k-font-display); }
@media (max-width: 759.98px) {
    .lp-doc table, .lp-doc tbody, .lp-doc tr, .lp-doc td, .lp-doc th { display: block; }
    .lp-doc thead { display: none; }
    .lp-doc td:first-child { font-weight: 700; color: var(--k-ink); border-bottom: 0; padding-bottom: 0; }
}
.lp-404 { min-height: 50vh; display: grid; place-items: center; text-align: center; }
.lp-404 .k-actions { justify-content: center; }
