:root {
    --ink: #17221d;
    --muted: #66736c;
    --paper: #fbf8f1;
    --surface: #ffffff;
    --cream: #f2ecdf;
    --green: #174c3b;
    --green-light: #28654e;
    --orange: #e56f3d;
    --orange-dark: #c85226;
    --line: #dedfd6;
    --shadow: none;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
img,
svg {
    display: block;
    max-width: 100%;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2 {
    font-family: inherit;
    line-height: 1.22;
    letter-spacing: -0.02em;
}
h2 {
    margin-bottom: 20px;
    font-size: clamp(28px, 4vw, 43px);
}
h3 {
    line-height: 1.35;
}
.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 100;
    padding: 10px 18px;
    background: var(--surface);
    border-radius: 8px;
}
.skip-link:focus {
    top: 20px;
}

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(251, 248, 241, 0.96);
    border-bottom: 1px solid rgba(23, 34, 29, 0.08);
}
.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--orange);
}
.brand-mark svg {
    width: 100%;
}
.brand-mark rect {
    fill: currentColor;
}
.brand-mark circle {
    fill: var(--paper);
}
.brand strong {
    display: block;
    font-family: inherit;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}
.brand small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 600;
}
.main-nav a {
    position: relative;
    padding-block: 32px;
    transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--orange-dark);
}
.main-nav a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: 21px;
    left: 0;
    height: 2px;
    background: var(--orange);
    content: "";
}
.main-nav .nav-labs {
    padding: 9px 15px;
    color: var(--green);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.main-nav .nav-labs[aria-current="page"]::after {
    display: none;
}
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}
.menu-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0 65px;
    background: var(--cream);
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.8fr);
    align-items: center;
    gap: 50px;
}
.eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.hero h1 {
    max-width: 680px;
    margin-bottom: 25px;
    font-size: clamp(36px, 4.5vw, 54px);
}
.hero h1 em {
    color: var(--orange);
    font-style: normal;
}
.hero-copy > p {
    max-width: 600px;
    margin-bottom: 32px;
    color: #536159;
    font-size: 18px;
}
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 0.2s,
        border-color 0.2s;
}
.button:hover {
    transform: none;
}
.button-primary {
    color: #fff;
    background: var(--orange);
    box-shadow: none;
}
.button-primary:hover {
    background: var(--orange-dark);
}
.button-ghost {
    border-color: #b9beb5;
    background: rgba(255, 255, 255, 0.25);
}
.button-ghost:hover {
    border-color: var(--green);
}
.button-light {
    width: 100%;
    color: var(--green);
    background: #f7f3e9;
}
.button-dark {
    color: #fff;
    background: var(--green);
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin: 44px 0 0;
}
.hero-stats div {
    padding-right: 38px;
    border-right: 1px solid #cfd3c8;
}
.hero-stats div:last-child {
    padding-right: 0;
    border: 0;
}
.hero-stats dt {
    font-family: inherit;
    font-size: 25px;
    font-weight: 700;
}
.hero-stats dd {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.next-event-card {
    position: relative;
    padding: 30px;
    color: #fff;
    background: var(--green);
    border-radius: var(--radius);
    box-shadow: none;
}
.event-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-badge > span {
    width: 8px;
    height: 8px;
    background: #8ed6a8;
    border-radius: 50%;
    box-shadow: none;
}
.event-price {
    color: #f3c6a9;
    font-size: 13px;
    font-weight: 700;
}
.event-kicker {
    margin-bottom: 12px;
    color: #b8d1c5;
    font-size: 13px;
}
.next-event-card h2 {
    margin-bottom: 18px;
    font-size: clamp(25px, 3vw, 33px);
}
.next-event-card > p:not(.event-kicker) {
    color: #d4e0d9;
    font-size: 14px;
}
.event-details {
    margin: 25px 0 30px;
    padding: 0;
    list-style: none;
}
.event-details li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 12px;
}
.event-details li span {
    color: #b8d1c5;
}
.event-details li strong {
    text-align: right;
    font-weight: 600;
}

.section {
    padding: 65px 0;
}
.section-tinted {
    background: #f0eadf;
}
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}
.section-heading h2 {
    margin-bottom: 0;
}
.section-heading .eyebrow {
    margin-bottom: 12px;
}
.text-link {
    flex-shrink: 0;
    padding-bottom: 8px;
    color: var(--green);
    border-bottom: 1px solid var(--green);
    font-size: 14px;
    font-weight: 800;
}
.text-link span {
    margin-left: 8px;
}
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.game-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(23, 34, 29, 0.07);
    border-radius: var(--radius);
}
.game-card:hover {
    transform: none;
    box-shadow: none;
}
.game-cover {
    position: relative;
    display: flex;
    height: 170px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.game-cover > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    font-family: inherit;
    font-size: 34px;
}
.game-cover > small {
    position: absolute;
    right: 20px;
    bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.cover-carcassonne {
    background: #bd7543;
}
.cover-machi {
    background: #357a78;
}
.cover-dixit {
    background: #69618e;
}
.game-card-body {
    padding: 25px;
}
.game-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}
.game-card h3 {
    margin-bottom: 10px;
    font-size: 23px;
}
.game-card p {
    min-height: 74px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
}
.game-level {
    display: inline-block;
    padding: 5px 10px;
    color: var(--green);
    background: #e8f0e9;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.centered-heading {
    display: block;
    max-width: 650px;
    margin-inline: auto;
    text-align: center;
}
.centered-heading p {
    margin: 16px 0 0;
    color: var(--muted);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}
.step-card {
    padding: 10px 25px 10px 0;
    border-right: 1px solid #d4d4c8;
}
.step-card:last-child {
    border-right: 0;
}
.step-number {
    display: block;
    margin-bottom: 20px;
    color: var(--orange);
    font-family: inherit;
    font-size: 15px;
}
.step-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}
.step-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}
.journal-preview {
    color: #fff;
    background: var(--green);
}
.journal-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 90px;
}
.journal-copy .eyebrow {
    color: #f0a67f;
}
.journal-copy p {
    margin-bottom: 28px;
    color: #c1d2c8;
}
.journal-copy .button-dark {
    color: var(--green);
    background: #fff;
}
.featured-article {
    padding: 45px;
    color: var(--ink);
    background: var(--paper);
    border-radius: var(--radius);
}
.article-tag {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.featured-article h3 {
    margin-bottom: 18px;
    font-family: inherit;
    font-size: 25px;
}
.featured-article p {
    color: var(--muted);
}
.article-author {
    color: var(--muted);
    font-size: 12px;
}
.cta-section {
    padding-block: 55px;
}
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 35px 45px;
    background: #ede5d6;
    border-radius: var(--radius);
}
.cta-card .eyebrow {
    margin-bottom: 8px;
}
.cta-card h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
}

.site-footer {
    padding: 65px 0 25px;
    color: #d8e0db;
    background: #122c23;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 70px;
}
.brand-footer {
    color: #fff;
}
.brand-footer small {
    color: #9db0a5;
}
.footer-grid > div:first-child > p {
    max-width: 390px;
    margin: 22px 0 0;
    color: #9db0a5;
    font-size: 14px;
}
.footer-grid h2 {
    margin-bottom: 20px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0;
}
.footer-grid > div:not(:first-child) a {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}
.footer-grid > div:not(:first-child) p {
    margin-bottom: 10px;
    color: #9db0a5;
    font-size: 13px;
}
.footer-grid a:hover {
    color: #f0a67f;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 22px;
    color: #81988b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

.page-hero {
    padding: 70px 0;
    color: #fff;
    background: var(--green);
}
.page-hero h1 {
    max-width: 800px;
    margin-bottom: 18px;
    font-size: clamp(36px, 5vw, 58px);
}
.page-hero p {
    max-width: 700px;
    margin-bottom: 0;
    color: #c4d6cc;
    font-size: 18px;
}
.page-hero .eyebrow {
    color: #f0a67f;
}
.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.placeholder-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.placeholder-card span {
    display: block;
    margin-bottom: 18px;
    color: var(--orange);
    font-family: inherit;
    font-size: 13px;
}
.placeholder-card h2 {
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 20px;
    letter-spacing: 0;
}
.placeholder-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.page-note {
    margin: 35px 0 0;
    padding: 20px 24px;
    color: var(--muted);
    background: var(--cream);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    font-size: 14px;
}

@media (max-width: 1050px) {
    .main-nav {
        gap: 17px;
        font-size: 12px;
    }
    .hero-grid {
        gap: 40px;
    }
    .hero {
        padding-block: 65px;
    }
}
@media (max-width: 850px) {
    .menu-toggle {
        display: block;
    }
    .main-nav {
        position: absolute;
        top: 90px;
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        padding: 15px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }
    .main-nav.is-open {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .main-nav a {
        padding: 12px 14px;
        font-size: 14px;
    }
    .main-nav a[aria-current="page"]::after {
        display: none;
    }
    .main-nav .nav-labs {
        margin-top: 8px;
        text-align: center;
    }
    .hero-grid,
    .journal-grid {
        grid-template-columns: 1fr;
    }
    .next-event-card {
        max-width: 600px;
    }
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .game-card:last-child {
        grid-column: 1 / -1;
    }
    .game-card:last-child .game-cover {
        height: 180px;
    }
    .steps-grid {
        gap: 20px;
    }
    .step-card {
        padding-right: 18px;
    }
    .journal-grid {
        gap: 45px;
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 45px;
    }
    .footer-grid > div:last-child {
        grid-column: 2;
    }
}
@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1180px);
    }
    .header-inner {
        min-height: 76px;
    }
    .main-nav {
        top: 76px;
        right: 14px;
        left: 14px;
    }
    .brand-mark {
        width: 39px;
        height: 39px;
    }
    .brand strong {
        font-size: 16px;
    }
    .brand small {
        font-size: 9px;
    }
    .hero {
        padding: 48px 0 55px;
    }
    .hero h1 {
        font-size: 38px;
    }
    .hero-copy > p {
        font-size: 16px;
    }
    .button-row .button {
        width: 100%;
    }
    .hero-stats {
        gap: 18px;
    }
    .hero-stats div {
        padding-right: 18px;
    }
    .hero-stats dt {
        font-size: 20px;
    }
    .hero-stats dd {
        font-size: 10px;
    }
    .next-event-card {
        padding: 25px;
    }
    .event-card-top {
        align-items: flex-start;
    }
    .section {
        padding: 60px 0;
    }
    .section-heading {
        display: block;
    }
    .text-link {
        display: inline-block;
        margin-top: 20px;
    }
    .game-grid,
    .steps-grid,
    .placeholder-grid {
        grid-template-columns: 1fr;
    }
    .game-card:last-child {
        grid-column: auto;
    }
    .game-cover,
    .game-card:last-child .game-cover {
        height: 175px;
    }
    .game-card p {
        min-height: 0;
    }
    .step-card {
        padding: 0 0 22px;
        border-right: 0;
        border-bottom: 1px solid #d4d4c8;
    }
    .step-card:last-child {
        border-bottom: 0;
    }
    .featured-article {
        padding: 28px;
    }
    .featured-article h3 {
        font-size: 21px;
    }
    .cta-card {
        align-items: stretch;
        flex-direction: column;
        padding: 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-grid > div:last-child {
        grid-column: auto;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
    .page-hero {
        padding: 50px 0;
    }
    .page-hero p {
        font-size: 16px;
    }
}

.catalog-section {
    padding-top: 45px;
}
.catalog-filters {
    display: grid;
    grid-template-columns: 1.5fr 0.65fr 1fr auto auto;
    align-items: end;
    gap: 15px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.catalog-filters label > span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.catalog-filters input,
.catalog-filters select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
}
.catalog-filters input:focus,
.catalog-filters select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 76, 59, 0.1);
}
.filter-reset {
    padding: 13px 5px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    text-decoration: underline;
}
.catalog-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0 25px;
}
.catalog-heading h2 {
    margin: 0;
    font-family: inherit;
    font-size: 22px;
    letter-spacing: 0;
}
.catalog-heading > span {
    color: var(--muted);
    font-size: 13px;
}
.catalog-grid .game-card p {
    min-height: 96px;
}
.cover-codenames {
    background: #9a5146;
}
.cover-everdell {
    background: #50704c;
}
.cover-munchkin {
    background: #9a703b;
}
.empty-state {
    padding: 60px 30px;
    text-align: center;
    background: var(--cream);
    border-radius: var(--radius);
}
.empty-state h2 {
    font-size: 26px;
}
.empty-state p {
    margin-bottom: 25px;
    color: var(--muted);
}
.pagination-wrap {
    margin-top: 35px;
}
.pagination-wrap nav > div:first-child {
    margin-bottom: 15px;
}
.pagination-wrap nav a,
.pagination-wrap nav span {
    transition: color 0.2s;
}
.detail-section {
    padding-top: 45px;
}
.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}
.back-link:hover {
    color: var(--orange-dark);
}
.game-detail {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
}
.game-detail .game-cover {
    height: auto;
    min-height: 460px;
}
.game-detail .game-cover > span {
    width: 140px;
    height: 140px;
    font-size: 65px;
}
.game-detail-copy {
    padding: 50px;
}
.game-detail-copy h1 {
    margin-bottom: 22px;
    font-size: clamp(34px, 5vw, 52px);
}
.game-detail-copy > p {
    color: var(--muted);
    font-size: 17px;
}
.detail-facts {
    margin: 30px 0;
}
.detail-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}
.detail-facts dt {
    color: var(--muted);
}
.detail-facts dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.article-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.article-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.article-card-meta time {
    color: var(--muted);
    font-weight: 600;
}
.article-card h2 {
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 25px;
    letter-spacing: -0.02em;
}
.article-card h2 a:hover {
    color: var(--orange-dark);
}
.article-card > p {
    flex-grow: 1;
    color: var(--muted);
}
.article-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 15px 0 25px;
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 11px;
}
.article-card .text-link {
    align-self: flex-start;
}
.article-hero {
    padding: 50px 0 65px;
    color: #fff;
    background: var(--green);
}
.article-container {
    max-width: 850px;
}
.article-hero .back-link {
    margin-bottom: 40px;
}
.back-link-light {
    color: #c4d6cc;
}
.back-link-light:hover {
    color: #fff;
}
.article-hero .eyebrow {
    color: #f0a67f;
}
.article-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(34px, 5vw, 53px);
}
.article-hero p {
    margin-bottom: 0;
    color: #c4d6cc;
    font-size: 18px;
}
.article-author-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}
.author-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    background: var(--orange);
    border-radius: 50%;
    font-family: inherit;
}
.article-author-card strong,
.article-author-card span {
    display: block;
}
.article-author-card > div > span {
    color: var(--muted);
    font-size: 12px;
}
.article-publish-info {
    margin-left: auto;
    text-align: right;
}
.article-publish-info time {
    display: block;
    font-size: 13px;
    font-weight: 700;
}
.article-content {
    font-size: 18px;
    line-height: 1.85;
}
.article-content p {
    margin-bottom: 25px;
}
.article-content p:first-child::first-letter {
    float: left;
    margin: 9px 10px 0 0;
    color: var(--orange);
    font-family: inherit;
    font-size: 48px;
    line-height: 0.8;
}
.article-bottom-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 45px;
    padding: 28px;
    background: var(--cream);
    border-radius: 16px;
}
.article-bottom-note > span {
    max-width: 430px;
    font-weight: 700;
}
.lab-layout {
    min-height: 100vh;
    padding: 60px 20px;
    background: var(--cream);
}
.lab-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 45px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.lab-card h1 {
    margin-bottom: 20px;
    font-size: clamp(30px, 6vw, 48px);
}
.lab-card p {
    color: var(--muted);
}
.lab-links {
    display: grid;
    gap: 12px;
    margin: 25px 0;
}
.lab-links a {
    padding: 13px 16px;
    color: var(--green);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.lab-links a:hover {
    border-color: var(--orange);
}
.lab-note {
    padding: 15px;
    background: var(--cream);
    border-radius: 10px;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .catalog-filters {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .catalog-filters .button {
        grid-column: 1 / 3;
    }
}
@media (max-width: 750px) {
    .game-detail {
        grid-template-columns: 1fr;
    }
    .game-detail .game-cover {
        min-height: 250px;
    }
    .game-detail-copy {
        padding: 35px;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .catalog-filters {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .catalog-filters .button {
        grid-column: auto;
    }
    .catalog-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
    .catalog-grid .game-card p {
        min-height: 0;
    }
    .game-detail-copy {
        padding: 28px 22px;
    }
    .game-detail .game-cover > span {
        width: 100px;
        height: 100px;
    }
    .article-card {
        padding: 25px;
    }
    .article-card-footer,
    .article-bottom-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .article-author-card {
        flex-wrap: wrap;
    }
    .article-publish-info {
        width: 100%;
        margin: 10px 0 0 63px;
        text-align: left;
    }
    .article-content {
        font-size: 16px;
    }
    .lab-card {
        padding: 28px 22px;
    }
}

.event-grid {
    display: grid;
    gap: 24px;
}
.event-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.event-date-block {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    color: #fff;
    background: var(--green);
    text-align: center;
}
.event-date-block strong {
    font-family: inherit;
    font-size: 48px;
    line-height: 1;
}
.event-date-block span {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}
.event-date-block small {
    margin-top: 4px;
    color: #b8d1c5;
    font-size: 12px;
}
.event-card-content {
    padding: 30px 35px;
}
.event-card-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.seats-badge {
    padding: 5px 10px;
    color: var(--green);
    background: #e8f0e9;
    border-radius: 6px;
}
.seats-badge.is-full {
    color: #9b3f30;
    background: #f8e5df;
}
.event-card h2 {
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 27px;
    letter-spacing: -0.02em;
}
.event-card h2 a:hover {
    color: var(--orange-dark);
}
.event-card-content > p {
    max-width: 760px;
    color: var(--muted);
    font-size: 14px;
}
.event-short-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 22px 0;
}
.event-short-facts > div {
    display: flex;
    gap: 8px;
    font-size: 12px;
}
.event-short-facts dt {
    color: var(--muted);
}
.event-short-facts dd {
    margin: 0;
    font-weight: 700;
}
.event-card .text-link {
    display: inline-block;
    padding-bottom: 4px;
}
.event-detail-hero {
    padding-bottom: 70px;
}
.event-detail-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: start;
    gap: 60px;
}
.event-detail-grid > div > h2 {
    margin-bottom: 30px;
    font-size: 32px;
}
.event-info-list > div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 25px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}
.event-info-list dt {
    color: var(--muted);
}
.event-info-list dd {
    margin: 0;
    font-weight: 700;
}
.event-info-list .text-link {
    padding: 0;
}
.event-rules {
    margin-top: 35px;
    padding: 25px;
    background: var(--cream);
    border-radius: 16px;
}
.event-rules h3 {
    margin-bottom: 10px;
}
.event-rules p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.registration-card {
    position: sticky;
    top: 25px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.registration-card h2 {
    margin-bottom: 25px;
    font-size: 26px;
}
.seats-summary {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--cream);
    border-radius: 14px;
}
.seats-summary > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}
.seats-summary strong {
    color: var(--green);
    font-family: inherit;
    font-size: 30px;
}
.seats-summary span {
    color: var(--muted);
    font-size: 12px;
}
.seats-progress {
    height: 6px;
    margin-top: 15px;
    overflow: hidden;
    background: #d9ddd4;
    border-radius: 5px;
}
.seats-progress > span {
    display: block;
    height: 100%;
    background: var(--orange);
    border-radius: inherit;
}
.registration-form {
    display: grid;
    gap: 17px;
}
.registration-form label > span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
}
.registration-form input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
}
.registration-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 76, 59, 0.1);
}
.registration-form .button {
    width: 100%;
    margin-top: 5px;
}
.field-error {
    display: block;
    margin-top: 5px;
    color: #b13f2c;
    font-size: 11px;
}
.alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 13px;
}
.alert-success {
    color: #235f3b;
    background: #e3f2e6;
    border: 1px solid #b5d9bb;
}
.alert-error {
    color: #9b3f30;
    background: #fae9e4;
    border: 1px solid #edc3b7;
}
.registration-card .empty-state {
    padding: 25px 15px;
}
.registration-card .empty-state h3 {
    margin-bottom: 8px;
}
.registration-card .empty-state p {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 950px) {
    .event-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .registration-card {
        position: static;
        max-width: 600px;
    }
}
@media (max-width: 600px) {
    .event-card {
        grid-template-columns: 1fr;
    }
    .event-date-block {
        align-items: baseline;
        justify-content: flex-start;
        flex-direction: row;
        gap: 10px;
        padding: 18px 25px;
        text-align: left;
    }
    .event-date-block strong {
        font-size: 30px;
    }
    .event-date-block span,
    .event-date-block small {
        margin: 0;
    }
    .event-card-content {
        padding: 25px;
    }
    .event-card-labels {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .event-short-facts {
        flex-direction: column;
        gap: 8px;
    }
    .event-info-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .registration-card {
        padding: 25px;
    }
}

.lab4-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}
.lab4-secondary-link {
    color: #2774c8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
}
.lab4-headers-output {
    width: 100%;
    min-height: 390px;
    padding: 18px;
    color: #dce9f8;
    background: #142335;
    border: 1px solid #142335;
    border-radius: 10px;
    font-family: Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    resize: vertical;
}
.lab4-status {
    margin-bottom: 18px;
    padding: 13px 15px;
    color: #235f3b;
    background: #e3f2e6;
    border-radius: 8px;
    font-size: 13px;
}
.lab4-status.is-error {
    color: #9b3f30;
    background: #fae9e4;
}
@media (max-width: 700px) {
    .lab4-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .lab4-secondary-link {
        text-align: center;
    }
}

.feedback-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: start;
    gap: 35px;
}
.feedback-form-card {
    padding: 38px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
}
.feedback-form-card h2 {
    margin-bottom: 12px;
    font-size: 31px;
}
.form-intro {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
}
.site-feedback-form {
    display: grid;
    gap: 22px;
}
.form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.site-feedback-form label > span,
.site-feedback-form legend {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 800;
}
.site-feedback-form input[type="text"],
.site-feedback-form input[type="email"],
.site-feedback-form select,
.site-feedback-form textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
}
.site-feedback-form input:focus,
.site-feedback-form select:focus,
.site-feedback-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 76, 59, 0.1);
}
.site-feedback-form textarea {
    min-height: 165px;
    resize: vertical;
}
.site-feedback-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}
.response-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.response-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}
.response-option:has(input:checked) {
    border-color: var(--green);
    background: #eef4ef;
}
.response-option input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: var(--green);
}
.response-option > span {
    margin: 0 !important;
}
.response-option strong,
.response-option small {
    display: block;
}
.response-option strong {
    font-size: 12px;
}
.response-option small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}
.site-feedback-form > .button {
    justify-self: start;
}
.feedback-aside {
    display: grid;
    gap: 25px;
}
.feedback-aside-card {
    padding: 30px;
    color: #fff;
    background: var(--green);
    border-radius: 22px;
}
.feedback-aside-card .eyebrow {
    color: #f0a67f;
}
.feedback-aside-card h2 {
    font-size: 26px;
}
.contact-list {
    margin: 0;
}
.contact-list > div {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.contact-list dt {
    color: #b8d1c5;
    font-size: 11px;
}
.contact-list dd {
    margin: 3px 0 0;
    font-size: 13px;
    font-weight: 700;
}
.feedback-game-tip {
    padding: 30px;
    background: var(--cream);
    border-radius: 22px;
}
.feedback-game-tip h3 {
    margin-bottom: 12px;
    font-size: 21px;
}
.feedback-game-tip p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
@media (max-width: 950px) {
    .feedback-grid {
        grid-template-columns: 1fr;
    }
    .feedback-aside {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 650px) {
    .feedback-form-card {
        padding: 25px 20px;
    }
    .form-two-columns,
    .response-options,
    .feedback-aside {
        grid-template-columns: 1fr;
    }
    .site-feedback-form > .button {
        width: 100%;
    }
}

.notebook-section {
    padding-top: 45px;
}
.notebook-navigation {
    margin-bottom: 30px;
}
.notebook-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.notebook-menu a {
    padding: 11px 17px;
    color: #fff;
    background: #286aa6;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}
.notebook-menu a:hover {
    background: #1c568e;
}
.notebook-menu a.is-active {
    background: #c94646;
}
.notebook-sorting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}
.notebook-sorting > span {
    margin-right: 4px;
    color: var(--muted);
    font-size: 11px;
}
.notebook-sorting a {
    padding: 7px 11px;
    color: #fff;
    background: #4784b9;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}
.notebook-sorting a.is-active {
    background: #c94646;
}
.notebook-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.notebook-table {
    width: 100%;
    min-width: 1250px;
    border-collapse: collapse;
    font-size: 12px;
}
.notebook-table th {
    padding: 14px 12px;
    color: #fff;
    background: var(--green);
    text-align: left;
    white-space: nowrap;
}
.notebook-table td {
    max-width: 190px;
    padding: 13px 12px;
    border-bottom: 1px solid #e6e8e1;
    vertical-align: top;
}
.notebook-table tbody tr:last-child td {
    border-bottom: 0;
}
.notebook-table tbody tr:nth-child(even) {
    background: #f5f3ed;
}
.notebook-table tbody tr:hover {
    background: #ecefe8;
}
.notebook-table-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 11px;
}
.notebook-pagination nav a {
    border: 2px solid transparent;
}
.notebook-pagination nav a:hover {
    color: var(--green);
    border: 2px solid currentColor;
}
.notebook-form-card {
    max-width: 950px;
    margin: 0 auto;
    padding: 35px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
}
.notebook-form-card h1 {
    margin-bottom: 25px;
    font-size: 32px;
}
.notebook-form {
    display: grid;
    gap: 25px;
}
.notebook-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
}
.notebook-form-grid label > span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
}
.notebook-form-grid input,
.notebook-form-grid select,
.notebook-form-grid textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
}
.notebook-form-grid input:focus,
.notebook-form-grid select:focus,
.notebook-form-grid textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 76, 59, 0.1);
}
.notebook-form-grid textarea {
    min-height: 120px;
    resize: vertical;
}
.notebook-wide-field {
    grid-column: 1 / -1;
}
.notebook-form > .button {
    justify-self: start;
}
.notebook-selector {
    max-width: 950px;
    margin: 0 auto 20px;
    padding: 20px 25px;
    background: var(--cream);
    border-radius: 14px;
}
.notebook-selector > span {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
}
.notebook-member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.notebook-member-links a {
    padding: 6px 10px;
    color: #286aa6;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
}
.notebook-member-links a.is-active {
    color: #b23737;
    border-color: #c94646;
}
.notebook-delete-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.notebook-delete-link {
    width: 100%;
    padding: 11px 14px;
    color: #286aa6;
    background: var(--paper);
    border: 1px solid #cdd9e4;
    border-radius: 8px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.notebook-delete-link:hover {
    color: #fff;
    background: #c94646;
    border-color: #c94646;
}
@media (max-width: 700px) {
    .notebook-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .notebook-menu a {
        text-align: center;
    }
    .notebook-form-card {
        padding: 25px 20px;
    }
    .notebook-form-grid,
    .notebook-delete-list {
        grid-template-columns: 1fr;
    }
    .notebook-wide-field {
        grid-column: auto;
    }
    .notebook-table-info {
        flex-direction: column;
        gap: 4px;
    }
}

.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.pagination-summary {
    color: var(--muted);
    font-size: 12px;
}
.pagination-controls,
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 7px;
}
.pagination-controls > a,
.pagination-controls > span,
.pagination-numbers > a,
.pagination-numbers > span {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    color: var(--green);
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}
.pagination-controls > a:hover,
.pagination-numbers > a:hover {
    color: var(--orange-dark);
    border-color: currentColor;
}
.pagination-controls .pagination-disabled {
    color: #9aa29d;
    background: #f0f0eb;
    cursor: default;
}
.pagination-controls .pagination-current,
.pagination-numbers .pagination-current {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}
@media (max-width: 650px) {
    .custom-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
    .pagination-controls {
        width: 100%;
        flex-wrap: wrap;
    }
    .pagination-numbers {
        flex-wrap: wrap;
    }
}

.headers-actions {
    margin-top: 25px;
}
