* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --field-green: #3a6b4a;
    --field-green-dark: #2c5237;
    --clay-orange: #b86a3a;
    --clay-orange-bright: #c87a45;
    --leather-brown: #6f4e37;
    --leather-tan: #a98a6c;
    --wool-white: #f6f2e9;
    --wool-soft: #efe9dc;
    --stitch-red: #c44d2e;
    --stitch-red-dark: #a83c24;
    --navy: #2b3a55;
    --pine-tar: #23211d;

    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-pill: 999px;

    --shadow: 0 6px 20px rgba(80, 50, 20, 0.12);
    --shadow-hover: 0 14px 34px rgba(80, 50, 20, 0.22);

    --font-head: 'Fraunces', 'Lora', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    min-height: 100vh;
    background: var(--wool-white);
    color: var(--pine-tar);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}
main, section, div { max-width: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--stitch-red); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--stitch-red-dark); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

@keyframes stitch-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
@keyframes stat-count { to { transform: scale(1.06); } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes ball-roll {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(12deg); }
}
@keyframes run-light {
    0% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -140; opacity: 0.6; }
}
@keyframes score-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(196,77,46,0.4); }
    50% { box-shadow: 0 0 16px rgba(196,77,46,0.8); }
}

/* ===== Header: scorecard ===== */
.scorecard-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 242, 233, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 2px solid rgba(120, 70, 30, 0.25);
    height: 72px;
}
.scorecard-inner {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative;
    padding: 0 24px;
}
.scorecard-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1;
}
.ledger-logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.03em;
    color: var(--leather-brown);
}
.ledger-est {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--field-green);
}
.stitch-svg {
    width: 60px;
    height: 24px;
    flex: 0 0 auto;
    animation: stitch-pulse 3s ease-in-out infinite;
}
.stitch-svg + .stitch-svg { animation-delay: 1.5s; }

/* ===== Layout ===== */
.main-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: hidden;
}
.section-head {
    text-align: center;
    margin-bottom: 28px;
}
.section-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(24px, 4vw, 32px);
    color: var(--leather-brown);
    letter-spacing: -0.01em;
}
.section-sub {
    display: block;
    margin-top: 8px;
    color: var(--leather-tan);
    font-size: 14px;
}

/* ===== Ad slots ===== */
.ad-slot {
    margin: 24px auto;
    max-width: 1100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--wool-soft);
    border: 1px solid rgba(120, 70, 30, 0.12);
    box-shadow: var(--shadow);
}
.ad-slot-top { margin-top: 18px; }

/* ===== Screen 1: Banner carousel ===== */
.banner-section { margin-top: 10px; }
.banner-viewport {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 340px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.banner-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.45;
    transition: opacity 0.7s ease, transform 0.4s ease;
    display: block;
}
.banner-slide.active { opacity: 1; }
.banner-slide:hover { transform: translateY(-3px); }
.banner-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3a6b4a 0%, #b86a3a 100%);
    z-index: 0;
}
.banner-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}
.banner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.banner-slide:hover .banner-photo img { transform: scale(1.06); }
.banner-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(44,82,55,0.1) 0%, rgba(44,82,55,0.72) 100%);
    pointer-events: none;
}
.banner-caption {
    position: absolute;
    left: 44px;
    right: 44px;
    bottom: 40px;
    z-index: 3;
    max-width: 680px;
    color: var(--wool-white);
}
.banner-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wool-white);
    border: 1.5px solid rgba(246,242,233,0.8);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(111,78,55,0.45);
}
.banner-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(22px, 4vw, 34px);
    line-height: 1.18;
    margin: 14px 0 10px;
    text-shadow: 0 2px 18px rgba(44,82,55,0.7);
}
.banner-desc {
    display: block;
    font-size: 14px;
    color: rgba(246,242,233,0.92);
    text-shadow: 0 1px 10px rgba(44,82,55,0.6);
    max-width: 520px;
}
.banner-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--leather-brown);
    background: var(--wool-white);
    padding: 10px 18px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
    box-shadow: var(--shadow);
}
.banner-slide:hover .banner-read { opacity: 1; transform: translateY(0); }
.banner-read svg { width: 16px; height: 16px; }
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(246,242,233,0.85);
    border: 1.5px solid var(--leather-tan);
    color: var(--leather-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    box-shadow: var(--shadow);
}
.banner-nav:hover { background: var(--stitch-red); color: var(--wool-white); }
.banner-nav svg { width: 20px; height: 20px; }
.banner-prev { left: 18px; }
.banner-next { right: 18px; }
.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
}
.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(246,242,233,0.4);
    border: 1px solid rgba(246,242,233,0.5);
    transition: background .2s ease, transform .2s ease;
}
.banner-dot.active { background: var(--stitch-red); transform: scale(1.25); }
.banner-hint {
    text-align: center;
    color: var(--leather-tan);
    font-size: 12px;
    margin-top: 12px;
    font-family: var(--font-mono);
}

/* ===== Screen 2: Diamond layout ===== */
.diamond-section { margin: 52px 0 8px; }
.diamond-field {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    height: 560px;
}
.diamond-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, var(--clay-orange-bright) 0%, var(--clay-orange) 38%, var(--field-green) 72%, var(--field-green-dark) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    opacity: 0.9;
}
.base-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.base-path {
    fill: none;
    stroke: var(--stitch-red);
    stroke-width: 0.8;
    stroke-dasharray: 2 2;
    stroke-linecap: round;
    opacity: 0.9;
}
.base-lines:hover .base-path {
    animation: run-light 2.4s linear infinite;
}
.diamond-node {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    background: rgba(246,242,233,0.96);
    border: 2px solid var(--stitch-red);
    box-shadow: var(--shadow);
    padding: 12px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.diamond-node:hover {
    transform: scale(1.08);
    border-color: var(--clay-orange);
    box-shadow: var(--shadow-hover);
}
.node-mound {
    left: 50%;
    top: 26%;
    width: 150px;
    height: 150px;
    transform: translateX(-50%);
    border-radius: 50%;
    border-width: 3px;
}
.node-mound:hover { transform: translateX(-50%) scale(1.08); }
.node-home { left: 50%; bottom: 8%; width: 120px; height: 120px; transform: translateX(-50%) rotate(45deg); border-radius: 12px; }
.node-home .diamond-tag, .node-home .diamond-label, .node-home .diamond-title { transform: rotate(-45deg); }
.node-home:hover { transform: translateX(-50%) rotate(45deg) scale(1.08); }
.node-first { right: 7%; top: 50%; width: 112px; height: 112px; transform: translateY(-50%); }
.node-first:hover { transform: translateY(-50%) scale(1.08); }
.node-second { right: 30%; top: 5%; width: 112px; height: 112px; }
.node-third { left: 7%; top: 50%; width: 112px; height: 112px; transform: translateY(-50%); }
.node-third:hover { transform: translateY(-50%) scale(1.08); }
.diamond-tag {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    color: var(--stitch-red);
    line-height: 1;
}
.diamond-label {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--leather-brown);
    margin-top: 6px;
}
.diamond-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--pine-tar);
    margin-top: 6px;
    line-height: 1.3;
}
.base-label {
    position: absolute;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--wool-white);
    text-shadow: 0 1px 3px rgba(44,82,55,0.8);
}
.bl-home { left: 50%; bottom: 1%; transform: translateX(-50%); }
.bl-first { right: 1%; top: 50%; transform: translateY(-50%); }
.bl-second { right: 26%; top: 0.5%; }
.bl-third { left: 1%; top: 50%; transform: translateY(-50%); }

/* ===== Screen 3: Card fan ===== */
.fan-section { margin: 52px 0 8px; }
.card-fan {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -8px;
    padding: 40px 20px 20px;
    max-width: 1040px;
    margin: 0 auto;
}
.bb-card {
    position: relative;
    flex: 0 0 150px;
    width: 150px;
    min-height: 240px;
    background: var(--wool-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--leather-tan);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    transform: rotate(calc(var(--fc) * 3deg - 10deg)) translateY(calc(var(--fc) * 4px));
    display: flex;
    flex-direction: column;
    margin-left: -18px;
}
.bb-card:first-child { margin-left: 0; }
.bb-card:hover {
    transform: rotate(0deg) translateY(-12px) scale(1.05);
    z-index: 20;
    box-shadow: var(--shadow-hover);
}
.bb-card.pulled { transform: rotate(0deg) scale(1.12) translateY(-20px); }
.bb-card-photo {
    height: 150px;
    overflow: hidden;
    border-bottom: 2px solid var(--stitch-red);
}
.bb-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bb-card-body { padding: 12px 12px 14px; }
.bb-card-team {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--stitch-red);
}
.bb-card-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.25;
    color: var(--leather-brown);
    margin: 5px 0 5px;
}
.bb-card-line {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--leather-tan);
}
.bb-card-stitch {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 8px;
    background: repeating-linear-gradient(90deg, var(--stitch-red) 0, var(--stitch-red) 3px, transparent 3px, transparent 6px);
    border-radius: 999px;
}

/* ===== Screen 4: Scoreboard ===== */
.stat-section { margin: 52px 0 8px; }
.stat-board {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--leather-tan);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--wool-white);
    box-shadow: var(--shadow);
}
.stat-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: var(--wool-white);
    border-bottom: 1px dashed var(--stitch-red);
    transition: background .3s ease;
}
.stat-row:last-child { border-bottom: none; }
.stat-row:hover { background: #edf3ea; }
.stat-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--leather-tan);
}
.stat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stat-info { flex: 1; min-width: 0; }
.stat-title {
    display: block;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--leather-brown);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--clay-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stat-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--stitch-red);
    width: 44px;
    text-align: right;
    flex: 0 0 44px;
}
.stat-row:hover .stat-value { animation: stat-count .4s ease; }

/* ===== Screen 5: Team balls ===== */
.balls-section { margin: 52px 0 8px; }
.balls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 24px;
    max-width: 720px;
    margin: 0 auto;
}
.team-ball {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    opacity: 0;
}
.ball-crest {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #e8e0d0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--leather-tan);
    position: relative;
    overflow: hidden;
    transition: transform .3s ease;
}
.ball-crest::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 2px 8px rgba(80,50,20,0.15);
}
.ball-initials {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    color: var(--tcolor, var(--leather-brown));
}
.ball-seam {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 66px;
    height: 40px;
    border: 2px solid var(--stitch-red);
    border-radius: 50%;
    border-left-color: transparent;
    border-right-color: transparent;
    transform: translateX(-50%) rotate(20deg);
    z-index: 2;
    opacity: 0.9;
    pointer-events: none;
    transition: opacity .3s ease;
}
.seam-b { transform: translateX(-50%) rotate(-20deg); }
.team-ball:hover .ball-crest { transform: rotate(12deg); animation: ball-roll .5s ease; }
.team-name {
    margin-top: 12px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    color: var(--leather-brown);
}
.team-blurb {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--leather-tan);
    margin-top: 2px;
}

/* ===== Screen 6: Masonry ===== */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 52px;
    align-items: start;
}
.content-main { min-width: 0; max-width: 100%; overflow-x: hidden; }
.masonry-section { min-width: 0; }
.masonry-stream { margin-top: 8px; }
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}
.masonry-card {
    break-inside: avoid;
    margin-bottom: 20px;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--wool-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(111,78,55,0.18);
    position: relative;
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.masonry-card:hover { border-color: var(--clay-orange); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.masonry-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.masonry-img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.masonry-card:hover .masonry-img { transform: scale(1.02); }
.masonry-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--stitch-red);
    color: var(--wool-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.masonry-body { padding: 14px 16px 16px; }
.masonry-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clay-orange);
}
.masonry-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    margin: 7px 0 8px;
    color: var(--leather-brown);
}
.masonry-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--leather-tan);
}
.masonry-meta svg { width: 12px; height: 12px; color: var(--stitch-red); }
.masonry-read {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--clay-orange);
    color: var(--wool-white);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}
.masonry-card:hover .masonry-read { opacity: 1; transform: translateY(0); }
.masonry-hidden { display: none; }

.load-more-wrap { text-align: center; margin: 30px 0 8px; }
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--leather-brown);
    color: var(--wool-white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}
.load-more-btn:hover { transform: translateY(-2px); }
.load-ring {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(246,242,233,0.3);
    border-top-color: var(--wool-white);
    opacity: 0;
}
.load-more-btn.loading .load-ring { opacity: 1; animation: ring-spin .8s linear infinite; }
.infinite-ring {
    width: 30px;
    height: 30px;
    margin: 18px auto 0;
    border-radius: 50%;
    border: 3px solid rgba(196,77,46,0.2);
    border-top-color: var(--clay-orange);
    opacity: 0;
}
.infinite-ring.spin { opacity: 1; animation: ring-spin .9s linear infinite; }
.scroll-sentinel { height: 1px; }

/* ===== Sidebar ===== */
.sidebar {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.widget {
    background: var(--wool-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(111,78,55,0.18);
}
.widget-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    color: var(--leather-brown);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--stitch-red);
    animation: live-blink 1.4s ease infinite;
}
.live-list { display: flex; flex-direction: column; gap: 12px; }
.live-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 8px 10px;
    background: var(--wool-soft);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(111,78,55,0.15);
}
.live-team { flex: 1; color: var(--tcolor, var(--leather-brown)); font-weight: 600; }
.live-team:last-child { text-align: right; }
.live-runs { color: var(--stitch-red); font-weight: 600; }
.live-vs { color: var(--leather-tan); font-size: 10px; }
.live-inning { font-size: 10px; color: var(--leather-tan); }
.widget-subscribe {
    background: linear-gradient(135deg, var(--field-green), var(--field-green-dark));
    border: none;
}
.widget-subscribe .widget-title { color: var(--wool-white); }
.widget-subscribe .widget-text { font-size: 13px; color: rgba(246,242,233,0.9); margin-bottom: 14px; line-height: 1.5; }
.subscribe-form { display: flex; flex-direction: column; gap: 8px; }
.subscribe-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid var(--leather-tan);
    background: rgba(246,242,233,0.9);
    color: var(--pine-tar);
    font-size: 13px;
    outline: none;
}
.subscribe-input::placeholder { color: var(--leather-tan); }
.subscribe-btn {
    padding: 11px 14px;
    border-radius: 999px;
    background: var(--leather-brown);
    color: var(--wool-white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--clay-orange);
    color: var(--clay-orange);
    transition: background .2s ease, color .2s ease;
}
.tag-pill:hover { background: var(--clay-orange); color: var(--wool-white); }
.tags-scroll { display: none; }

.floating-subscribe {
    display: none;
    position: fixed;
    bottom: 22px;
    right: 22px;
    left: auto;
    z-index: 40;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--clay-orange), var(--stitch-red));
    color: var(--wool-white);
    padding: 12px 18px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow);
    animation: score-pulse 2.6s ease-in-out infinite;
}
.floating-subscribe svg { width: 20px; height: 20px; }

/* ===== Article detail ===== */
.article-main {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px 40px;
}
.article-hero {
    position: relative;
    width: 100%;
    margin-top: 14px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.article-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 0%, rgba(58,107,74,0.25), transparent 60%),
                radial-gradient(80% 60% at 100% 100%, rgba(184,106,58,0.18), transparent 55%);
    z-index: 0;
}
.article-cover-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 56vh;
    overflow: hidden;
}
.article-cover {
    width: 100%;
    height: 100%;
    max-height: 56vh;
    object-fit: cover;
    border-radius: var(--radius-lg);
    cursor: zoom-in;
    box-shadow: var(--shadow);
}
.article-hero-actions {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
}
.hero-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(246,242,233,0.85);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--leather-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--leather-brown);
    transition: transform .2s ease, background .2s ease;
}
.hero-circle:hover { transform: scale(1.08); background: var(--stitch-red); color: var(--wool-white); }
.hero-circle svg { width: 18px; height: 18px; }
.article-headline {
    max-width: 900px;
    margin: 30px auto 8px;
    text-align: center;
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}
.article-cat, .detail-badge, .article-popularity {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 999px;
}
.article-cat {
    border: 1.5px solid var(--clay-orange);
    color: var(--clay-orange);
}
.detail-badge {
    background: var(--stitch-red);
    color: var(--wool-white);
}
.article-popularity {
    border: 1.5px solid var(--navy);
    color: var(--navy);
}
.article-heat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--stitch-red);
}
.article-heat svg { width: 14px; height: 14px; }
.article-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.18;
    color: var(--leather-brown);
    letter-spacing: -0.01em;
}
.article-meta-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    color: var(--leather-tan);
    font-size: 14px;
}
.article-author { font-weight: 700; color: var(--field-green-dark); }
.meta-dot { color: var(--leather-tan); }

.param-section {
    max-width: 760px;
    margin: 30px auto 8px;
}
.param-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.param-card {
    text-align: center;
    background: var(--wool-white);
    border-radius: var(--radius-md);
    padding: 18px 12px;
    transition: box-shadow .3s ease;
    position: relative;
    border: 1px solid rgba(111,78,55,0.18);
    overflow: hidden;
}
.param-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--clay-orange);
}
.param-card:hover { box-shadow: var(--shadow-hover); border-color: var(--clay-orange); }
.param-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--leather-tan);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.param-value {
    display: block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 26px;
    color: var(--leather-brown);
}
.param-hint {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--leather-tan);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .3s ease;
}
.param-card:hover .param-hint { max-height: 60px; opacity: 1; }

/* Scoreboard module */
.scoreboard-module {
    max-width: 760px;
    margin: 22px auto 8px;
    background: var(--wool-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(196,77,46,0.35);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    overflow: hidden;
}
.scoreboard-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clay-orange);
    margin-bottom: 14px;
}
.scoreboard-label svg { width: 16px; height: 16px; }
.scoreboard-board {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: var(--font-mono);
}
.sb-team { color: var(--tcolor, var(--leather-brown)); font-weight: 600; font-size: 16px; }
.sb-runs { color: var(--stitch-red); font-size: 34px; font-weight: 600; }
.sb-dash { color: var(--leather-tan); font-size: 24px; }
.scoreboard-mini {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--stitch-red);
}
.scoreboard-mini span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--field-green-dark);
}

.article-body {
    max-width: 680px;
    margin: 30px auto;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;
    color: rgba(35,33,29,0.92);
    overflow-wrap: break-word;
    word-break: break-word;
}
.article-body p { margin-bottom: 1.2em; }
.article-body img { width: 100%; border-radius: var(--radius-md); margin: 18px 0; cursor: zoom-in; }
.article-body h2, .article-body h3 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--leather-brown);
    margin: 1.4em 0 .6em;
}
.article-body h2 { font-size: 22px; }
.article-body h3 { font-size: 19px; }
.article-body p:first-of-type {
    border-left: 3px solid var(--clay-orange);
    padding-left: 14px;
}
.tech-term {
    border-bottom: 1.5px dashed var(--stitch-red);
    cursor: pointer;
    color: var(--stitch-red-dark);
    font-weight: 600;
}
.tech-term:hover { background: rgba(196,77,46,0.1); }

.related-section {
    max-width: 980px;
    margin: 30px auto 0;
}
.related-section .section-title { text-align: left; font-size: 22px; margin-bottom: 18px; }
.related-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.related-track::-webkit-scrollbar { height: 6px; }
.related-track::-webkit-scrollbar-thumb { background: var(--stitch-red); border-radius: 999px; }
.related-card {
    flex: 0 0 240px;
    background: var(--wool-white);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: box-shadow .3s ease, transform .3s ease;
    border: 1px solid rgba(111,78,55,0.18);
}
.related-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--clay-orange); }
.related-img-wrap {
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
}
.related-img { width: 100%; height: 100%; object-fit: cover; }
.related-cat { font-size: 11px; font-weight: 700; color: var(--clay-orange); text-transform: uppercase; letter-spacing: 0.05em; }
.related-title { font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.3; margin: 6px 0; color: var(--leather-brown); }
.related-heat { font-size: 12px; color: var(--stitch-red); display: inline-flex; align-items: center; gap: 5px; }
.related-heat svg { width: 13px; height: 13px; }

/* Drawers + gallery */
.term-drawer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--wool-white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 24px rgba(80,50,20,0.22);
    padding: 22px 24px 28px;
    transform: translateY(110%);
    transition: transform .3s ease;
    z-index: 60;
    max-width: 680px;
    margin: 0 auto;
    border-top: 2px solid var(--clay-orange);
}
.term-drawer.open { transform: translateY(0); }
.term-drawer-close {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 24px;
    color: var(--leather-tan);
    line-height: 1;
}
.term-drawer-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--pine-tar);
    padding-right: 24px;
}
.cover-gallery {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(35,33,29,0.95);
    z-index: 80;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.cover-gallery.open { display: flex; }
.cover-gallery img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}
.cover-gallery-close {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 34px;
    color: var(--wool-white);
    line-height: 1;
}

/* ===== Static pages ===== */
.static-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 24px 40px;
}
.back-btn {
    display: inline-block;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--clay-orange);
}
.static-article {
    background: var(--wool-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(111,78,55,0.18);
}
.static-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--clay-orange);
    border: 1.5px solid var(--clay-orange);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.static-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 32px;
    color: var(--leather-brown);
    margin-bottom: 20px;
}
.static-content { color: rgba(35,33,29,0.92); font-size: 16px; line-height: 1.8; }
.static-content h2 { font-family: var(--font-head); font-weight: 700; color: var(--leather-brown); margin: 1.2em 0 .5em; }
.static-content p { margin-bottom: 1em; }
.static-content br + p { margin-top: 1em; }

/* ===== Footer ===== */
.site-footer {
    background: var(--wool-soft);
    border-top: 1px solid rgba(111,78,55,0.18);
    margin-top: 48px;
}
.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-brand { max-width: 360px; }
.footer-logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    color: var(--leather-brown);
}
.footer-tagline { font-size: 13px; color: var(--leather-tan); margin-top: 4px; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--leather-tan);
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
.footer-nav a:hover { color: var(--clay-orange); border-bottom-color: var(--clay-orange); }
.footer-copy { font-size: 12px; color: var(--leather-tan); width: 100%; text-align: center; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
    body { padding: 0; }
    .scorecard-header { height: 52px; }
    .ledger-logo { font-size: 20px; }
    .ledger-est { display: none; }
    .stitch-svg { width: 30px; }
    .main-content { padding: 0 16px; }

    .banner-viewport { height: 35vh; min-height: 220px; border-radius: 8px; }
    .banner-caption { left: 16px; right: 16px; bottom: 22px; }
    .banner-title { font-size: 16px; margin: 8px 0 6px; }
    .banner-desc { display: none; }
    .banner-read { display: none; }
    .banner-nav { display: none; }
    .banner-hint { font-size: 11px; }

    /* Diamond becomes vertical list */
    .diamond-field {
        height: auto;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-left: 18px;
        position: relative;
    }
    .diamond-bg, .base-lines, .base-label { display: none; }
    .diamond-field::before {
        content: '';
        position: absolute;
        left: 0; top: 0; bottom: 0;
        width: 2px;
        background: repeating-linear-gradient(180deg, var(--stitch-red) 0, var(--stitch-red) 6px, transparent 6px, transparent 12px);
    }
    .diamond-node {
        position: relative;
        left: auto !important; top: auto !important; right: auto !important; bottom: auto !important;
        transform: none !important;
        width: 100%;
        min-height: 60px;
        height: auto;
        border-radius: var(--radius-md);
        flex-direction: row;
        gap: 12px;
        padding: 10px 14px;
        text-align: left;
    }
    .diamond-node .diamond-tag, .diamond-node .diamond-label, .diamond-node .diamond-title {
        transform: none !important;
    }
    .node-home .diamond-tag, .node-home .diamond-label, .node-home .diamond-title { transform: none; }
    .diamond-tag { font-size: 20px; flex: 0 0 40px; text-align: center; }
    .diamond-label { margin-top: 0; flex: 0 0 120px; }
    .diamond-title { margin-top: 0; flex: 1; }
    .diamond-node:hover { transform: none !important; }

    /* Card fan becomes horizontal scroll */
    .card-fan {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 14px;
        padding: 10px 4px 16px;
        -webkit-overflow-scrolling: touch;
    }
    .bb-card {
        flex: 0 0 70%;
        width: 70%;
        transform: none;
        margin-left: 0;
    }
    .bb-card:hover { transform: none; }
    .bb-card.pulled { transform: scale(0.98); }
    .bb-card-photo { height: 180px; }

    .stat-board { max-width: 100%; }
    .stat-row { height: 60px; padding: 8px 14px; gap: 10px; }
    .stat-thumb { width: 36px; height: 36px; flex: 0 0 36px; }
    .stat-title { font-size: 12px; }
    .stat-cat { display: none; }
    .stat-value { font-size: 16px; width: 32px; flex: 0 0 32px; }
    .stat-row:hover .stat-value { animation: none; }

    .balls-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
    .ball-crest { width: 70px; height: 70px; }
    .ball-initials { font-size: 18px; }
    .ball-seam { display: none; }
    .team-name { font-size: 11px; margin-top: 8px; }
    .team-blurb { display: none; }
    .team-ball:hover .ball-crest { transform: none; animation: none; }

    .content-layout { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
    .sidebar { display: none; }
    .tags-scroll { display: block; margin-bottom: 16px; }
    .tags-scroll .tag-cloud {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .floating-subscribe { display: inline-flex; right: 16px; left: auto; }

    .masonry-grid { column-count: 1; }
    .masonry-title { font-size: 16px; }
    .masonry-img-wrap { aspect-ratio: 1 / 1; }
    .masonry-card { margin-bottom: 16px; }

    .article-main { padding: 0 16px 30px; }
    .article-cover-wrap, .article-cover { max-height: 45vh; }
    .article-title { font-size: 24px; }
    .article-hero-actions { top: 12px; left: 12px; right: 12px; }
    .article-headline { margin: 22px auto 8px; }
    .param-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .param-card { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 90px; padding: 14px 10px; }
    .param-value { font-size: 18px; margin-top: 4px; }
    .param-hint { display: none; }
    .param-card:hover .param-hint { display: none; }

    .scoreboard-board { gap: 10px; }
    .sb-runs { font-size: 24px; }
    .sb-team { font-size: 13px; }
    .scoreboard-mini { gap: 18px; overflow-x: auto; }

    .article-body { font-size: 16px; line-height: 1.7; }
    .article-body p:first-of-type { padding-left: 12px; }

    .related-card { flex: 0 0 86%; }
    .related-img-wrap { height: 90px; }

    .static-article { padding: 24px; }
    .static-title { font-size: 24px; }
}
