/* =====================================================
   MARMOTTE WORLD - CSS MOBILE TITANESQUE
   Version optimisee pour smartphones
   ===================================================== */

/* =====================================================
   CACHER NOISETTE CLICKER SUR MOBILE
   ===================================================== */
.game-card-alpine.noise-card,
#screen-noiseClicker,
.game-tab[data-game="noiseClicker"],
.lb-game-card[data-game="noiseClicker"],
.scores-content#scores-content-noiseClicker,
.ach-filter-btn[data-filter="noiseClicker"] {
    display: none !important;
}

/* =====================================================
   RESET & BASE MOBILE - NORMALISATION CHROME/SAFARI
   ===================================================== */
* {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
    font-size: 16px !important;
}

body {
    font-size: 16px !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

.screen {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 20px) !important;
}

/* =====================================================
   TOAST - CACHE PAR DEFAUT
   ===================================================== */
.toast,
#toast {
    display: none !important;
    position: fixed !important;
    bottom: 100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    right: auto !important;
    max-width: 85vw !important;
    width: auto !important;
    padding: 0.8rem 1.2rem !important;
    border-radius: 15px !important;
    z-index: 99999 !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.8rem !important;
}

.toast.show,
#toast.show {
    display: flex !important;
}

.toast-icon {
    font-size: 1.5rem !important;
    flex-shrink: 0 !important;
}

.toast-content {
    display: flex !important;
    flex-direction: column !important;
}

.toast-title {
    font-size: 0.75rem !important;
}

.toast-message {
    font-size: 0.85rem !important;
}

/* =====================================================
   ECRAN D'ACCUEIL
   ===================================================== */
#screen-welcome {
    padding: 1rem !important;
}

.welcome-content-alpine {
    padding: 1rem !important;
    padding-top: 1.5rem !important;
}

.welcome-mascot {
    transform: scale(0.75) !important;
    margin-bottom: 0.5rem !important;
}

.welcome-main-title {
    font-size: 2rem !important;
}

.title-word {
    font-size: 1.8rem !important;
}

.welcome-tagline {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
}

.welcome-description {
    font-size: 0.85rem !important;
    padding: 0 0.5rem !important;
}

.welcome-features {
    gap: 0.6rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin: 1rem 0 !important;
}

.welcome-feature {
    padding: 0.5rem 0.8rem !important;
    font-size: 0.8rem !important;
}

.feature-icon-wrap {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
}

.feature-label {
    font-size: 0.7rem !important;
}

.welcome-start-btn {
    padding: 0.9rem 1.8rem !important;
    font-size: 1rem !important;
    border-radius: 15px !important;
}

.welcome-hint {
    font-size: 0.75rem !important;
    margin-top: 0.8rem !important;
}

.welcome-footer {
    font-size: 0.7rem !important;
    padding: 0.5rem !important;
}

/* =====================================================
   MENU PRINCIPAL
   ===================================================== */
.menu-wrapper {
    padding: 0.6rem !important;
    padding-top: 0.8rem !important;
}

/* Header Chalet */
.alpine-header {
    margin-bottom: 0.8rem !important;
}

.chalet-frame {
    width: 100% !important;
    max-width: none !important;
}

.chalet-roof {
    display: none !important;
}

.chalet-body {
    border-radius: 15px !important;
    padding: 0.6rem 0.8rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.logo-section-alpine {
    flex-direction: column !important;
    gap: 0.4rem !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.marmotte-mascot {
    width: 50px !important;
    height: 50px !important;
}

.mascot-emoji {
    font-size: 2.2rem !important;
}

.logo-text-alpine {
    text-align: center !important;
}

.logo-text-alpine h1 {
    font-size: 1.4rem !important;
    text-align: center !important;
}

.logo-text-alpine .subtitle {
    font-size: 0.75rem !important;
    text-align: center !important;
}

/* Stats header */
.header-stats-alpine {
    gap: 0.4rem !important;
}

.stat-box-alpine {
    padding: 0.3rem 0.6rem !important;
    border-radius: 10px !important;
    min-width: 55px !important;
}

.stat-value-alpine {
    font-size: 0.95rem !important;
}

.stat-label-alpine {
    font-size: 0.55rem !important;
}

/* =====================================================
   GRILLE DE JEUX
   ===================================================== */
.section-title-alpine {
    font-size: 1.1rem !important;
    margin: 0.8rem 0 0.5rem 0 !important;
    padding: 0.4rem 1rem !important;
}

.section-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

.games-grid-alpine {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    padding: 0.3rem !important;
}

.game-card-alpine {
    padding: 0.6rem 0.4rem !important;
    border-radius: 12px !important;
    min-height: auto !important;
    max-height: 95px !important;
    height: 95px !important;
    overflow: hidden !important;
}

.card-content-alpine {
    gap: 0.2rem !important;
    justify-content: center !important;
}

.card-icon-wrapper {
    margin-bottom: 0.1rem !important;
}

.icon-bg-circle {
    width: 38px !important;
    height: 38px !important;
}

.card-icon-alpine {
    font-size: 1.4rem !important;
}

.card-title-alpine {
    font-size: 0.7rem !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-align: center !important;
    word-break: break-word !important;
}

.card-desc-alpine {
    display: none !important;
}

.card-stats-alpine {
    display: none !important;
}

.card-glow-alpine {
    display: none !important;
}

.card-ribbon {
    font-size: 0.45rem !important;
    padding: 0.1rem 0.3rem !important;
    top: 3px !important;
    right: 3px !important;
}

/* Decorations cachees sur mobile */
.card-snow-cap,
.card-frost-border,
.btn-snow-top {
    display: none !important;
}

/* =====================================================
   CARTE JEU SECRET
   ===================================================== */
.secret-game-card {
    min-height: 100px !important;
}

.secret-game-card .secret-icon,
.secret-game-card .unlocked-icon {
    font-size: 1.8rem !important;
}

.secret-game-card .secret-title,
.secret-game-card .unlocked-title {
    font-size: 0.8rem !important;
}

.secret-game-card .secret-desc,
.secret-game-card .unlocked-desc {
    font-size: 0.7rem !important;
    display: none !important;
}

.secret-progress {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.5rem !important;
    margin-top: 0.3rem !important;
}

.secret-badge {
    font-size: 0.5rem !important;
    padding: 0.15rem 0.4rem !important;
    top: 5px !important;
    right: 5px !important;
}

/* =====================================================
   FOOTER MENU - BOUTONS
   ===================================================== */
.menu-footer-alpine {
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
}

.wooden-sign-container {
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.wooden-btn {
    padding: 0.5rem 0.7rem !important;
    border-radius: 10px !important;
    min-width: 50px !important;
}

.btn-icon-alpine {
    font-size: 1.2rem !important;
}

.btn-text-alpine {
    display: none !important;
}

/* =====================================================
   JEU MEMORY
   ===================================================== */
#screen-memory {
    padding: 0.5rem !important;
}

.memory-header {
    padding: 0.5rem !important;
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
}

.memory-stats {
    gap: 0.3rem !important;
}

.memory-stat {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
}

.memory-board {
    gap: 0.3rem !important;
    padding: 0.4rem !important;
    max-width: 100% !important;
}

.memory-board.grid-3 {
    grid-template-columns: repeat(3, minmax(70px, 90px)) !important;
}

.memory-board.grid-4 {
    grid-template-columns: repeat(4, minmax(55px, 70px)) !important;
}

.memory-board.grid-5 {
    grid-template-columns: repeat(5, minmax(45px, 55px)) !important;
}

.memory-board.grid-6 {
    grid-template-columns: repeat(6, minmax(38px, 48px)) !important;
}

.memory-card {
    border-radius: 6px !important;
    aspect-ratio: 3/4 !important;
    min-height: 0 !important;
}

.memory-card-inner {
    width: 100% !important;
    height: 100% !important;
}

.memory-card-front,
.memory-card-back {
    border-radius: 6px !important;
    border-width: 2px !important;
}

.memory-card-front {
    font-size: 1.2rem !important;
}

.memory-card-back {
    padding: 3px !important;
}

.memory-card-back img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

.card-front,
.card-back {
    border-radius: 6px !important;
    font-size: 1.2rem !important;
}

/* Overlay Memory */
.memory-overlay {
    padding: 1rem !important;
}

.memory-overlay-content {
    padding: 1.2rem !important;
    max-width: 95vw !important;
}

.overlay-icon {
    font-size: 2.5rem !important;
}

.overlay-title {
    font-size: 1.3rem !important;
}

.difficulty-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
}

.difficulty-card {
    padding: 0.8rem !important;
    border-radius: 12px !important;
}

.diff-icon {
    font-size: 1.5rem !important;
}

.diff-name {
    font-size: 0.85rem !important;
}

.diff-info {
    display: none !important;
}

/* =====================================================
   JEU CLICKER
   ===================================================== */
#screen-clicker {
    padding: 0.5rem !important;
}

.clicker-header {
    padding: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.clicker-back-btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    background: rgba(139, 92, 246, 0.3) !important;
    border: 1px solid rgba(139, 92, 246, 0.5) !important;
    color: white !important;
    flex-shrink: 0 !important;
}

.clicker-arena {
    min-height: 300px !important;
    border-radius: 15px !important;
}

/* Zone de jeu clicker */
.clicker-game-zone {
    min-height: 300px !important;
    touch-action: manipulation !important;
}

/* Nouvelle marmotte clicker */
.clicker-marmotte {
    font-size: 2.8rem !important;
    position: absolute !important;
    z-index: 10 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out !important;
}

/* Ancien style pour retro-compatibilite */
.marmotte-target {
    font-size: 3rem !important;
}

.click-effect {
    font-size: 1rem !important;
}

/* =====================================================
   JEU QUIZ
   ===================================================== */
#screen-quiz {
    padding: 0.5rem !important;
}

#screen-quiz .titan-header {
    flex-wrap: nowrap !important;
    padding: 0.4rem !important;
    gap: 0.3rem !important;
}

#screen-quiz .titan-stats {
    flex-wrap: nowrap !important;
    gap: 0.2rem !important;
    overflow: hidden !important;
}

#screen-quiz .titan-stat {
    padding: 0.2rem 0.3rem !important;
    min-width: auto !important;
    flex-shrink: 1 !important;
}

/* Coeurs du quiz - taille reduite */
#quiz-lives {
    font-size: 0.7rem !important;
    letter-spacing: -2px !important;
    display: inline-block !important;
    max-width: 70px !important;
    overflow: hidden !important;
}

#screen-quiz .stat-label {
    display: none !important;
}

#screen-quiz .stat-icon {
    font-size: 0.8rem !important;
}

#screen-quiz .titan-value {
    font-size: 0.8rem !important;
}

.quiz-header {
    padding: 0.5rem !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
}

.quiz-content {
    padding: 0.8rem !important;
}

.quiz-question {
    font-size: 1rem !important;
    padding: 1rem !important;
    border-radius: 12px !important;
}

.quiz-answers {
    gap: 0.5rem !important;
}

.quiz-answer {
    padding: 0.8rem !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
}

/* =====================================================
   JEU CATCH - MOBILE (comme sur PC)
   ===================================================== */
#screen-catch {
    padding: 0.3rem !important;
}

#screen-catch .game-wrapper,
#screen-catch .titan-game {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

#screen-catch .titan-header {
    padding: 0.4rem 0.5rem !important;
    flex-shrink: 0 !important;
}

#screen-catch .titan-stats {
    gap: 0.3rem !important;
    flex-wrap: wrap !important;
}

#screen-catch .titan-stat {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.7rem !important;
}

#screen-catch .titan-stat .stat-label {
    display: none !important;
}

/* Zone de jeu - doit prendre tout l'espace disponible */
.catch-arena {
    flex: 1 !important;
    min-height: 300px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    margin: 0.3rem !important;
    /* Padding en bas pour le panier */
    padding-bottom: 80px !important;
}

/* Conteneur des items - DOIT couvrir toute l'arena */
.catch-items,
#catch-items {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
    pointer-events: none !important;
    z-index: 20 !important;
}

/* Items qui tombent - nouveaux styles */
.catch-item {
    font-size: 2rem !important;
    position: absolute !important;
    z-index: 50 !important;
    pointer-events: none !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.catch-nut {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.catch-star {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)) !important;
}

.catch-skull {
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8)) !important;
}

/* Ancien style pour retro-compatibilite */
.falling-item {
    font-size: 2rem !important;
    position: absolute !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.bouncy-star {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)) !important;
}

.bouncy-skull {
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6)) !important;
}

/* CATCH - Activer les touch events sur tout l'écran */
#screen-catch {
    touch-action: pan-x !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

#screen-catch.active {
    pointer-events: auto !important;
}

.catch-arena {
    touch-action: pan-x !important;
    pointer-events: auto !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    cursor: pointer !important;
}

/* Zone de touch pour le jeu */
.catch-arena.game-active {
    touch-action: pan-x !important;
}

/* Panier - positionné au-dessus de la zone de collision */
.catch-basket {
    position: absolute !important;
    bottom: 25px !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100 !important;
    pointer-events: none !important;
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 10px 20px !important;
}

/* Visible quand le jeu est actif */
.catch-arena.game-active .catch-basket {
    display: flex !important;
}

.catch-basket .basket {
    font-size: 3rem !important;
    line-height: 1 !important;
}

.catch-basket .basket-marmotte {
    font-size: 1.5rem !important;
    margin-top: -0.5rem !important;
}

/* Footer stats */
#screen-catch .titan-footer {
    padding: 0.3rem !important;
    flex-shrink: 0 !important;
}

#screen-catch .titan-stat-mini {
    padding: 0.2rem 0.3rem !important;
    font-size: 0.65rem !important;
}

/* Boutons de difficulté Catch sur mobile */
.catch-difficulties {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
}

.catch-diff-btn {
    padding: 0.5rem !important;
    min-height: 60px !important;
}

.catch-diff-btn .diff-icon {
    font-size: 1.2rem !important;
}

.catch-diff-btn .diff-name {
    font-size: 0.7rem !important;
}

.catch-diff-btn .diff-desc {
    font-size: 0.5rem !important;
}

/* Popup de combo sur mobile */
.catch-combo-popup {
    font-size: 1.5rem !important;
}

/* =====================================================
   CATCH - OVERLAY COMPACT MOBILE
   ===================================================== */

/* Overlay Catch - plus compact */
#screen-catch .overlay-content,
#screen-catch .titan-content {
    padding: 0.8rem !important;
    max-height: 95vh !important;
    overflow-y: auto !important;
}

/* Icone plus petite */
#screen-catch .overlay-icon,
#screen-catch .titan-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.3rem !important;
}

/* Titre plus compact */
#screen-catch .titan-title {
    font-size: 1.2rem !important;
    margin-bottom: 0.2rem !important;
}

/* Cacher la description sur mobile */
#screen-catch .titan-desc {
    display: none !important;
}

/* Section difficulte plus compacte */
#screen-catch .titan-difficulty-section {
    margin-bottom: 0.5rem !important;
}

#screen-catch .difficulty-title {
    font-size: 0.85rem !important;
    margin-bottom: 0.4rem !important;
}

/* Boutons difficulte Catch - grille 2x2 compacte */
#screen-catch .catch-difficulties {
    gap: 0.4rem !important;
    margin-bottom: 0.5rem !important;
}

#screen-catch .catch-diff-btn {
    padding: 0.4rem 0.3rem !important;
    min-height: 50px !important;
    border-radius: 10px !important;
}

#screen-catch .catch-diff-btn .diff-icon {
    font-size: 1.1rem !important;
}

#screen-catch .catch-diff-btn .diff-name {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
}

#screen-catch .catch-diff-btn .diff-desc {
    font-size: 0.5rem !important;
    opacity: 0.7 !important;
}

/* Cacher les powerups et hint sur mobile Catch */
#screen-catch .titan-powerups,
#screen-catch .titan-hint {
    display: none !important;
}

/* Bouton Commencer - bien visible */
#screen-catch #btn-play-catch {
    padding: 0.8rem 1.8rem !important;
    font-size: 1rem !important;
    margin-top: 0.6rem !important;
}

/* =====================================================
   JEU SIMON
   ===================================================== */
#screen-simon {
    padding: 0.5rem !important;
}

.simon-header {
    padding: 0.5rem !important;
}

.simon-board {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
    max-width: 280px !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 16px !important;
}

.simon-board.mode-9 {
    max-width: 280px !important;
}

.simon-btn {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    font-size: 1.4rem !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.simon-btn span {
    font-size: 1.3rem !important;
}

/* =====================================================
   JEU FLOCON
   ===================================================== */
#screen-flocon {
    padding: 0.5rem !important;
}

.flocon-header {
    padding: 0.5rem !important;
}

.flocon-board {
    max-width: 300px !important;
    gap: 3px !important;
    padding: 8px !important;
}

.flocon-cell {
    font-size: 1.2rem !important;
    border-radius: 6px !important;
}

/* =====================================================
   JEU CHAOS ALPIN (SECRET)
   ===================================================== */
#screen-chaos {
    padding: 0 !important;
}

.chaos-game {
    min-height: 100vh !important;
}

.chaos-header {
    padding: 0.5rem !important;
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
}

.chaos-info {
    gap: 0.4rem !important;
}

.chaos-logo {
    font-size: 1.4rem !important;
}

.chaos-name {
    font-size: 0.9rem !important;
}

.chaos-stats {
    width: 100% !important;
    justify-content: center !important;
    gap: 0.3rem !important;
}

.chaos-stat {
    padding: 0.25rem 0.4rem !important;
    min-width: 50px !important;
    border-radius: 8px !important;
}

.chaos-stat .stat-label {
    font-size: 0.5rem !important;
}

.chaos-stat .stat-value {
    font-size: 0.85rem !important;
}

.btn-chaos {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
}

.chaos-container {
    padding: 0.5rem !important;
}

.chaos-arena {
    height: 350px !important;
    max-width: 100% !important;
    border-radius: 12px !important;
}

.chaos-player {
    font-size: 1.8rem !important;
    bottom: 20px !important;
}

.chaos-enemy {
    font-size: 1.3rem !important;
}

.chaos-enemy.boss {
    font-size: 2.5rem !important;
}

.chaos-bullet {
    width: 6px !important;
    height: 15px !important;
}

.chaos-powerup {
    font-size: 1.2rem !important;
}

.chaos-wave-indicator {
    font-size: 2rem !important;
}

.chaos-overlay {
    padding: 1rem !important;
}

.chaos-start-content {
    padding: 1rem !important;
    max-width: 95vw !important;
}

.chaos-start-icon {
    font-size: 2.5rem !important;
}

.chaos-start-content h2 {
    font-size: 1.2rem !important;
}

.chaos-start-content p {
    font-size: 0.85rem !important;
}

.chaos-rules {
    gap: 0.3rem !important;
}

.chaos-rule {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.7rem !important;
}

.chaos-powerups-info {
    display: none !important;
}

.chaos-play-btn {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.9rem !important;
}

.chaos-footer {
    padding: 0.5rem !important;
    gap: 0.4rem !important;
}

.chaos-footer-stat {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem !important;
}

/* =====================================================
   MODAL SECRET
   ===================================================== */
.secret-modal-content {
    padding: 1.2rem !important;
    max-width: 95vw !important;
    border-radius: 18px !important;
}

.secret-modal-icon {
    font-size: 3rem !important;
}

.secret-modal-title {
    font-size: 1.2rem !important;
}

.secret-modal-subtitle {
    font-size: 0.9rem !important;
}

.secret-modal-text {
    font-size: 0.85rem !important;
}

.secret-modal-btn {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
}

/* Modal jeu secret verrouillé */
.secret-locked-info {
    margin: 1rem 0 !important;
}

.locked-progress-bar {
    height: 10px !important;
}

.locked-progress-text {
    font-size: 0.9rem !important;
}

.locked-hint {
    padding: 0.8rem !important;
    margin: 1rem 0 !important;
    gap: 0.6rem !important;
}

.locked-hint .hint-icon {
    font-size: 1.2rem !important;
}

.locked-hint p {
    font-size: 0.8rem !important;
}

.locked-stats {
    gap: 0.5rem !important;
    margin: 1rem 0 !important;
}

.locked-stat {
    padding: 0.6rem 0.8rem !important;
    min-width: 65px !important;
    border-radius: 10px !important;
}

.locked-stat-value {
    font-size: 1.2rem !important;
}

.locked-stat-label {
    font-size: 0.6rem !important;
}

.secret-close-btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
}

.locked-warning {
    padding: 0.8rem !important;
    margin: 0.8rem 0 !important;
    gap: 0.6rem !important;
}

.locked-warning span {
    font-size: 1.1rem !important;
}

.locked-warning p {
    font-size: 0.75rem !important;
}

/* =====================================================
   SUCCES / ACHIEVEMENTS
   ===================================================== */
#screen-achievements {
    padding: 0.5rem !important;
}

.achievements-wrapper {
    padding: 0.8rem !important;
    padding-top: 3rem !important;
}

.achievements-header {
    margin-bottom: 0.8rem !important;
}

.achievements-title {
    font-size: 1.3rem !important;
}

.achievements-filters {
    gap: 0.3rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.ach-filter-btn {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.7rem !important;
    border-radius: 8px !important;
}

.achievements-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
}

.achievement-card {
    padding: 0.6rem !important;
    border-radius: 12px !important;
    position: relative !important;
}

.achievement-icon {
    font-size: 1.6rem !important;
}

.achievement-info h4 {
    font-size: 0.75rem !important;
}

.achievement-info p,
.achievement-desc {
    font-size: 0.65rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Succes collectables */
.claim-badge {
    top: -5px !important;
    right: -5px !important;
    font-size: 0.5rem !important;
    padding: 0.2rem 0.4rem !important;
}

.collected-check {
    top: -5px !important;
    right: -5px !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 0.7rem !important;
}

.achievements-progress {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0.8rem !important;
    margin-bottom: 1rem !important;
}

.progress-item .progress-value {
    font-size: 1.2rem !important;
}

.progress-item .progress-label {
    font-size: 0.6rem !important;
}

.progress-bar-wrapper {
    width: 100% !important;
    height: 8px !important;
}

/* =====================================================
   BOUTIQUE / SHOP
   ===================================================== */
#screen-shop {
    padding: 0.5rem !important;
}

.shop-wrapper {
    padding: 0.8rem !important;
    padding-top: 3rem !important;
}

.shop-header {
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-bottom: 0.8rem !important;
    align-items: center !important;
}

.shop-title-section {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    justify-content: center !important;
}

.shop-icon {
    font-size: 1.5rem !important;
}

.shop-header h2,
.shop-title-section h2 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 0 !important;
}

.shop-balance {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    background: rgba(139, 92, 246, 0.2) !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
}

.shop-title {
    font-size: 1.3rem !important;
}

.shop-coins {
    font-size: 1rem !important;
}

.shop-categories {
    gap: 0.3rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.shop-cat {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.8rem !important;
}

.shop-cat span {
    display: none !important;
}

.shop-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
}

.shop-item {
    padding: 0.6rem !important;
    border-radius: 12px !important;
}

.shop-item-icon {
    font-size: 2rem !important;
}

.shop-item-name {
    font-size: 0.8rem !important;
}

.shop-item-price {
    font-size: 0.75rem !important;
}

/* =====================================================
   SCORES - VERSION ULTRA-COMPACT MOBILE
   ===================================================== */
#screen-scores {
    padding: 0.3rem !important;
}

.scores-wrapper {
    padding: 0.5rem !important;
    padding-top: 2.5rem !important;
}

.scores-mega-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.3rem !important;
    margin-bottom: 0.5rem !important;
}

.scores-mega-header h2 {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

/* Onglets des jeux - tres compacts */
.game-tabs {
    gap: 0.2rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    padding: 0.3rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px !important;
}

.game-tab {
    padding: 0.35rem 0.5rem !important;
    border-radius: 8px !important;
    min-width: 40px !important;
}

.game-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #a855f7) !important;
}

.tab-icon {
    font-size: 1rem !important;
}

.tab-name {
    display: none !important;
}

/* Onglets de difficulte - compacts */
.scores-difficulty-tabs {
    display: flex !important;
    gap: 0.2rem !important;
    justify-content: center !important;
    padding: 0.3rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    margin-bottom: 0.5rem !important;
    flex-wrap: wrap !important;
}

.scores-difficulty-tabs .diff-tab {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.7rem !important;
    border-radius: 6px !important;
    background: rgba(139, 92, 246, 0.15) !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.scores-difficulty-tabs .diff-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #a855f7) !important;
    color: white !important;
}

/* Carte record - ULTRA compact */
.scores-record-card {
    padding: 0.5rem 0.6rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 10px !important;
}

.scores-record-card .record-header {
    gap: 0.3rem !important;
    margin-bottom: 0.3rem !important;
}

.scores-record-card .record-crown {
    font-size: 0.9rem !important;
}

.scores-record-card .record-title {
    font-size: 0.7rem !important;
}

.scores-record-card .record-main {
    gap: 0.8rem !important;
    flex-direction: row !important;
    align-items: center !important;
}

.scores-record-card .record-value {
    font-size: 1.5rem !important;
}

.scores-record-card .record-label {
    font-size: 0.55rem !important;
}

.scores-record-card .record-details {
    gap: 0.4rem !important;
}

.scores-record-card .record-detail {
    padding: 0.25rem 0.4rem !important;
    border-radius: 6px !important;
}

.scores-record-card .detail-icon {
    font-size: 0.7rem !important;
}

.scores-record-card .detail-value {
    font-size: 0.85rem !important;
}

.scores-record-card .detail-label {
    font-size: 0.5rem !important;
}

/* Lien Top 100 - compact */
.scores-top100-link {
    padding: 0.5rem 0.8rem !important;
    margin: 0.4rem 0 !important;
    font-size: 0.8rem !important;
    gap: 0.4rem !important;
}

.scores-top100-link .top100-icon {
    font-size: 1rem !important;
}

/* Stats globales du jeu - compactes */
.game-global-stats {
    display: flex !important;
    gap: 0.3rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 0.5rem !important;
}

.global-stat {
    padding: 0.4rem 0.6rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    text-align: center !important;
    min-width: 65px !important;
}

.global-stat .gs-icon {
    font-size: 0.9rem !important;
    display: block !important;
    margin-bottom: 0.15rem !important;
}

.global-stat .gs-value {
    font-size: 1rem !important;
    font-weight: 800 !important;
    display: block !important;
}

.global-stat .gs-label {
    font-size: 0.5rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    display: block !important;
}

/* Badge Mode Infini - compact */
.scores-infinite-header {
    margin-bottom: 0.5rem !important;
}

.infinite-badge-large {
    padding: 0.5rem 1rem !important;
    border-radius: 12px !important;
}

.infinite-badge-large .infinite-icon {
    font-size: 1.3rem !important;
}

.infinite-badge-large .infinite-title {
    font-size: 0.9rem !important;
}

.infinite-badge-large .infinite-subtitle {
    font-size: 0.65rem !important;
}

.podium-container {
    transform: scale(0.8) !important;
    margin: 0.3rem 0 !important;
}

.scores-list {
    gap: 0.3rem !important;
}

.score-row {
    padding: 0.4rem !important;
    font-size: 0.8rem !important;
}

/* =====================================================
   LEADERBOARD
   ===================================================== */
#screen-leaderboard {
    padding: 0.5rem !important;
}

.lb-world-container {
    padding: 0.8rem !important;
    padding-top: 3rem !important;
}

.lb-header {
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.lb-title {
    font-size: 1.3rem !important;
}

.lb-games-nav {
    gap: 0.3rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.lb-game-card {
    padding: 0.3rem 0.5rem !important;
    border-radius: 8px !important;
}

.lb-game-icon {
    font-size: 1rem !important;
}

.lb-game-name {
    display: none !important;
}

.lb-list {
    max-height: 350px !important;
}

.lb-row {
    padding: 0.5rem !important;
    font-size: 0.8rem !important;
}

/* Header du tableau - OPTIMISÉ MOBILE */
.lb-list-header {
    display: grid !important;
    grid-template-columns: 28px 1fr 24px 28px 50px !important;
    padding: 0.4rem 0.4rem !important;
    font-size: 0.5rem !important;
    gap: 0.5rem !important;
    align-items: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

/* Colonnes header */
.lb-col-rank {
    text-align: center !important;
}

.lb-col-player {
    text-align: left !important;
    padding-left: 4px !important;
}

.lb-col-country,
.lb-col-profile {
    display: block !important;
    text-align: center !important;
    font-size: 0.45rem !important;
}

.lb-col-score {
    text-align: right !important;
}

/* Cacher seulement la date */
.lb-col-date {
    display: none !important;
}

/* Lignes du tableau */
.lb-list-row {
    display: grid !important;
    grid-template-columns: 28px 1fr 24px 28px 50px !important;
    padding: 0.35rem 0.4rem !important;
    gap: 0.5rem !important;
    align-items: center !important;
}

/* Drapeau */
.lb-row-country {
    display: flex !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
}

/* Bouton profil */
.lb-row-profile {
    display: flex !important;
    justify-content: center !important;
}

.lb-row-profile .btn-view-profile {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.6rem !important;
    padding: 0 !important;
    border-radius: 50% !important;
    min-width: unset !important;
}

/* Cacher la date */
.lb-row-date {
    display: none !important;
}

/* Avatar */
.lb-row-avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.9rem !important;
}

/* Nom du joueur */
.lb-row-name {
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Score */
.lb-row-score {
    font-size: 0.65rem !important;
    text-align: right !important;
    font-weight: 600 !important;
}

/* =====================================================
   MODAL PROFIL JOUEUR - MOBILE
   ===================================================== */
.player-profile-modal {
    padding: 0.5rem !important;
}

.profile-modal-content {
    max-width: 95vw !important;
    max-height: 85vh !important;
    padding: 1rem !important;
    border-radius: 16px !important;
    overflow-y: auto !important;
}

.profile-close {
    width: 28px !important;
    height: 28px !important;
    font-size: 1.2rem !important;
    top: 8px !important;
    right: 8px !important;
}

.profile-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.8rem !important;
}

.profile-avatar-large {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.8rem !important;
}

.profile-info h2 {
    font-size: 1.1rem !important;
    margin-bottom: 0.2rem !important;
}

.profile-title {
    font-size: 0.7rem !important;
}

.profile-country {
    font-size: 1.2rem !important;
}

.profile-current-game {
    padding: 0.6rem !important;
    margin-bottom: 0.8rem !important;
    font-size: 0.8rem !important;
}

.profile-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.8rem !important;
}

.profile-stat {
    padding: 0.5rem !important;
}

.profile-stat-value {
    font-size: 1rem !important;
}

.profile-stat-label {
    font-size: 0.6rem !important;
}

.profile-games-section h3 {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
}

.profile-games-list {
    gap: 0.4rem !important;
}

.profile-game-item {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.7rem !important;
}

/* Ma position */
.lb-my-rank-card {
    padding: 0.6rem 0.8rem !important;
    margin-bottom: 0.8rem !important;
}

.lb-myrank-name {
    font-size: 0.85rem !important;
}

.lb-myrank-position {
    font-size: 1.1rem !important;
}

/* Stats en bas */
.lb-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
}

.lb-stat-box {
    padding: 0.5rem !important;
}

.lb-stat-value {
    font-size: 1rem !important;
}

.lb-stat-label {
    font-size: 0.55rem !important;
}

/* =====================================================
   SETTINGS
   ===================================================== */
#screen-settings {
    padding: 0.5rem !important;
}

.settings-wrapper {
    padding: 0.8rem !important;
    padding-top: 3rem !important;
}

.settings-title {
    font-size: 1.3rem !important;
}

.settings-group {
    margin-bottom: 1rem !important;
}

.settings-group-title {
    font-size: 0.9rem !important;
}

.setting-item {
    padding: 0.6rem !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
}

.setting-icon {
    font-size: 1.2rem !important;
}

.setting-name {
    font-size: 0.85rem !important;
}

.setting-desc {
    font-size: 0.7rem !important;
}

/* =====================================================
   MODALS
   ===================================================== */
.modal,
.game-modal {
    padding: 0.5rem !important;
}

.modal-content {
    padding: 1.2rem !important;
    max-width: 95vw !important;
    border-radius: 18px !important;
    margin: 0 !important;
}

.modal-icon {
    font-size: 3rem !important;
}

.modal-title {
    font-size: 1.3rem !important;
}

.modal-subtitle {
    font-size: 0.9rem !important;
}

.modal-stats {
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
}

.modal-stat {
    padding: 0.5rem !important;
    min-width: 70px !important;
}

.modal-stat-icon {
    font-size: 1.3rem !important;
}

.modal-stat-value {
    font-size: 1rem !important;
}

.modal-stat-label {
    font-size: 0.6rem !important;
}

.modal-actions {
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.modal-actions button {
    width: 100% !important;
    padding: 0.8rem !important;
    font-size: 0.9rem !important;
}

/* =====================================================
   BOUTON RETOUR
   ===================================================== */
.btn-back {
    top: 0.5rem !important;
    left: 0.5rem !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
    z-index: 1000 !important;
}

/* =====================================================
   HEADER TITAN (jeux)
   ===================================================== */
.titan-header {
    padding: 0.5rem !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
}

.titan-logo {
    font-size: 1.4rem !important;
}

.titan-name {
    font-size: 1rem !important;
}

.titan-stats {
    width: 100% !important;
    justify-content: center !important;
    gap: 0.3rem !important;
}

.titan-stat {
    padding: 0.25rem 0.4rem !important;
    min-width: 50px !important;
}

.titan-value {
    font-size: 0.9rem !important;
}

.stat-label {
    font-size: 0.5rem !important;
}

.btn-titan {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
}

.titan-footer {
    padding: 0.4rem !important;
    gap: 0.3rem !important;
}

.titan-stat-mini {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.7rem !important;
}

/* =====================================================
   ANIMATIONS REDUITES SUR MOBILE
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================================
   PETITS ECRANS (max 480px)
   ===================================================== */
@media (max-width: 480px) {
    .games-grid-alpine {
        gap: 0.35rem !important;
    }

    .game-card-alpine {
        padding: 0.5rem 0.3rem !important;
        height: 85px !important;
        max-height: 85px !important;
    }

    .icon-bg-circle {
        width: 35px !important;
        height: 35px !important;
    }

    .icon-bg-circle {
        width: 32px !important;
        height: 32px !important;
    }

    .card-icon-alpine {
        font-size: 1.2rem !important;
    }

    .card-title-alpine {
        font-size: 0.62rem !important;
        line-height: 1.1 !important;
    }

    .chaos-arena {
        height: 300px !important;
    }

    .chaos-player {
        font-size: 1.5rem !important;
    }

    .chaos-enemy {
        font-size: 1.1rem !important;
    }

    .chaos-enemy.boss {
        font-size: 2rem !important;
    }

    .achievements-grid {
        gap: 0.4rem !important;
    }

    .achievement-card {
        padding: 0.5rem !important;
    }

    .achievement-icon {
        font-size: 1.4rem !important;
    }
}

/* =====================================================
   TRES PETITS ECRANS (max 400px)
   ===================================================== */
@media (max-width: 400px) {
    .welcome-main-title,
    .title-word {
        font-size: 1.5rem !important;
    }

    .logo-text-alpine h1 {
        font-size: 1.1rem !important;
    }

    .stat-box-alpine {
        min-width: 48px !important;
        padding: 0.25rem 0.4rem !important;
    }

    .stat-value-alpine {
        font-size: 0.85rem !important;
    }

    .game-card-alpine {
        height: 80px !important;
        max-height: 80px !important;
    }

    .chaos-stat .stat-label {
        display: none !important;
    }

    .chaos-arena {
        height: 260px !important;
    }

    .simon-btn {
        width: 50px !important;
        height: 50px !important;
    }

    /* Catch - petits écrans */
    .catch-arena {
        min-height: 280px !important;
        padding-bottom: 70px !important;
    }

    .catch-basket {
        bottom: 20px !important;
    }

    .catch-basket .basket {
        font-size: 2.5rem !important;
    }

    .catch-basket .basket-marmotte {
        font-size: 1.2rem !important;
    }

    .catch-diff-btn {
        min-height: 50px !important;
        padding: 0.3rem !important;
    }
}

/* =====================================================
   ECRANS ULTRA ETROITS (max 360px)
   ===================================================== */
@media (max-width: 360px) {
    .menu-wrapper {
        padding: 0.3rem !important;
    }

    .games-grid-alpine {
        gap: 0.25rem !important;
    }

    .game-card-alpine {
        padding: 0.4rem 0.25rem !important;
        height: 75px !important;
        max-height: 75px !important;
    }

    .icon-bg-circle {
        width: 28px !important;
        height: 28px !important;
    }

    .card-icon-alpine {
        font-size: 1rem !important;
    }

    .card-title-alpine {
        font-size: 0.55rem !important;
        line-height: 1.05 !important;
    }

    .wooden-btn {
        padding: 0.4rem 0.5rem !important;
        min-width: 42px !important;
    }

    .btn-icon-alpine {
        font-size: 1rem !important;
    }

    .chaos-arena {
        height: 240px !important;
    }

    .chaos-player {
        font-size: 1.3rem !important;
    }

    .memory-board.grid-4 {
        grid-template-columns: repeat(4, minmax(48px, 60px)) !important;
    }

    .memory-board.grid-5 {
        grid-template-columns: repeat(5, minmax(40px, 48px)) !important;
    }

    .memory-board.grid-6 {
        grid-template-columns: repeat(6, minmax(32px, 40px)) !important;
    }

    /* Catch - écrans ultra-étroits */
    .catch-arena {
        min-height: 260px !important;
        padding-bottom: 60px !important;
    }

    .catch-basket {
        bottom: 15px !important;
    }

    .catch-basket .basket {
        font-size: 2.2rem !important;
    }

    .catch-basket .basket-marmotte {
        font-size: 1rem !important;
    }

    .catch-difficulties {
        gap: 0.3rem !important;
    }

    .catch-diff-btn {
        min-height: 45px !important;
        padding: 0.25rem !important;
    }

    .catch-diff-btn .diff-icon {
        font-size: 1rem !important;
    }

    .catch-diff-btn .diff-name {
        font-size: 0.6rem !important;
    }

    .catch-diff-btn .diff-desc {
        font-size: 0.45rem !important;
    }
}

/* =====================================================
   MODAL PROFIL - BOUTON CLOSE
   ===================================================== */
.modal-close {
    z-index: 100 !important;
    pointer-events: auto !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.3rem !important;
}

/* =====================================================
   JEU NOISETTE CLICKER - NORMALISE CHROME/SAFARI
   ===================================================== */
#screen-noiseClicker {
    padding: 0 !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
}

.noise-game,
.noise-clicker-container {
    display: flex !important;
    flex-direction: column !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
}

/* Header Noisette */
.noise-header {
    padding: 0.4rem !important;
    gap: 0.3rem !important;
    flex-wrap: wrap !important;
}

.noise-info {
    gap: 0.3rem !important;
}

.noise-logo {
    font-size: 1.2rem !important;
}

.noise-name {
    font-size: 0.85rem !important;
}

.noise-stats {
    width: 100% !important;
    justify-content: center !important;
    gap: 0.2rem !important;
    flex-wrap: wrap !important;
}

.noise-stat {
    padding: 0.2rem 0.35rem !important;
    min-width: 45px !important;
    border-radius: 8px !important;
}

.noise-stat .stat-label {
    font-size: 0.45rem !important;
}

.noise-stat .stat-icon {
    font-size: 0.7rem !important;
}

.noise-value {
    font-size: 0.75rem !important;
}

.btn-noise {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
}

/* Container principal */
.noise-container {
    flex: 1 !important;
    padding: 0.3rem !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

/* Timer bar */
.noise-timer-bar {
    height: 6px !important;
    margin-bottom: 0.3rem !important;
}

/* Badge difficulte */
.noise-diff-badge {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.7rem !important;
    gap: 0.3rem !important;
}

/* Overlay de demarrage - ULTRA COMPACT */
.noise-overlay {
    padding: 0.2rem !important;
}

.noise-content {
    padding: 0.6rem !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    border-radius: 12px !important;
    overflow-y: auto !important;
}

.noise-icon {
    font-size: 1.5rem !important;
    margin-bottom: 0.1rem !important;
}

/* Titre compact */
#screen-noiseClicker .noise-title,
.noise-game .noise-title {
    font-size: 1rem !important;
    margin-bottom: 0.1rem !important;
}

/* Message PC - petit sur mobile */
.noise-pc-tip {
    font-size: 0.55rem !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0.2rem 0 !important;
    border-radius: 6px !important;
}

/* Carte du menu - meme taille que les autres */
.game-card-alpine.noise-card .noise-title {
    font-size: inherit !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cacher description sur mobile */
.noise-desc {
    display: none !important;
}

/* Cacher les regles sur mobile */
.noise-rules {
    display: none !important;
}

/* Cacher les previews bonus et scores */
.noise-bonuses-preview,
.noise-best-scores-preview {
    display: none !important;
}

/* Section difficulte plus compacte */
.noise-difficulty-selector {
    margin: 0.5rem 0 !important;
}

.diff-selector-title {
    font-size: 0.7rem !important;
    margin-bottom: 0.3rem !important;
}

/* Boutons difficulte en grille 2x2 */
.noise-diff-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    margin: 0.8rem 0 !important;
}

/* Boutons difficulte Noisette - compacts */
.noise-diff-btn {
    padding: 0.4rem 0.5rem !important;
    border-radius: 10px !important;
    min-height: 50px !important;
}

.noise-diff-btn .diff-icon {
    font-size: 1.1rem !important;
}

.noise-diff-btn .diff-name {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
}

.noise-diff-btn .diff-detail {
    font-size: 0.5rem !important;
    opacity: 0.7 !important;
}

.best-score-item {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.7rem !important;
    gap: 0.2rem !important;
}

/* Bouton play */
.noise-play {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
}

/* Zone de clic */
.noise-click-area {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 150px !important;
    max-height: 35vh !important;
    position: relative !important;
    padding: 0.5rem !important;
}

/* Noisette principale - taille optimisée mobile */
.noise-main-nut {
    font-size: 4rem !important;
    width: 120px !important;
    height: 120px !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    /* CORRECTION: Désactiver les transformations CSS qui causent le problème */
    transform: none !important;
    /* Transition rapide pour animation tactile */
    transition: filter 0.08s ease, box-shadow 0.08s ease !important;
}

/* CORRECTION: Désactiver hover/active qui causent le grossissement sur mobile */
.noise-main-nut:hover,
.noise-main-nut:focus {
    transform: none !important;
}

.noise-main-nut:active {
    transform: none !important;
}

/* CORRECTION: Remplacer l'animation de scale par un effet de luminosité tactile */
.noise-main-nut.clicked {
    animation: none !important;
    /* Effet de flash lumineux au lieu du scale */
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(251, 191, 36, 0.8)) !important;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

/* Animation tactile personnalisée - feedback visuel sans changement de taille */
@keyframes mobileNutTap {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.4) drop-shadow(0 0 25px rgba(251, 191, 36, 0.9)); }
    100% { filter: brightness(1); }
}

.noise-main-nut.mobile-tap {
    animation: mobileNutTap 0.15s ease-out !important;
}

/* Cercles d'effet - TAILLE FIXE sur mobile */
.noise-click-rings {
    width: 140px !important;
    height: 140px !important;
    /* Empêcher tout redimensionnement */
    min-width: 140px !important;
    min-height: 140px !important;
    max-width: 140px !important;
    max-height: 140px !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Cercles individuels - tailles fixes proportionnelles */
.click-ring.ring-1 {
    width: 100px !important;
    height: 100px !important;
}

.click-ring.ring-2 {
    width: 120px !important;
    height: 120px !important;
}

.click-ring.ring-3 {
    width: 140px !important;
    height: 140px !important;
}

/* Animation pulse simplifiée pour mobile (sans scale qui cause des problèmes) */
.noise-click-rings.pulse .click-ring {
    animation: mobileRingPulse 0.4s ease-out forwards !important;
}

@keyframes mobileRingPulse {
    0% { opacity: 0.8; border-width: 3px; }
    100% { opacity: 0; border-width: 1px; }
}

/* Combo display */
.noise-combo-display {
    top: 5px !important;
    right: 5px !important;
    padding: 0.3rem 0.5rem !important;
}

.combo-label {
    font-size: 0.5rem !important;
}

.combo-value {
    font-size: 0.9rem !important;
}

/* Bonus indicator */
.noise-bonus-indicator {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
}

/* Panel upgrades - masqué par défaut sur mobile, affiché au démarrage du jeu */
.noise-upgrades-panel {
    background: rgba(12, 10, 29, 0.95) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 0.5rem !important;
    max-height: 30vh !important;
    overflow-y: auto !important;
    display: none !important;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    margin-top: auto !important;
}

/* Afficher le panel quand le jeu est actif */
.noise-upgrades-panel.active {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1;
    transform: translateY(0);
}

.upgrades-header {
    padding: 0.3rem 0.5rem !important;
    margin-bottom: 0.3rem !important;
}

.upgrades-icon {
    font-size: 1rem !important;
}

.upgrades-title {
    font-size: 0.85rem !important;
}

.upgrades-score {
    font-size: 0.75rem !important;
}

.upgrades-list {
    gap: 0.3rem !important;
}

.noise-upgrade-btn {
    padding: 0.4rem 0.5rem !important;
    border-radius: 10px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

.upgrade-info {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    flex: 1 !important;
}

.upgrade-icon {
    font-size: 1.2rem !important;
    width: 28px !important;
    height: 28px !important;
}

.upgrade-details {
    text-align: left !important;
}

.upgrade-name {
    font-size: 0.7rem !important;
}

.upgrade-desc {
    font-size: 0.55rem !important;
}

.upgrade-price {
    display: flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
}

.upgrade-cost {
    font-size: 0.75rem !important;
}

.upgrade-currency {
    font-size: 0.8rem !important;
}

.upgrade-level {
    font-size: 0.55rem !important;
    padding: 0.15rem 0.3rem !important;
}

/* Effets visuels reduits sur mobile */
.noise-bg-layer {
    opacity: 0.5 !important;
}

.noise-bg-particles {
    display: none !important;
}

.click-ring {
    display: none !important;
}

/* Points flottants */
.noise-float-text {
    font-size: 1.1rem !important;
}

/* =====================================================
   NOISETTE - PETITS ECRANS (max 480px)
   ===================================================== */
@media (max-width: 480px) {
    .noise-stat {
        padding: 0.15rem 0.25rem !important;
        min-width: 40px !important;
    }

    .noise-value {
        font-size: 0.7rem !important;
    }

    .noise-main-nut {
        font-size: 4rem !important;
        width: 110px !important;
        height: 110px !important;
        /* Garder taille fixe */
        transform: none !important;
    }

    .noise-main-nut:hover,
    .noise-main-nut:active {
        transform: none !important;
    }

    .noise-diff-btn {
        padding: 0.4rem 0.5rem !important;
        min-width: 65px !important;
    }

    .noise-upgrades-panel {
        max-height: 30vh !important;
    }

    .upgrade-icon {
        font-size: 1rem !important;
        width: 24px !important;
        height: 24px !important;
    }

    /* Cercles fixes pour petits écrans */
    .noise-click-rings {
        width: 130px !important;
        height: 130px !important;
        min-width: 130px !important;
        max-width: 130px !important;
    }

    .click-ring.ring-1 { width: 90px !important; height: 90px !important; }
    .click-ring.ring-2 { width: 110px !important; height: 110px !important; }
    .click-ring.ring-3 { width: 130px !important; height: 130px !important; }
}

/* =====================================================
   NOISETTE - TRES PETITS ECRANS (max 400px)
   ===================================================== */
@media (max-width: 400px) {
    .noise-stat .stat-label {
        display: none !important;
    }

    .noise-main-nut {
        font-size: 3.5rem !important;
        width: 100px !important;
        height: 100px !important;
        /* Taille fixe absolue */
        transform: none !important;
    }

    .noise-main-nut:hover,
    .noise-main-nut:active {
        transform: none !important;
    }

    .noise-click-area {
        min-height: 150px !important;
    }

    .noise-diff-btn {
        padding: 0.35rem 0.4rem !important;
        min-width: 55px !important;
    }

    .noise-diff-btn .diff-name {
        font-size: 0.6rem !important;
    }

    .noise-diff-btn .diff-detail {
        display: none !important;
    }

    .noise-upgrades-panel {
        max-height: 28vh !important;
        padding: 0.3rem !important;
    }

    .upgrade-desc {
        display: none !important;
    }

    /* Cercles fixes pour très petits écrans */
    .noise-click-rings {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
    }

    .click-ring.ring-1 { width: 80px !important; height: 80px !important; }
    .click-ring.ring-2 { width: 100px !important; height: 100px !important; }
    .click-ring.ring-3 { width: 120px !important; height: 120px !important; }
}

/* =====================================================
   NOISETTE - ECRANS ULTRA ETROITS (max 360px)
   ===================================================== */
@media (max-width: 360px) {
    .noise-header {
        padding: 0.3rem !important;
    }

    .noise-stat {
        padding: 0.1rem 0.2rem !important;
        min-width: 35px !important;
    }

    .noise-main-nut {
        font-size: 3rem !important;
        width: 90px !important;
        height: 90px !important;
        /* Taille fixe absolue */
        transform: none !important;
    }

    .noise-main-nut:hover,
    .noise-main-nut:active {
        transform: none !important;
    }

    /* Cercles fixes pour écrans ultra-étroits */
    .noise-click-rings {
        width: 110px !important;
        height: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
    }

    .click-ring.ring-1 { width: 70px !important; height: 70px !important; }
    .click-ring.ring-2 { width: 90px !important; height: 90px !important; }
    .click-ring.ring-3 { width: 110px !important; height: 110px !important; }

    .noise-diff-btn {
        min-width: 50px !important;
    }

    .noise-upgrade-btn {
        padding: 0.3rem !important;
    }
}

/* =====================================================
   NOISETTE - BONUS TACTILES AMELIORES
   ===================================================== */

/* Bonus plus grands et plus faciles à toucher sur mobile */
.noise-bonus {
    font-size: 3.5rem !important;
    min-width: 60px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Zone de touch étendue */
    padding: 10px !important;
    margin: -10px !important;
    /* Empêcher la sélection de texte */
    -webkit-user-select: none !important;
    user-select: none !important;
    /* Animation plus visible */
    animation: bonusAppear 0.3s ease, bonusPulse 1s ease-in-out infinite !important;
}

@keyframes bonusPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
    }
}

/* Zone de clic principale plus réactive */
.noise-click-area {
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
}

/* Noisette principale - zone tactile améliorée */
.noise-main-nut {
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
    -webkit-touch-callout: none !important;
    cursor: pointer !important;
    /* Feedback visuel au touch */
    transition: transform 0.05s ease !important;
    /* Zone tactile plus grande sans margin négatif */
    min-width: 100px !important;
    min-height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.noise-main-nut:active {
    transform: scale(0.92) !important;
}

/* Animation de clic plus visible */
.noise-main-nut.clicked {
    transform: scale(0.88) !important;
}

/* Boutons d'upgrade - zone tactile améliorée */
.noise-upgrade-btn {
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
    min-height: 44px !important; /* Minimum recommandé par Apple */
}

.noise-upgrade-btn:active:not(.disabled) {
    transform: scale(0.98) !important;
    background: rgba(251, 191, 36, 0.3) !important;
}

/* Boutons de difficulté - zone tactile améliorée */
.noise-diff-btn {
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
    min-height: 50px !important;
}

.noise-diff-btn:active {
    transform: scale(0.95) !important;
}

/* Bouton jouer - zone tactile améliorée */
.noise-play {
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
    min-height: 50px !important;
}

.noise-play:active {
    transform: scale(0.97) !important;
}

/* Points flottants plus visibles */
.noise-floating {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    pointer-events: none !important;
}

/* Petits écrans - ajustements supplémentaires */
@media (max-width: 480px) {
    .noise-bonus {
        font-size: 3rem !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }

    .noise-main-nut {
        min-width: 80px !important;
        min-height: 80px !important;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .noise-bonus {
        font-size: 2.5rem !important;
        min-width: 45px !important;
        min-height: 45px !important;
    }
}

/* =====================================================
   JEU PAC-MAN
   ===================================================== */
#screen-pacman {
    padding: 0.5rem !important;
}

.pacman-header {
    padding: 0.4rem !important;
    flex-wrap: wrap !important;
    gap: 0.3rem !important;
}

.pacman-stats {
    width: 100% !important;
    justify-content: center !important;
    gap: 0.3rem !important;
}

.pacman-stat {
    padding: 0.2rem 0.4rem !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
}

.pacman-arena {
    max-width: 100% !important;
    aspect-ratio: 1/1 !important;
    touch-action: none !important;
}

.pacman-cell {
    font-size: 0.8rem !important;
}

.pacman-player,
.pacman-ghost {
    font-size: 1.2rem !important;
}

.pacman-controls-mobile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem !important;
}

.pacman-btn-row {
    display: flex !important;
    gap: 0.5rem !important;
}

.pacman-control-btn {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.8rem !important;
    background: rgba(139, 92, 246, 0.3) !important;
    border: 2px solid rgba(139, 92, 246, 0.5) !important;
    border-radius: 12px !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* =====================================================
   JEU PONG
   ===================================================== */
#screen-pong {
    padding: 0.5rem !important;
}

.pong-header {
    padding: 0.4rem !important;
    flex-wrap: wrap !important;
}

.pong-stats {
    gap: 0.4rem !important;
}

.pong-arena {
    width: 100% !important;
    max-width: 350px !important;
    height: 250px !important;
    border-radius: 12px !important;
    touch-action: none !important;
}

.pong-paddle {
    width: 10px !important;
    height: 50px !important;
}

.pong-ball {
    width: 12px !important;
    height: 12px !important;
}

.pong-score {
    font-size: 2rem !important;
}

/* =====================================================
   JEU SPACE INVADERS
   ===================================================== */
#screen-space-invaders {
    padding: 0.5rem !important;
}

.invaders-header {
    padding: 0.4rem !important;
    flex-wrap: wrap !important;
}

.invaders-arena {
    width: 100% !important;
    max-width: 350px !important;
    height: 300px !important;
    border-radius: 12px !important;
    touch-action: none !important;
}

.invader,
.player-ship {
    font-size: 1.2rem !important;
}

.invaders-bullet {
    width: 4px !important;
    height: 10px !important;
}

.invaders-controls-mobile {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    padding: 0.5rem !important;
}

.invaders-control-btn {
    width: 70px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
    background: rgba(6, 182, 212, 0.3) !important;
    border: 2px solid rgba(6, 182, 212, 0.5) !important;
    border-radius: 10px !important;
}

/* =====================================================
   JEU BREAKOUT
   ===================================================== */
#screen-breakout {
    padding: 0.5rem !important;
}

.breakout-header {
    padding: 0.4rem !important;
    flex-wrap: wrap !important;
}

.breakout-arena {
    width: 100% !important;
    max-width: 350px !important;
    height: 280px !important;
    border-radius: 12px !important;
    touch-action: none !important;
}

.breakout-paddle {
    width: 60px !important;
    height: 10px !important;
}

.breakout-ball {
    width: 10px !important;
    height: 10px !important;
}

.breakout-brick {
    border-radius: 4px !important;
}

/* =====================================================
   JEU FLAPPY
   ===================================================== */
#screen-flappy {
    padding: 0.5rem !important;
}

.flappy-header {
    padding: 0.4rem !important;
    flex-wrap: wrap !important;
}

.flappy-arena {
    width: 100% !important;
    max-width: 320px !important;
    height: 400px !important;
    border-radius: 12px !important;
    touch-action: manipulation !important;
}

.flappy-bird {
    font-size: 2rem !important;
}

.flappy-pipe {
    width: 45px !important;
}

.flappy-score {
    font-size: 2.5rem !important;
}

/* =====================================================
   JEU 2048
   ===================================================== */
#screen-2048 {
    padding: 0.5rem !important;
}

.game-2048-header {
    padding: 0.4rem !important;
    flex-wrap: wrap !important;
}

.game-2048-board {
    width: 100% !important;
    max-width: 320px !important;
    aspect-ratio: 1/1 !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 12px !important;
}

.tile-2048 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

.tile-2048.large-number {
    font-size: 1rem !important;
}

/* =====================================================
   JEU TAQUIN
   ===================================================== */
#screen-taquin {
    padding: 0.5rem !important;
}

.taquin-header {
    padding: 0.4rem !important;
    flex-wrap: wrap !important;
}

.taquin-board {
    width: 100% !important;
    max-width: 300px !important;
    aspect-ratio: 1/1 !important;
    gap: 4px !important;
    padding: 8px !important;
    border-radius: 12px !important;
}

.taquin-tile {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

/* =====================================================
   JEU SUDOKU
   ===================================================== */
#screen-sudoku {
    padding: 0.5rem !important;
}

.sudoku-header {
    padding: 0.4rem !important;
    flex-wrap: wrap !important;
}

.sudoku-board {
    width: 100% !important;
    max-width: 320px !important;
    aspect-ratio: 1/1 !important;
    border-radius: 12px !important;
}

.sudoku-cell {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.sudoku-cell.selected {
    background: rgba(139, 92, 246, 0.3) !important;
}

.sudoku-numpad {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
    max-width: 280px !important;
    padding: 0.5rem !important;
}

.sudoku-num-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.3rem !important;
    border-radius: 10px !important;
}

/* =====================================================
   JEU AVALANCHE
   ===================================================== */
#screen-avalanche {
    padding: 0 !important;
}

.avalanche-game {
    min-height: 100vh !important;
}

.avalanche-header {
    padding: 0.4rem !important;
    flex-wrap: wrap !important;
    gap: 0.3rem !important;
}

.avalanche-stats {
    width: 100% !important;
    justify-content: center !important;
    gap: 0.3rem !important;
}

.avalanche-stat {
    padding: 0.2rem 0.4rem !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
}

.avalanche-arena {
    height: 350px !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    touch-action: none !important;
}

.avalanche-player {
    font-size: 1.8rem !important;
}

.avalanche-obstacle {
    font-size: 1.3rem !important;
}

/* =====================================================
   OVERLAYS TITAN - TOUS LES JEUX
   ===================================================== */
.titan-overlay,
.game-overlay,
.pacman-overlay,
.pong-overlay,
.breakout-overlay,
.flappy-overlay,
.invaders-overlay {
    padding: 0.5rem !important;
}

.titan-overlay-content,
.overlay-content {
    padding: 1rem !important;
    max-width: 95vw !important;
    border-radius: 16px !important;
}

.titan-overlay-icon,
.overlay-icon {
    font-size: 2.5rem !important;
}

.titan-overlay-title,
.overlay-title {
    font-size: 1.3rem !important;
}

.titan-overlay-desc,
.overlay-desc {
    font-size: 0.85rem !important;
}

.titan-diff-grid,
.diff-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
}

.titan-diff-btn,
.diff-btn {
    padding: 0.6rem !important;
    border-radius: 10px !important;
}

.titan-diff-btn .diff-icon,
.diff-btn .diff-icon {
    font-size: 1.4rem !important;
}

.titan-diff-btn .diff-name,
.diff-btn .diff-name {
    font-size: 0.75rem !important;
}

.titan-diff-btn .diff-info,
.diff-btn .diff-info {
    display: none !important;
}

.titan-play-btn,
.overlay-play-btn {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.95rem !important;
}

/* =====================================================
   CONTROLES MOBILES UNIVERSELS
   ===================================================== */
.mobile-controls {
    display: flex !important;
    justify-content: center !important;
    gap: 0.8rem !important;
    padding: 0.8rem !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    margin-top: 0.5rem !important;
}

.mobile-control-btn {
    width: 55px !important;
    height: 55px !important;
    font-size: 1.5rem !important;
    background: rgba(139, 92, 246, 0.25) !important;
    border: 2px solid rgba(139, 92, 246, 0.4) !important;
    border-radius: 12px !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
}

.mobile-control-btn:active {
    background: rgba(139, 92, 246, 0.5) !important;
    transform: scale(0.95) !important;
}

/* D-pad style controls */
.dpad-controls {
    display: grid !important;
    grid-template-areas:
        ". up ."
        "left . right"
        ". down ." !important;
    gap: 0.3rem !important;
}

.dpad-controls .btn-up { grid-area: up; }
.dpad-controls .btn-down { grid-area: down; }
.dpad-controls .btn-left { grid-area: left; }
.dpad-controls .btn-right { grid-area: right; }

/* =====================================================
   PAGES JOUEURS & EN LIGNE
   ===================================================== */
.joueurs-container,
.enligne-container {
    padding: 0 !important;
}

.joueurs-header,
.enligne-header {
    padding: 0.8rem !important;
}

.joueurs-header h1,
.enligne-header h1 {
    font-size: 1.2rem !important;
}

.btn-back-home {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
}

.filter-tabs {
    gap: 0.3rem !important;
    flex-wrap: wrap !important;
}

.filter-tab {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.75rem !important;
}

.player-card {
    padding: 0.6rem !important;
}

.player-avatar {
    width: 40px !important;
    height: 40px !important;
}

.avatar-emoji {
    font-size: 1.5rem !important;
}

.player-name {
    font-size: 0.9rem !important;
}

.player-title {
    font-size: 0.7rem !important;
}

.player-stats {
    gap: 0.3rem !important;
}

.player-stat {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.7rem !important;
}

/* Modal profil joueur */
.player-modal-content {
    padding: 1rem !important;
    max-width: 95vw !important;
}

.profile-header {
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.profile-avatar {
    font-size: 3rem !important;
}

.profile-name {
    font-size: 1.2rem !important;
}

.profile-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
}

/* =====================================================
   PAGE AVIS
   ===================================================== */
.avis-container {
    padding: 0 !important;
}

.avis-header {
    padding: 0.8rem !important;
}

.avis-form {
    padding: 1rem !important;
}

.star-rating {
    font-size: 2rem !important;
    gap: 0.3rem !important;
}

.form-group label {
    font-size: 0.85rem !important;
}

.form-group input,
.form-group textarea,
.form-group select {
    font-size: 0.95rem !important;
    padding: 0.7rem !important;
}

.btn-submit-avis {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.95rem !important;
}

/* Page Avis - Layout mobile */
.avis-main {
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 0.5rem !important;
}

.form-section {
    order: 1 !important;
}

.info-section {
    order: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.info-card {
    flex: 1 1 45% !important;
    padding: 0.6rem !important;
}

.info-card .info-icon {
    font-size: 1.5rem !important;
}

.info-card h3 {
    font-size: 0.85rem !important;
}

.info-card p {
    font-size: 0.7rem !important;
}

/* Section avis recents - mobile */
.recent-feedback-section {
    padding: 0.8rem !important;
    margin-top: 1rem !important;
}

.recent-title {
    font-size: 1rem !important;
    gap: 0.4rem !important;
    margin-bottom: 0.8rem !important;
}

.feedback-list {
    gap: 0.5rem !important;
}

.feedback-card {
    padding: 0.7rem !important;
    border-radius: 10px !important;
}

.feedback-header {
    gap: 0.4rem !important;
    margin-bottom: 0.4rem !important;
}

.feedback-author {
    gap: 0.3rem !important;
}

.author-avatar {
    font-size: 1rem !important;
}

.author-name {
    font-size: 0.85rem !important;
}

.feedback-rating {
    font-size: 0.75rem !important;
}

.feedback-content p {
    font-size: 0.8rem !important;
}

.feedback-footer {
    margin-top: 0.4rem !important;
    font-size: 0.7rem !important;
}

.feedback-category {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.6rem !important;
}

/* =====================================================
   OPTIMISATIONS GENERALES MOBILE
   ===================================================== */

/* Améliorer la lisibilité */
body {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Empêcher le zoom sur double-tap */
* {
    touch-action: manipulation;
}

/* Scrollbar plus fine sur mobile */
::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4) !important;
    border-radius: 4px !important;
}

/* Améliorer les transitions */
button,
a,
.clickable {
    transition: transform 0.1s ease, opacity 0.1s ease !important;
}

button:active,
a:active,
.clickable:active {
    transform: scale(0.97) !important;
    opacity: 0.8 !important;
}

/* Safe area pour les téléphones avec notch */
@supports (padding: max(0px)) {
    .screen {
        padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }

    .mobile-controls {
        padding-bottom: max(0.8rem, env(safe-area-inset-bottom)) !important;
    }
}

/* =====================================================
   CONTROLES MOBILES DYNAMIQUES (mobile.js)
   ===================================================== */

/* D-Pad pour jeux type Pac-Man */
.mobile-dpad-controls {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 15px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px) !important;
}

.dpad-row {
    display: flex !important;
    gap: 5px !important;
}

.dpad-btn {
    width: 55px !important;
    height: 55px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.2)) !important;
    border: 2px solid rgba(139, 92, 246, 0.5) !important;
    color: white !important;
    font-size: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.1s ease, background 0.1s ease !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.dpad-btn:active,
.dpad-btn.active {
    transform: scale(0.9) !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(139, 92, 246, 0.5)) !important;
}

.dpad-center {
    background: transparent !important;
    border: none !important;
    pointer-events: none !important;
}

/* Controles Gauche/Droite pour jeux type Catch/Avalanche */
.mobile-lr-controls {
    position: fixed !important;
    bottom: 30px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    pointer-events: none !important;
}

.lr-btn {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(139, 92, 246, 0.3)) !important;
    border: 3px solid rgba(139, 92, 246, 0.6) !important;
    color: white !important;
    font-size: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.1s ease, background 0.1s ease !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
}

.lr-btn:active,
.lr-btn.active {
    transform: scale(0.9) !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(139, 92, 246, 0.6)) !important;
}

/* Classes utilitaires mobile.js */
.is-mobile {
    touch-action: manipulation !important;
}

.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.low-performance .snow-particle,
.low-performance .particle,
.low-performance .sparkle {
    display: none !important;
}

.has-notch {
    padding-top: env(safe-area-inset-top) !important;
}

.has-notch .btn-back {
    top: calc(0.5rem + env(safe-area-inset-top)) !important;
}

/* Variable viewport height pour mobile */
.screen {
    min-height: calc(var(--vh, 1vh) * 100) !important;
}

/* =====================================================
   STYLE UNIFORME OVERLAYS MINI-JEUX (comme Clicker)
   ===================================================== */

/* Tous les overlays de jeux */
.clicker-start-overlay,
.game-overlay {
    padding: 1rem !important;
    background: rgba(10, 10, 30, 0.97) !important;
}

/* Contenu des overlays - cadre arrondi violet */
.clicker-start-content,
.overlay-content {
    padding: 1.5rem !important;
    max-width: 92vw !important;
    border-radius: 24px !important;
    background: linear-gradient(145deg, rgba(25, 25, 50, 0.98), rgba(15, 15, 35, 0.99)) !important;
    border: 2px solid rgba(139, 92, 246, 0.4) !important;
    box-shadow:
        0 0 40px rgba(139, 92, 246, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Icones des overlays - animation bounce */
.clicker-start-icon,
.overlay-icon {
    font-size: 4rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Titres des overlays - gradient violet/cyan */
.clicker-start-content h2,
.titan-title,
#screen-noiseClicker .noise-overlay .noise-title,
.noise-overlay .noise-title {
    font-size: 1.6rem !important;
    margin-bottom: 0.4rem !important;
    background: linear-gradient(135deg, #c4b5fd, #67e8f9) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

/* Descriptions */
.clicker-start-content p,
.titan-desc,
.noise-overlay .noise-desc {
    font-size: 0.85rem !important;
    color: rgba(180, 190, 220, 0.9) !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

/* Titre "Choisis ta difficulte" */
.clicker-difficulty-picker h3,
.difficulty-title,
.diff-selector-title {
    font-size: 1rem !important;
    color: white !important;
    margin-bottom: 0.8rem !important;
    font-weight: 600 !important;
}

/* Grille des boutons de difficulte - 2x2 */
.clicker-diff-buttons,
.titan-difficulties,
.noise-diff-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 1.2rem !important;
}

/* Boutons de difficulte - style carte sombre */
.clicker-diff-btn,
.titan-diff-btn,
.noise-diff-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.15rem !important;
    padding: 0.7rem 0.4rem !important;
    background: rgba(30, 30, 50, 0.8) !important;
    border: 2px solid rgba(100, 100, 130, 0.3) !important;
    border-radius: 14px !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-height: 70px !important;
}

/* Icone emoji dans bouton difficulte */
.clicker-diff-btn span:first-child,
.titan-diff-btn .diff-icon,
.noise-diff-btn .diff-icon {
    font-size: 1.6rem !important;
    line-height: 1 !important;
}

/* Nom de la difficulte */
.clicker-diff-btn span:last-child,
.titan-diff-btn .diff-name,
.noise-diff-btn .diff-name {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

/* Description difficulte (cartes, temps, etc) */
.titan-diff-btn .diff-desc,
.noise-diff-btn .diff-detail {
    font-size: 0.65rem !important;
    color: rgba(160, 160, 190, 0.8) !important;
    margin-top: 0.1rem !important;
}

/* Bouton selectionne - bordure cyan glow */
.clicker-diff-btn.selected,
.titan-diff-btn.selected,
.noise-diff-btn.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(34, 211, 238, 0.2)) !important;
    border-color: rgba(103, 232, 249, 0.7) !important;
    box-shadow:
        0 0 20px rgba(103, 232, 249, 0.3),
        inset 0 0 20px rgba(103, 232, 249, 0.1) !important;
}

/* Bouton Retour dans les overlays */
.btn-back-overlay {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    background: rgba(139, 92, 246, 0.3) !important;
    border: 1px solid rgba(139, 92, 246, 0.5) !important;
    border-radius: 12px !important;
    color: white !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
}

.btn-back-overlay:active {
    background: rgba(139, 92, 246, 0.5) !important;
    transform: scale(0.95) !important;
}

/* Bouton JOUER - gradient bleu/violet arrondi et CENTRE */
.clicker-play-btn,
.btn-play,
#btn-play-noise,
#btn-play-memory,
#btn-play-catch,
#btn-play-simon,
#btn-play-quiz {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.9rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #6366f1, #22d3ee) !important;
    border: none !important;
    border-radius: 50px !important;
    color: white !important;
    cursor: pointer !important;
    box-shadow:
        0 4px 20px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(34, 211, 238, 0.2) !important;
    margin-top: 0.8rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transition: transform 0.15s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    width: fit-content !important;
}

.clicker-play-btn:active,
.btn-play:active,
#btn-play-noise:active,
#btn-play-memory:active,
#btn-play-catch:active,
#btn-play-simon:active,
#btn-play-quiz:active {
    transform: scale(0.96) !important;
}

/* Section des regles/infos - cachee sur mobile pour simplifier */
.noise-rules,
.titan-memory-preview,
.noise-bonuses-preview,
.noise-best-scores-preview,
.powerup-list {
    display: none !important;
}

/* Cacher les elements secondaires pour avoir le meme look que Clicker */
.memory-preview-list,
.btn-leaderboard-noise {
    display: none !important;
}

/* Titre de section difficulte */
.titan-difficulty-section h3,
.noise-difficulty-selector .diff-selector-title {
    text-align: center !important;
    margin-bottom: 0.6rem !important;
}

/* Petits ecrans */
@media (max-width: 400px) {
    .clicker-start-content,
    .overlay-content {
        padding: 1.2rem !important;
    }

    .clicker-start-icon,
    .overlay-icon {
        font-size: 3rem !important;
    }

    .clicker-start-content h2,
    .titan-title,
    .noise-overlay .noise-title {
        font-size: 1.3rem !important;
    }

    .clicker-play-btn,
    .btn-play,
    #btn-play-noise,
    #btn-play-memory,
    #btn-play-catch,
    #btn-play-simon,
    #btn-play-quiz {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .clicker-diff-btn,
    .titan-diff-btn,
    .noise-diff-btn {
        padding: 0.5rem 0.3rem !important;
        min-height: 60px !important;
    }

    .clicker-diff-btn span:first-child,
    .titan-diff-btn .diff-icon,
    .noise-diff-btn .diff-icon {
        font-size: 1.3rem !important;
    }

    .clicker-diff-btn span:last-child,
    .titan-diff-btn .diff-name,
    .noise-diff-btn .diff-name {
        font-size: 0.7rem !important;
    }
}
