
/* CAMPUS CRITTER CARDS - CSS TRANSFORMS */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f6f1e4;
    color: #2b2013;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Header ---------- */

.site-header {
    background: #2e6b45;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.site-header h1 {
    font-family: Georgia, serif;
    font-size: 2em;
    margin: 0 0 8px;
}

.tagline {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
}

.shuffle-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font: inherit;
    font-size: 0.9em;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;

    transition: transform 150ms ease,
                background-color 150ms ease;
}

.shuffle-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- Layout ---------- */

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px 24px;
}

/* ---------- Cards ---------- */

.card {
    position: relative;
    background: #fffdf7;
    border: 1px solid #e6ddc6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(43, 32, 19, 0.08);

    transition: transform 200ms ease-out,
                box-shadow 200ms ease-out;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 28px rgba(43, 32, 19, 0.18);
}

.card-banner {
    position: relative;
    height: 70px;
    background: #2e6b45;
}

/* Center avatars and animate them */

.avatar {
    position: absolute;
    bottom: -40px;
    left: 50%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fffdf7;
    object-fit: cover;

    transform: translateX(-50%);
    transition: transform 150ms ease;
}

.card:hover .avatar {
    transform: translateX(-50%) scale(1.08);
}

/* Tilt rarity ribbons */

.ribbon {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #c17817;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

    transform: rotate(-8deg);
}

/* ---------- Card Content ---------- */

.card-body {
    padding: 48px 20px 20px;
    text-align: center;
}

.card-body h2 {
    font-family: Georgia, serif;
    font-size: 1.2em;
    margin: 0 0 4px;
}

.card-role {
    color: #6b5c45;
    font-size: 0.85em;
    margin: 0 0 12px;
}

.stat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
    font-size: 0.85em;
}

.stat-list li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #e6ddc6;
}

.stat-value {
    font-weight: 600;
    color: #8f5a10;
}

/* ---------- Collect Button ---------- */

.collect-btn {
    background: #c17817;
    color: #fff;
    border: none;
    font: inherit;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;

    transition: transform 150ms ease,
                background-color 150ms ease;
}

.collect-btn:hover {
    background: #8f5a10;
    transform: scale(1.08);
}

/* ---------- Trading Rules Link ---------- */

.rules-link {
    text-align: center;
    margin-top: 8px;
}

.rules-link a {
    color: #2e6b45;
    font-weight: 600;
    text-decoration: none;
}

.chevron {
    display: inline-block;
    transition: transform 150ms ease;
}

.rules-link:hover .chevron {
    transform: rotate(90deg);
}

/* ---------- Footer ---------- */

.site-footer {
    text-align: center;
    color: #6b5c45;
    font-size: 0.85em;
    padding: 24px 20px;
}
