* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #203;
    height: 100vh;
    width: 100vw;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

td {
    font-family: "WDXL Lubrifont TC", sans-serif;
    border: 1px solid #FE9;
    box-shadow: 0px 0px 20px #F40;
    color: white;
    position: relative;
    font-size: 6em;
}

td:has(input:checked) span:not(:has(input:checked))::after {
    font-size: 0px !important;
}

span label {
    z-index: 50;
}
td:has(label:hover) {
    background-color: #3B0059;
}
td > span::after {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: .2;
    transition: all 1s;
}

span:has(input:checked)::after {
    font-size: 100%;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    opacity: 1;
    transition: all 1s;
}

.initial {
    color: #FE9;
}

input {
    display: none;
}

label {
    overflow: hidden;
    background:#203;
    border: 3px solid #FE9;
    outline: 2px solid #203;
    position: fixed;
    right: -200px;
    bottom: 20px;
    height: 60px;
    width: 100px;
    font-family: "WDXL Lubrifont TC", sans-serif;
    font-size: 25px;
}

label::after {
    content: 'next';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

label:hover {
    background-color: #2B0B3B;
}

label {
    transform: skewX(-14deg);
}