*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header {
    width: 544px;
    margin: 0 auto;
    padding: 32px 0;
}

main {
    width: 544px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-row {
    display: flex;
    align-items: center;
}

.logo-wheel {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    border: 6px solid #222;
    margin-left: 8px;
}

.logo-big {
    font-size: 40px;
    color: #222;
    font-weight: 900;
    line-height: 40px;
}

.logo-small {
    background-color: #990099;
    border: 4px solid white;
    color: white;
    padding: 4px;
    font-size: 20px;
    margin: 0 8px;
    border-radius: 8px;
}

.wheel-wrapper {
    position: relative;
    padding: 16px;
}

.wheel {
    transform-origin: center;
    transform: rotate(270deg);
    opacity: 0.9;
}

.wheel-rim {
    width: 512px;
    height: 512px;
    position: absolute;
    top: 16px;
    left: 16px;
    border-radius: 256px;
    border: 12px solid #ddd;
    box-shadow: inset 0px 0px 2px 10px rgba(0,0,0,.2);
}

.spin-button,
.spin-button::before,
.spin-button-shadow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.spin-button {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    background-color: #eee;
    border: none;
    outline: none;
    color: #777;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.spin-button:hover {
    filter: brightness(0.95);
}

.spin-button:active {
    filter: brightness(0.9);
}

.spin-button::before {
    content: "";
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #ccc;
    z-index: 1;
}

.spin-button::after {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 4px;
    position: absolute;
    top: calc(50% - 16px - 32px);
    left: calc(50% - 16px);
    transform-origin: center;
    transform: rotate(45deg);
    background-color: #eee;
}

.spin-button-shadow {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    box-shadow: 0px 0px 2px 6px rgba(0,0,0,1);
    opacity: 0.2;
}

.spin-button-shadow::after {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 4px;
    position: absolute;
    top: calc(50% - 16px - 32px);
    left: calc(50% - 16px);
    transform-origin: center;
    transform: rotate(45deg);
    box-shadow: 0px 0px 2px 6px rgba(0,0,0,1);
}

.confetti-launcher {
    position: absolute;
    top: 50%;
    left: 50%;
}

.options-wrapper {
    padding: 32px 0;
}

.options-title {
    font-size: 20px;
    font-weight: 900;
    color: #222;
    margin-bottom: 16px;
}

.options-instructions {
    color: #777;
    margin-bottom: 16px;
}

.options {
    width: 100%;
    height: 160px;
    min-height: 32px;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid transparent;
    outline: none;
    background-color: #eee;
    resize: vertical;
}

.options:focus {
    border: 2px solid #3366cc;
}

.options-wrapper.error .options,
.options-wrapper.error .options:focus {
    border: 2px solid #dc3912;
}

.options-wrapper::after {
    content: "Min 2, Max 32";
    display: block;
    margin-top: 8px;
    font-size: 12px;
    text-align: right;
    color: #777;
}

.options-wrapper.error::after {
    color: #dc3912;
}