/* ── Animações do modal ─────────────────────────────────── */
@keyframes rc-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes rc-modal-wrap-in {
    from { opacity: 0; transform: scale(0.88) translateY(18px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes rc-modal-char-l-in {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes rc-modal-char-r-in {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes rc-modal-logo-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-22px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes rc-modal-body-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Overlay ────────────────────────────────────────────── */
.rc-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.78);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    overflow: visible;
    animation: rc-overlay-in 0.25s ease both;
}
.rc-overlay[hidden] { display: none; }


.rc-modal-wrap {
    position: relative;
    border-image: url(/img/redeem-code/modal/border-modal.png) 23 fill;
    border-width: 20px;
    border-style: solid;

    
    border-radius: 33px;
}

.rc-modal-body{
    height: 100%;
    padding: 1rem;
    background-image: url(/img/redeem-code/modal/bg-modal-v2.png);
    background-size: cover;
    background-position: center top;
    border-radius: 12px;
    animation: rc-modal-body-in 0.3s ease 0.15s both;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    max-width: 609px;
}
.rc-modal-body > * + * { margin-top: 6rem; }

#rc-step-server, #rc-step-char {
    width: 100%;
}

.rc-input-wrap{
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    border-radius: 20px;
    border: 2.5px solid #998353;
    background: #F7EDD5;
    padding: 0.5rem 1.5rem;
}
.rc-input-wrap > * + * { margin-top: 0.5rem; }

.rc-input-wrap p{
    text-align: center;
}

.rc-input-label{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;

    color: #000;
    text-align: center;
    font-family: Arial;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.rc-input-label > * + * { margin-left: 0.5rem; }

.rc-input{
    text-transform: uppercase;
    border-radius: 20px;
    border: 2.5px solid #998353;
    background: #C4B38A;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
    color: #000;
    text-align: center;
    font-family: Arial;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-shadow: -2px -2px 0 #F7EDD5,
                2px -2px 0 #F7EDD5,
                    -2px 2px 0 #F7EDD5,
                    2px 2px 0 #F7EDD5;
}

.rc-input::-webkit-input-placeholder{
    text-transform: none;
}


.rc-modal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    z-index: 10;
    transition: transform 150ms;
}
.rc-modal-close:hover { transform: scale(1.1); }
.rc-modal-close img { width: 46px; }

/* Corpo do modal ─────────────────────────────────────────── */
/* ── Modal de seleção ───────────────────────────────────── */
.rc-modal-step-title {
    font-size: 17px;
    font-weight: 900;
    color: #3b2a0e;
    font-family: 'Lato', sans-serif;
    margin: 0 0 8px;
    text-align: center;
}

/* ── Custom select ───────────────────────────────────────── */
.rc-select-wrap {
    position: relative;
    width: 100%;
}

.rc-select-trigger {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid #c8a86a;
    border-radius: 8px;
    background: rgba(240, 225, 190, 0.95);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    color: #3b2a0e;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    text-align: left;
    transition: border-color 150ms, border-radius 150ms;
}
.rc-select-trigger > * + * { margin-left: 8px; }
.rc-select-trigger.open {
    border-color: #e07a10;
    border-bottom-color: transparent;
    border-radius: 8px 8px 0 0;
}

.rc-select-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #9a7a50;
    border-bottom: 2px solid #9a7a50;
    transform: rotate(45deg) translateY(-2px);
    flex-shrink: 0;
    transition: transform 150ms;
}
.rc-select-trigger.open .rc-select-arrow {
    transform: rotate(-135deg) translateY(-2px);
}

.rc-select-drop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 232, 200, 0.98);
    border: 2px solid #e07a10;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 20;
    padding: 6px 6px 4px;
}
.rc-select-drop[hidden] { display: none; }

.rc-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c8a86a;
    border-radius: 6px;
    background: rgba(255, 248, 230, 0.9);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    color: #3b2a0e;
    outline: none;
    box-sizing: border-box;
    transition: border-color 150ms;
}
.rc-search-input:focus { border-color: #e07a10; }
.rc-search-input::placeholder { color: #9a7a50; font-weight: 400; }

.rc-drop-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.rc-drop-list li {
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    color: #3b2a0e;
    cursor: pointer;
    transition: background 120ms;
    border-bottom: 1px solid rgba(200, 168, 106, 0.3);
    border-radius: 4px;
}
.rc-drop-list li:last-child { border-bottom: none; }
.rc-drop-list li:hover { background: rgba(226, 178, 80, 0.35); }
.rc-drop-list li.selected { background: rgba(226, 178, 80, 0.6); font-weight: 900; }

.rc-modal-msg {
    font-size: 12px;
    font-weight: 700;
    color: #c0392b;
    font-family: 'Lato', sans-serif;
    min-height: 16px;
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
}

.rc-modal-back {
    background: none;
    border: none;
    font-size: 11px;
    color: #7a6040;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* ── Confetti canvas ────────────────────────────────────── */
#rc-confetti {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 300;
}

/* ── Modal de sucesso ───────────────────────────────────── */
.rc-modal-title-img {
    width: 90%;
    pointer-events: none;
    user-select: none;
    margin: 1rem 0 2rem 0!important;
}

.rc-modal-redeem-btn{
    border-image: url(/img/redeem-code/modal/bg-btn-redeem.png) 12 fill stretch;
    border-width: 12px;
    border-style: solid;
    height: 78px;
    width: 220px;
    cursor: pointer;


    color: #FFF;
    text-align: center;
    font-family: Arial;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    text-shadow: -1px -1px 0 #710D02,
                1px -1px 0 #710D02,
                    -1px 1px 0 #710D02,
                    1px 1px 0 #710D02;
}

.rc-modal-play-btn {
    padding: 14px 32px;
    background: linear-gradient(180deg, #f5c842 0%, #e07a10 100%);
    color: #3b1a00;
    border: 3px solid #a85500;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 900;
    font-family: 'Lato', sans-serif;
    letter-spacing: .06em;
    cursor: pointer;
    text-transform: uppercase;
    transition: filter 150ms, transform 100ms;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}


.rc-modal-play-btn:hover, .rc-modal-redeem-btn:hover{ filter: brightness(1.08); transform: scale(1.02); }
.rc-modal-play-btn:active { transform: scale(0.97); }


@media (max-width: 768px)   {
    .rc-input{
        font-size: 16px;
        text-shadow: -1px -1px 0 #F7EDD5,
                    1px -1px 0 #F7EDD5,
                    -1px 1px 0 #F7EDD5,
                    1px 1px 0 #F7EDD5;
    }
    
}
