:root {
    --card-bg: #fff8ef;
    --card-accent: #f6c85f;
    --card-border: #e5b95a;
    --slot-bg: #fff;
    --shadow: 0 6px 20px rgba(19, 19, 30, 0.12);
    --hole-shadow: rgba(0, 0, 0, 0.18);
}

/* card container */
.card {
    width: min(920px, 94%);
    background: linear-gradient(180deg, var(--card-bg), #fff);
    border-radius: 18px;
    border: 2px solid var(--card-border);
    padding: 28px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffb86b, #ff7b4a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(255, 120, 60, 0.18);
    flex: 0 0 64px;
}

.title {
    color: var(--card-accent);
    font-size: 20px;
    line-height: 1.05;
    font-weight: 700;
}

.subtitle {
    color: #6b6b6b;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

.card-body {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* punch-grid */
.punch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 18px;
    flex: 1 1 220px;
    align-items: center;
}

.slot {
    --size: 84px;
    width: var(--size);
    height: var(--size);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
    user-select: none;
}

/* pizza icon (unpunched) */
.slot .pizza {
    font-size: 34px;
    transform: translateY(5px);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

/* punched appearance: a "hole" stamped into the slot */
.slot.punched::after {
    content: "";
    position: absolute;
    width: 62%;
    height: 62%;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18));
    box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.06), 0 2px 6px var(--hole-shadow);
    border: 6px solid var(--card-bg);
    /* shows as a punched edge (card background color) */
    mix-blend-mode: normal;
    z-index: 2;
    pointer-events: none;
}

/* make the pizza icon faded under the punch to simulate it being punched through */
.slot.punched .pizza {
    opacity: 0.0;
}

/* small numeric label in corner */
.slot .index {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    color: #7a7a7a;
    background: rgba(255, 255, 255, 0.6);
    padding: 3px 6px;
    border-radius: 10px;
    z-index: 3;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* highlight the "free" slot (last slot) */
.slot.free {
    background: linear-gradient(180deg, #fffaf0, #fff6e8);
    border: 2px dashed #ffd786;
    box-shadow: 0 8px 28px rgba(255, 170, 55, 0.08);
}

.free .label {
    position: absolute;
    bottom: -18px;
    font-size: 12px;
    font-weight: 700;
    color: #c76b1a;
    letter-spacing: 0.4px;
}

/* small helper for mobile layout */
@media (max-width:660px) {
    .card-body {
        flex-direction: column;
        gap: 18px;
    }

    .punch-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
