/*
 * site.css — shared styles for content pages (index, post, contact, about,
 * rules, privacy).  Complements css/styles.css (game/nav chrome) and
 * css/blog-styles.css (blog-page layout loaded conditionally).
 *
 * Light magazine theme. Brand accent: #003333 (dark teal) used for headings
 * and accents only — never as page background.
 */

/* ── Reset & body ── */

body.content-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f4f6f5;
    background-attachment: initial;
    min-height: 100vh;
    color: #1f2933;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* styles.css's `* { user-select: none; cursor: default; }` was written for the
   game canvas (where it stops drag gestures from selecting text). It clobbers
   every other page. Re-enable selection + sensible cursors on content pages. */
body.content-page,
body.content-page * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: auto;
}
body.content-page a,
body.content-page button,
body.content-page [role="button"],
body.content-page .cta,
body.content-page .fb-cta,
body.content-page .lb-tab,
body.content-page .home-hero__cta {
    cursor: pointer;
}

/* Page-type body classes — hooks for page-specific overrides */
body.home-page,
body.article-page,
body.contact-page,
body.about-page,
body.rules-page,
body.privacy-page {
    /* page-specific overrides can be added here */
}

/* ── Containers ── */

body.content-page .home-main,
body.content-page .about-wrap,
body.content-page .contact-wrap,
body.content-page .rules-wrap,
body.content-page .privacy-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

body.content-page .article-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* ── Page header ── */

body.content-page .page-header {
    max-width: 880px;
    margin: 0 auto 24px;
    padding: 48px 24px 24px;
    text-align: center;
    background: none;
    border-bottom: 1px solid #e5e7eb;
}

/* Neutralise dark-overlay pseudo-element from blog-styles.css */
body.content-page .page-header::before {
    content: none;
    background: none;
}

body.content-page .page-header * {
    position: static;
    z-index: auto;
}

body.content-page .page-header img {
    max-width: 96px;
    width: 96px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: block;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

body.content-page .page-header h1 {
    font-size: 2rem;
    color: #003333;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    font-weight: 700;
}

body.content-page .page-header .subtitle {
    font-size: 1rem;
    color: #52606d;
    margin: 0;
    opacity: 1;
}

/* ── Card ── */

body.content-page .card {
    display: block;
    background: #ffffff;
    color: #1f2933;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    padding: 28px 32px;
    margin: 0 0 20px;
}

body.content-page .card h2 {
    color: #003333;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.3;
}

body.content-page .card h3 {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 10px;
}

body.content-page .card p {
    margin: 0 0 14px;
    color: #1f2933;
}

body.content-page .card p:last-child {
    margin-bottom: 0;
}

body.content-page .card ul,
body.content-page .card ol {
    margin: 0 0 14px 0;
    padding-left: 1.4em;
}

body.content-page .card li {
    margin-bottom: 6px;
}

body.content-page .card a {
    color: #0b6e6e;
}

body.content-page .card a:hover {
    color: #003333;
    text-decoration: underline;
}

/* ── Article (post page) ── */

.article-full {
    /* picks up .card baseline */
}

/* Optional hero image at the top of the article. The figure bleeds to the
   card's edges (negating the card's own padding) so the image touches the
   border-radius corners. */
.article-hero {
    margin: -28px -32px 24px;
    padding: 0;
    background: #003333;        /* dark frame visible during image load */
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    line-height: 0;
}
.article-hero img {
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 720px) {
    .article-hero {
        margin: -22px -20px 18px;
    }
}

/* Blog list — compact thumbnail variant.
   Selectors are scoped under `body.content-page` so they win against
   `body.content-page .card { display: block }`, which would otherwise force
   the card back to block layout and defeat the flex row. */
body.content-page .blog-post--with-thumb {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}
body.content-page .blog-post__thumb {
    display: block;
    flex: 0 0 120px;
    width: 120px;
    aspect-ratio: 4 / 3;
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
    outline: none;
}
body.content-page .blog-post__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
body.content-page .blog-post__body {
    flex: 1;
    min-width: 0;
}
body.content-page .blog-post__body > :first-child {
    margin-top: 0;
}
body.content-page .blog-post h2 a {
    text-decoration: none;
    color: #003333;
}
body.content-page .blog-post h2 a:hover {
    color: #0b6e6e;
    text-decoration: underline;
}
@media (max-width: 480px) {
    body.content-page .blog-post--with-thumb {
        flex-direction: column;
    }
    body.content-page .blog-post__thumb {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

.article-head h1 {
    font-size: 1.9rem;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.25;
}

.article-meta {
    color: #52606d;
    font-size: 0.92rem;
    margin: 0 0 12px;
}

.article-tags {
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.article-tags .tag {
    display: inline-block;
    background: #eef2f1;
    color: #37424d;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 999px;
    margin-right: 6px;
    text-transform: lowercase;
    border: none;
}

.breadcrumb {
    font-size: 0.92rem;
    margin: 0 0 18px;
    color: #52606d;
}

.breadcrumb a {
    color: #0b6e6e;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-body {
    line-height: 1.7;
    color: #1f2933;
}

.article-body .lead {
    font-size: 1.12rem;
    color: #37424d;
    line-height: 1.65;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef0f2;
}

.article-body p {
    margin: 0 0 16px;
    line-height: 1.7;
}

.article-body h3 {
    margin: 28px 0 12px;
    color: #003333;
    font-size: 1.2rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 16px;
    padding-left: 1.6em;
    line-height: 1.7;
}

.article-body li {
    margin-bottom: 0.35em;
}

.article-body a {
    color: #0b6e6e;
}

.article-body a:hover {
    color: #003333;
    text-decoration: underline;
}

.related {
    margin: 36px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid #e5e7eb;
}

.related h2 {
    font-size: 1.1rem;
    color: #003333;
    margin: 0 0 14px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin: 0 0 10px;
}

.related-list a {
    color: #0b6e6e;
    text-decoration: none;
}

.related-list a:hover {
    color: #003333;
    text-decoration: underline;
}

.muted {
    color: #6b7785;
}

/* ── Home page ── */

.home-intro {
    /* picks up .card baseline */
}

.home-section {
    margin-top: 32px;
}

.home-section h2 {
    color: #003333;
    font-size: 1.35rem;
    margin: 0 0 16px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.cta {
    display: inline-block;
    padding: 10px 18px;
    background: #ffffff;
    color: #003333;
    border: 1px solid #c9d3d2;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cta:hover {
    border-color: #003333;
    color: #003333;
    background: #f0f5f4;
}

.cta-primary {
    background: #003333;
    color: #ffffff;
    border-color: #003333;
}

.cta-primary:hover {
    background: #0b5050;
    border-color: #0b5050;
    color: #ffffff;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.article-card {
    background: #ffffff;
    color: #1f2933;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    padding: 28px 32px;
    margin: 0;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
}

.article-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.article-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: #003333;
}

.article-card .article-meta {
    margin: 0 0 12px;
}

.article-card .article-excerpt {
    color: #37424d;
    font-size: 0.95rem;
    margin: 0 0 14px;
    line-height: 1.55;
}

.read-more {
    font-weight: 600;
    color: #0b6e6e;
    text-decoration: none;
}

.read-more:hover {
    color: #003333;
    text-decoration: underline;
}

/* ── Blog list ── */

/* Blog list pages use blog.php / blog-styles.css — no overrides needed here */

/* ── About ── */

.download-block {
    margin-top: 12px;
    background: #fbfcfb;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 20px;
}

/* ── Contact form ── */

.contact-direct,
.contact-form-card,
.contact-other {
    /* pick up .card baseline via body.content-page .card */
}

.contact-form-card form p {
    margin: 0 0 16px;
}

.contact-form-card label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0 0 6px;
    color: #1f2933;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd2d9;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: #1f2933;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.contact-form-card input[type="text"]:focus,
.contact-form-card input[type="email"]:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: #003333;
    box-shadow: 0 0 0 3px rgba(0, 51, 51, 0.12);
}

.contact-form-card textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form-card button[type="submit"] {
    padding: 11px 22px;
    background: #003333;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.contact-form-card button[type="submit"]:hover {
    background: #0b5050;
}

.form-success {
    background: #e9f5ec;
    border: 1px solid #c2e2cb;
    color: #1f3a26;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.form-success p {
    margin: 0;
}

.form-error {
    background: #fdecec;
    border: 1px solid #f3c4c4;
    color: #5c1d1d;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.form-error p {
    margin: 0;
}

.field-error {
    display: block;
    color: #b3261e;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Honeypot — visually hidden, accessible */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Responsive ── */

@media (max-width: 720px) {
    body.content-page .page-header h1 {
        font-size: 1.5rem;
    }

    body.content-page .card {
        padding: 22px 20px;
    }

    body.content-page .home-main,
    body.content-page .article-wrap,
    body.content-page .about-wrap,
    body.content-page .contact-wrap,
    body.content-page .rules-wrap,
    body.content-page .privacy-wrap {
        padding: 20px 16px 48px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta {
        text-align: center;
    }

    .article-card {
        padding: 22px 20px;
    }
}

/* Store links (parameterised columns) */

.game-items {
    display: grid;
    grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.game-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2933;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.game-item:hover {
    border-color: #003333;
    box-shadow: 0 1px 3px rgba(0, 51, 51, 0.08);
    text-decoration: none;
}
.game-icon-small {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    background-size: contain;          /* preserve aspect — never stretch */
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    background-color: #fafafa;          /* visible square frame */
    align-self: center;
}
.game-info { min-width: 0; }
.game-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-category { font-size: 0.78rem; color: #6b7785; }
.game-price { font-size: 0.78rem; color: #0b6e6e; font-weight: 600; }

/* About page wraps the store-links block in a light card. */
body.about-page .download-block {
    background: #fbfcfb;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 20px 24px;
}
body.about-page .download-block .sidebar-sticky {
    position: static;
    top: auto;
}
body.about-page .download-block .discover-header {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: #003333;
}
body.about-page .download-block h3 {
    margin: 22px 0 10px;
    font-size: 0.95rem;
    color: #003333;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* On phones, force any caller to single-column. */
@media (max-width: 520px) {
    .game-items { grid-template-columns: 1fr; }
}

body.content-page .game-item .game-icon-small,
body.blog-page    .game-item .game-icon-small {
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    flex: 0 0 40px;
}

/* Defeat any legacy body.blog-page background that survived. */
body.content-page.blog-page {
    background: #f4f6f5;
}

/* .discover-header was white-on-dark in the legacy sidebar; force readable
   color on the new light background. */
body.content-page .discover-header {
    color: #003333;
}

/* Game-page blurb — screen-reader-only description of the visible game
   state. The standard "visually hidden" pattern: stays in the DOM (so
   screen readers and crawlers see it) but renders as a 1×1 clipped box for
   sighted users. Used here as accessibility content, not for keyword
   stuffing — keep the body honest descriptive text only. */
.game-about {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: normal;
    border: 0;
}

/* Hero (light) */

.home-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef2f0 60%, #e5ebe7 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 56px 24px 64px;
    margin: 0 -24px 32px;   /* bleed to edge inside .home-main's 24px gutter */
}

.home-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.home-hero__text { min-width: 0; }

.home-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 12px;
    background: rgba(0, 51, 51, 0.06);
    color: #003333;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 22px;
}

.home-hero__pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0b6e6e;
    box-shadow: 0 0 0 4px rgba(11, 110, 110, 0.18);
}

.home-hero__title {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

.home-hero__title-accent {
    color: #003333;
    position: relative;
    white-space: nowrap;
}
.home-hero__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 6px;
    background: rgba(11, 110, 110, 0.18);
    border-radius: 999px;
    z-index: -1;
}

.home-hero__lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #37424d;
    margin: 0 0 28px;
    max-width: 38em;
}

.home-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero__cta {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}

.home-hero__cta--primary {
    background: #003333;
    color: #ffffff;
    border: 1px solid #003333;
}
.home-hero__cta--primary:hover {
    background: #0b5050;
    border-color: #0b5050;
    transform: translateY(-1px);
    text-decoration: none;
}

.home-hero__cta--ghost {
    background: transparent;
    color: #003333;
    border: 1px solid #003333;
}
.home-hero__cta--ghost:hover {
    background: rgba(0, 51, 51, 0.06);
    text-decoration: none;
}

.home-hero__art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.home-hero__fan {
    width: 100%;
    max-width: 460px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12));
}

@media (max-width: 860px) {
    .home-hero { padding: 40px 24px 48px; }
    .home-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .home-hero__art { order: -1; }
    .home-hero__fan { max-width: 340px; }
}

@media (max-width: 520px) {
    .home-hero { padding: 32px 20px 36px; }
    .home-hero__fan { display: none; }
}

/* Footer (redesigned) */

.page-footer {
    background: #003333;
    color: #cfd8d8;
    margin-top: 60px;
    padding: 48px 24px 24px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col {
    display: block;
}

.footer-brand .footer-brandname {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
    margin-bottom: 8px;
    margin-top: 0;
}

.footer-tagline {
    font-size: .92rem;
    line-height: 1.5;
    color: #a8b8b8;
    max-width: 360px;
    margin-bottom: 12px;
    margin-top: 0;
}

.footer-built {
    font-size: .82rem;
    color: #7a8b8b;
    font-style: italic;
    margin: 0;
}

.footer-heading {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #ffffff;
    margin: 0 0 14px;
    font-weight: 600;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 8px;
}

.footer-links-list a {
    color: #cfd8d8;
    text-decoration: none;
    font-size: .92rem;
}

.footer-links-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-social {
    margin-top: 18px;
}

.footer-social a {
    color: #a8b8b8;
    font-size: .88rem;
    text-decoration: none;
}

.footer-social a:hover {
    color: #ffffff;
}

.footer-legal {
    max-width: 1100px;
    margin: 36px auto 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: #7a8b8b;
}

.footer-legal p {
    margin: 0;
}

.footer-legal-meta a {
    color: #a8b8b8;
    text-decoration: none;
}

.footer-legal-meta a:hover {
    color: #ffffff;
}

.footer-legal a {
    color: #a8b8b8;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #ffffff;
}

@media (max-width: 719px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Facebook social */
.fb-social {
    margin: 32px 0;
    padding: 24px;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}
.fb-social-heading {
    font-size: 1.05rem;
    margin: 0 0 14px;
    color: #333;
}
.fb-social-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.fb-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.fb-cta__icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
.fb-cta--primary {
    background: #1877F2;
    color: #ffffff;
    border: 1px solid #1877F2;
}
.fb-cta--primary:hover {
    background: #166FE5;
    border-color: #166FE5;
    color: #ffffff;
    text-decoration: none;
}
.fb-cta--secondary {
    background: #ffffff;
    color: #1877F2;
    border: 1px solid #1877F2;
}
.fb-cta--secondary:hover {
    background: #E7F3FF;
    color: #1877F2;
    text-decoration: none;
}
@media (max-width: 720px) {
    .fb-social { padding: 18px; }
    .fb-social-actions { flex-direction: column; align-items: stretch; }
    .fb-cta { justify-content: center; }
}

/* Leaderboard */

.lb-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.lb-card {
    padding: 0;
    overflow: hidden;
}

.lb-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfb;
}

.lb-tab {
    flex: 1 1 25%;
    background: transparent;
    border: 0;
    padding: 14px 16px;
    font: inherit;
    font-weight: 600;
    color: #52606d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.lb-tab:hover { color: #003333; background: #f1f5f4; }

@media (max-width: 720px) {
    .lb-tabs { flex-wrap: wrap; }
    .lb-tab  { flex: 1 1 50%; font-size: 0.9rem; padding: 12px 12px; }
}

.lb-tab.is-active {
    color: #003333;
    border-bottom-color: #003333;
    background: #ffffff;
}

.lb-panel { display: none; }
.lb-panel.is-active { display: block; }

.lb-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f4f6f5;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

.lb-strip-title {
    font-weight: 700;
    color: #003333;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.lb-strip-meta {
    color: #6b7785;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: #1f2933;
}

.lb-table thead th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7785;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.lb-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f3f3;
    vertical-align: middle;
}

.lb-table tbody tr:nth-child(even) td {
    background: #fafbfb;
}

.lb-table tbody tr:hover td {
    background: #f4f6f5;
}

.lb-col-pos {
    width: 54px;
    color: #6b7785;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.lb-col-name {
    font-weight: 600;
    color: #0f172a;
}

.lb-col-score {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    font-family: 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', monospace;
    width: 110px;
}

.lb-col-delta {
    text-align: right;
    width: 84px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lb-arrow {
    display: inline-block;
    margin-right: 4px;
    font-size: 0.8em;
}

.lb-delta--up    { color: #16a34a; font-weight: 600; }
.lb-delta--down  { color: #dc2626; font-weight: 600; }
.lb-delta--flat  { color: #9aa5b1; }

.lb-intro {
    margin-bottom: 18px;
}

.lb-intro p {
    margin: 0;
    color: #37424d;
}

@media (max-width: 520px) {
    .lb-col-pos   { width: 38px; padding-left: 12px; padding-right: 6px; }
    .lb-col-name  { padding-left: 6px; padding-right: 6px; }
    .lb-col-score { width: 90px; padding-right: 8px; font-size: 0.92rem; }
    .lb-col-delta { width: 70px; padding-left: 4px; padding-right: 10px; }
    .lb-strip { padding: 10px 12px; }
}
