/* ── PAGE WRAPPER ─────────────────────────────────────────────── */
.am-page {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 36px;
    /* main centres everything site-wide; rules and step lists read as prose, so left-align here. */
    text-align: left;
}

/* ── GROUP ────────────────────────────────────────────────────── */
.am-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.am-group-label {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.38em;
    color: #d9c08a;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    /* Sits straight on the nebula background, so give it an edge to read against. */
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
}

.am-group-label i {
    color: rgba(201, 169, 110, 0.6);
}

.am-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(201, 169, 110, 0.25), rgba(201, 169, 110, 0));
}

/* ── GRID ─────────────────────────────────────────────────────── */
.am-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* ── CARD ─────────────────────────────────────────────────────── */
/* Every mode shares one anatomy: head (icon, title, pill row), body, optional foot. Cards in a grid
   row stretch to the same height, and the foot is pinned to the bottom so footnotes line up. */
.am-card {
    background: linear-gradient(160deg, rgba(22, 19, 13, 0.9), rgba(12, 12, 12, 0.9));
    border: 1px solid rgba(201, 169, 110, 0.16);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.am-card:hover {
    border-color: rgba(201, 169, 110, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.am-card--highlight {
    border-color: rgba(201, 169, 110, 0.32);
    background: linear-gradient(160deg, rgba(30, 25, 15, 0.92), rgba(14, 13, 10, 0.92));
}

.am-card--highlight:hover {
    border-color: rgba(201, 169, 110, 0.5);
}

.am-card--dimmed {
    opacity: 0.55;
}

/* ── CARD HEAD ────────────────────────────────────────────────── */
.am-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.12);
}

.am-card-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.28);
    color: #c9a96e;
    font-size: 0.95rem;
}

.am-card--highlight .am-card-icon {
    background: rgba(201, 169, 110, 0.18);
    border-color: rgba(201, 169, 110, 0.45);
    box-shadow: 0 0 14px rgba(201, 169, 110, 0.15);
}

.am-card-heading {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.am-card-title {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    color: #d9c08a;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
}

/* ── PILLS (player count, play time, status) ──────────────────── */
.am-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.am-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a89a84;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 999px;
    padding: 3px 10px;
    line-height: 1.4;
    white-space: nowrap;
}

.am-pill i {
    font-size: 0.62rem;
    color: rgba(201, 169, 110, 0.75);
}

.am-pill--accent {
    color: #d9c08a;
    background: rgba(201, 169, 110, 0.14);
    border-color: rgba(201, 169, 110, 0.4);
}

.am-pill--muted {
    color: #7a7268;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ── CARD BODY ────────────────────────────────────────────────── */
.am-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Long rulesets split into an intro column and a list column so the card stays short and wide
   instead of towering over its neighbours. */
.am-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 14px 32px;
    align-items: start;
}

.am-columns--wide-first {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.am-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* ── CARD FOOT ────────────────────────────────────────────────── */
.am-card-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
}

/* ── FORMAT TAGS (Classic) ────────────────────────────────────── */
.am-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.am-tag {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #c0b0a0;
    background: rgba(201, 169, 110, 0.06);
    border: 1px solid rgba(201, 169, 110, 0.18);
    border-radius: 6px;
    padding: 5px 12px;
}

/* ── BODY TEXT ────────────────────────────────────────────────── */
.am-text {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.875rem;
    color: #b0a898;
    line-height: 1.7;
    letter-spacing: 0.025em;
    margin: 0;
}

.am-text strong {
    color: #ddd0b8;
    font-weight: normal;
}

/* ── BULLET LIST ──────────────────────────────────────────────── */
.am-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.am-list li {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.875rem;
    color: #b0a898;
    line-height: 1.7;
    letter-spacing: 0.025em;
    padding-left: 15px;
    position: relative;
}

.am-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.55);
}

.am-list strong {
    color: #ddd0b8;
    font-weight: normal;
}

/* ── STEP LIST ────────────────────────────────────────────────── */
.am-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: step-counter;
}

.am-steps li {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.875rem;
    color: #b0a898;
    line-height: 1.65;
    letter-spacing: 0.025em;
    padding-left: 30px;
    position: relative;
    counter-increment: step-counter;
}

.am-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.12);
    border: 1px solid rgba(201, 169, 110, 0.3);
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0;
    color: #c9a96e;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

.am-steps strong {
    color: #ddd0b8;
    font-weight: normal;
}

/* ── RULES BOX ────────────────────────────────────────────────── */
.am-rules-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(201, 169, 110, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.14);
    border-radius: 8px;
}

.am-rules-box-title {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: #8a7e6c;
    text-transform: uppercase;
    margin: 0;
}

/* ── TIP BOX ──────────────────────────────────────────────────── */
.am-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(201, 169, 110, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.14);
    border-radius: 8px;
}

.am-tip i {
    color: #c9a96e;
    opacity: 0.7;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.am-tip p {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.78rem;
    color: #8a8070;
    line-height: 1.65;
    letter-spacing: 0.025em;
    margin: 0;
    font-style: italic;
}

/* ── FOOTNOTE ─────────────────────────────────────────────────── */
.am-footnote {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.78rem;
    color: #6a6258;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin: 0;
    font-style: italic;
}

/* ── BACK LINK ────────────────────────────────────────────────── */
.am-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px 18px;
    background: rgba(201, 169, 110, 0.07);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 8px;
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: #c9a96e;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.am-back:hover {
    background: rgba(201, 169, 110, 0.14);
    border-color: rgba(201, 169, 110, 0.5);
    color: #c9a96e;
    transform: none;
}

/* ── MOBILE ───────────────────────────────────────────────────── */
@media only screen and (max-width: 767px), only screen and (hover: none) {
    .am-page {
        padding: 24px 16px 90px;
        gap: 28px;
    }

    .am-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .am-columns,
    .am-columns--wide-first {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .am-card {
        padding: 18px 16px;
        gap: 14px;
    }

    .am-card-head {
        align-items: flex-start;
    }

    .am-card-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}
