.winterstem {
    --winterstem-takken: polygon(50% 0, 76% 32%, 64% 32%, 87% 60%, 73% 60%, 100% 100%, 0 100%, 27% 60%, 13% 60%, 36% 32%, 24% 32%);
    box-sizing: border-box;
    max-width: 29rem;
    margin: 1.5rem 0;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    border: 1px solid color-mix(in srgb, var(--winterstem-accent) 32%, var(--winterstem-vlak));
    border-radius: 1rem;
    background: var(--winterstem-vlak);
    color: #23322a;
    font: 1rem/1.5 system-ui, sans-serif;
    text-align: center;
    scroll-margin-top: 1rem;
}

.winterstem h2, .winterstem p { margin: 0 0 .35rem; }
.winterstem h2 { color: var(--winterstem-accent); font: 700 clamp(1.05rem, 4vw, 1.4rem)/1.25 system-ui, sans-serif; }
.winterstem .winterstem-context { overflow-wrap: anywhere; font-size: .9rem; }
.winterstem form { margin: .85rem 0 0; }
.winterstem-keuzes {
    width: min(100%, 20rem);
    min-width: 0;
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(.1rem, 1vw, .4rem);
    margin: 0 auto .8rem;
}

.winterstem-keuze {
    --winterstem-takbasis: #758b80;
    --winterstem-takvlak: var(--winterstem-vlak);
    --winterstem-stam: #758b80;
    display: grid;
    justify-items: center;
    align-content: center;
    position: relative;
    min-height: 3.25rem;
    border-radius: .5rem;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 650;
}

.winterstem-keuze:has(input:checked),
.winterstem-keuze:has(~ .winterstem-keuze input:checked) {
    --winterstem-takbasis: var(--winterstem-accent);
    --winterstem-takvlak: linear-gradient(110deg, #37765a, var(--winterstem-accent) 72%);
    --winterstem-stam: #806245;
    background: color-mix(in srgb, var(--winterstem-accent) 12%, transparent);
    color: var(--winterstem-accent);
}

.winterstem-keuze:has(input:focus-visible) { outline: 2px solid currentColor; outline-offset: -2px; }
.winterstem-keuze input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.winterstem-icoon { display: grid; place-items: center; position: relative; width: min(86%, 2.75rem); min-height: 2.7rem; font-size: clamp(1.2rem, 5vw, 2rem); color: var(--winterstem-accent); }
.winterstem-kerstman .winterstem-icoon { font-size: clamp(1.4rem, 6vw, 2.35rem); }
.winterstem-keuze:not(:has(input:checked, ~ .winterstem-keuze input:checked)) .winterstem-icoon { filter: grayscale(1); opacity: .63; }
.winterstem-boom .winterstem-icoon { min-height: 3.55rem; filter: none !important; opacity: 1 !important; }
.winterstem-boom .winterstem-keuze { background: transparent; }
.winterstem-boom .winterstem-icoon i, .winterstem-boom .winterstem-icoon i::after { position: absolute; clip-path: var(--winterstem-takken); }
.winterstem-boom .winterstem-icoon i { inset: 12px 0 6px; background: var(--winterstem-takbasis); }
.winterstem-boom .winterstem-icoon i::after { content: ''; inset: 2px 3px 1.5px; background: var(--winterstem-takvlak); }
.winterstem-boom .winterstem-icoon b {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    left: calc(50% - 8px);
    background: #c58d22;
    clip-path: polygon(50% 0, 63% 35%, 100% 37%, 71% 60%, 81% 97%, 50% 75%, 19% 97%, 29% 60%, 0 37%, 37% 35%);
}
.winterstem-boom .winterstem-icoon em { position: absolute; bottom: 0; width: 6px; height: 6px; left: calc(50% - 3px); background: var(--winterstem-stam); }

.winterstem-vlok, .winterstem-schaats, .winterstem-sneeuwpop { border-top: 4px solid var(--winterstem-accent); }
.winterstem-cadeau, .winterstem-lint, .winterstem-kerstman { border-inline: 3px solid var(--winterstem-accent); }
.winterstem-kaars, .winterstem-vuurwerk, .winterstem-kerstkrans { border-radius: .4rem; }
.winterstem-slee, .winterstem-ski, .winterstem-rendier { border-bottom: 4px solid var(--winterstem-accent); }
.winterstem-bel, .winterstem-kerstvrouw, .winterstem-sneeuwbol { border-radius: 1.5rem 1.5rem .65rem .65rem; }
.winterstem-want, .winterstem-sjaal, .winterstem-hulst, .winterstem-chocolademelk { border-inline-start: 4px solid var(--winterstem-accent); }

.winterstem-sneeuwbol .winterstem-icoon::before {
    content: '';
    position: absolute;
    bottom: .45rem;
    width: min(91%, 1.7rem);
    aspect-ratio: 1;
    border: 1.5px solid #50758f;
    border-radius: 50%;
    background:
        radial-gradient(circle at 27% 32%, white 0 .1rem, transparent .12rem),
        radial-gradient(circle at 63% 23%, white 0 .07rem, transparent .09rem),
        radial-gradient(circle at 62% 48%, white 0 .09rem, transparent .11rem),
        linear-gradient(160deg, #ddf3fb, #83abc8 74%, #f7fcff 75%);
}

.winterstem-sneeuwbol .winterstem-icoon::after {
    content: '';
    position: absolute;
    bottom: .25rem;
    width: min(82%, 1.55rem);
    height: .33rem;
    border-radius: .15rem;
    background: var(--winterstem-accent);
}

.winterstem-kerstkrans .winterstem-icoon::before {
    content: '';
    width: min(74%, 1.65rem);
    aspect-ratio: 1;
    box-sizing: border-box;
    border: .29rem solid #36714c;
    border-top-color: #559162;
    border-radius: 50%;
}

.winterstem-kerstkrans .winterstem-icoon::after {
    content: '';
    position: absolute;
    bottom: .36rem;
    width: .75rem;
    height: .5rem;
    background: #a73239;
    clip-path: polygon(0 0, 50% 35%, 100% 0, 100% 100%, 50% 65%, 0 100%);
}

.winterstem-hulst .winterstem-icoon::after {
    content: '';
    position: absolute;
    left: 44%;
    bottom: .56rem;
    width: .24rem;
    height: .24rem;
    border-radius: 50%;
    background: #a73239;
    box-shadow: .24rem .11rem #a73239, .03rem .25rem #a73239;
}

.winterstem button {
    min-height: 44px;
    padding: .5rem 1rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    background: var(--winterstem-accent);
    color: #fff;
    font: 600 .95rem/1.25 system-ui, sans-serif;
    cursor: pointer;
}
