/*
 * The few Bootstrap 5.3 rules this site uses (reboot, buttons, tables, a handful of utilities),
 * copied here so pages load ~6 KB of CSS instead of the 230 KB bootstrap.min.css.
 * Using another Bootstrap class? Copy its rule in from lib/bootstrap/dist/css/bootstrap.css.
 */

/* ─── Reboot ─── */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

hr { margin: 1rem 0; color: inherit; border: 0; border-top: 1px solid; opacity: 0.25; }

h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5rem; font-weight: 500; line-height: 1.2; }
h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
h4 { font-size: calc(1.275rem + 0.3vw); }
@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
}

p { margin-top: 0; margin-bottom: 1rem; }
ol, ul, dl { margin-top: 0; margin-bottom: 1rem; }
ol, ul { padding-left: 2rem; }
ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; }
dt { font-weight: 700; }
dd { margin-bottom: 0.5rem; margin-left: 0; }
b, strong { font-weight: bolder; }
small { font-size: 0.875em; }
a { text-decoration: underline; }
img, svg { vertical-align: middle; }
table { caption-side: bottom; border-collapse: collapse; }
th { text-align: inherit; text-align: -webkit-match-parent; }
thead, tbody, tfoot, tr, td, th { border-color: inherit; border-style: solid; border-width: 0; }
label { display: inline-block; }
button { border-radius: 0; }
button:focus:not(:focus-visible) { outline: 0; }
input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button, select { text-transform: none; }
select { word-wrap: normal; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button:not(:disabled), [type="button"]:not(:disabled), [type="submit"]:not(:disabled) { cursor: pointer; }
textarea { resize: vertical; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
[hidden] { display: none !important; }

/* ─── Buttons ─── */

.btn {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    --bs-btn-color: var(--text, #141414);
    --bs-btn-bg: transparent;
    --bs-btn-border-width: 1px;
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: 0.375rem;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-disabled-opacity: 0.65;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--bs-btn-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover { color: var(--bs-btn-hover-color); background-color: var(--bs-btn-hover-bg); border-color: var(--bs-btn-hover-border-color); }

.btn:focus-visible { color: var(--bs-btn-hover-color); background-color: var(--bs-btn-hover-bg); border-color: var(--bs-btn-hover-border-color); outline: 0; box-shadow: var(--bs-btn-focus-box-shadow); }

.btn:active, .btn.active { color: var(--bs-btn-active-color); background-color: var(--bs-btn-active-bg); border-color: var(--bs-btn-active-border-color); }

.btn:disabled, .btn.disabled, fieldset:disabled .btn { color: var(--bs-btn-disabled-color); pointer-events: none; background-color: var(--bs-btn-disabled-bg); border-color: var(--bs-btn-disabled-border-color); opacity: var(--bs-btn-disabled-opacity); }

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
}

.btn-outline-secondary {
    --bs-btn-color: #5c564a;
    --bs-btn-border-color: #5c564a;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5c564a;
    --bs-btn-hover-border-color: #5c564a;
    --bs-btn-focus-shadow-rgb: 92, 86, 74;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #5c564a;
    --bs-btn-active-border-color: #5c564a;
    --bs-btn-disabled-color: #5c564a;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #5c564a;
}

.btn-lg { --bs-btn-padding-y: 0.5rem; --bs-btn-padding-x: 1rem; --bs-btn-font-size: 1.25rem; --bs-btn-border-radius: 0.5rem; }

.btn-sm { --bs-btn-padding-y: 0.25rem; --bs-btn-padding-x: 0.5rem; --bs-btn-font-size: 0.875rem; --bs-btn-border-radius: 0.25rem; }

/* ─── Tables ─── */

.table { width: 100%; margin-bottom: 1rem; vertical-align: top; border-color: var(--border, #dee2e6); }

.table > :not(caption) > * > * { padding: 0.5rem; border-bottom-width: 1px; }

.table > tbody { vertical-align: inherit; }

.table > thead { vertical-align: bottom; }

/* ─── Navigation ─── */

.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }

.nav-link { display: block; padding: 0.5rem 1rem; text-decoration: none; }

.collapse:not(.show) { display: none; }

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 100% no-repeat;
}

/* ─── Utilities ─── */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.gap-2 { gap: 0.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.px-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
}

/* ─── Theme: green, beige and yellow, with black outlines and flat offset shadows ─── */

:root {
    --green: #1f6f43;
    --green-dark: #134a2c;
    --green-light: #d8ecdd;
    --beige: #efe4cf;
    --beige-light: #f8f3e8;
    --tan: #c4a97c;
    --yellow: #f2c230;
    --yellow-light: #fcefb8;
    --ink: #141414;
    --primary: var(--green);
    --primary-dark: var(--green-dark);
    --primary-light: var(--yellow);
    --accent: var(--yellow);
    --bg: #ffffff;
    --bg-muted: var(--beige);
    --bg-subtle: var(--beige-light);
    --text: var(--ink);
    --text-secondary: #3d3a33;
    --text-muted: #7a7263;
    --border: #d9ccb2;
    --money-in: #1f6f43;
    --money-in-bg: #e7f3ea;
    --money-out: #b91c1c;
    --money-out-bg: #fef2f2;
    --warning: #8a6200;
    --card-shadow: 3px 3px 0 var(--ink);
    --hard-shadow: 5px 5px 0 var(--ink);
    --hard-shadow-lifted: 8px 8px 0 var(--ink);
    --outline: 2px solid var(--ink);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.15s ease;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

html, body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg-subtle);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
}

a {
    color: var(--green);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

a:hover {
    color: var(--green-dark);
}

::selection {
    background: var(--yellow);
    color: var(--ink);
}

/* Bootstrap's primary button in the app's colour, outlined in black. */
.btn-primary {
    --bs-btn-bg: var(--green);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-bg: var(--green-dark);
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-active-bg: var(--green-dark);
    --bs-btn-active-border-color: var(--ink);
    --bs-btn-disabled-bg: var(--green);
    --bs-btn-disabled-border-color: var(--ink);
    --bs-btn-focus-shadow-rgb: 31, 111, 67;
    border-width: 2px;
    font-weight: 600;
    box-shadow: 2px 2px 0 var(--ink);
}

.btn-outline-primary {
    --bs-btn-color: var(--green);
    --bs-btn-border-color: var(--green);
    --bs-btn-hover-bg: var(--green);
    --bs-btn-hover-border-color: var(--green);
    --bs-btn-active-bg: var(--green-dark);
    --bs-btn-active-border-color: var(--green-dark);
}

/* The main call to action: yellow, outlined, with a flat shadow that it presses into. */
.btn-accent {
    --bs-btn-color: var(--ink);
    --bs-btn-bg: var(--yellow);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: #f7d257;
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: var(--yellow);
    --bs-btn-active-border-color: var(--ink);
    border-width: 2px;
    font-weight: 700;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.btn-accent:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--ink);
}

.btn-accent:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
}

.text-muted {
    color: var(--text-muted);
}

/* ─── Home ─── */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
    background: var(--green);
    color: white;
    padding: 3.5rem 3rem;
    border: var(--outline);
    border-radius: var(--radius);
    box-shadow: 8px 8px 0 var(--ink);
    margin-bottom: 2.5rem;
}

.hero-content {
    max-width: 40rem;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--beige);
    border: var(--outline);
    border-radius: 999px;
}

.hero-name {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    color: white;
}

/* A highlighter stroke behind the key word. */
.hero-name em {
    font-style: normal;
    color: var(--ink);
    padding: 0 0.2em;
    background: linear-gradient(transparent 12%, var(--yellow) 12%, var(--yellow) 92%, transparent 92%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin: 0 0 1.75rem;
    line-height: 1.7;
}

.hero-terms {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 13rem;
}

.hero-terms span {
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    background: var(--beige-light);
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 0.9rem;
}

.hero-terms strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--ink);
}

.section-heading {
    margin: 3rem 0 1.25rem;
    font-size: 1.75rem;
}

/* A short yellow bar under each section heading. */
.section-heading::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 0.4rem;
    margin-top: 0.4rem;
    background: var(--yellow);
    border: var(--outline);
    border-radius: 999px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 24rem));
    gap: 1.75rem;
}

.game-card {
    --band: var(--green);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--hard-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.game-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--hard-shadow-lifted);
}

.game-card-0 { --band: var(--green); }  /* Ashes Ascendancy */
.game-card-1 { --band: var(--tan); }    /* Earthborne Rangers */
.game-card-2 { --band: var(--yellow); } /* The Lord of the Rings */

/* The game's name sits in a coloured band across the top. */
.game-card-head {
    padding: 1.1rem 1.5rem 1rem;
    background: var(--band);
    border-bottom: var(--outline);
}

.game-card-0 .game-card-head h3,
.game-card-0 .game-card-head .game-publisher {
    color: white;
}

.game-card h3 {
    font-size: 1.4rem;
    margin: 0 0 0.1rem;
}

.game-publisher {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.85;
}

.game-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.5rem 1.5rem;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.game-facts {
    margin: auto 0 0;
    padding: 0.85rem 1rem;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--beige-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.game-facts li {
    position: relative;
    padding-left: 1.1rem;
}

.game-facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--yellow);
    border: 1.5px solid var(--ink);
}

/* Your host: the photo and a short hello, right under the hero. */
.host-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    max-width: 52rem;
    margin: 0 0 1rem;
}

.host-photo img {
    display: block;
    width: 11.25rem;
    height: 11.25rem;
    object-fit: cover;
    border: var(--outline);
    border-radius: 50%;
    box-shadow: 5px 5px 0 var(--yellow), 5px 5px 0 2px var(--ink);
}

.host-copy h2 {
    font-size: 1.9rem;
    margin: 0.5rem 0 0.6rem;
}

.host-copy p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.host-copy a {
    font-weight: 700;
}

@media (max-width: 640px) {
    .host-intro {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1rem;
    }

    .host-photo img {
        width: 9rem;
        height: 9rem;
    }
}

/* The catalog: every game, bookable or on request, and a slot for what's next. */
.catalog-lead {
    max-width: 46rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.catalog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 1.25rem 0 0;
    list-style: none;
}

.catalog-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
}

.catalog-item-main {
    background: var(--green-light);
}

.catalog-item-next {
    background: transparent;
    border-style: dashed;
    box-shadow: none;
}

.catalog-item h3 {
    margin: 0.6rem 0 0.25rem;
    font-size: 1.1rem;
}

.catalog-item p {
    flex: 1;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.catalog-item a {
    font-weight: 700;
    font-size: 0.9rem;
}

.catalog-status {
    padding: 0.1rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid var(--ink);
    border-radius: 999px;
}

.catalog-status-book { background: var(--yellow); }
.catalog-status-request { background: var(--beige); }
.catalog-status-next { background: var(--bg); }

/* The collection photo with a pitch beside it, between the games and How it works. */
.showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
    margin: 3rem 0 0;
    padding: 2rem;
    background: var(--beige);
    border: var(--outline);
    border-radius: var(--radius);
    box-shadow: 8px 8px 0 var(--ink);
}

.showcase-photo img {
    display: block;
    width: 100%;
    height: auto;
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: 5px 5px 0 var(--green);
    transform: rotate(-1.2deg);
}

.showcase-kicker {
    display: inline-block;
    margin-bottom: 0.6rem;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--yellow);
    border: var(--outline);
    border-radius: 999px;
}

.showcase-copy h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.showcase-copy p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.showcase-points {
    padding: 0;
    margin: 0 0 1.5rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.showcase-points li {
    position: relative;
    padding-left: 1.6rem;
}

.showcase-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1rem;
    height: 1rem;
    background: var(--green);
    border: 2px solid var(--ink);
    border-radius: 4px;
}

.showcase-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    font-weight: 700;
}

/* The second showcase: photo on the right, tilted the other way, on white. */
.showcase-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    margin-top: 2.5rem;
    background: var(--bg);
}

.showcase-reverse .showcase-photo {
    order: 2;
}

.showcase-reverse .showcase-photo img {
    box-shadow: -5px 5px 0 var(--yellow);
    transform: rotate(1.2deg);
}

@media (max-width: 1000px) {
    .showcase-reverse .showcase-photo {
        order: 0;
    }

    .showcase {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1.5rem;
    }

    .showcase-photo img {
        transform: none;
    }
}

/* How it works: the steps, with a photo of a game beside them on wide screens. */
.how-it-works {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    align-items: start;
    gap: 2.5rem;
}

.how-it-works:not(:has(.how-photo)) {
    grid-template-columns: minmax(0, 1fr);
}

.how-photo {
    margin: 0;
}

.how-photo img {
    display: block;
    width: 100%;
    height: auto;
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: 5px 5px 0 var(--ink);
}

.how-photo figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 1000px) {
    .how-it-works {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Venue fees aren't included; a suggested venue, after How it works. */
.venue-note {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    background: var(--yellow-light);
    border: var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--hard-shadow);
}

.venue-note h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.venue-note p {
    max-width: 48rem;
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.venue-note .venue-fine {
    padding-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    border-top: 1.5px dashed var(--ink);
}

/* Contact page: two cards, email and game suggestions. */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.75rem;
    max-width: 60rem;
}

.contact-card {
    padding: 1.5rem 1.75rem;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--hard-shadow);
}

.contact-card-alt {
    background: var(--beige);
}

.contact-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-owner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 60rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-owner p {
    margin: 0;
}

.contact-owner img {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    border: var(--outline);
    border-radius: 50%;
    box-shadow: 3px 3px 0 var(--green);
}

.contact-address {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    user-select: all;
}

/* Messages after sending a request; scrolled to, with room above. */
.events-status {
    scroll-margin-top: 1.5rem;
}

/* Booking without an account. */
.guest-note {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--beige-light);
    border: 1.5px dashed var(--ink);
    border-radius: var(--radius-sm);
}

.guest-reopen {
    display: inline-block;
    margin-left: 0.5rem;
    font-weight: 600;
}

.guest-send-hint {
    display: block;
    margin-top: 0.4rem;
}

/* Shown to the host only: which games visitors can't see. */
.host-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    margin-top: 1.5rem;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    color: var(--ink);
    background: var(--yellow-light);
    border: 2px dashed var(--ink);
    border-radius: var(--radius-sm);
}

.steps {
    max-width: 46rem;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.steps li {
    position: relative;
    padding: 0.15rem 0 0 3.25rem;
    counter-increment: step;
}

/* Numbered in black squares. */
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--yellow);
    background: var(--ink);
    border-radius: 6px;
    box-shadow: 3px 3px 0 var(--green);
}

.steps strong {
    color: var(--text);
}

/* ─── Page Header Banner ─── */

.page-banner {
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    color: white;
    background: var(--green-dark);
    border: var(--outline);
    box-shadow: var(--hard-shadow);
}

.page-banner h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.page-banner p {
    color: rgba(255,255,255,0.78);
    font-size: 1rem;
    margin: 0;
    max-width: 560px;
}

/* ─── Booking and admin pages ─── */

.page-banner-events {
    background: var(--green);
}

.events-panel {
    max-width: 60rem;
}

.events-heading {
    margin: 2rem 0 0.75rem;
    font-size: 1.1rem;
}

.events-heading-first {
    margin-top: 0;
}

.events-card {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
}

.events-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.events-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.events-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 0 1 11rem;
}

.events-field-wide {
    flex: 1 1 16rem;
}

.events-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.events-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.events-form input,
.events-form select,
.events-form textarea,
.events-small-input,
.request-note-input,
.request-hours-input {
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
}

.events-form input:focus,
.events-form select:focus,
.events-form textarea:focus,
.events-small-input:focus,
.request-note-input:focus,
.request-hours-input:focus {
    outline: 2px solid var(--primary-light);
    border-color: var(--primary);
}

.events-form .invalid {
    border-color: #b91c1c;
}

.events-estimate {
    margin: 0;
    font-size: 1rem;
}

.events-table {
    font-size: 0.9rem;
    background: var(--bg);
}

.events-table td {
    vertical-align: middle;
}

.events-table .num {
    text-align: right;
}

.events-small-input {
    width: 5.5rem;
    padding: 0.3rem 0.5rem;
}

.request-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.request-card {
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
}

.request-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.request-price {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.request-when {
    margin: 0.35rem 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.request-note {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.request-details {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.2rem 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.request-details dt {
    font-weight: 600;
    color: var(--text-secondary);
}

.request-details dd {
    margin: 0;
}

.request-text {
    white-space: pre-line;
}

.request-clash {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    background: #fffbeb;
    color: var(--warning);
    border-radius: var(--radius-sm);
}

.request-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.request-note-input {
    flex: 1 1 18rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.875rem;
}

.request-hours-input {
    width: 5.5rem;
    padding: 0.3rem 0.5rem;
}

.request-status {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--bg-muted);
    color: var(--text-secondary);
}

.request-status-pending { background: #fffbeb; color: #b45309; }
.request-status-approved { background: #ecfdf5; color: #047857; }
.request-status-completed { background: #eff6ff; color: #1d4ed8; }
.request-status-declined { background: #fef2f2; color: #b91c1c; }

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1.5rem 0 1rem;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-positive .stat-value {
    color: var(--money-in);
}

.stat-negative .stat-value {
    color: var(--money-out);
}

.member-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-saved {
    color: var(--money-in);
    font-weight: 600;
}

/* ─── Sign in and account pages ─── */

.auth-card {
    max-width: 26rem;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
}

.auth-card h1 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-form label {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.auth-form input:focus {
    outline: 2px solid var(--primary-light);
    border-color: var(--primary);
}

.auth-form .auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.auth-form .btn {
    margin-top: 1rem;
}

.auth-error {
    margin: 0.25rem 0;
    padding-left: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--money-out);
}

.auth-alt {
    margin: 1.5rem 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Black button, for actions that can't be undone (deleting an account). */
.btn-ink {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ink);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-color: var(--yellow);
    --bs-btn-hover-bg: var(--ink);
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-active-color: var(--yellow);
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: var(--ink);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--ink);
    --bs-btn-disabled-border-color: var(--ink);
    font-weight: 600;
}

.account-card {
    max-width: 32rem;
}

.account-links {
    padding-left: 1.2rem;
}

.account-heading {
    margin: 1.75rem 0 0.5rem;
    padding-top: 1.25rem;
    font-size: 1.2rem;
    border-top: 1.5px dashed var(--border);
}

.auth-privacy {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Long-form text: the privacy policy. */
.prose {
    max-width: 46rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.prose h2 {
    margin: 2rem 0 0.6rem;
    font-size: 1.35rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose strong {
    color: var(--text);
}

.prose-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ─── Errors ─── */

.not-found-page {
    max-width: 32rem;
    margin: 4rem auto;
    text-align: center;
}

/* ─── Game notes (/ashes) ─── */

.game-notes-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
}

.guide-draft {
    margin: 0 0 1.25rem;
}

.guide-banner {
    background: var(--green);
}

.guide-kicker {
    display: inline-block;
    margin-bottom: 0.6rem !important;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink) !important;
    background: var(--yellow);
    border: var(--outline);
    border-radius: 999px;
}

/* Jump links, kept in view while reading. */
.guide-toc {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: -0.5rem 0 1rem;
    padding: 0.6rem 0;
    background: var(--bg-subtle);
}

.guide-toc a {
    padding: 0.3rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: var(--bg);
    border: var(--outline);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--ink);
    transition: background-color var(--transition), transform var(--transition);
}

.guide-toc a:hover {
    background: var(--yellow);
    transform: translate(-1px, -1px);
}

.guide-section {
    scroll-margin-top: 4rem;
}

.guide-lead {
    max-width: 44rem;
    color: var(--text-secondary);
}

.guide-grid,
.dice-grid,
.deck-grid {
    display: grid;
    gap: 1rem;
}

.guide-grid { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.dice-grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.deck-grid { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }

.guide-card,
.die-card,
.deck-group {
    padding: 1.1rem 1.25rem;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
}

.guide-card h3,
.die-card h3,
.deck-group h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.guide-card p,
.die-card p {
    margin-bottom: 0.5rem;
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.guide-card p:last-child,
.die-card p:last-child {
    margin-bottom: 0;
}

.die-card h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

/* A small die face beside each name. */
.die-chip {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    background:
        radial-gradient(circle, var(--ink) 0 22%, transparent 24%) center / 100% 100% no-repeat,
        var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 4px;
}

.guide-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 1.5rem;
}

.guide-subheading {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.2rem;
}

.guide-columns .guide-subheading {
    margin-top: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--green);
}

.guide-note {
    margin-bottom: 1rem;
}

.guide-note h4 {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

.guide-note p {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.guide-table {
    margin: 0;
    font-size: 0.9rem;
    background: var(--bg);
    border: var(--outline);
}

.guide-table th {
    width: 5.5rem;
    background: var(--beige);
}

.guide-tips {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--yellow-light);
    border: var(--outline);
    border-radius: var(--radius-sm);
}

.guide-tips .guide-subheading {
    margin-top: 0;
}

.guide-tips ul {
    padding-left: 1.2rem;
}

.guide-tips p {
    margin: 0;
}

.guide-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.guide-stats > div {
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius-sm);
}

.guide-stats dt {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.guide-stats dd {
    margin: 0.15rem 0 0;
    font-size: 0.95rem;
}

.guide-stats-row dd {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.spell-steps {
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: spell;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.spell-steps li {
    position: relative;
    padding: 2.4rem 1.1rem 0.9rem;
    counter-increment: spell;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
}

.spell-steps li::before {
    content: "Spell " counter(spell);
    position: absolute;
    top: 0.75rem;
    left: 1.1rem;
    padding: 0.05rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--yellow);
    background: var(--ink);
    border-radius: 4px;
}

.spell-steps p {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.events-table-wrap {
    overflow-x: auto;
    border: var(--outline);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
}

.guide-aspects {
    margin: 0;
}

.guide-aspects thead th {
    background: var(--beige);
}

.deck-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.deck-group li {
    display: flex;
    flex-direction: column;
    font-size: 0.925rem;
}

.deck-name {
    font-weight: 600;
}

.deck-pb {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.deck-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin: 0;
    font-size: 0.925rem;
}

.guide-list {
    padding-left: 1.2rem;
    line-height: 1.8;
}

/* ─── Analytics (/admin/analytics) ─── */

.analytics-range {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.analytics-range select {
    padding: 0.4rem 0.6rem;
    font-family: inherit;
    background: var(--bg);
    border: var(--outline);
    border-radius: var(--radius-sm);
}

.analytics-total {
    font-size: 1.1rem;
}

.analytics-bar-col {
    width: 40%;
}

.analytics-bar {
    height: 0.7rem;
    min-width: 2px;
    background: var(--green);
    border: 1.5px solid var(--ink);
    border-radius: 3px;
}

/* ─── Visibility switches (Rate and games) ─── */

.visibility-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.visibility-switch input {
    appearance: none;
    position: relative;
    width: 2.6rem;
    height: 1.45rem;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 999px;
    border: 2px solid var(--ink);
    background: var(--beige);
    transition: background var(--transition);
}

.visibility-switch input::after {
    content: "";
    position: absolute;
    top: 0.1rem;
    left: 0.1rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--ink);
    transition: transform var(--transition);
}

.visibility-switch input:checked {
    background: var(--primary);
}

.visibility-switch input:checked::after {
    transform: translateX(1.15rem);
}

.visibility-switch input:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

.visibility-state-on { color: var(--primary); }
.visibility-state-off { color: var(--text-muted); }

.events-table tr.game-hidden td:not(:nth-child(2)) {
    opacity: 0.55;
}

/* ─── Small screens ─── */

@media (max-width: 768px) {
    .hero-name {
        font-size: 2.1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
    }

    .hero-terms {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .page-banner {
        padding: 1.75rem 1.25rem;
    }

    .page-banner h1 {
        font-size: 1.5rem;
    }

    .request-details {
        grid-template-columns: 1fr;
    }

    .events-table {
        display: block;
        overflow-x: auto;
    }
}
