.rg-form {
    max-width: 380px;
    margin: 40px auto;
    background: #191a3d;
    border: 1px solid #2e2f5c;
    border-radius: 18px;
    padding: 28px 26px;
    color: #f2f0f7;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.rg-form label {
    display: block;
    font-size: 0.75rem;
    color: #9491b8;
    margin-bottom: 7px;
    font-weight: 600;
}
.rg-form .rg-phone-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.rg-form select,
.rg-form input[type="tel"],
.rg-form input[type="password"] {
    background: #22234f;
    border: 1px solid #2e2f5c;
    border-radius: 10px;
    padding: 12px 14px;
    color: #f2f0f7;
    font-size: 0.9rem;
    outline: none;
}
.rg-form select {
    flex: 0 0 170px;
}
.rg-region-wrap {
    margin-bottom: 16px;
}
.rg-region-wrap select {
    width: 100%;
    flex: none;
    box-sizing: border-box;
}
.rg-form input[type="tel"] {
    flex: 1;
    min-width: 0;
}
.rg-form input[type="password"] {
    width: 100%;
    margin-bottom: 18px;
    box-sizing: border-box;
}
.rg-form .rg-cta {
    width: 100%;
    background: #f4b740;
    color: #10112b;
    border: none;
    border-radius: 10px;
    padding: 13px 0;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
}
.rg-form .rg-erreur {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 16px;
}
.rg-form .rg-confirmation {
    background: rgba(43, 217, 166, 0.12);
    color: #2bd9a6;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Tableau de bord */
.rg-dashboard {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #f2f0f7;
}
@media (max-width: 720px) {
    .rg-dashboard { grid-template-columns: 1fr; }
}
.rg-player-card {
    background: #191a3d;
    border: 1px solid #2e2f5c;
    border-radius: 18px;
    overflow: hidden;
}
.rg-player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #171833;
}
.rg-progress-track {
    height: 4px;
    background: #2e2f5c;
    width: 100%;
}
.rg-progress-fill {
    height: 100%;
    width: 0%;
    background: #f4b740;
    transition: width 0.2s linear;
}
.rg-cta-advertiser {
    width: 100%;
    background: #f4b740;
    color: #10112b;
    border: none;
    padding: 15px 0;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.rg-gauge-card {
    background: #191a3d;
    border: 1px solid #2e2f5c;
    border-radius: 18px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}
.rg-gauge-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: "SF Mono", "Cascadia Code", "Consolas", ui-monospace, monospace;
}
.rg-gauge-unit {
    font-size: 0.72rem;
    color: #9491b8;
    letter-spacing: 0.08em;
    margin-top: 4px;
}
.rg-gauge-next {
    font-size: 0.78rem;
    color: #9491b8;
    margin-top: 14px;
}

/* Historique */
.rg-historique {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #f2f0f7;
}
.rg-resume {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 560px) {
    .rg-resume { grid-template-columns: 1fr; }
}
.rg-resume-card {
    background: #191a3d;
    border: 1px solid #2e2f5c;
    border-radius: 14px;
    padding: 16px 18px;
}
.rg-resume-val {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: "SF Mono", "Cascadia Code", "Consolas", ui-monospace, monospace;
}
.rg-resume-val.gold { color: #f4b740; }
.rg-resume-val.teal { color: #2bd9a6; }
.rg-resume-lbl {
    font-size: 0.72rem;
    color: #9491b8;
    margin-top: 6px;
}
.rg-liste-historique {
    background: #191a3d;
    border: 1px solid #2e2f5c;
    border-radius: 16px;
    overflow: hidden;
}
.rg-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid #2e2f5c;
}
.rg-item:last-child { border-bottom: none; }
.rg-day-box {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #22234f;
    border: 1px solid #2e2f5c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rg-day-d { font-size: 0.95rem; font-weight: 800; line-height: 1; }
.rg-day-mo { font-size: 0.6rem; color: #9491b8; text-transform: uppercase; }
.rg-item-main { flex: 1; }
.rg-item-title { font-size: 0.88rem; font-weight: 600; }
.rg-item-sub { font-size: 0.75rem; color: #9491b8; margin-top: 2px; }
.rg-item-status {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 700;
    flex-shrink: 0;
}
.rg-item-status.sent { background: rgba(43, 217, 166, 0.12); color: #2bd9a6; }
.rg-item-status.pending { background: rgba(244, 183, 64, 0.12); color: #f4b740; }

/* Choix des thèmes */
.rg-quiz-themes{
    display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
    gap:14px; max-width:900px; margin:0 auto;
}
.rg-theme-card{
    display:block; background:#191a3d; border:1px solid #2e2f5c; border-radius:16px;
    padding:20px; text-decoration:none; color:#f2f0f7;
}
.rg-theme-card:hover{ border-color:#f4b740; text-decoration:none; }
.rg-theme-icon{ font-size:1.8rem; margin-bottom:10px; }
.rg-theme-name{ font-weight:800; font-size:1rem; margin-bottom:4px; }
.rg-theme-meta{ font-size:0.75rem; color:#9491b8; }

/* Écran de jeu */
.rg-quiz-jeu{
    max-width:480px; margin:0 auto; background:#191a3d; border:1px solid #2e2f5c;
    border-radius:18px; padding:26px 22px; position:relative;
}
.rg-quiz-loading{ text-align:center; color:#9491b8; padding:40px 0; }
.rg-q-counter{ font-size:0.75rem; color:#9491b8; margin-bottom:10px; }
.rg-q-text{ font-size:1.1rem; font-weight:800; line-height:1.4; margin-bottom:18px; }
.rg-options{ display:flex; flex-direction:column; gap:10px; }
.rg-option{
    background:#22234f; border:1px solid #2e2f5c; border-radius:12px;
    padding:14px 16px; font-size:0.92rem; font-weight:600; cursor:pointer;
    display:flex; align-items:center; gap:10px;
}
.rg-option:hover{ border-color:#f4b740; }
.rg-letter{
    width:24px; height:24px; border-radius:7px; background:#191a3d; border:1px solid #2e2f5c;
    display:flex; align-items:center; justify-content:center; font-size:0.75rem;
    font-weight:800; color:#9491b8; flex-shrink:0;
}
.rg-resultat{
    margin-top:14px; padding:10px 14px; border-radius:10px; font-size:0.85rem; font-weight:700; text-align:center;
}
.rg-resultat.ok{ background:rgba(43,217,166,0.12); color:#2bd9a6; }
.rg-resultat.non{ background:rgba(255,107,107,0.12); color:#ff6b6b; }

/* Pub forcée */
.rg-ad-screen{ text-align:center; }
.rg-ad-player{
    aspect-ratio:9/13; max-height:420px; margin:0 auto 16px; background:#171833;
    border-radius:14px; border:1px solid #2e2f5c; overflow:hidden; position:relative;
}
.rg-ad-player video{ width:100%; height:100%; object-fit:cover; }
.rg-ad-play{
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:56px; height:56px; border-radius:50%; background:rgba(244,183,64,0.9);
}
.rg-ad-label{ font-size:0.8rem; color:#9491b8; margin-bottom:14px; }
.rg-continue-btn{
    width:100%; background:#2e2f5c; color:#9491b8; border:none; padding:14px 0;
    border-radius:12px; font-weight:800; font-size:0.92rem; cursor:not-allowed;
}
.rg-continue-btn.ready{ background:#f4b740; color:#10112b; cursor:pointer; }

/* Question annonceur */
.rg-sponsor-card{ border:1.5px solid #f4b740; border-radius:16px; padding:4px; margin:-4px; }
.rg-sponsor-tag{
    display:inline-flex; align-items:center; gap:6px; background:rgba(244,183,64,0.12);
    color:#f4b740; font-size:0.7rem; font-weight:800; text-transform:uppercase;
    letter-spacing:0.06em; padding:5px 10px; border-radius:100px; margin-bottom:14px;
}

/* Fin de partie */
.rg-fin-partie{ text-align:center; padding:20px 0; }
.rg-fin-titre{ font-size:1.2rem; font-weight:800; margin-bottom:8px; }
.rg-fin-points{ font-size:2rem; font-weight:800; color:#f4b740; margin-bottom:22px; }
.rg-cta, .rg-cta-secondaire{
    display:block; width:100%; text-align:center; padding:13px 0; border-radius:10px;
    font-weight:800; font-size:0.9rem; margin-bottom:10px; text-decoration:none;
}
.rg-cta{ background:#f4b740; color:#10112b; }
.rg-cta-secondaire{ background:#22234f; color:#f2f0f7; border:1px solid #2e2f5c; }

/* Classement */
.rg-classement{
    max-width:480px; margin:0 auto; background:#191a3d; border:1px solid #2e2f5c;
    border-radius:16px; padding:8px 0;
}
.rg-classement-pays{ padding:14px 18px 8px; font-size:0.8rem; color:#9491b8; font-weight:700; }
.rg-classement-row{
    display:flex; align-items:center; gap:12px; padding:10px 18px;
    border-top:1px solid #2e2f5c; font-size:0.88rem;
}
.rg-classement-row.moi{ background:rgba(244,183,64,0.08); }
.rg-rank{ width:22px; font-weight:800; color:#9491b8; }
.rg-nom{ flex:1; }
.rg-pts{ color:#2bd9a6; font-weight:700; }

/* Prix & Gagnants */
.rg-prix{ max-width:600px; margin:0 auto; }
.rg-prix-pays{
    display:inline-flex; font-size:0.78rem; color:#9491b8;
    background:#191a3d; border:1px solid #2e2f5c;
    padding:6px 12px; border-radius:100px; margin-bottom:16px;
}
.rg-prix-countdown{
    background:#191a3d; border:1px solid #2e2f5c; border-radius:16px;
    padding:16px 20px; display:flex; justify-content:space-between; align-items:center;
    margin-bottom:28px; font-size:0.85rem; color:#9491b8;
}
.rg-prix-countdown strong{ color:#f4b740; font-size:1.05rem; }
.rg-podium{
    display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px;
    align-items:end; margin-bottom:24px;
}
.rg-podium-card{
    background:#191a3d; border:1px solid #2e2f5c; border-radius:16px;
    padding:20px 14px; text-align:center;
}
.rg-podium-card.rank1{ border-color:#f4b740; order:2; padding-top:28px; }
.rg-podium-card.rank2{ order:1; }
.rg-podium-card.rank3{ order:3; }
.rg-medal{ font-size:1.6rem; margin-bottom:8px; }
.rg-podium-name{ font-weight:800; font-size:0.92rem; margin-bottom:4px; }
.rg-podium-pts{ font-size:0.78rem; color:#2bd9a6; font-weight:700; margin-bottom:10px; }
.rg-podium-prize{
    font-size:0.72rem; color:#f4b740; background:rgba(244,183,64,0.1);
    padding:6px 10px; border-radius:10px; font-weight:700;
}
.rg-prix-note{
    font-size:0.78rem; color:#9491b8; line-height:1.6;
    background:#22234f; border-radius:12px; padding:14px 16px;
}

/* Popup CGU */
.rg-cgu-overlay{
    display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6);
    z-index:9999; align-items:center; justify-content:center; padding:20px;
}
.rg-cgu-modal{
    background:#191a3d; border:1px solid #2e2f5c; border-radius:18px;
    padding:26px; max-width:440px; width:100%; max-height:80vh; overflow-y:auto;
}
.rg-cgu-titre{ font-size:1.1rem; font-weight:800; color:#f2f0f7; margin-bottom:14px; }
.rg-cgu-texte{ font-size:0.85rem; color:#9491b8; line-height:1.6; margin-bottom:20px; }
.rg-cgu-boutons{ display:flex; gap:10px; }
.rg-cgu-accepter{
    flex:1; background:#f4b740; color:#10112b; border:none; padding:12px 0;
    border-radius:10px; font-weight:800; font-size:0.88rem; cursor:pointer;
}
.rg-cgu-plus-tard{
    background:transparent; color:#9491b8; border:1px solid #2e2f5c; padding:12px 16px;
    border-radius:10px; font-size:0.88rem; cursor:pointer;
}
.rg-cgu-check{
    display:flex; align-items:flex-start; gap:8px; font-size:0.78rem;
    color:#9491b8; margin:14px 0; line-height:1.5;
}
.rg-cgu-check input{ margin-top:2px; flex-shrink:0; }
.rg-cgu-check a{ color:#f4b740; }
