[data-wheel-app] [hidden] {
    display: none;
}

.wheel-pill,
.wheel-partner-description a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    padding: .5rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: #a91315;
    color: #fff;
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.wheel-pill:focus-visible,
.wheel-stage-links .rules:focus-visible,
.wheel-partner-description a:focus-visible {
    outline: 3px solid #ffcf56;
    outline-offset: 3px;
}

.stage {
    --wheel-attempts-offset: max(14cqw, 10.2cqw + 20px);
}

.wheel-stage-remaining,
.wheel-stage-links {
    position: absolute;
    inset-inline-start: 50%;
    inline-size: max-content;
    max-inline-size: calc(100% - 2rem);
    transform: translate(-50%, -50%);
}

.wheel-stage-remaining {
    inset-block-start: calc(var(--spin-y) - var(--wheel-attempts-offset));
    padding: .25rem .7rem;
    border-radius: 999px;
    background: #183c2a;
    color: #fff;
    line-height: 1.35;
    text-align: center;
}

.wheel-stage-links {
    inset-block-start: min(calc(var(--spin-y) + 22.5cqw), calc(100% - max(.5rem, env(safe-area-inset-bottom)) - 22px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    inline-size: 94%;
    max-inline-size: none;
}

.wheel-stage-links .rules {
    position: static;
    flex: 0 0 39%;
    transform: none;
}

.wheel-stage-gifts {
    padding-inline: clamp(.5rem, 3cqw, 1.1rem);
    background: #187343;
    font-size: clamp(15px, 3.7cqw, 20px);
}

.wheel-stage-remaining,
.wheel-stage-status,
.wheel-notice {
    margin: 0;
    font-size: clamp(13px, 3.2cqw, 16px);
}

.wheel-stage-status {
    position: absolute;
    inset-inline: 10%;
    inset-block-end: calc(100% - var(--spin-y) + var(--wheel-attempts-offset) + 22px);
    padding: .5rem;
    border-radius: 10px;
    background: #fff;
    color: #a91315;
    text-align: center;
}

.wheel-stage-remaining:empty,
.wheel-stage-status:empty,
.wheel-notice:empty {
    display: none;
}

[data-wheel-win] h2 {
    font-size: clamp(21px, 6.5cqw, 35px);
}

.wheel-partner-prize {
    padding-inline: 4cqw;
}

.wheel-partner-prize h2 {
    text-transform: none;
}

.wheel-partner-description,
#prize-description.wheel-partner-description {
    max-inline-size: 100%;
    font-size: clamp(15px, 3.6cqw, 20px);
    line-height: 1.35;
    white-space: pre-line;
    overflow-wrap: anywhere;
    text-wrap: wrap;
}

.wheel-partner-action {
    display: block;
    margin-block-start: .65rem;
}

.wheel-partner-code-line,
.wheel-partner-site {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .125rem .45rem;
}

.wheel-partner-site {
    margin-block-start: .35rem;
}

.wheel-partner-description a {
    max-inline-size: 100%;
    background: #187343;
}

.wheel-partner-code {
    display: inline-grid;
    grid-template-columns: minmax(0, max-content) 44px;
    flex: none;
    max-inline-size: 100%;
    color: #215b3b;
}

.wheel-partner-code button {
    min-block-size: 44px;
    padding: .15rem .25rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.wheel-partner-code .wheel-partner-code-value {
    min-inline-size: 0;
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: clamp(13px, 4cqw, 18px);
    text-align: start;
    text-decoration: underline;
}

.wheel-partner-copy {
    position: relative;
}

.wheel-partner-copy::before,
.wheel-partner-copy::after {
    position: absolute;
    inset-block-start: calc(50% - 10px);
    inset-inline-start: calc(50% - 9px);
    inline-size: 11px;
    block-size: 14px;
    border: 2px solid currentColor;
    border-radius: 2px;
    content: "";
}

.wheel-partner-copy::after {
    transform: translate(4px, 4px);
    background: #fff;
}

.wheel-copy-status {
    display: block;
    color: #215b3b;
    font-size: .9em;
}

.wheel-copy-status:not(:empty) {
    margin-block-start: .35rem;
}

.wheel-prize-qr {
    inline-size: min(180px, 100%);
    block-size: auto;
    margin: .5rem auto 1rem;
}

.wheel-prize-code {
    margin: .5rem 0 1rem;
    color: #215b3b;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.wheel-gifts {
    min-block-size: 100svh;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
    background: #215b3b url("assets/scene.webp") center top / 100% auto no-repeat;
    color: #fff;
}

.wheel-gifts__header h1 {
    margin: .85rem 0 1rem;
    text-align: center;
}

.wheel-gifts .prize {
    inline-size: min(calc(80cqw + 1.6rem), calc(100% - 32px));
}

.wheel-gifts__list {
    display: grid;
    gap: .85rem;
    padding: 0;
    list-style: none;
}

.wheel-gift,
.wheel-email-dialog {
    padding: 1rem;
    border: 0;
    border-radius: 1rem;
    background: #fff;
    color: #171717;
    text-align: center;
}

.wheel-gift h2 {
    margin: 0 0 .7rem;
    font-size: 1.1rem;
}

.wheel-email-dialog {
    inline-size: min(420px, calc(100% - 24px));
    max-block-size: calc(100dvh - 32px);
    padding: 1.6rem 1rem 1rem;
}

.wheel-email-dialog::backdrop {
    background: #000a;
}

.wheel-email-dialog h2 {
    margin: 0 40px 1rem;
    color: #a91315;
    font-size: 1.2rem;
}

.wheel-email-dialog .prize-close {
    inset-block-start: 4px;
    inset-inline-end: 4px;
}

.wheel-email-dialog .prize-close img {
    inline-size: 26px;
}

.wheel-email-dialog [data-wheel-mail-form] {
    display: grid;
    gap: .75rem;
}

.wheel-email-dialog label,
.wheel-email-dialog input {
    display: block;
    inline-size: 100%;
}

.wheel-email-dialog input {
    min-block-size: 44px;
    margin-block-start: .3rem;
    padding: .4rem .5rem;
    border: 1px solid #557461;
    border-radius: .4rem;
    font: 500 16px/1.2 system-ui, sans-serif;
}
