/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
    --ink:        #0D0D0D;
    --paper:      #F5F0E8;
    --green:      #007A30;
    --lime:       #C8F04A;
    --red:        #E02020;
    --mid:        #D9D4C8;
    --muted:      #7A7568;
    --hover:      #EAE5D8;
    --gold:       #C5900A;
    --gold-bg:    #FDF3DC;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Space Mono', monospace;
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ─────────────────────────────────────────
   LAYOUT WRAPPER
───────────────────────────────────────── */
.ab-layout {
    max-width: 1200px;
    margin: 0 auto;
    border-left: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─────────────────────────────────────────
   NAV — shared across all pages
───────────────────────────────────────── */
.ab-nav {
    background: var(--ink);
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 20px;
    border-bottom: 3px solid var(--lime);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ab-nav__logo {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: var(--lime);
    letter-spacing: -1px;
    text-decoration: none;
}

.ab-nav__logo span {
    color: #fff;
}

/* Desktop link strip */
.ab-nav__links {
    display: flex;
    margin-left: auto;
}

.ab-nav__link {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    padding: 0 16px;
    height: 52px;
    display: flex;
    align-items: center;
    border-right: 1px solid #222;
    text-decoration: none;
    transition: color 0.1s;
}

.ab-nav__link:last-child {
    border-right: none;
}

.ab-nav__link:hover,
.ab-nav__link--active {
    color: var(--lime);
}

/* Hamburger (mobile only) */
.ab-nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    background: none;
    border: none;
}

.ab-nav__hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--lime);
}

/* Mobile dropdown */
.ab-nav__menu {
    display: none;
    background: var(--ink);
    border-bottom: 2px solid var(--lime);
}

.ab-nav__menu--open {
    display: block;
}

.ab-nav__menu-item {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    padding: 13px 16px;
    border-bottom: 1px solid #222;
    display: block;
    text-decoration: none;
    transition: color 0.1s;
}

.ab-nav__menu-item:hover,
.ab-nav__menu-item--active {
    color: var(--lime);
}

/* ─────────────────────────────────────────
   TICKER — optional slot, shown if provided
───────────────────────────────────────── */
.ab-ticker {
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-bottom: 2px solid var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─────────────────────────────────────────
   PAGE HEADER — used on inner pages
   (past games, winners, hall of fame)
───────────────────────────────────────── */
.ab-page-header {
    padding: 18px 20px 14px;
    border-bottom: 2px solid var(--ink);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.ab-page-header__title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
}

.ab-page-header__sub {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 5px;
}

.ab-badge {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 700;
    background: var(--green);
    color: #fff;
    padding: 4px 10px;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ab-badge--ink {
    background: var(--ink);
    color: var(--lime);
}

/* ─────────────────────────────────────────
   SECTION HEADER — label bar inside pages
───────────────────────────────────────── */
.ab-section-bar {
    background: var(--ink);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ab-section-bar__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--lime);
}

.ab-section-bar__sub {
    font-size: 8px;
    color: #666;
    letter-spacing: 1px;
}

/* ─────────────────────────────────────────
   CARD LABEL — coloured eyebrow inside cards
───────────────────────────────────────── */
.ab-card-label {
    background: var(--ink);
    color: var(--lime);
    font-family: 'Unbounded', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 8px 16px;
}

/* ─────────────────────────────────────────
   FILTER TABS — used on past games, winners
───────────────────────────────────────── */
.ab-filters {
    display: flex;
    border-bottom: 2px solid var(--ink);
}

.ab-filter {
    flex: 1;
    font-family: 'Unbounded', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 8px;
    text-align: center;
    border-right: 1px solid var(--ink);
    cursor: pointer;
    color: var(--muted);
    background: none;
    border-bottom: none;
    transition: background 0.1s, color 0.1s;
}

.ab-filter:last-child {
    border-right: none;
}

.ab-filter--active {
    background: var(--ink);
    color: var(--lime);
}

.ab-filter:hover:not(.ab-filter--active) {
    background: var(--hover);
    color: var(--ink);
}

/* ─────────────────────────────────────────
   STATS STRIP — 4-col desktop / 2×2 mobile
───────────────────────────────────────── */
.ab-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 2px solid var(--ink);
}

.ab-stat {
    padding: 14px 18px;
    border-right: 1px solid var(--mid);
}

.ab-stat:last-child {
    border-right: none;
}

.ab-stat__label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.ab-stat__value {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.ab-stat__value--gold  { color: var(--gold); }
.ab-stat__value--green { color: var(--green); }

/* ─────────────────────────────────────────
   RESULT CHIPS
───────────────────────────────────────── */
.ab-chip {
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border: 1.5px solid;
    display: inline-block;
    white-space: nowrap;
}

.ab-chip--pos { color: var(--green); border-color: var(--green); }
.ab-chip--neg { color: var(--red);   border-color: var(--red); }

/* ─────────────────────────────────────────
   PRIZE TEXT
───────────────────────────────────────── */
.ab-prize {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.ab-prize--gold { color: var(--gold); }

/* ─────────────────────────────────────────
   DETAIL LINK
───────────────────────────────────────── */
.ab-det {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
    border-bottom: 1px solid var(--green);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

/* ─────────────────────────────────────────
   STAMP / TAG
───────────────────────────────────────── */
.ab-stamp {
    display: inline-block;
    font-family: 'Unbounded', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 12px;
}

.ab-stamp--loss { background: var(--red);   color: #fff; }
.ab-stamp--win  { background: var(--green); color: #fff; }
.ab-stamp--lime { background: var(--lime);  color: var(--ink); }
.ab-stamp--ink  { background: var(--ink);   color: var(--lime); }

/* ─────────────────────────────────────────
   WINNER CALLOUT BAR
───────────────────────────────────────── */
.ab-winner-bar {
    background: var(--lime);
    border-bottom: 2px solid var(--ink);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ab-winner-bar__name {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.ab-winner-bar__detail {
    font-size: 9px;
    color: var(--ink);
    opacity: 0.7;
    margin-top: 1px;
}

.ab-winner-bar__prize {
    margin-left: auto;
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--ink);
    white-space: nowrap;
}

/* ─────────────────────────────────────────
   HOF DIVIDER
───────────────────────────────────────── */
.ab-hof-divider {
    background: var(--gold);
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ab-hof-divider__rule {
    flex: 1;
    height: 1.5px;
    background: var(--ink);
    opacity: 0.3;
}

.ab-hof-divider__label {
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}

/* ─────────────────────────────────────────
   HOF BANNER (homepage teaser)
───────────────────────────────────────── */
.ab-hof-banner {
    background: var(--gold);
    border-top: 2px solid var(--ink);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ab-hof-banner__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
}

.ab-hof-banner__sub {
    font-size: 9px;
    color: var(--ink);
    opacity: 0.7;
    font-weight: 700;
    margin-top: 2px;
}

.ab-hof-banner__btn {
    margin-left: auto;
    background: var(--ink);
    color: var(--lime);
    font-family: 'Unbounded', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */
.ab-pager {
    padding: 12px 16px;
    border-top: 2px solid var(--ink);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ab-pager__btn {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border: 1.5px solid var(--ink);
    cursor: pointer;
    background: none;
    text-decoration: none;
    color: var(--ink);
    transition: background 0.1s, color 0.1s;
}

.ab-pager__btn--active {
    background: var(--ink);
    color: var(--lime);
}

.ab-pager__btn:hover:not(.ab-pager__btn--active) {
    background: var(--hover);
}

.ab-pager__info {
    margin-left: auto;
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 1px;
}

/* ─────────────────────────────────────────
   MAIN CONTENT AREA
───────────────────────────────────────── */
.ab-content {
    border-bottom: 2px solid var(--ink);
    flex: 1;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.ab-footer {
    background: var(--ink);
    border-top: 3px solid var(--lime);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ab-footer__logo {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 14px;
    color: var(--lime);
    letter-spacing: -1px;
}

.ab-footer__logo span { color: #fff; }

.ab-footer__copy {
    font-size: 9px;
    color: #555;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────
   RESPONSIVE — 640px breakpoint
───────────────────────────────────────── */
@media (max-width: 640px) {

    /* Nav */
    .ab-nav {
        height: 48px;
        padding: 0 14px;
    }

    .ab-nav__logo {
        font-size: 16px;
    }

    .ab-nav__links {
        display: none;
    }

    .ab-nav__hamburger {
        display: flex;
    }

    /* Ticker */
    .ab-ticker {
        font-size: 9px;
        padding: 5px 14px;
    }

    /* Page header */
    .ab-page-header {
        padding: 14px;
    }

    .ab-page-header__title {
        font-size: 18px;
    }

    /* Stats 2×2 */
    .ab-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ab-stats .ab-stat {
        border-bottom: 1px solid var(--mid);
    }

    .ab-stats .ab-stat:nth-child(2n) {
        border-right: none;
    }

    .ab-stats .ab-stat:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .ab-stat__value {
        font-size: 16px;
    }

    /* Section bar */
    .ab-section-bar {
        padding: 7px 14px;
    }
}