/**
 * VR Studio - Game UI Components
 * Styles pour l'interface du jeu VR
 */

/* Container principal */
.vr-game-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Header du jeu */
.vr-game-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
}

.vr-game-title {
    color: white;
    text-align: center;
}

.vr-button-container {
    text-align: center;
    margin: 10px 0;
    display: none;
}

.vr-btn-enter-vr {
    font-size: 16px;
    font-weight: 600;
}

/* Liste des projets */
.vr-projects-list {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 40px 20px;
}

.vr-projects-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 800;
    font-size: 24px;
}

.vr-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Carte projet */
.vr-project-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vr-project-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.vr-project-card-name {
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vr-project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.vr-project-card-slug {
    font-size: 12px;
    opacity: 0.5;
    font-family: monospace;
}

.vr-project-card-status {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.vr-projects-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
}

/* Hidden elements */
.vr-projects-list-hidden {
    display: none;
}

.vr-loading-retry-hidden {
    display: none;
}

/* Project card preview */
.project-card__preview {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
    background: #111;
}

.project-card__preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Loading overlay (fullscreen) */
.vr-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99996;
    background: #0b0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.vr-loading-overlay-inner {
    max-width: 520px;
    width: 100%;
    padding: 0 24px;
}

.vr-loading-overlay-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

/* Loading (inline in projects list) */
.vr-loading {
    display: none;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.vr-loading-status {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.vr-loading-container {
    max-width: 520px;
    margin: 0 auto;
}

.vr-loading-bar-wrapper {
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.vr-loading-bar {
    height: 10px;
    width: 0%;
    background: rgba(34, 197, 94, 0.85);
    transition: width 500ms ease-out;
}

.vr-loading-text {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.vr-loading-error {
    display: none;
    margin-top: 12px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.vr-loading-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Interface de jeu */
.vr-game-interface {
    display: none;
    width: 100%;
    height: 100vh;
}

.vr-scene {
    width: 100%;
    height: 100%;
}

/* HUD de simulation */
.vr-simulation-hud {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 99999;
    pointer-events: none;
    display: none;
}

.vr-hud-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.vr-sound-control {
    pointer-events: auto;
}

.vr-sound-toggle {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 0;
    opacity: 0.75;
    transition: opacity 0.2s;
}
.vr-sound-toggle:hover { opacity: 1; }

.vr-hud-score {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.vr-hud-score-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.vr-hud-score-value {
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    min-width: 64px;
    text-align: right;
}

.vr-hud-hp {
    width: 260px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.vr-hud-hp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vr-hud-hp-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.vr-hud-hp-text {
    font-weight: 800;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
}

.vr-hud-hp-bar-wrapper {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vr-hud-hp-bar {
    height: 12px;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.95));
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
    transition: width 120ms linear;
}

/* Game Over */
.vr-game-over-overlay {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(10px);
}

.vr-game-over-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vr-game-over-card {
    width: min(520px, 92vw);
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    padding: 22px 22px 18px;
    text-align: center;
}

.vr-game-over-title {
    font-weight: 900;
    font-size: 34px;
    letter-spacing: 0.02em;
}

.vr-game-over-subtitle {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}

.vr-game-over-divider {
    margin-top: 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.vr-game-over-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.vr-game-over-replay {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
}

.vr-game-over-score {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

/* ─── Street Fighter Combat HUD ───────────────────────────────────────────── */
.sf-hud-overlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9000;
    pointer-events: none;
}

.sf-hud-fade-in {
    animation: sf-hud-fadein 0.3s ease both;
}

@keyframes sf-hud-fadein {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sf-hud-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px 10px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.68) 65%, transparent 100%);
    gap: 6px;
}

/* Sides */
.sf-hud-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.sf-hud-player { flex-direction: row; }
.sf-hud-enemy  { flex-direction: row-reverse; }

/* Portrait */
.sf-hud-portrait {
    width: 54px; height: 54px;
    border: 2px solid rgba(255,255,255,0.22);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(0,10,40,0.85), rgba(0,30,80,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0,120,255,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.sf-hud-portrait-icon { font-size: 27px; line-height: 1; }

/* Info block */
.sf-hud-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sf-hud-info-left  { align-items: flex-start; }
.sf-hud-info-right { align-items: flex-end; }

/* Name */
.sf-hud-name {
    font-family: 'Arial Black', 'Impact', Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 8px rgba(0,160,255,0.65), 1px 1px 0 #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* HP Bar wrapper */
.sf-hud-bar-wrapper {
    width: 100%;
    height: 16px;
    background: #0d0d22;
    border: 1.5px solid rgba(255,255,255,0.16);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8), 0 0 4px rgba(0,0,0,0.5);
}

/* HP fill bar */
.sf-hud-bar-fill {
    height: 100%;
    transition: width 0.12s ease-out;
    position: absolute;
    top: 0;
}

/* Player bar: fills left → right */
.sf-player-bar {
    left: 0;
    background: linear-gradient(90deg, #d47800 0%, #ffc200 35%, #ffe050 65%, #c8f43a 100%);
    box-shadow: 0 0 8px rgba(255,190,0,0.55);
}

/* Enemy bar: fills right → left */
.sf-enemy-bar {
    right: 0;
    background: linear-gradient(270deg, #d47800 0%, #ffc200 35%, #ffe050 65%, #c8f43a 100%);
    box-shadow: 0 0 8px rgba(255,190,0,0.55);
}

/* Danger zone: red pulsing bar */
.sf-bar-danger {
    background: linear-gradient(90deg, #7f0000 0%, #cc0000 55%, #ff3030 100%) !important;
    animation: sf-bar-pulse 0.4s ease-in-out infinite alternate;
    box-shadow: 0 0 10px rgba(200,0,0,0.7) !important;
}
@keyframes sf-bar-pulse {
    from { opacity: 1; }
    to   { opacity: 0.5; }
}

/* Center: score */
.sf-hud-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    flex-shrink: 0;
    padding: 0 8px;
}
.sf-hud-score-label {
    font-family: 'Arial Black', 'Impact', Arial, sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(255,220,80,0.60);
    text-transform: uppercase;
    margin-bottom: 2px;
}
.sf-hud-score-value {
    font-family: 'Arial Black', 'Impact', Arial, sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 14px rgba(255,215,0,0.75), 2px 2px 0 #6b3800;
    line-height: 1;
    min-width: 36px;
    text-align: center;
}

/* K.O. overlay text */
.sf-ko-text {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9002;
    font-family: 'Arial Black', 'Impact', Arial, sans-serif;
    font-size: clamp(52px, 11vw, 100px);
    font-weight: 900;
    color: #ffd700;
    text-shadow:
        5px 5px 0 #7a0000,
        -2px -2px 0 #7a0000,
        0 0 36px rgba(255,215,0,0.85),
        0 0 70px rgba(255,80,0,0.5);
    letter-spacing: 10px;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    animation: sf-ko-anim 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes sf-ko-anim {
    0%   { transform: translate(-50%, -50%) scale(0.08) rotate(-12deg); opacity: 0; }
    60%  { transform: translate(-50%, -50%) scale(1.18) rotate(2deg);   opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1)    rotate(0deg);   opacity: 1; }
}


/* ══════════════════════════════════════════════════════════════════
   GAMEPLAY v2 — boss, objectifs, arme (sept. 2026)
   ══════════════════════════════════════════════════════════════════ */
.boss-hud {
  display: none;
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 82vw);
  z-index: 9002;
  pointer-events: none;
  padding: 8px 14px 10px;
  background: rgba(10, 6, 12, 0.72);
  border: 1px solid rgba(255, 80, 80, 0.55);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 40, 40, 0.35);
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #fff;
}
.boss-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.boss-hud-title { font-weight: 800; font-size: 15px; text-shadow: 0 0 8px rgba(255, 60, 60, 0.8); }
.boss-hud-phase { font-size: 11px; opacity: 0.8; }
.boss-hud-bar-wrapper {
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
}
.boss-hud-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff2d2d, #ff8a3d);
  transition: width 0.25s ease-out;
}

.objectives-hud {
  display: none;
  position: fixed;
  top: 76px;
  left: 14px;
  z-index: 9002;
  pointer-events: none;
  min-width: 190px;
  max-width: 300px;
  padding: 8px 12px 10px;
  background: rgba(8, 12, 20, 0.66);
  border: 1px solid rgba(120, 180, 255, 0.35);
  border-radius: 10px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #e6eefc;
  font-size: 13px;
}
.objectives-hud-title {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 4px;
}
.objectives-hud-list { list-style: none; margin: 0; padding: 0; }
.objective-item { padding: 2px 0; line-height: 1.35; }
.objective-item-done { color: #7dffa1; text-decoration: line-through; opacity: 0.85; }
.objective-item-failed { color: #ff7b7b; }
.objective-item-optional { opacity: 0.7; font-style: italic; }

.weapon-hud {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9002;
  pointer-events: none;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #fff;
}
.weapon-hud-icon { font-size: 22px; line-height: 1; }
.weapon-hud-text { display: flex; flex-direction: column; line-height: 1.15; }
.weapon-hud-name { font-weight: 700; font-size: 13px; }
.weapon-hud-stats { font-size: 11px; opacity: 0.75; }

@media (max-width: 720px) {
  .boss-hud { top: 64px; }
  .objectives-hud { top: 64px; font-size: 12px; max-width: 46vw; }
  .weapon-hud { bottom: 96px; left: 14px; transform: none; }
}

/* ── Pad tactile mobile ── */
.mobile-pad-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}
.mobile-pad-overlay.mobile-pad-visible { display: block; }
.mobile-joystick {
  position: absolute;
  bottom: 22px;
  width: 150px;
  height: 150px;
  pointer-events: auto;
  touch-action: none;
}
.mobile-pad-buttons {
  position: absolute;
  bottom: 30px;
  display: grid;
  grid-template-columns: 64px 64px;
  gap: 12px;
  pointer-events: none;
}
.mobile-pad-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.mobile-pad-btn:active, .mobile-pad-btn.mobile-pad-btn-on { background: rgba(255, 255, 255, 0.32); }
.mobile-pad-btn-attack { background: rgba(255, 60, 60, 0.32); border-color: rgba(255, 120, 120, 0.6); width: 76px; height: 76px; font-size: 26px; }
.mobile-pad-btn-jump { background: rgba(60, 160, 255, 0.28); }
.mobile-pad-btn-run { font-size: 24px; }
.mobile-pad-btn-side { font-size: 20px; opacity: 0.7; }
/* Joystick à gauche (par défaut, jeu à la main gauche) : boutons à droite */
.mobile-pad-left .mobile-joystick { left: 22px; }
.mobile-pad-left .mobile-pad-buttons { right: 22px; }
/* Joystick à droite : boutons à gauche */
.mobile-pad-right .mobile-joystick { right: 22px; }
.mobile-pad-right .mobile-pad-buttons { left: 22px; }

/* ── Aide (commandes) ── */
.vr-help-overlay { position: absolute; inset: 0; display: none; z-index: 99997; background: rgba(0,0,0,0.72); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 16px; }
.vr-help-overlay.is-open { display: flex; }
.vr-help-card { width: min(960px, 100%); max-height: 92vh; overflow: auto; background: rgba(17,17,24,0.96); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 18px 22px; color: #eee; font-size: 14px; line-height: 1.5; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.vr-help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.vr-help-title { font-size: 22px; font-weight: 800; }
.vr-help-close { font-size: 18px; padding: 4px 12px; }
.vr-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.vr-help-col { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 10px 14px; }
.vr-help-col h3 { margin: 0 0 6px; font-size: 15px; }
.vr-help-col ul { margin: 0; padding-left: 18px; }
.vr-help-col li { margin: 3px 0; }
.vr-help-col b { color: #7dd3fc; }
.vr-help-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.9; }
@media (max-width: 600px) { .vr-help-card { font-size: 13px; padding: 14px; } .vr-help-title { font-size: 18px; } }

/* ── Réglages (performances / confort VR) ── */
.vr-settings-card { width: min(820px, 100%); }
.vr-settings-info { font-size: 12px; opacity: 0.75; margin: -4px 0 10px; }
.vr-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: 13px; }
.vr-settings-row span { flex: 1 1 auto; }
.vr-settings-row select { flex: 0 0 auto; min-width: 190px; max-width: 60%; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #eee; font-size: 13px; }
.vr-settings-row select option { color: #111; }
.vr-settings-row input[type=checkbox] { width: 20px; height: 20px; accent-color: #7dd3fc; }
.vr-settings-hint { font-size: 12px; opacity: 0.8; margin: 10px 0 0; }
.vr-settings-note { color: #fde68a; }
@media (max-width: 600px) { .vr-settings-row { flex-direction: column; align-items: flex-start; } .vr-settings-row select { max-width: 100%; width: 100%; } }

/* ── Barre du haut compacte : plus de bande noire, un seul bouton ⚙️ (2026-09-06) ── */
.vr-game-header.vr-game-header-compact { background: transparent; padding: 0; pointer-events: none; }
.vr-game-header-compact .vr-btn-settings { pointer-events: auto; position: absolute; top: calc(max(8px, env(safe-area-inset-top)) + 56px); right: 8px; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 22px; line-height: 44px; text-align: center; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.25); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.vr-game-header-compact .vr-btn-settings:hover { background: rgba(0,0,0,0.7); }
.vr-settings-game-title { font-size: 13px; font-weight: 600; opacity: 0.75; margin: 2px 0 0; text-align: left; }
.vr-settings-actions { display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; text-align: left; }
.vr-settings-actions .bl-btn { font-size: 14px; }

/* Titre de l'écran de chargement d'A-Frame (= <title> de la page) qui restait affiché en haut au centre
   (l'événement « loaded » ne part pas toujours sur bureau) */
.a-loader-title { display: none !important; }

/* Les panneaux Menu/Réglages et Aide passent au-dessus des boutons du HUD (caméra à 999999) */
.vr-help-overlay { z-index: 1000001; }

/* ═══ Gameplay v4 (2026-10-08) : esquive, reprise au point de sauvegarde, écran de victoire ═══ */
.mobile-pad-btn-dash {
  background: rgba(168, 85, 247, 0.30);
  border-color: rgba(196, 140, 255, 0.6);
  font-size: 24px;
}

/* Léger flou de mouvement pendant l'esquive */
.vr-dash-active canvas.a-canvas {
  filter: blur(0.6px) saturate(1.15);
  transition: filter 80ms ease;
}

/* Bouton « Reprendre au point de sauvegarde » : visible seulement si un point a été activé */
.vr-game-over-resume {
  display: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  background: #16a34a;
  border-color: #22c55e;
}
.vr-game-over-resume.is-available { display: inline-flex; align-items: center; }

/* Écran de victoire */
.vr-victory-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at center, rgba(250, 204, 21, 0.18), rgba(0, 0, 0, 0.82) 70%);
  backdrop-filter: blur(6px);
}
.vr-victory-overlay.is-open { display: flex; }
.vr-victory-card {
  width: min(460px, 100%);
  padding: 26px 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(250, 204, 21, 0.55);
  background: rgba(17, 17, 27, 0.94);
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.vr-victory-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #facc15;
  text-shadow: 0 2px 14px rgba(250, 204, 21, 0.45);
}
.vr-victory-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-line;
}
.vr-victory-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.vr-victory-stat {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}
.vr-victory-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
}
.vr-victory-stat-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
}
.vr-victory-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.vr-victory-actions .bl-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
}

/* Panneaux / dialogues (action « message ») : retours à la ligne conservés, texte long défilant */
#vrstudio-action-modal-text {
  white-space: pre-line;
  max-height: 50vh;
  overflow-y: auto;
  text-align: left;
}
