@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Roboto:wght@400;700&display=swap');

:root {
    --bg-color: #0a0a0c;
    --box-bg: #111111;
    --gold: #c8aa6e;
    --gold-dim: #785a28;
    --red-marker: #ff4d4d;
    --text-color: #f0f0f0;
}

/* Reset básico */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: url('fundo_site_links.jpg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 3rem;
    margin-top: 20px;
    margin-bottom: 5px; 
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 5px 15px rgba(200, 170, 110, 0.2);
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
}

/* --- Assinatura no Topo --- */
.header-signature {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9); 
    z-index: 10;
}

.header-signature a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.header-signature a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(200, 170, 110, 0.6); 
}

.main-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 95%;
    max-width: 1500px;
    margin-top: 10px;
    gap: 20px;
}

.player-section {
    flex: 1;
    background: var(--box-bg);
    padding: 25px;
    border: 1px solid #333;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.center-section {
    flex: 0.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 50px; 
}

/* --- Seleção de Rotas --- */
.role-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: center;
}

.role-input { display: none; }

.role-box {
    width: 50px;
    height: 50px;
    background-color: #222;
    border: 2px solid #444;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    transition: 0.3s;
    position: relative;
}

.clickable { cursor: pointer; }

.role-box img {
    width: 32px;
    height: 32px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s;
}

/* Estilo para quando está selecionado */
.role-input:checked + .role-box,
.active-highlight {
    border-color: var(--gold) !important;
    background-color: #1e1b15 !important;
    box-shadow: 0 0 15px rgba(200, 170, 110, 0.4) !important;
    transform: scale(1.1);
}

.role-input:checked + .role-box img,
.active-highlight img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

/* --- Roleta --- */
.roulette-wrapper {
    width: 100%;
    margin-top: 10px; 
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roulette-container {
    width: 100%;
    height: 130px;
    background-color: #000;
    border: 2px solid #333;
    position: relative;
    overflow: hidden; 
    box-shadow: inset 0 0 30px #000;
    border-radius: 4px;
}

.roulette-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--red-marker);
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 15px var(--red-marker);
}

.roulette-strip {
    display: flex;
    height: 100%;
    align-items: center;
    position: absolute;
    left: 0;
    will-change: transform;
}

.champ-card {
    width: 90px;  
    height: 90px;
    margin: 0 5px; 
    background-size: cover;
    background-position: center;
    border: 2px solid #333; 
    flex-shrink: 0;
    background-color: #111;
}

/* --- Botões --- */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
    margin-bottom: 10px;
}

.btn-gold {
    background: linear-gradient(180deg, rgba(30,30,30,1) 0%, rgba(10,10,10,1) 100%);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 14px 30px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    width: 80%;
}

.btn-gold:hover:not(:disabled) {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.4);
}

.btn-gold:disabled {
    border-color: #444;
    color: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

.result-name {
    height: 35px;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

h3 { color: #888; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-size: 0.9rem; }

/* --- POPUP DE ZOOM --- */
#popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#spin-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: var(--box-bg);
    border: 2px solid var(--gold);
    padding: 40px;
    border-radius: 15px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 50px rgba(0,0,0,1), 0 0 30px rgba(200, 170, 110, 0.3);
    width: 650px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
#spin-popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1); 
    pointer-events: auto;
}

#popup-title {
    font-family: 'Cinzel', serif;
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* --- RODAPÉ ESTILIZADO --- */
.creditos {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto; 
    padding: 40px 0 20px 0;
    z-index: 10;
}

.quote-text {
    color: #ccc; 
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-style: italic; 
    margin: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
}

/* --- Ícone do Shaco Centralizado --- */
.challenge-icon {
    width: 100px; 
    height: auto;
    margin-bottom: 5px; 
    filter: drop-shadow(0 0 10px rgba(200, 170, 110, 0.4)); 
}
